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

Recording video from the PR2

asked 2011-07-05 13:26:15 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hey everyone,

I was wondering if there were any pre-built tools for recording video streams from the PR2's camera.

I need to record video that I can synchronize to sensor signals from the PR2's gripper as well as arm command signals. I have recorded a bag file, and used use "extract_images" from the "image_view" stack as described in the rosbag tutorial: http://www.ros.org/wiki/rosbag/Tutorials/Exporting%20image%20and%20video%20data However, this approach seems to skip frames, even when I set the parameter _sec_per_frame:=0.0001.

Is there a direct way of creating video (preferably from the compressed or theora messages) or a way that guarantees no missed frames, or at least accounts for the missed frame in the timeline of the video (so that it can maintain synchronization with the other data)?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-07-05 17:18:33 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I once made a small video_to_bag and a bag_to_video package, it's on our git it is not optimal yet, it could use some timing and camera calibration extension, so patches are highly appreciated! But perhaps it is suitable for your task.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-05 13:26:15 -0500

Seen: 1,203 times

Last updated: Jul 05 '11