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

scripting rviz

asked 2011-08-31 02:56:11 -0500

phil0stine gravatar image

I do not know what command line params there are for rviz, but being able to script consecutive runs and record the results would be quite nice (and not so repetitive!). Some examples of things I would like the script to control:

the tf cache buffer size.

the location and orientation of the orbiting camera.

Thoughts? I realize there are a great many rviz params that one might want to control, and it might be cumbersome to code. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-08-31 04:05:10 -0500

Lorenz gravatar image

updated 2011-08-31 04:05:39 -0500

According to rosrun rviz rviz --help, the supported command line parameters are:

rviz command line options:
-h [ --help ]               Produce this help message
-d [ --display-config ] arg A display config file (.vcg) to load
-t [ --target-frame ] arg   Set the target frame
-f [ --fixed-frame ] arg    Set the fixed frame
-l [ --ogre-log ]           Enable the Ogre.log file (output in cwd)

A possibility for setting more options might be to write something like an rviz config file generator since you can load a specific config file via command line parameters. However, I don't think the config file format is documented anywhere.

edit flag offensive delete link more

Comments

Thanks, it looks like coding the vcg files is the way to go, it at least resolves the issue of fixing the orbiting camera position (and other viz settings).
phil0stine gravatar image phil0stine  ( 2011-08-31 04:22:10 -0500 )edit

That --help output is slightly outdated now: the config file extension is ".rviz" as of ROS Groovy. The Groovy rviz config file format is YAML, and should be pretty easy to generate with Python.

hersh gravatar image hersh  ( 2013-01-31 13:22:43 -0500 )edit

Question Tools

Stats

Asked: 2011-08-31 02:56:11 -0500

Seen: 952 times

Last updated: Aug 31 '11