First time here? Check out the FAQ!


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

Using .dae file in gazebo

asked Jun 6 '12

prasanna.kumar gravatar image

updated Jun 6 '12

I am new to gazebo and I am going through the tutorials. I want to model a house in gazebo and spawn TurtleBot in it. I downloaded some furniture models in .obj format from http://www.sweethome3d.com/importModels.jsp. Using "Whoola Collada Converter" I converted .obj files to .dae. Now, How to use these .dae file and spawn the furnitures in gazebo ?

Preview: (hide)

Comments

2

@DimitriProsser: Minutes after posting this question, I myself saw that page. I changed the file name to what I had and ran the urdf file in gazebo and rviz. Gazebo said "Model spawned Succesfully" but nothing actually appeared on the window. It was as empty as before. What could be the problem ?

prasanna.kumar gravatar image prasanna.kumar  ( Jun 6 '12 )edit

Did you include both the <visual> and <collision> tags? Are you spawning the model such that it's in collision with the ground or another object? (This could cause it to sink below the ground)

DimitriProsser gravatar image DimitriProsser  ( Jun 6 '12 )edit

2 Answers

Sort by » oldest newest most voted
3

answered Jun 6 '12

DimitriProsser gravatar image

You're going to have to build a URDF of your building by following these tutorials. In order to use your .dae files, you will need to set them as the mesh for <geometry>.

<link name="left_gripper">
  <visual>
    <geometry>
      <mesh filename="package://pr2_description/meshes/gripper_v0/l_finger.dae"/>
    </geometry>
  </visual>
</link>
Preview: (hide)
0

answered Jun 7 '12

prasanna.kumar gravatar image

updated Jun 7 '12

@DimitriProsser: I did not include anything of what you have mentioned. This is my code

<robot name="table">
  <link name="table">
    <visual>
    <geometry>
           <mesh filename="/home/prasanna/tableBasseBois.dae"/>
        </geometry>
    </visual>
  </link>
</robot>

I saved it as table.urdf and ran it using

rosrun gazebo spawn_model -file /home/prasanna/gazebo_try/table.urdf -urdf -z 1 -model table

I get the message "model spawned successfully" but noting actually appears. This is the only model I have spawned. The model did not sink below either. I checked.

Preview: (hide)

Comments

I am also having these problems. Any solutions to: "I get the message "model spawned successfully" but noting actually appears. This is the only model I have spawned. The model did not sink below either. I checked."

whiterose gravatar image whiterose  ( Feb 20 '13 )edit

Question Tools

Stats

Asked: Jun 6 '12

Seen: 8,191 times

Last updated: Jun 07 '12