Rosanswers logo

Does anyone know how to spawn a simple urdf box in gazebo? I want to spawn an entire robot but the gazebo tutorials on this have a bit complicated launch files and use complicatted .xacro robots. I'm on a beginner level, my simple robot is just .urdf not even using .xacro.

A box like this!

 <robot name="origins">
<link name="base_link">
            <box size ="8.8 0.4 2"/>
            <box size ="8.8 0.4 2"/>
                <inertia ixx="0.0" ixy="0.0" ixz="0.0" iyy="0.0" iyz="0.0" izz="0.0"/>
        <mass value="0.1"/>


I'm trying to use the command rosrun gazebo_ros spwan_model but it just says:

Loading model xml from file

Waiting for service /gazebo/spawn_urdf_model.

Nothing more happens...

Any ideas?

Originally posted by End-Effector on ROS Answers with karma: 162 on 2015-02-26

Post score: 0


1 Answer 1


Rosanswers logo

Did you start gazebo before running the command?

Originally posted by David Lu with karma: 10932 on 2015-02-26

This answer was ACCEPTED on the original site

Post score: 1

Original comments

Comment by End-Effector on 2015-02-26:
I started gazebo & roscore.

Comment by David Lu on 2015-02-26:
What is the output of rosservice list?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.