Gazebo | Ignition | Community
Ask Your Question

Revision history [back]


ok I understand the idea now, currently I don't have access to a PC with gazebo installed to test a code snippet, but here is the idea how you should try to implement it via a plugin:

Here is the Light class with all the methods you need to control the light.

You should be able to access it with this function. After accessing the Scene.

In order to access the visual part of gazebo (eg Scene) you need to create a visual plugin, this way you get access to the GUI and the rendering engine. Here is a tutorial how to create such a plugin.

If you still have problems implementing it, let me know and I could write some code snippets.

Cheers, Andrei