Skip to content

Commit

Permalink
fix(crosswalk): fix base path for stop point caluculation (autowarefo…
Browse files Browse the repository at this point in the history
…undation#2584)

Signed-off-by: satoshi-ota <[email protected]>

Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota authored Dec 27, 2022
1 parent d204932 commit 175e23d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ boost::optional<geometry_msgs::msg::Point> CrosswalkModule::findNearestStopPoint
const auto stop_line_distance = exist_stopline_in_map ? 0.0 : planner_param_.stop_line_distance;
const auto margin = stop_at_stop_line ? stop_line_distance + base_link2front
: planner_param_.stop_margin + base_link2front;
const auto stop_pose = calcLongitudinalOffsetPose(sparse_resample_path.points, p_stop, -margin);
const auto stop_pose = calcLongitudinalOffsetPose(ego_path.points, p_stop, -margin);

if (!stop_pose) {
return {};
Expand Down

0 comments on commit 175e23d

Please sign in to comment.