Include Multiple Light Sources in .world file
Right now, I'm trying to edit a world file so that it includes several light sources upon launch. I based my custom light source on the Sun model's SDF file minus the
<?xml version="1.0" ?>
<sdf version="1.4">
<world name="default">
<!-- Light sources -->
<include>
<uri>model://odg_light_source</uri>
<name>odg_light_source</name>
<pose>0.8 -2 5 0 0 0</pose>
</include>
<include>
<uri>model://odg_light_source</uri>
<name>odg_light_source_0</name>
<pose>1 -4 5 0 0 0</pose>
</include>
<!-- A ground plane -->
<include>
<uri>model://ground_plane</uri>
</include>
</world>
</sdf>
Even though I specified the pose to spawn in and different names for each light source, the .world file only spawns 1 light source at (0, 0, 0) upon launch. Is there a way to fix these two issues (can only spawn 1 light at only at the origin)? Any help would be greatly appreciated.
Asked by K. Zeng on 2014-07-10 16:14:45 UTC
Comments
What version of gazebo are you using? We have fixed some bugs related to lights recently in the latest version of gazebo.
Asked by scpeters on 2014-07-10 20:05:34 UTC
Gazebo 2.22 in conjunction with ROS Indigo.
Asked by K. Zeng on 2014-07-11 12:38:36 UTC