Skip to content

Commit

Permalink
BlueRov2.urdf.xacro: Add light
Browse files Browse the repository at this point in the history
WIP #11

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 20, 2017
1 parent f62e6fc commit 76742e0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion model/BlueRov2.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,34 @@
</sensor>
</gazebo>

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

<plugin name="attach_light" filename="libAttachLightPlugin.so">
<link>
<link_name>BlueRov2::camera_link</link_name>
<light>
<pose>0 0 0.9 3.14 0 0</pose>
<light_name>spot</light_name>
</light>
</link>
</plugin>

</robot>

0 comments on commit 76742e0

Please sign in to comment.