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

Selim's profile - activity

2012-08-22 08:37:51 -0500 received badge  Popular Question (source)
2012-08-22 08:37:51 -0500 received badge  Notable Question (source)
2012-08-22 08:37:51 -0500 received badge  Famous Question (source)
2012-06-26 21:31:08 -0500 received badge  Student (source)
2012-06-26 05:24:48 -0500 asked a question Display urdf file in gazebo

Hi, I made a program that autommatically generate an .urdf file from a .fig file (generate by Xfig editor). When I display my urdf file with RViz, the objects and colors are like they should be so everything is normal. I use the command line :

roslaunch urdf_tutorial display.launch model:=PlanSalle.urdf

but when I want to display it in gazebo, it doesn't work. I use :

rosrun gazebo spawn_model -file `pwd`/PlanSalle.urdf -urdf -z 1 -model salle

here is my code :

<robot name="origins">
<link name="base_link">
    <visual>
        <geometry>
            <box size ="18.8 0.4 2"/>
        </geometry>
    </visual>
    <collision>
        <geometry>
            <box size ="18.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>

<link name="Mur1">
    <visual>
        <geometry>
            <box size ="11.0 0.4 2"/>
        </geometry>
    </visual>
    <collision>
        <geometry>
            <box size ="11.0 0.4 2"/>
        </geometry>
    </collision>
        <inertial>
                <origin xyz="1 1 1" />
                <inertia ixx="0.0" ixy="0.0" ixz="0.0" iyy="0.0" iyz="0.0" izz="0.0"/>
        <mass value="10"/>
        </inertial>
</link>

<joint name="base_link_to_Mur1" type="fixed">
    <origin xyz="0 0 0" rpy="0 0 0" />      
    <parent link="base_link"/>
    <child link="Mur1"/>
</joint> 
</robot>

Does someone know what's wrong ? thanks