Home | Tutorials | Wiki | Issues
Ask Your Question

Attach spotlights to robot links in Gazebo 1.9 + ROS Hydro?

asked 2013-10-16 17:48:50 -0500

updated 2013-10-16 18:38:57 -0500

Is it possible to do anything like attach a light to robot and then have it move around with the robot?

<gazebo reference="chassis">
  <light type="spot" name="front_spot">
    <pose>1 0 0 0 0 0</pose>
    <diffuse>0 1 0 1</diffuse>
    <direction>1 0 0</direction>

(this is what I tried adding to my ros urdf file but I get this error I believe when the conversion to sdf is happening:

Error [parser.cc:697] XML Element[light], child of element[link] not defined in SDF. Ignoring.[link]

Update - one thing I've tried is use a texture projector, with a spotlight that fades from white to 100% transparent at the edges. This doesn't work because the projected texture looks to be purely additive, it'll produce a spot but not reveal the texture in the model it is being projected on.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-17 15:33:04 -0500

nkoenig gravatar image

This feature is currently not present. Here is an issue to help track its development.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-10-16 17:48:50 -0500

Seen: 1,613 times

Last updated: Oct 17 '13