Skip to content

Commit

Permalink
fix(obstacle_stop_planner): fix hunting collision point (autowarefoun…
Browse files Browse the repository at this point in the history
…dation#1627)

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

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored and yukke42 committed Oct 14, 2022
1 parent e409c6b commit 1285073
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions planning/obstacle_stop_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ void ObstacleStopPlannerNode::insertVelocity(
}
} else if (!no_hunting_collision_point) {
if (latest_stop_point_) {
// update stop point index with the current trajectory
latest_stop_point_.get().index = findFirstNearestSegmentIndexWithSoftConstraints(
output, getPose(latest_stop_point_.get().point), node_param_.ego_nearest_dist_threshold,
node_param_.ego_nearest_yaw_threshold);
insertStopPoint(latest_stop_point_.get(), output, planner_data.stop_reason_diag);
debug_ptr_->pushPose(getPose(latest_stop_point_.get().point), PoseType::TargetStop);
debug_ptr_->pushPose(getPose(latest_stop_point_.get().point), PoseType::Stop);
Expand Down

0 comments on commit 1285073

Please sign in to comment.