Skip to content

Commit

Permalink
fix:unreadVariable
Browse files Browse the repository at this point in the history
Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 committed Aug 6, 2024
1 parent 5fd4b2a commit 1011d9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/reaction_analyzer/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ size_t get_index_after_distance(
const TrajectoryPoint & curr_p = traj.points.at(curr_id);

size_t target_id = curr_id;
double current_distance = 0.0;
for (size_t traj_id = curr_id + 1; traj_id < traj.points.size(); ++traj_id) {
current_distance = autoware::universe_utils::calcDistance3d(traj.points.at(traj_id), curr_p);
double current_distance = autoware::universe_utils::calcDistance3d(traj.points.at(traj_id), curr_p);
if (current_distance >= distance) {
break;
}
Expand Down

0 comments on commit 1011d9c

Please sign in to comment.