Gazebo | Ignition | Community
Ask Your Question

Weird texture mapping in Collada meshes (1.3.0)

asked 2013-02-20 21:21:24 -0600

bit-pirate gravatar image

updated 2013-04-03 01:18:02 -0600

Hi there!

I'm trying to get our Collada mesh properly visualised in Gazebo. After fixing the units, the mesh itself is correctly shown. However, the texture (a JPG file) is not correctly mapped onto the mesh.

The mesh + texture is properly visualised in MeshLab and RViz. I also tried loading my model via both URDF and SDF to make sure, this is not a problem of the URDF parser.

Here is a screenshot of both RViz and Gazebo visualisation: gazebo-collada-mesh-problem.png

Does anybody have an idea what's going wrong?

I found some similar looking bugs filled for Gazebo, but I'm not sure they are about the same problem. If there is already a bug filled for this, please let me know about it, so I can keep track of it.


I just received a comment from another Gazebo user, who has a similar looking issue:

I cannot comment your post because I have karma 1, but we have the same problems with textures since Gazebo 1.0. Up to the version bundled with ROS Electric everything worked just fine, then in 1.3 we get a marble-like texture very similar to yours, and in 1.4 textures are simply not shown. All other Collada viewers that we've tried (Blender, AssimpView, MeshLab, rviz) render the color maps correctly. Now that we know that with 1.4 it still does not work, we were also about to post a question. You beat us to it :). I'm attaching a picture of how things look like up to Gazebo 1.3 and Rviz.

Relevant package:

And here is his picture: reem-gazebo-rviz.png

We thank for your help!

/edit #2:

Regarding iche's request:

My screenshot shows Kobuki (the mobile base for TurtleBot 2) and its meshes can be download from Github:

/edit #3: The answer is buried in the comments, so I'm adding it here as well: @iche033 was right. The meshes look fine using Gazebo 1.5.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-02-21 14:41:56 -0600

iche033 gravatar image

Hi, is there a place I can download the model files and try them out?

edit flag offensive delete link more


Hi iche! I know, you currently have no other choice, but in the future please use the comment function for comments. Thank you!

bit-pirate gravatar imagebit-pirate ( 2013-02-21 18:49:45 -0600 )edit

And to answer your question: To get the meshes, have a look at the packages reemdescription and kobukidescription. I added the missing link to the latter in my question.

bit-pirate gravatar imagebit-pirate ( 2013-02-21 18:55:22 -0600 )edit

hi, the model loads fine for me

This is from the development branch and not debs. There were some recent fixes to the collada loader but probably didn't make it into the last release, should be there in the next release.

iche033 gravatar imageiche033 ( 2013-02-22 12:53:13 -0600 )edit

Which version are you running? And do you have any idea, when this new release is going to happen? Also, will those fixes be release into Gazebo for ROS Groovy (currently 1.3)?

bit-pirate gravatar imagebit-pirate ( 2013-02-26 19:18:47 -0600 )edit

I compile from source using the default branch from bitbucket. Gazebo 1.5 is scheduled for release next friday on March 8th, that should load your textures. As for ROS Groovy Gazebo.. there is currently no release plan yet so I'm not sure what changes/version will go in...

iche033 gravatar imageiche033 ( 2013-02-27 00:04:50 -0600 )edit

Thanks @iche033! I'm eagerly awaiting the release of 1.5 for testing! Will report the results.

bit-pirate gravatar imagebit-pirate ( 2013-03-11 20:59:33 -0600 )edit

I can confirm that color maps are properly loaded in Gazebo 1.5. In 1.4 the specularity map was being shown instead. Thanks devs.

Adolfo Rodríguez T gravatar imageAdolfo Rodríguez T ( 2013-03-12 06:25:54 -0600 )edit

Finally got around to test this. @iche033 is right, the meshes look fine using Gazebo 1.5. Thanks for testing!

bit-pirate gravatar imagebit-pirate ( 2013-04-03 01:15:38 -0600 )edit

Question Tools


Asked: 2013-02-20 21:21:24 -0600

Seen: 2,074 times

Last updated: Apr 03 '13