0
$\begingroup$

Rosanswers logo

Hi,

I am trying to import a COLLADA (.dae) file into Gazebo (from ROS/Fuerte) in order to run some simulations with the PR2. I created the file using Blender, and it basically has an environment (with some tables and walls) and cloth simulations as well. Unfortunately, I haven't been able to simulate this "world" in Gazebo.

I tried following this tutorial, but the "cob" part seems to be for a different version of Gazebo (not Fuerte); besides, step 5 leads to an infinite loop! I also tried changing the code from the wg_collada.world and wg_collada_world.launch as is recommended here but no luck. Then, I tried this one too, but the source paths are not specified for Fuerte yet, so no luck there either. Finally, this one didn’t work, because of the same reason as the later.

I would really appreciate it if anybody can help me figure this out. Thanks,

Stalin


Originally posted by stalinrios on ROS Answers with karma: 11 on 2012-08-28

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

You can use COLLADA models directly in Gazebo world files by adding them using the < model > tag like so:

<model name="small_wall_1" static="true">
    <link name="small_wall_1_link">
        <origin pose="0 0 0 0 0 0"/>
        <collision name="small_wall_1_collision">
            <geometry>
                <mesh filename="small_wall.dae" scale="1 1 1"/>
            </geometry>
        </collision>
        <visual name="small_wall_1_visual" cast_shadows="false">
            <geometry>
                <mesh filename="small_wall.dae" scale="1 1 1"/>
            </geometry>
        </visual>
    </link>
</model>

This also has the advantage that you can specify them as "static" (as done above), which means no costly dynamics simulation will be performed on the models themselves. At least in earlier version of the URDF COB environments this was not the case.

The example was taken from the go2011_arena.world world file in the hector_nist_arena_worlds package which contains a model of the RoboCup German Open 2011 Rescue Arena made up of many small COLLADA models.


Originally posted by Stefan Kohlbrecher with karma: 24361 on 2012-08-28

This answer was ACCEPTED on the original site

Post score: 3

$\endgroup$

Your Answer

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