Home | Tutorials | Wiki | Issues
Ask Your Question
2

Change Zoom Level of Follow Mode

asked 2014-07-29 12:42:52 -0600

K. Zeng gravatar image

I'm trying to closely track a robot's movement. Is there a way to adjust the zoom level of the GUI's follow function so the camera does stay on the robot and is also closer to the model?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-07-30 11:30:45 -0600

scpeters gravatar image

The camera follow distance is hard-coded as variable origDistance to 8.0 meters in Camera::Update. You will have to build from source to change this value.

As an alternative, you can attach a camera sensor to your robot at a specified offset and use the Topic Visualizer to watch the camera images.

edit flag offensive delete link more

Comments

Is there a way to suggest this as a future feature? I'm thinking that once follow mode is activated and the camera zooms out to 8 meters, I'm thinking the mouse's zoom function ought to be active and the zoom should hold to the new value.

Kurt Leucht gravatar imageKurt Leucht ( 2014-07-30 13:37:36 -0600 )edit

I just created a [feature request for this on bitbucket](https://bitbucket.org/osrf/gazebo/issue/1251/change-zoom-level-of-follow-mode); please vote for it if you would like this feature.

scpeters gravatar imagescpeters ( 2014-07-30 14:38:46 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-07-29 12:42:52 -0600

Seen: 3,573 times

Last updated: Jul 30 '14