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

refactor(dummy_perception_publisher): rework parameters #8660

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

batuhanbeytekin
Copy link
Member

Description

Implement the ROS Node configuration layout described in https://github.com/orgs/autowarefoundation/discussions/3371

Tests performed

Package built and launch locally.

Effects on system behavior

More reliable and faster parameter configuration file creation.

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.

@batuhanbeytekin batuhanbeytekin added type:documentation Creating or refining documentation. (auto-assigned) component:simulation Virtual environment setups and simulations. (auto-assigned) tag:deploy-docs Mark for deploy-docs action generation. (used-by-ci) DevOps Dojo: ROS Node Conf Related to Open AD Kit WG tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Aug 28, 2024
@batuhanbeytekin batuhanbeytekin self-assigned this Aug 28, 2024
Copy link

github-actions bot commented Aug 28, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.96%. Comparing base (d57f82d) to head (c4ea773).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8660      +/-   ##
==========================================
- Coverage   27.96%   27.96%   -0.01%     
==========================================
  Files        1319     1319              
  Lines       98732    98738       +6     
  Branches    39800    39803       +3     
==========================================
  Hits        27615    27615              
- Misses      71062    71068       +6     
  Partials       55       55              
Flag Coverage Δ *Carryforward flag
differential 1.96% <ø> (?)
total 27.96% <ø> (ø) Carriedforward from d57f82d

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

@knzo25 knzo25 removed their request for review September 11, 2024 01:02
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from 78884ce to c2952f7 Compare September 12, 2024 14:30
@github-actions github-actions bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Sep 12, 2024
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from c2952f7 to 3902818 Compare September 12, 2024 14:36
@github-actions github-actions bot removed the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Sep 12, 2024
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from dac751a to b5ef1c0 Compare September 12, 2024 14:52
@github-actions github-actions bot added component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) tag:require-cuda-build-and-test labels Sep 12, 2024
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch 2 times, most recently from ae17fcb to 33737b5 Compare September 12, 2024 14:58
@MasatoSaeki
Copy link
Contributor

MasatoSaeki commented Sep 12, 2024

@batuhanbeytekin
ae2ee04 and f7d66c9 is already rebased(merged), therefore could you remove their commit?

@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from 9976ec2 to d1879ae Compare September 16, 2024 12:03
@github-actions github-actions bot removed component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) tag:require-cuda-build-and-test labels Sep 16, 2024
@batuhanbeytekin
Copy link
Member Author

@batuhanbeytekin ae2ee04 and f7d66c9 is already rebased(merged), therefore could you remove their commit?

Thank you for your feedback, I just updated my branch.

@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from 15e47b1 to b578154 Compare September 16, 2024 12:16
@github-actions github-actions bot added the component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) label Sep 16, 2024
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from c8ae450 to c4ea773 Compare September 18, 2024 14:23
@github-actions github-actions bot removed the component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) label Sep 18, 2024
Copy link
Contributor

@MasatoSaeki MasatoSaeki left a comment

Choose a reason for hiding this comment

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

Thank you for your working. So I am able to see Documentation.
And, I want you to remove initial value in src/node.cpp like following example.
Before

visible_range_ = this->declare_parameter("visible_range", 100.0);

After

visible_range_ = this->declare_parameter("visible_range");

@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch 2 times, most recently from 9c39348 to 9adb263 Compare September 19, 2024 08:55
Signed-off-by: batuhanbeytekin <[email protected]>
Signed-off-by: Batuhan Beytekin <[email protected]>
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch 3 times, most recently from d4f69c4 to 9585c55 Compare September 19, 2024 09:02
@batuhanbeytekin batuhanbeytekin force-pushed the refactor/dummy_perception_publisher branch from 3664f3a to fa5453b Compare September 19, 2024 09:05
Copy link
Contributor

@MasatoSaeki MasatoSaeki left a comment

Choose a reason for hiding this comment

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

@batuhanbeytekin
Thank you for modifying andI left the comment.
It enables to see Documentation in my local environment. (I have no idea about points which changes not reflected on URL)
Screenshot from 2024-09-23 20-34-58

Comment on lines +130 to +139
visible_range_ = this->declare_parameter("visible_range");
detection_successful_rate_ = this->declare_parameter("detection_successful_rate");
enable_ray_tracing_ = this->declare_parameter("enable_ray_tracing");
use_object_recognition_ = this->declare_parameter("use_object_recognition");
use_base_link_z_ = this->declare_parameter("use_base_link_z");
const bool object_centric_pointcloud = this->declare_parameter("object_centric_pointcloud");
publish_ground_truth_objects_ = this->declare_parameter("publish_ground_truth");
const unsigned int random_seed =
static_cast<unsigned int>(this->declare_parameter("random_seed", 0));
const bool use_fixed_random_seed = this->declare_parameter("use_fixed_random_seed", false);
static_cast<unsigned int>(this->declare_parameter("random_seed"));
const bool use_fixed_random_seed = this->declare_parameter("use_fixed_random_seed");
Copy link
Contributor

Choose a reason for hiding this comment

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

declare_parameter needs to explicitly specify the type like following.

visible_range_ = this->declare_parameter<double>("visible_range");
detection_successful_rate_ = this->declare_parameter<double>("detection_successful_rate");
enable_ray_tracing_ = this->declare_parameter<bool>("enable_ray_tracing");
use_object_recognition_ = this->declare_parameter<bool>("use_object_recognition");
use_base_link_z_ = this->declare_parameter<bool>("use_base_link_z");
const bool object_centric_pointcloud = this->declare_parameter<bool>("object_centric_pointcloud");
publish_ground_truth_objects_ = this->declare_parameter<bool>("publish_ground_truth");
const unsigned int random_seed =
  static_cast<unsigned int>(this->declare_parameter<int>("random_seed"));
const bool use_fixed_random_seed = this->declare_parameter<bool>("use_fixed_random_seed");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:simulation Virtual environment setups and simulations. (auto-assigned) DevOps Dojo: ROS Node Conf Related to Open AD Kit WG tag:deploy-docs Mark for deploy-docs action generation. (used-by-ci) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants