0
$\begingroup$

Gazebo Answers logo

Is it possible, from ROS, to send a message to Gazebo to turn on/off a sensor by name?

Peeking at the source code, I see the sensors themselves have a setActive(bool) function. Is there an existing way to access this via messages, or would I need to write my own SensorPlugin?


Originally posted by Neil Traft on Gazebo Answers with karma: 18 on 2015-08-20

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

A sensor will turn off when the <always_on> SDF element is false, and there are no subscribers to the sensor's output stream.

If you want to control a sensor, then you'll have to write a sensor plugin.


Originally posted by nkoenig with karma: 7676 on 2015-08-21

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.