-
Notifications
You must be signed in to change notification settings - Fork 682
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(vehicle_external_cmd_converter): rework parameters #5659
refactor(vehicle_external_cmd_converter): rework parameters #5659
Conversation
8aee382
to
487fc9c
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.
LGTM!
wait_for_first_topic_ = declare_parameter("wait_for_first_topic", true); | ||
control_command_timeout_ = declare_parameter("control_command_timeout", 1.0); | ||
emergency_stop_timeout_ = declare_parameter("emergency_stop_timeout", 3.0); | ||
const double timer_rate = declare_parameter<number>("timer_rate"); |
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.
const double timer_rate = declare_parameter<number>("timer_rate"); | |
const double timer_rate = declare_parameter<double>("timer_rate"); |
@@ -42,13 +42,13 @@ ExternalCmdConverterNode::ExternalCmdConverterNode(const rclcpp::NodeOptions & n | |||
std::bind(&ExternalCmdConverterNode::onEmergencyStopHeartbeat, this, _1)); | |||
|
|||
// Parameter | |||
ref_vel_gain_ = declare_parameter("ref_vel_gain", 3.0); | |||
ref_vel_gain_ = declare_parameter<number>("ref_vel_gain"); |
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.
ref_vel_gain_ = declare_parameter<number>("ref_vel_gain"); | |
ref_vel_gain_ = declare_parameter<double>("ref_vel_gain"); |
control_command_timeout_ = declare_parameter("control_command_timeout", 1.0); | ||
emergency_stop_timeout_ = declare_parameter("emergency_stop_timeout", 3.0); | ||
const double timer_rate = declare_parameter<number>("timer_rate"); | ||
wait_for_first_topic_ = declare_parameter<boolean>("wait_for_first_topic"); |
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.
wait_for_first_topic_ = declare_parameter<boolean>("wait_for_first_topic"); | |
wait_for_first_topic_ = declare_parameter<bool>("wait_for_first_topic"); |
@karishma1911 Sorry. Could you fix build errors? |
Signed-off-by: karishma <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]> Signed-off-by: karishma <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]> Signed-off-by: karishma <[email protected]>
Signed-off-by: karishma <[email protected]>
40110c8
to
3b20384
Compare
yes, i fixed above errors |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5659 +/- ##
==========================================
- Coverage 15.32% 0.00% -15.33%
==========================================
Files 1721 1 -1720
Lines 118559 111 -118448
Branches 37995 0 -37995
==========================================
- Hits 18169 0 -18169
+ Misses 79657 111 -79546
+ Partials 20733 0 -20733
☔ View full report in Codecov by Sentry. |
…foundation#5659) * vehicle_external_cmd_converter Signed-off-by: karishma <[email protected]> * Update vehicle/external_cmd_converter/src/node.cpp Co-authored-by: Satoshi OTA <[email protected]> Signed-off-by: karishma <[email protected]> * Update vehicle/external_cmd_converter/src/node.cpp Co-authored-by: Satoshi OTA <[email protected]> Signed-off-by: karishma <[email protected]> * vehicle_external_cmd_converter Signed-off-by: karishma <[email protected]> --------- Signed-off-by: karishma <[email protected]> Co-authored-by: Satoshi OTA <[email protected]>
Description
Implement the ROS Node configuration layout described in https://github.com/orgs/autowarefoundation/discussions/3371 for the vehicle_external_cmd_converter
2.create schema
Tests performed
Not applicable.
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.
After all checkboxes are checked, anyone who has write access can merge the PR.