Ask Your Question
1

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

1 Answer

Sort by » oldest newest most voted
1

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.

Using

 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

Comments

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

ZiyangLI gravatar imageZiyangLI ( 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 imageStefan Kohlbrecher ( 2014-02-25 01:24:07 -0500 )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

Stats

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

Seen: 646 times

Last updated: Feb 20 '14