Wiki | Community | Discussion Forum | Q&A

Dark colors in the world

Hi guys,

I was testing the “Follow_line” exercise and everything goes fine (launching world and program) but the world seems to be as in a dark mode or something like that. I mean, I think everything is “too dark”. Is it true? Or is it my fault?

Bests,
Julio

Hello,

Actually by default, the follow line exercise runs the pista_simple model. In order to brighten it up, navigate to this world file in the directory, /opt/jderobot/share/jderobot/gazebo/worlds/f1_1_simplecircuit.world, this file

And change the file content to this:

<?xml version="1.0" ?>
<sdf version="1.5">
  <world name="default">
    <scene>
      <grid>false</grid>
    </scene>
    <!-- A global light source -->
    <include>
      <uri>model://sun</uri>
    </include>
    <include>
	    <uri>model://pista</uri>
	    <pose>0 0 0 0 0 0</pose>
    </include>
    <include>
      <uri>model://f1_findia</uri>
      <pose>161.027131 -10.734 0.004 0 0 -1.57</pose>
    </include>

 <scene>
        <sky>
            <clouds>
                <speed>12</speed>
            </clouds>
        </sky>
     </scene>

  </world>
</sdf>

This will make the exercise extremely colorful!