ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

This is desired, since i would need to write only one hardware interface if the robots are identical and would only need to pass parameters to access them via ip, or com, or something else.

Great, this is enabled by design :D

Also in case the interfaces would be different, this approach should yield similar results, since only the plugin should be changed.

You don't have to even change your plugin if you parameterize it properly. You should simply use another instance with different parameters.

What doesnt work

I am not certain why this should not work. It looks fine to me. What exactly is not working? Hardware access or are hardware interfaces not instances properly. Or interfaces are not exported correctly? Which version are you using?

After you start your setup. Try some of the ros2 control ... commands. For example, list_hardware_interface gives you a list of all exported interfaces. Then you can see if something is missing.