Gazebo | Ignition | Community
Ask Your Question

Is it possible to control the GUI camera with python to follow a model?

asked 2013-03-07 03:00:00 -0600

EricSidorov gravatar image

Using the current Gazebo GUI it is possible to focus the camera on any model using the "Move To" option. However, the camera doesn't "attach" to the model, i.e. the camera doesn't follow the model once it moves. Is there a way of calling "Move To" from python or calling some service that moves the camera so it will track the model automatically?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-07 21:01:35 -0600

nkoenig gravatar image

This is on my todo list. There is a function within gazebo/rendering/UserCamera.hh to follow a model (look for TrackVisual function). I need to properly expose this function to the GUI.

edit flag offensive delete link more


Great! It would be very useful to have such a feature

EricSidorov gravatar imageEricSidorov ( 2013-03-12 08:39:33 -0600 )edit

Is there a way to set this from GUI by now?

bugmenot gravatar imagebugmenot ( 2017-09-04 04:52:55 -0600 )edit

You can right-click a model and choose "Follow"

chapulina gravatar imagechapulina ( 2017-09-04 17:48:39 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-03-07 03:00:00 -0600

Seen: 1,033 times

Last updated: Mar 07 '13