Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello. I don't know if this can help but as I can see you generate your robot as a model in the world file:

<include> <uri>model://my_robot</uri> <name>vehicle</name> <pose>0.3 0.5 0.9 0 0 0</pose> </include>

And then you generate it again in the launch file: <node name="spawn_model" pkg="gazebo_ros" type="spawn_model" output="screen" args="-sdf -param robot_description_sdf -model model -x 0.0 -y 0.0 -z 0.0"/> </include>

If you want to generate your robot as an ORDINARY element of your world then you do it as a model in the world. However, if you want to do something with this robot and use it (moving the robot, driving the robot), like checking what topics are published on it in the terminal, you need to add your robot to launch. But it's more complicated because you won't open the SDF file in launch this way. You would need to make an URDF file and an XACRO file.