Gazebo | Ignition | Community
Ask Your Question

Where can i find list of available colours for gazebo

asked 2017-01-06 04:52:12 -0500

hari1234 gravatar image

updated 2017-01-06 05:21:16 -0500

What are the list of gazebo material colour names which i can directly use with my robot? I have found its answer before this, but now i forgot/not finding in google where i exactly found those names, i should have saved them.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-01-06 11:00:27 -0500

chapulina gravatar image

updated 2017-01-06 18:55:10 -0500

There are a few options for colors:

  1. You can use any color by specifying its RGBA values in SDF, for example:

      <ambient>0.46 0.46 0.46 1.0</ambient>
      <diffuse>0.46 0.46 0.46 1.0</diffuse>
      <specular>0.46 0.46 0.46 1.0</specular>
      <emissive>0.46 0.46 0.46 1.0</emissive>
  2. You can refer to one of the ogre materials which come defined with Gazebo:

  3. You can create your own ogre material as explained in this tutorial

  4. If you want to use textures which are not uniformly placed on your model, you will need to create a COLLADA file (with Blender for example) which references the texture within it. Here's an example model, the COLLADA file goes in the /meshes directory and the texture goes in the /materials/textures directory. The COLLADA file must reference the texture within itself.

edit flag offensive delete link more


from light map tutorilal i learned to put textures to a models, but if i want to put those textures in a way in which some name or some sign will also be visible in a specific position in model, than how can i do it? I used blender to put colors in model but the colour was not looking exact so i changed the colour sid value in its dae file, so it looked little good but not that much. is their any other way to do this.

hari1234 gravatar imagehari1234 ( 2017-01-06 14:20:54 -0500 )edit

What you want to do is to play with texture coordinates. I added another item to the answer explaining that.

chapulina gravatar imagechapulina ( 2017-01-06 18:55:51 -0500 )edit

ok. thanks. i'll see how to do that now.

hari1234 gravatar imagehari1234 ( 2017-01-07 04:57:09 -0500 )edit

answered 2017-10-05 09:10:30 -0500

updated 2017-10-05 13:49:39 -0500

Those using .urdf will want to add this extra gazebo tag referencing the link in question (in my case "base_link"):

<gazebo reference="base_link">  
      <ambient>0.19225 0.19225 0.19225 1.0</ambient>  
      <diffuse>0.50754 0.50754 0.50754 1.0</diffuse>  
      <specular>0.508273 0.508273 0.508273 1.0</specular>  
      <emissive>0.0 0.0 0.0 0.0</emissive>  

for those highly literal people (like me) who repeatedly tried without the visual tag...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-01-06 04:52:12 -0500

Seen: 11,649 times

Last updated: Oct 05 '17