Gazebo | Ignition | Community
Ask Your Question

How to change light intensity using a plugin

asked 2018-01-31 15:58:06 -0600

amish gravatar image

Gazebo 7 recently had an update that allowed lights be added to robot models as children of links:

The SDF spec supports things like light shape, distance, and attenuation, but the robot I'm working on has dimmable lights, and so far I haven't been able to find out how to change the light intensity using the gazebo API. I looked in gazebo:physics API and I was able to find the Light class as well as the LightState class, but those don't seem to govern the settings I'm looking for.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-31 16:39:12 -0600

chapulina gravatar image

You should look into rendering::Light. There's an explanation here about the Light's multiple personalities.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-01-31 15:49:15 -0600

Seen: 1,144 times

Last updated: Jan 31 '18