Ask Your Question
0

alwaysOn camera parameter Gazebo

asked 2020-06-30 08:07:52 -0500

thibs-sigma gravatar image

updated 2020-06-30 08:08:17 -0500

Hi,

I was wondering how I could use the <alwaysOn>true</alwaysOn> tag in the <plugin name="camera_controller" filename="libgazebo_ros_camera.so"> Gazebo camera plugin.

Basically, I would like to set it to false, and switch the camera on or off whenever I need it, in order to save ressources essentially.

I read on another post (here) that this parameter is not parameterized, because Gazebo cameras are not designed to be turned on or off, at least in 2014. Is it still the case?

Cheers

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-07-11 13:46:48 -0500

I read on another post (here) that this parameter is not parameterized, because Gazebo cameras are not designed to be turned on or off, at least in 2014. Is it still the case?

I think that's a misunderstanding. Gazebo cameras can be turned on or off.

Looking through the code, I'm not sure if alwaysOn actually works on gazebo_ros_pkgs (where gazebo_ros_camera is), but you can pass the always_on SDF parameter directly to the camera sensor. Or you can always call sensor->SetActive(false) from a plugin.

witch the camera on or off whenever I need it, in order to save ressources essentially.

You may want to look at gazebo_ros_triggered_camera, which takes pictures as you send messages on a topic.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-06-30 08:07:52 -0500

Seen: 325 times

Last updated: Jul 11 '20