Ask Your Question
2

rviz - video recording

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

JaRu gravatar image

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

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
6

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

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
1

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

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
0

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

130s gravatar image

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

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 imagestfn ( 2019-04-09 07:21:25 -0500 )edit
0

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

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

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: 2013-07-10 02:32:39 -0500

Seen: 7,641 times

Last updated: Feb 22 '16