Gazebo | Ignition | Community
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 [] 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

2 Answers

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

answered 2019-04-20 03:54:38 -0500

Attached spot lights with the robots have been ensured for the certain activities. All the challenges of the robots and papersowl are ensured for the citizens. The technology of the robot is improved for the miracles of the world.

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 2,816 times

Last updated: Oct 17 '13