-
Notifications
You must be signed in to change notification settings - Fork 649
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
base: main
Are you sure you want to change the base?
refactor(dummy_perception_publisher): rework parameters #8660
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
fb14190
to
436faa5
Compare
78884ce
to
c2952f7
Compare
c2952f7
to
3902818
Compare
dac751a
to
b5ef1c0
Compare
ae17fcb
to
33737b5
Compare
@batuhanbeytekin |
9976ec2
to
d1879ae
Compare
Thank you for your feedback, I just updated my branch. |
15e47b1
to
b578154
Compare
c8ae450
to
c4ea773
Compare
There was a problem hiding this 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");
simulator/dummy_perception_publisher/schema/dummy_perception_publisher.schema.json
Outdated
Show resolved
Hide resolved
simulator/dummy_perception_publisher/schema/dummy_perception_publisher.schema.json
Outdated
Show resolved
Hide resolved
9c39348
to
9adb263
Compare
Signed-off-by: batuhanbeytekin <[email protected]> Signed-off-by: Batuhan Beytekin <[email protected]>
d4f69c4
to
9585c55
Compare
Signed-off-by: batuhanbeytekin <[email protected]>
3664f3a
to
fa5453b
Compare
There was a problem hiding this 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)
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"); |
There was a problem hiding this comment.
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");
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.