Gazebo | Ignition | Community
Ask Your Question

How do you rotate the camera view around a model

asked 2015-04-09 19:33:03 -0600

Cerin gravatar image

updated 2015-04-09 19:35:56 -0600

Is there any way to rotate the camera around a model by dragging the mouse, especially when editing a model?

I can't find any documentation for Gazebo's mouse and keyboard shortcuts, and playing around with the mouse, I've found I can only pan the view by clicking the dragging, and zooming the view with the mouse scroll bar. I can't find any way to "orbit" around a point, which is a common feature in most CAD systems. Is this possible in Gazebo?

Also, most annoyingly, if I double-click any object, the view immediately switches to a high-up perspective that doesn't let me see any detail, and since I can't rotate the view at all, the only way I can fix it is by going to View->Reset Camera. Why does double clicking a model screw up the camera view?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-09 19:44:16 -0600

chapulina gravatar image

You can orbit the view dragging the mouse wheel pressed. You could also left-click drag while holding the Shift key.

Double-clicking a model to zoom in it is a useful feature in several occasions, for example if you have a world with several objects, maybe even moving, and you want to quickly move the view to one of them. But it's true that it might not be useful for every use case, so I created an issue to add an option to turn off this behaviour.

edit flag offensive delete link more


Thanks. I'm on a laptop, so I don't have a mouse wheel to press, so I never thought to try that, but the left-click+shift works perfectly.

Cerin gravatar imageCerin ( 2015-04-09 20:27:43 -0600 )edit

Thanks, this helps! Can't upvote since my account is new...

_sparkle_eyes gravatar image_sparkle_eyes ( 2019-05-27 16:44:27 -0600 )edit

It definitely works! Funny thing is that in the tutorial they did not cover such a basic operation for rotation :)

HaFred gravatar imageHaFred ( 2021-10-25 05:15:44 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2015-04-09 19:33:03 -0600

Seen: 13,632 times

Last updated: Apr 09 '15