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) (autowarefoundation#229)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
  • Loading branch information
tkimura4 and satoshi-ota authored Dec 28, 2022
1 parent bef3269 commit 7a6c198
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 7a6c198

Please sign in to comment.