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

rviz - video recording

asked 2013-07-10 02:32:39 -0600

JaRu gravatar image

updated 2013-11-14 10:36:56 -0600

tfoote gravatar image

Hi all!

Is it possible to make a video recording from rviz displays?

Thanks for your help.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
7

answered 2013-07-10 03:45:44 -0600

allenh1 gravatar image

It's possible. Just use a screen capture utility. For Ubuntu, you can use something like Kazam.

sudo apt-get install kazam

Run it, then select the part of the window you wish to record.

edit flag offensive delete link more
2

answered 2016-02-22 10:57:29 -0600

130s gravatar image

updated 2016-02-22 11:02:56 -0600

In jsk_rviz_plugins package that is available via apt in some ROS distros, there's VideoCapture plugin.

edit flag offensive delete link more

Comments

I only get a huge video that shows only green pixels along with some noise.

stfn gravatar image stfn  ( 2019-04-09 07:21:25 -0600 )edit

VLC can fix that. ๐Ÿ˜‰

robbyHuelsi gravatar image robbyHuelsi  ( 2019-12-17 02:54:05 -0600 )edit
1

answered 2015-10-07 15:20:55 -0600

hsu gravatar image

just for reference, here's some other desktop video recording options in ubuntu I use to record graphical stuff (e.g. rviz, gazebo, etc):

  • recordmydesktop, and @scpeters has a script that lets you click on a window to record it:

    alias recordmywindow='window_id=`xwininfo | grep "Window id" | sed -e "s@.*Window id: \([0-9a-fA-Fx]*\).*@\1@"`; recordmydesktop --workdir /home/hsu/videos --no-sound --windowid $window_id'
    
  • vlc screen:// and piping --sout to a file or some other media.
edit flag offensive delete link more
1

answered 2016-02-11 05:19:53 -0600

lucasw gravatar image

https://github.com/lucasw/screen_grab captures a parameter defined area of the screen and publishes it as a ros image. From there the image can be recorded to a bag and then exported to a video http://wiki.ros.org/rosbag/Tutorials/... .

The other approach is publishing an image from a camera within rviz (if it isn't necessary to capture the user interface, or annoying to adjust the window position and screen capture settings to match each other). There isn't a good way to do that yet but there are some possibilities that might not take too much development http://answers.ros.org/question/14235...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-07-10 02:32:39 -0600

Seen: 14,232 times

Last updated: Feb 22 '16