0
$\begingroup$

Rosanswers logo

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.


Originally posted by wmcmahan on ROS Answers with karma: 70 on 2011-07-05

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by KoenBuys with karma: 2314 on 2011-07-05

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.