Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is how I achieve the light control .

Send message by using the STANDALONE PUBLISHER in GAZEBO REPO

and change the message type in the while loop to gazebo::msgs::Light (Need to include light message)

destination of accessing : existing light in .world file => So it has a name.

You can put the name onto the message's name field.

in order to control the light , I used lightMessage set range field . ( 0 = off , others = on )

then you can include ROS Node required file to do the controlling scheme.