Robotics StackExchange | Archived questions

How to spawn multiple copies of the same robot with ros2_control?

Hello, I have a working setup with a single robot (manipulator) that I can run and control with a joint trajectory controller. I want to modify my setup to spawn multiple copies of the same robot in Gazebo and have them simultaneously perform the same trajectories. However, I am having trouble achieving this. I will describe my current working setup for a single robot and what I thought would be the steps to achieve a multi-robot setting.

Current Setup:

Going multi-robot:
So I thought, if I want three robots spawned, I'll just start three robot_state_publishers with different namespaces and run three spawn_entity.py scripts using different robot descriptions topics (with appropriate namespaces). However, the problem, I think, is that only a single /gazebo_ros2_control node starts. Where do I go from here? Is there an easier way?

Asked by Envilon on 2023-04-15 07:13:11 UTC

Comments

Answers