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(simple_planning_simulator): fix param file levels #1612

Merged

Conversation

HaoruXue
Copy link
Contributor

@HaoruXue HaoruXue commented Aug 17, 2022

Signed-off-by: Haoru Xue [email protected]

Description

Fix a bug in simple_planning_simulator where the parameters in the param files are not correctly loaded into the node. The issue was not previously apparent because every parameter has a default value.

How to replicate:

  1. In simple_planning_simulator_core.cpp, remove a default value in a paramter declaration, for example, vehicle_model_type
  2. The launch will now throw a parameter not set exception: ros2 launch simple_planning_simulator simple_planning_simulator.launch.py initial_engage_state:=true

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.

@HaoruXue HaoruXue self-assigned this Aug 17, 2022
@HaoruXue HaoruXue added the type:bug Software flaws or errors. label Aug 17, 2022
@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #1612 (41b05a0) into main (4523a33) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1612   +/-   ##
=======================================
  Coverage   10.68%   10.68%           
=======================================
  Files        1109     1109           
  Lines       78589    78589           
  Branches    18553    18553           
=======================================
  Hits         8401     8401           
  Misses      61321    61321           
  Partials     8867     8867           
Flag Coverage Δ *Carryforward flag
differential 58.28% <ø> (?)
total 10.67% <ø> (ø) Carriedforward from 4523a33

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

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@takayuki5168
Copy link
Contributor

LGTM.

@TakaHoribe @yukkysaito Could you approve this PR.

Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

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

LGTM

@yukkysaito
Copy link
Contributor

@TakaHoribe Pls double check

Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

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

Confirmed it worked with

ros2 launch simple_planning_simulator simple_planning_simulator.launch.py initial_engage_state:=false

LGTM. Thank you!

@TakaHoribe TakaHoribe merged commit c0a7d61 into autowarefoundation:main Sep 9, 2022
voltonomous pushed a commit to vautonomous/autoware.universe that referenced this pull request Sep 11, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Software flaws or errors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants