Spawning multiple robots in Gazebo with ROS2 with namespaces
Hey all, Ive been trying for a couple of days but am unable to get this working. My goal is to spawn multiple robots in Gazebo using a Ros2 launch file. Each robot should have its own namespace. I have followed a couple of different tutorials and I have a launch file running, which is capable of launching my own Gazebo world file. Starting 2 robot nodes with their own namespace However the robots do not show up in Gazebo.
Followed another tutorial to spawn robots in gazebo, this does work, but the topics are not launched. https://zmk5.github.io/general/demo/2019/07/15/ros2-spawning-entity.html
Asked by Rinkeeee96 on 2021-02-25 05:06:34 UTC
Answers
Hi,
I created a small example of how to spawn infinite number of robots in ROS2 with tehir own namespaces, both in the Tfs, the imu and the cmd_vel topics.
The basic idea is that we parse the URDF/SDF file in a way that we place a remapping of the different topics like tf and also spawn with namespaces. Using that it seems at least this basic example work:
Here is the GIT:BOX BOT GIT
Here is the video explaining it and with a demo:link text
Here is the rosject with the whole project ready to test: rosject multirobotboxbot
Asked by RDaneelOlivaw on 2021-03-04 14:57:41 UTC
Comments