PR2 / pr2_common

45 stars 79 forks source link

Missing materials #215

Open danepowell opened 11 years ago

danepowell commented 11 years ago

If you roslaunch pr2_gazebo pr2_empty_world.launch, you'll see a bunch of warnings about missing textures, like:

Warning [Visual.cc:745] Unable to get Material[PR2/caster_texture] for Geometry[pr2::fr_caster_rotation_link::fr_caster_rotation_link_visual. Object will appear white

This is weird, since the textures are defined in pr2_description/urdf/materials.urdf.xacro . But for whatever reason, they're not getting picked up.

ahendrix commented 11 years ago

Which version of ROS, pr2_gazebo, and pr2_common are you using? Which OS? From debs or built from source?

danepowell commented 11 years ago

Sorry, should have specified - Groovy, Ubuntu 12.10 (Quantal), groovy-devel branches of pr2_gazebo and pr2_common.

ahendrix commented 11 years ago

This looks like a bug in how the textures are specified for gazebo in pr2_description/urdf/base_v0/base.gazebo.xacro and pr2_description/urdf/materials.urdf.xacro

I think this is specific to gazebo. I don't know much about gazebo, but I'll see if I can get someone to take a look at it.

danepowell commented 11 years ago

I wonder if this is related to or a result of this issue: https://github.com/PR2/pr2_common/issues/192

It seems that the materials are all defined in pr2_ogre, in Media/materials/scripts/pr2.material . But this file does not seem to be referenced anywhere in pr2_description.