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

nlamprian/fix_duplicate_node #411

Open
wants to merge 1 commit into
base: ros2-master
Choose a base branch
from

Conversation

nlamprian
Copy link

There is a duplicate node created for the costmap converter, as indicated by this warning.

[controller_server-15] [WARN] [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.

It can be verified with

$ ros2 node list | ag controller
WARNING: Be aware that are nodes in the graph that share an exact name, this can have unintended side effects.
/controller_server_node
/controller_server_node

With this change, it now gives

$ ros2 node list | ag controller
/controller_server_node
/controller_server_node_FollowPath_costmap_converter_rclcpp_node

Solution taken from the navigation2.

The node created for the costmap converter was not properly set up.
The name passed to the node constructor had no effect.
It is now passed as a ros argument instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant