ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

COLLADA from Sketchup is wrong colors

asked 2012-06-19 07:34:42 -0500

mrath gravatar image

updated 2012-06-25 05:34:12 -0500

I've update a robot description that previously used STL files (created from Solidworks) to use COLLADA files. Everything worked fine before, just wanted to make it prettier - i.e. add colors to the model.

I imported the STLs into SketchUp 8 using some plugin, and that went well. Upon adding correct colors, I exported to COLLADA using Sketchups builtin exporter. This is a screenshot of SketchUp with the correct colors:

neobotix platform SketchUp

Problem is that the COLLADA file comes up with wrong colors in Rviz:

neobotix platform Rviz

I have tested the following:

  • Use in model (Rviz) - Colors look too dark (see screenshot)
  • Open in Meshlab - No colors
  • Open in Preview.app on OSX - Colors look good

Please advice, and thank you in advance!

COLLADA file

SketchUp file

edit retag flag offensive close merge delete

Comments

can you attach the COLLADA file that produces wrong color?

Kei Okada gravatar image Kei Okada  ( 2012-06-20 19:37:26 -0500 )edit

Updated with attachments, kinda.

mrath gravatar image mrath  ( 2012-06-25 05:35:01 -0500 )edit

I'm not sure, but does rviz use the colors or only works with textures?

dornhege gravatar image dornhege  ( 2012-06-25 06:03:52 -0500 )edit

I actually don't know. I just tried putting textures instead of color on some of the faces in sketchup, then re-exporting. It looks different, but not better, and textures does not show up in Rviz.

mrath gravatar image mrath  ( 2012-06-25 07:30:26 -0500 )edit

I'm sure textures work, because I have used that.

dornhege gravatar image dornhege  ( 2012-06-25 08:14:01 -0500 )edit

From SketchUp as well, I presume? I guess I can make some textures which are just one plain color. Seems like an unnecessary hack though.

mrath gravatar image mrath  ( 2012-06-25 09:30:13 -0500 )edit

texture is not supported in collada_parser. I'll try if we can fix. BTW how did you visualize your model? I'm using [http://www.ros.org/wiki/collada_urdf/Tutorials/Working%20Directly%20with%20COLLADA] but it shows URDF failed model parse

Kei Okada gravatar image Kei Okada  ( 2012-06-25 16:00:13 -0500 )edit

I am pushing the robot URDF to the parameter server and visualizing in Rviz. The COLLADA files are just for visuals.

mrath gravatar image mrath  ( 2012-08-07 06:47:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-04 03:49:24 -0500

mrath gravatar image

Problem fixed when upgrading from Fuerte to Hydro.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2012-06-19 07:34:42 -0500

Seen: 932 times

Last updated: Aug 04 '14