Skip to content

Commit

Permalink
fix(obstacle_avoidance_planner): use fisrt ref point to find nearest …
Browse files Browse the repository at this point in the history
…bounds (autowarefoundation#2248)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
  • Loading branch information
kosuke55 authored and HansRobo committed Dec 16, 2022
1 parent 021792f commit d1c9526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_avoidance_planner/src/mpt_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ void MPTOptimizer::calcBounds(
if (prev_trajs && !prev_trajs->mpt_ref_points.empty()) {
return prev_trajs->mpt_ref_points.front().p;
}
return current_ego_pose_.position;
return ref_points.at(i).p;
}();

geometry_msgs::msg::Pose ref_pose;
Expand Down

0 comments on commit d1c9526

Please sign in to comment.