Robotics StackExchange | Archived questions

Mesh is invisible, but I can see it as a collision. DAE model

I am importing a mesh and render it with this code:

     <visual name="top_visual">
      <transparency>0</transparency>
      <pose>0 0 -0.0376785 0 0 1.5707</pose>
      <geometry>
        <mesh>
          <uri>model://velodyne_hdl32/meshes/velodyne_top.dae</uri>
        </mesh>
      </geometry>
    </visual>

It's there but invisible: image description

It's weird, because you can actually see it with view collisions on. image description

Asked by michael1234 on 2017-06-01 16:34:02 UTC

Comments

Answers

Highly interesting that it's working and being displayed as a collision model! I think that I'm having the same problem and may have found a workaround: export to .obj or .stl instead of .dae .

Asked by dafred94 on 2017-11-23 13:42:51 UTC

Comments

Sometimes object exported from blender are not visible (or some of their faces).

To see if the problem is due to that, you can place the camera inside the model (in Gazebo). Once you are inside, if you see the faces, you have to flip normal's direction.

In Blender

  • Select your model
  • Switch to edit mode
  • Select the faces that you want to flip normal's direction
  • In the Shading/UVs panel, select the "flip direction" button

Asked by Brosseau.F on 2017-11-27 05:09:01 UTC

Comments