How do I use the same controller_manager yaml file to load controllers for diffferent robots with different names using group tags?
I might be missing something. When you spawn multiple robots in simulation can you use the same yaml file to load a controller manager for each robot. Or do you need to have one yaml file per robot in order to load them correctly. I managed to spawn the robots independently using group tags but I wasn't sure what the correct way to load controller managers is. Thanks in advance for all your help.
One way could be to use
roslaunch
substitution args in your.yaml
file. See #q339328 for a recent Q&A about that.Perhaps if you could provide somewhat of a more concrete example we could suggest better/other approaches.
In theory if you add to your yaml the namespaces like this (correct me if I am mistaken):
you should be able to load the controllers config in each namespace. However this approach is more hardcoded than the one proposed by @gvdhoorn.