Ask Your Question

Is it possible to launch rviz with a fixed frame size?

asked 2014-02-20 14:54:48 -0600

ZiyangLI gravatar image

updated 2014-02-20 14:55:09 -0600

Hi all,

I have searched but I can not find any clue to launch rviz with a fixed frame size. For example, I want to set the visualization region to be 1080*900 pixel? How to do that?

I am using Fuerte on Ubuntu*64.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-02-20 19:36:50 -0600

updated 2014-02-20 19:37:05 -0600

rviz should remember the last window size/position it was launched with (at least it did when I just tested this). Another option is the use of the wmctrl Unix/Linux command line tool. With this, you can easily alter window sizes and positions of all windows in your X Window manager.


 wmctrl -l

you can get a list of all managed windows. Using one of the names retrieved (it helps when it is unique ;) ) you can then specifiy a window position and size for example like this:

wmctrl -r 'ocs_default.rviz - RViz' -e '0,1920,0,1080,900'
edit flag offensive delete link more


Can this method specify the size of the visual region of rviz, since I have no interest in the control panel.

ZiyangLI gravatar image ZiyangLI  ( 2014-02-21 12:46:59 -0600 )edit

Indirectly, by figuring out how much "overhead" the borders are (in pixels) and using that information to resize using wmctrl accordingly. I know it´s not the perfect solution, but a relatively easy one that doesn´t require changing rviz code and recompiling.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2014-02-25 01:24:07 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2014-02-20 14:54:48 -0600

Seen: 886 times

Last updated: Feb 20 '14