Gazebo | Ignition | Community
Ask Your Question
0

how to change the colors of links in the sdf file

asked 2022-05-18 07:44:06 -0500

mahmoud tamimi gravatar image

updated 2022-05-18 07:45:32 -0500

i have this link,i tried but nothing changed


<visual name="camera_visual"> <pose>-0.005 0 0 0 0 0</pose> <geometry> <box> <size>0.015 0.08 0.022</size> </box> </geometry> <material> <ambient>196 245 39 1.0</ambient> <diffuse>0 0 0 1.0</diffuse> <specular>0.0 0.0 0.0 1.0</specular> <emissive> 0.0 0.0 1.0</emissive> </material> </visual>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-18 13:55:14 -0500

lapyx gravatar image

Defining colors using numbers can sometimes be confusing, you can try out some colors defined in gazebo materials

         <material>
            <script>
               <uri>file://media/materials/scripts/gazebo.material</uri>
               <name>Gazebo/Red</name>
            </script>
          </material>
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-05-18 07:44:06 -0500

Seen: 16 times

Last updated: May 18