Skip to content

Commit

Permalink
fix(obstacle_stop_planner): fix hunting collision point (#1627)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Nov 30, 2022
1 parent d1f8b18 commit 7af84b1
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 @@ -866,6 +866,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::Stop);
}
Expand Down

0 comments on commit 7af84b1

Please sign in to comment.