-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ignore global parameters when spawning sub-nodes #851
Ignore global parameters when spawning sub-nodes #851
Conversation
Make additional nodes ignore global arguments Fix another instance of nodes taking the command line name
nav2_util/src/node_utils.cpp
Outdated
options.start_parameter_services(false); | ||
options.start_parameter_event_publisher(false); | ||
return rclcpp::Node::make_shared(generate_internal_node_name(prefix)); | ||
// options.start_parameter_services(false); |
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.
Prefer removing commented-out code. I'm generally not a fan of leaving commented-out code around for documentation purposes, but would instead rather have it in the revision history and keep the current code as clean as possible.
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.
Done
@@ -46,7 +46,8 @@ BtNavigator::on_configure(const rclcpp_lifecycle::State & /*state*/) | |||
auto node = shared_from_this(); | |||
|
|||
// Support for handling the topic-based goal pose from rviz | |||
client_node_ = std::make_shared<rclcpp::Node>("bt_navigator_client_node"); | |||
client_node_ = | |||
std::make_shared<rclcpp::Node>("bt_navigator_client_node", rclcpp::NodeOptions().use_global_arguments(false)); |
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.
Looks like the code is exceeding 100 columns here and will fail the cpplint tool. Please run ament_cpplint and ament_uncrustify. We're trying to get all code to pass cleanly.
Correct documentation.
Codecov Report
@@ Coverage Diff @@
## master #851 +/- ##
======================================
Coverage 20.5% 20.5%
======================================
Files 181 181
Lines 9305 9305
Branches 2259 2258 -1
======================================
Hits 1908 1908
- Misses 6319 6321 +2
+ Partials 1078 1076 -2
Continue to review full report at Codecov.
|
Scott raised some good points about this, and I have a better solution in the pipeline. Should I change this pull request or close and create a new one? |
Fixes #842
To test, run the nav stack with node name overrides in your launch file.