Open g-argyropoulos opened 1 year ago
Hi @g-argyropoulos , not a maintainer here, but passed by your question and figure others might too:
This can happen when two nodes exist in a single executable, they will all get the same name remapping, which might explain the behaviour you're seeing. The launch_ros Node concept is a wrapper around an executable and doesn't know how many times rclcpp nodes are created inside, and it'll pass the name remapping to any and all that are inside. HTH
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
A single /moveit_cpp_tutorial node and a single /rviz2 node will be created.
Actual behavior
Two /moveit_cpp_tutorial and /rviz2 nodes were created.
Additional information
Everything is from their respective official repositories. If I remove (or comment out), like below, the name parameter of the Nodes in the launch file, the problem goes away. Why is that? Is this an expected behavior? Should I ignore the warning or stop naming Nodes through the launch file?
Thank you in advance.