<?xml version="1.0" encoding="UTF-8" ?>
<sdf version='1.6'>
  <world name='default'>
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <model name='light_model'>
      <static>1</static>
      <pose frame=''>0 0 0 0 -0 0</pose>
      <link name='cylinder'>
        <pose frame=''>0 0 0.25 0 -0 0</pose>
        <visual name='visual'>
          <geometry>
            <cylinder>
              <radius>0.25</radius>
              <length>0.5</length>
            </cylinder>
          </geometry>
        </visual>
        <light name='light_source1' type='spot'>
          <pose frame=''>0.25 0 0.25 0 -0.7854 0</pose>
          <attenuation>
            <range>30</range>
            <linear>0.05</linear>
          </attenuation>
          <diffuse>1 0 0 1</diffuse>
          <specular>1 0 0 1</specular>
          <spot>
            <inner_angle>0.3</inner_angle>
            <outer_angle>0.35</outer_angle>
            <falloff>1</falloff>
          </spot>
          <direction>0 0 -1</direction>
        </light>
      </link>
      <plugin name='light_control' filename='libFlashLightPlugin.so'>
        <light>
          <id>cylinder/light_source1</id>
          <block>
            <duration>0.5</duration>
            <interval>0</interval>
            <color>1 0 0</color>
          </block>
          <block>
            <duration>0.5</duration>
            <interval>0</interval>
            <color>0 1 0</color>
          </block>
          <block>
            <duration>0.5</duration>
            <interval>0</interval>
            <color>0 0 1</color>
          </block>
        </light>
      </plugin>
    </model>
    <gravity>0 0 -9.8</gravity>
  </world>
</sdf>
