ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you are using the unstable version of gazebo:

<light type="spot" name="spot" cast_shadows="false">
  <origin pose="0 0 3 0 0 0"/>
  <diffuse rgba="0 1 0 1"/>
  <specular rgba=".2 .2 .2 1"/>
  <attenuation range="10" constant="0.2" linear="0.01" quadratic="0.0"/>
  <direction xyz="0 0 -1"/>
  <spot inner_angle="0.1" outer_angle="0.5" falloff="1.2"/>
</light>

if you are using Diamondback or Electric:

<model:renderable name="spot">
  <xyz>0.0 0 3</xyz>
  <static>true</static>

  <light>
    <type>spot</type>
    <direction>0 0 -1</direction>
    <diffuseColor>0.0 0.0 1.0</diffuseColor>
    <specularColor>0.0 0.0 0.1</specularColor>
    <attenuation>.1 0.0 0.0</attenuation>
    <range>5</range>
    <spotCone>8.0 10.0 2.0</spotCone> 
  </light>
</model:renderable>