Home | Tutorials | Wiki | Issues
Ask Your Question
1

Blue Skies in Gazebo 1.9

asked 2014-06-24 12:20:38 -0500

nbanyk gravatar image

I've successfully gotten the Gazebo 1.9/ROS Hydro to work on multiple computers (on both Ubuntu 12.04 and Ubuntu 12.10), but when the Gazebo simulator pops up, the sky is just a light gray. I see in the screenshot that it's supposed to be blue with clouds - any idea what I'm missing in my installation? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-06-24 14:42:56 -0500

updated 2015-06-10 02:41:45 -0500

Hi,

your is not the problem. The sky is just optional and has to be enabled explicitly.

gazebo world files can contain a scene/sky block like:

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

This enables SkyX...(taken from empty_sky.world example) have a look at the corresponding SDF regions for more information sdf1.5 sky

edit flag offensive delete link more

Comments

Cool! Thanks for this answer! Is there a way to make the sky red instead of blue? I played with the color values inside the scene tag and I could get the ground to turn red, but the sky remained blue. Changing the ambient values inside the cloud tag didn't seem to have any effect. I'm using Gazebo 1.9.

Kurt Leucht gravatar imageKurt Leucht ( 2014-07-07 18:37:54 -0500 )edit

There currently isn't a hook to change the sky color and still have clouds. Please submit an [issue](https://bitbucket.org/osrf/gazebo/issues/new) to have this feature added to Gazebo.

nkoenig gravatar imagenkoenig ( 2014-07-07 19:00:29 -0500 )edit

Done. Thanks. Is there a way today in Gazebo 1.9 to change the sky color without clouds? Just wondering due to the wording in your comment above.

Kurt Leucht gravatar imageKurt Leucht ( 2014-07-08 20:01:36 -0500 )edit

You could try the <background> SDF tag.

nkoenig gravatar imagenkoenig ( 2014-07-09 11:42:54 -0500 )edit

thanks for the help!

nbanyk gravatar imagenbanyk ( 2014-07-11 19:18:02 -0500 )edit

I'm having trouble with the sdf1.4 sky link in your answer above. Has this URL moved? Also, If I wanted to paint a real sun in the sky, where in the code should I start? Thanks!

hal9000 gravatar imagehal9000 ( 2015-03-19 14:37:14 -0500 )edit

Hi, the URL moved... sdf specification can now be found under www.sdformat.org I updated the url...

evilBiber gravatar imageevilBiber ( 2015-06-10 02:43:20 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-06-24 12:20:38 -0500

Seen: 4,813 times

Last updated: Jun 10 '15