Gazebo | Ignition | Community
Ask Your Question

How to correct a texture problem in Gazebo?

asked 2019-12-17 19:09:06 -0500

kaike_wesley_reis gravatar image

Hello developers!

First, my system Information:

  • ROS: Melodic
  • Gazebo: 9.0
  • Ubuntu: 18.04

I'm using right now an OpenManipulator-PRO from ROBOTIS and I decided to insert a custom camera and gripper in this arm using a COLLADA type for the meshes that I created using Onshape.

Bellow you can see in Rviz how it looks like:

image description

But, in gazebo:

image description

How can I solve this texture problem in gazebo?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-20 07:53:58 -0500

joe28965 gravatar image

I am assuming you didn't give your camera a colour in Gazebo. That is why Gazebo has just decided to make it black.

in the URDF file for your camera add the following:

<gazebo reference="{name of your camera link}">
  <material value="Gazebo/White" />

That way your camera should also appear white in Gazebo.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-12-17 19:09:06 -0500

Seen: 314 times

Last updated: Dec 17 '19