Robotics StackExchange | Archived questions

Model created in Blender, exported as Collada/.dae, does not appear correctly in Gazebo 9.0

What I am trying to achieve

My problem/symptom

image description - Note!: My cube model is the big black 1mx1mx1m box to the upper right in the picture above. - Note!: The other barriers/walls in picture above is modeled using plain URDF box primitives.

What I think I need help with...

Step by step - What I have tried

  1. In Blender: Exported the "Blender default cube" as a collada .dae file.

    • Is it how I made my Blender model?
    • Is it how I exported from Blender to Collada? Parameter settings...
  2. Created an model folder

image description

  1. Added model path to gui.ini file

    sk@Yoda:~/.gazebo$ cat gui.ini
    [geometry]
    x=279
    y=81
    width=1219
    height=896
    [modelpaths]
    filenames=/home/sk/rosws/src/Pet-Mk-IV/petmkiv_simulation/models
    sk@Yoda:~/.gazebo$ 

  2. My model.config

    sk@Yoda:~/rosws/src/Pet-Mk-IV/petmkivsimulation/models/cube$ cat model.config
    <?xml version="1.0" ?>
    <model>
    <name>cube</name>
    <version>1.0</version>
    <sdf>model.sdf</sdf>
    <author>
        <name>Stefan Kull</name>
        <email>stefan.kull@gmail.com</email>
    </author>
    <description>
        Blender default cube exported as Collada .dae-file
    </description>
    </model>
    sk@Yoda:~/rosws/src/Pet-Mk-IV/petmkivsimulation/models/cube$ 
    

  3. My model.sdf

    sk@Yoda:~/rosws/src/Pet-Mk-IV/petmkivsimulation/models/cube$ cat model.sdf
    <?xml version="1.0" ?>
    <sdf version="1.5">
    <model name='cube'>
      <static>true</static>
      <pose>0 0 0 0 0 0</pose>
      <link name='link'>
        <visual name='visual'>
          <castshadows>0</castshadows>
          <geometry>
           <mesh>
              <uri>model://cube/mesh/cube.dae</uri>
              <scale>1 1 1</scale>
            </mesh>
          </geometry>
    </visual> <collision name='collision'> <geometry> <mesh> <uri>model://cube/mesh/cube.dae</uri> <scale>1 1 1</scale> </mesh> </geometry> <maxcontacts>10</maxcontacts> <surface> <contact> <ode/> </contact> <bounce/> <friction> <ode/> </friction> </surface> </collision> <selfcollide>0</selfcollide> <kinematic>0</kinematic> <gravity>1</gravity> </link> </model> </sdf> sk@Yoda:~/rosws/src/Pet-Mk-IV/petmkivsimulation/models/cube$

  4. Launched Gazebo, RViz and Rqt

Environment

Asked by Kullken on 2021-07-22 12:36:57 UTC

Comments

Answers