ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

spawning urdf in gazebo_ros

asked 2015-02-26 06:18:26 -0500

End-Effector gravatar image

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">
    <visual>
        <geometry>
            <box size ="8.8 0.4 2"/>
        </geometry>
    </visual>
    <collision>
        <geometry>
            <box size ="8.8 0.4 2"/>
        </geometry>
    </collision>
        <inertial>
                <inertia ixx="0.0" ixy="0.0" ixz="0.0" iyy="0.0" iyz="0.0" izz="0.0"/>
        <mass value="0.1"/>
        </inertial>
</link>


</robot>

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-26 11:06:40 -0500

David Lu gravatar image

Did you start gazebo before running the command?

edit flag offensive delete link more

Comments

I started gazebo & roscore.

End-Effector gravatar image End-Effector  ( 2015-02-26 11:36:18 -0500 )edit

What is the output of rosservice list?

David Lu gravatar image David Lu  ( 2015-02-26 12:19:42 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-26 06:18:26 -0500

Seen: 239 times

Last updated: Feb 26 '15