ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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

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

ZiyangLI gravatar image

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

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


Though not an ideal solution, here's how I have dealt with this. After resizing the window and setting the view, save the RViz config. Load the RViz config during the next launch. You can manually tweak numbers inside the saved .rviz file too.

trunc8 gravatar image trunc8  ( 2021-07-02 00:29:56 -0500 )edit

1 Answer

Sort by » oldest newest most voted

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

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

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 -0500 )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 -0500 )edit

Question Tools

1 follower


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

Seen: 1,687 times

Last updated: Feb 20 '14