Skip to content

Commit

Permalink
fix(obstacle_avoidance_planner): fixing wrong code logic porting from…
Browse files Browse the repository at this point in the history
… original PR

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
  • Loading branch information
ahmeddesokyebrahim committed Jul 11, 2023
1 parent eb0689d commit 13a6ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_avoidance_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,9 @@ void ObstacleAvoidancePlanner::insertZeroVelocityOutsideDrivableArea(
}();

if (first_outside_idx) {
debug_data_ptr_->stop_pose_by_drivable_area = optimized_traj_points.at(*first_outside_idx).pose;
for (size_t i = *first_outside_idx; i < optimized_traj_points.size(); ++i) {
optimized_traj_points.at(i).longitudinal_velocity_mps = 0.0;
debug_data_ptr_->stop_pose_by_drivable_area = optimized_traj_points.at(i).pose;
}
}

Expand Down

0 comments on commit 13a6ff2

Please sign in to comment.