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:
It's weird, because you can actually see it with view collisions on.
Asked by michael1234 on 2017-06-01 16:34:02 UTC
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
How are you getting the mesh? Have you tried this one: https://bitbucket.org/osrf/gazebo_models/src/605a402bd4c23232002b4a2ba7113ae885051bbe/velodyne_hdl32/meshes/velodyne_top.dae?at=default&fileviewer=file-view-default
Asked by chapulina on 2017-11-25 23:29:18 UTC