Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(start_planner): remove inverse orientation points #5100

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Sep 24, 2023

Description

remove inverse orientation points after shifting path

edge case example
image
(④typo 3->2)

before

image

after

image

image

Related links

fix #4950

Tests performed

Notes for reviewers

Interface changes

Effects on system behavior

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Sep 24, 2023
@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 24, 2023
@kosuke55
Copy link
Contributor Author

memo

        elif map_name == 'virtual_fukuzatu':
            if route == 0: # invalid orientation
                self.initial_pose.pose.pose.position.x = 216.0785369873047
                self.initial_pose.pose.pose.position.y = 468.38623046875
                self.initial_pose.pose.pose.orientation.z = 0.24739376267590443
                self.initial_pose.pose.pose.orientation.w = 0.9689150252674681

                self.goal_pose.pose.position.x = 199.07623291015625
                self.goal_pose.pose.position.y = 429.3672180175781
                self.goal_pose.pose.orientation.z = -0.7117967622473772
                self.goal_pose.pose.orientation.w = 0.7023854847974514

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

codecov bot commented Sep 24, 2023

Codecov Report

Patch coverage: 14.28% and project coverage change: +0.21% 🎉

Comparison is base (ec99b2f) 15.02% compared to head (283b0ed) 15.23%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5100      +/-   ##
==========================================
+ Coverage   15.02%   15.23%   +0.21%     
==========================================
  Files        1608     1608              
  Lines      111740   112318     +578     
  Branches    34645    35082     +437     
==========================================
+ Hits        16788    17113     +325     
- Misses      76244    76359     +115     
- Partials    18708    18846     +138     
Flag Coverage Δ *Carryforward flag
differential 18.60% <14.28%> (?)
total 15.02% <ø> (+<0.01%) ⬆️ Carriedforward from 9ca31b6

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

Files Changed Coverage Δ
...planner/src/utils/goal_planner/shift_pull_over.cpp 3.57% <ø> (+0.03%) ⬆️
...th_planner/src/utils/path_shifter/path_shifter.cpp 9.22% <0.00%> (-0.11%) ⬇️
...nner/src/utils/start_goal_planner_common/utils.cpp 30.76% <ø> (+3.74%) ⬆️
...planner/src/utils/start_planner/shift_pull_out.cpp 2.51% <ø> (+0.01%) ⬆️
...ils/include/motion_utils/trajectory/trajectory.hpp 66.90% <33.33%> (-0.13%) ⬇️

... and 11 files with indirect coverage changes

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

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 force-pushed the fix/invalid_orientation branch from d76cad5 to 283b0ed Compare September 25, 2023 04:53
@kosuke55
Copy link
Contributor Author

@kyoichi-sugahara
thanks for the discussion!
Updated to remove and insert in loop
use loop

@kosuke55 kosuke55 merged commit eeab6c0 into main Sep 25, 2023
@kosuke55 kosuke55 deleted the fix/invalid_orientation branch September 25, 2023 06:35
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Sep 27, 2023
…tion#5100)

* fix(start_planner): remove inverse orientation points

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

* use loop

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

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Oct 3, 2023
…tion#5100)

* fix(start_planner): remove inverse orientation points

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

* use loop

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

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) 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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants