Home | Tutorials | Wiki | Issues
Ask Your Question
0

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>
    <attenuation>
      <range>10</range>
      <constant>0.2</constant>
      <linear>0.01</linear>
    </attenuation>
    <direction>1 0 0</direction>
  </light>
</gazebo>

(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

2 Answers

Sort by ยป oldest newest most voted
1

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
0

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 1,677 times

Last updated: Oct 17 '13