rviz - video recording
Hi all!
Is it possible to make a video recording from rviz displays?
Thanks for your help.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
In jsk_rviz_plugins package that is available via apt in some ROS distros, there's VideoCapture plugin.
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'
--sout
to a file or some other media.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...
Asked: 2013-07-10 02:32:39 -0600
Seen: 14,232 times
Last updated: Feb 22 '16