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

feat(behavior_path_planner): add option to insert zero velocity to the center line path #5517

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Nov 8, 2023

Description

This commit adds a new boolean parameter, insert_zero_velocity, to the getCenterLinePath function in the utils.hpp file. When set to true, this parameter will insert a zero velocity to each point in the path. In the utils.cpp file, this option is used to insert zero velocities to the reference path generated in the createGoalAroundPath function.

Tests performed

  • Test with psim

get the following the output with

ros2 topic echo /planning/scenario_planning/lane_driving/behavior_planning/path_with_lane_id

image

Effects on system behavior

Not applicable.

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.

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.

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

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 8, 2023
@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/insert_zero_velocity_center_line_path branch from 24bfc29 to ad1bd6b Compare November 8, 2023 05:51
@kyoichi-sugahara kyoichi-sugahara changed the title feat(behavior_path_planner): Add option to insert zero velocity to the center line path feat(behavior_path_planner): add option to insert zero velocity to the center line path Nov 8, 2023
…e center line path

This commit adds a new boolean parameter, `insert_zero_velocity`, to the `getCenterLinePath` function in the `utils.hpp` file. When set to `true`, this parameter will insert a zero velocity to each point in the path. In the `utils.cpp` file, this option is used to insert zero velocities to the reference path generated in the `createGoalAroundPath` function.

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/insert_zero_velocity_center_line_path branch from ad1bd6b to a03b385 Compare November 8, 2023 10:19
@kyoichi-sugahara kyoichi-sugahara added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 8, 2023
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e02ec1b) 14.77% compared to head (a03b385) 14.77%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5517   +/-   ##
=======================================
  Coverage   14.77%   14.77%           
=======================================
  Files        1684     1684           
  Lines      116849   116851    +2     
  Branches    36269    36270    +1     
=======================================
+ Hits        17260    17263    +3     
+ Misses      80097    80093    -4     
- Partials    19492    19495    +3     
Flag Coverage Δ *Carryforward flag
differential 12.19% <100.00%> (?)
total 14.77% <ø> (ø) Carriedforward from e02ec1b

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

Files Coverage Δ
planning/behavior_path_planner/src/utils/utils.cpp 14.10% <100.00%> (+0.11%) ⬆️

... and 1 file with indirect coverage changes

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

@kyoichi-sugahara kyoichi-sugahara merged commit 27f61b0 into autowarefoundation:main Nov 9, 2023
32 of 33 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the feat/insert_zero_velocity_center_line_path branch November 9, 2023 03:40
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Nov 9, 2023
…e center line path (autowarefoundation#5517)

feat(behavior_path_planner): Add option to insert zero velocity to the center line path

This commit adds a new boolean parameter, `insert_zero_velocity`, to the `getCenterLinePath` function in the `utils.hpp` file. When set to `true`, this parameter will insert a zero velocity to each point in the path. In the `utils.cpp` file, this option is used to insert zero velocities to the reference path generated in the `createGoalAroundPath` function.

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2023
…e center line path (autowarefoundation#5517)

feat(behavior_path_planner): Add option to insert zero velocity to the center line path

This commit adds a new boolean parameter, `insert_zero_velocity`, to the `getCenterLinePath` function in the `utils.hpp` file. When set to `true`, this parameter will insert a zero velocity to each point in the path. In the `utils.cpp` file, this option is used to insert zero velocities to the reference path generated in the `createGoalAroundPath` function.

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
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) tag: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.

2 participants