Closed Combinacijus closed 2 months ago
The problem here is that the name is used for all controllers, which are created as node by the controller_manager (which is instantiated from the ros2_control_node). It does not make sense to set the name here, but I agree that this has strange effects. Not sure if the rclcpp API supports overriding the name remapping from the our side
Description
There seems to be an issue when explicitly naming the ros2_control_node (controller_manager) node in a launch file. This issue leads to multiple instances of controller_manager being spawned, causing controller configuration to fail with an error:
Steps to Reproduce
Download and checkout correct branch
Launch (should work without problems)
Edit launch file and add
name="controller_manager",
Launch again
Now
Failed to configure controller
error in red should be present on launch (but it's scrolled up due to verbose output)Discussion
It seems strange that giving a name to any node would break it, especially when given name is exact same as default one. Moreover there's no error saying that it can't be named so it's very hard to debug as error points to other unrelated stuff.