Aggregate multiple topics of same name and type
Hello all,
I am trying to do a multirobot simulation. I need away to keep track of all of their positions. The complicated part is I want to not define how many robots there are in the beginning. Imagine all the robots publish their pose and name on the same topic. There is a node subscribing to that topic and would be able to then publish a topic that has all the robot positions that it has recieved.
I think this is a similar concept to the robot state publisher. This is because it's subscribes to the topic joint_states. The topic joint_states can be published and it aggregates them together in tf.
If there are any examples of this or packages that do this please enlighten me!