Pass node options to costmap node#5202
Merged
SteveMacenski merged 2 commits intoros-navigation:mainfrom May 30, 2025
Merged
Conversation
SteveMacenski
approved these changes
May 28, 2025
Member
|
@MarcoMatteoBassa please fix the failing CI jobs (DCO and linting it looks like). Also, did you test this using a namespace? You can do so with |
Member
|
I fixed the linting but I can't do DCO for you. You can ignore the precommit failure, that's on a github workflow file that I already fixed as part of the Kilted release process |
Codecov ReportAll modified and coverable lines are covered by tests ✅
... and 5 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Signed-off-by: Marco Bassa <marco.bassa@idealworks.com>
0ce6d0d to
7c8222d
Compare
Signed-off-by: Marco Bassa <marco.bassa@idealworks.com>
Contributor
Author
|
Thanks! It would look like the namespace is correctly passed to the child nodes if added, yes Ex: I passed the options to the global costmap from the planner server too for completeness. |
tonynajjar
pushed a commit
to angsa-robotics/navigation2
that referenced
this pull request
Jun 2, 2025
* Passing parent node options from controller_server to costmap node Signed-off-by: Marco Bassa <marco.bassa@idealworks.com> * Passing parent node options to global costmap Signed-off-by: Marco Bassa <marco.bassa@idealworks.com> --------- Signed-off-by: Marco Bassa <marco.bassa@idealworks.com>
roncapat
added a commit
to roncapat/navigation2
that referenced
this pull request
Jun 27, 2025
Closes ros-navigation#5242 Inspired by: ros-navigation#5202 - `bt_navigator_***_rclcpp_node` now gets the same namespace of `bt_navigator` - `bt_navigator_***_rclcpp_node` now gets the same node options of `bt_navigator` (apart from node name, that is still forced to respect the pattern `bt_navigator_***_rclcpp_node` ) Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
8 tasks
SteveMacenski
pushed a commit
that referenced
this pull request
Jul 2, 2025
…#5310) * `bt_navigator_***_rclcpp_node` - Namespacing + NodeOptions forwarding Closes #5242 Inspired by: #5202 - `bt_navigator_***_rclcpp_node` now gets the same namespace of `bt_navigator` - `bt_navigator_***_rclcpp_node` now gets the same node options of `bt_navigator` (apart from node name, that is still forced to respect the pattern `bt_navigator_***_rclcpp_node` ) Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com> * Deduplicate `replaceOrAddArgument` implementation Moved to `nav2_ros_common/node_utils.hpp`, namespace `nav2` Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com> --------- Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
SakshayMahna
pushed a commit
to SakshayMahna/navigation2
that referenced
this pull request
Jul 6, 2025
…ros-navigation#5310) * `bt_navigator_***_rclcpp_node` - Namespacing + NodeOptions forwarding Closes ros-navigation#5242 Inspired by: ros-navigation#5202 - `bt_navigator_***_rclcpp_node` now gets the same namespace of `bt_navigator` - `bt_navigator_***_rclcpp_node` now gets the same node options of `bt_navigator` (apart from node name, that is still forced to respect the pattern `bt_navigator_***_rclcpp_node` ) Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com> * Deduplicate `replaceOrAddArgument` implementation Moved to `nav2_ros_common/node_utils.hpp`, namespace `nav2` Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com> --------- Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
tonynajjar
pushed a commit
to angsa-robotics/navigation2
that referenced
this pull request
Aug 18, 2025
* Passing parent node options from controller_server to costmap node Signed-off-by: Marco Bassa <marco.bassa@idealworks.com> * Passing parent node options to global costmap Signed-off-by: Marco Bassa <marco.bassa@idealworks.com> --------- Signed-off-by: Marco Bassa <marco.bassa@idealworks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basic Info
Description of contribution in a few bullet points
Currently it is impossible to remap the publishers and subscribers of the costmap objects, because the node options of the controller server are not passed to the child node.
The change allows the child costmap node to inherit the node options of the parent, while still using customized options for the name, namespace and use_sim_time.
Description of how this change was tested
Future work that may be required in bullet points
The free functions might be moved to utils and used where other child nodes are created if the use-case arises.
For Maintainers: