Robotics StackExchange | Archived questions

How to add color to a wall from the inside

Hello,

I am using .world file to generate a room. In the room, I have colored each wall differently, however, from the inside, the walls stay grey.

I was wondering if there is a way to change the color of the walls from inside.

Thanks

Asked by kchledowski on 2017-08-10 08:53:10 UTC

Comments

Answers

Not sure if your walls are just boxes or not, but you should be able to apply material to visual of your walls

e.g.

    <visual name="visual">
      <geometry>
        <box>
          <size>5 1 0.2</size>
        </box>
      </geometry>
      <material>
        <ambient>0.2 0.2 0.2 1.0</ambient>
        <diffuse>.421 0.225 0.0 1.0</diffuse>
      </material>
    </visual>

Asked by iche033 on 2017-08-14 19:41:34 UTC

Comments

thanks :) The shadows were the problem - they made parts of my walls grey.

Asked by kchledowski on 2017-08-16 08:34:55 UTC