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(surround_obstacle_checker): integrate generate_parameter_library #8719

Conversation

mitukou1109
Copy link
Contributor

@mitukou1109 mitukou1109 commented Sep 3, 2024

Description

This PR enables surround_obstacle_checker to handle parameters using generate_parameter_library.

How was this PR tested?

Psim

  • changes in rqt reconfigure are reflected to the behavior of the node
  • errors occur if any parameters are missing in the config file in autoware_launch
Screencast.from.2024.09.03.11.49.01.webm

Evaluator: https://evaluation.tier4.jp/evaluation/reports/36978351-88c5-59df-967f-03ff39440cae?project_id=prd_jt

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Sep 3, 2024
Copy link

github-actions bot commented Sep 3, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@@ -0,0 +1,67 @@
surround_obstacle_checker_node:
Copy link
Contributor

Choose a reason for hiding this comment

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

@mitukou1109 Is it possible to create this yaml file under config dir...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isn't it confusing if it is in the same directory as the original parameter file? The file is just for code generation.

Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 OK. Let's use param dir for now.

private:
rcl_interfaces::msg::SetParametersResult onParam(
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is the alternative function of onParam...? Or, the pickNik lib can automatically update the value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ParamListener adds a callback for each parameter internally and thus we don't have to care about updating its value, but we still need to call get_params() to acquire the latest values as done here.

pointcloud:
enable_check:
type: bool
default_value: false
Copy link
Contributor

Choose a reason for hiding this comment

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

@mitukou1109 please remove default value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed: fb362a9

@satoshi-ota satoshi-ota marked this pull request as ready for review September 3, 2024 08:02
@satoshi-ota satoshi-ota added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 3, 2024
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 24.13%. Comparing base (1ae6082) to head (4965b5c).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...ng/autoware_surround_obstacle_checker/src/node.cpp 0.00% 40 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8719      +/-   ##
==========================================
- Coverage   24.13%   24.13%   -0.01%     
==========================================
  Files        1407     1407              
  Lines      102317   102315       -2     
  Branches    38830    38830              
==========================================
- Hits        24699    24693       -6     
- Misses      75045    75048       +3     
- Partials     2573     2574       +1     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 24.14% <ø> (+<0.01%) ⬆️ Carriedforward from c48cf4f

*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.

mitukou1109 and others added 7 commits September 5, 2024 09:12
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
@satoshi-ota satoshi-ota force-pushed the feat/integrate_generate_parameter_library branch from fb362a9 to c48cf4f Compare September 5, 2024 00:12
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
@satoshi-ota satoshi-ota enabled auto-merge (squash) September 5, 2024 06:57
Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

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

LGTM. Good job.

@satoshi-ota satoshi-ota merged commit 58c99fe into autowarefoundation:main Sep 5, 2024
25 checks passed
emuemuJP pushed a commit to arayabrain/autoware.universe.origin that referenced this pull request Sep 10, 2024
…autowarefoundation#8719)

* add generate_parameter_library to package

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* add parameter file generator script

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* use mapped parameters

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* integrate generate_parameter_library

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* style(pre-commit): autofix

* check to use dynamic object

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* remove default values

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

* fix variable shadowing

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>

---------

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: emuemuJP <k.matsumoto.0807@gmail.com>
@mitukou1109 mitukou1109 deleted the feat/integrate_generate_parameter_library branch September 13, 2024 04:34
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