Home | Tutorials | Wiki | Issues
Ask Your Question

Where can i find list of available colours for gazebo

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

dinesh999lama 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

1 Answer

Sort by ยป oldest newest most voted

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

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.

dinesh999lama gravatar imagedinesh999lama ( 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.

dinesh999lama gravatar imagedinesh999lama ( 2017-01-07 04:57:09 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 211 times

Last updated: Jan 06