Skip to content

Conversation

@maxime-clem
Copy link
Contributor

Description

Fix an issue with the crosswalk that could insert a stop pose that was calculated for a previous path, leading to yaw or distance deviation issues.
This PR fixes the issue by always re-projecting the stop pose on the updated path.

Related links

Parent Issue:

  • Link

How was this PR tested?

Psim + rosbag

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 28, 2025
@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 18.14%. Comparing base (b83ad6a) to head (e243ac6).

Files with missing lines Patch % Lines
..._velocity_crosswalk_module/src/scene_crosswalk.cpp 0.00% 8 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11699      +/-   ##
==========================================
+ Coverage   17.83%   18.14%   +0.30%     
==========================================
  Files        1746     1747       +1     
  Lines      122311   122576     +265     
  Branches    42971    43021      +50     
==========================================
+ Hits        21819    22242     +423     
- Misses      82191    82391     +200     
+ Partials    18301    17943     -358     
Flag Coverage Δ *Carryforward flag
daily 19.96% <ø> (+<0.01%) ⬆️ Carriedforward from b83ad6a
daily-cuda 17.83% <ø> (+<0.01%) ⬆️ Carriedforward from b83ad6a
differential 20.69% <0.00%> (?)
total-cuda 17.84% <ø> (+<0.01%) ⬆️ Carriedforward from b83ad6a

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

previous_stop_pose_->stop_pose =
motion_utils::calcInterpolatedPose(ego_path.points, previous_stop_arc_length);
const auto dist_to_previous_stop = get_distance_to_stop(previous_stop_pose_);
const auto use_previous_stop_pose =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this good enough.
Keeping the first position is not works well in some situation.
I'll comments soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the logic to use the previous stop pose and to keep the first stop pose among the previous and the new ones is already implemented. This PR is only to fix an issue when using the previous stop pose.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late comment.
I realize this is an issue from the previous PR, not this one, and I think this PR improves the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

3 participants