Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Exporting jpegs from bag file skips frames

$
0
0
Hi to everyone, I am following this tutorial to generate a video from a bag file in which I put the frames of a vision sensor: http://wiki.ros.org/rosbag/Tutorials/Exporting%20image%20and%20video%20data I can go through it without problems but I have one problem. If I do $ rosbag info cameraVisionSensorRecord.bag I get: path: cameraVisionSensorRecord.bag version: 2.0 duration: 1:19s (79s) start: Mar 16 2016 17:26:51.45 (1458145611.45) end: Mar 16 2016 17:28:10.93 (1458145690.93) size: 8.7 GB messages: 1508 compression: none [1508/1508 chunks] types: sensor_msgs/Image [060021388200f6f0f447d0fcd9c64743] topics: /vrep/Vision_sensor 1508 msgs : sensor_msgs/Image This bag file has 1508 msgs inside. When I try to generate the frames like described in the tutorial I get only 604 frames (605 actually, because it start from 0000.jpg): ..................... process[rosbag-1]: started with pid [12579] process[extract-2]: started with pid [12580] [ INFO] [1458145752.700535439]: Initialized sec per frame to 0.100000 [ INFO] [1458145754.630371279]: Saved image /home/**********/Desktop/rosbag/bitmap/frame0000.jpg [ INFO] [1458145754.747831132]: Saved image /home/**********/Desktop/rosbag/bitmap/frame0001.jpg ............................... ............................... [ INFO] [1458148035.459727400]: Saved image /home/**********/Desktop/rosbag/bitmap/frame000602.jpg [ INFO] [1458148035.620177921]: Saved image /home/**********/Desktop/rosbag/bitmap/frame000603.jpg [ INFO] [1458148035.732808217]: Saved image /home/**********/Desktop/rosbag/bitmap/frame000604.jpg [rosbag-1] process has finished cleanly log file: /home/*******/.ros/log/a4201dd0-eb7f-11e5-bfc5-8cdcd4d399a8/rosbag-1*.log I do NOT understand why I am not able to get 1508 frames like in the bag file. Could you explain why this happens? Thanks in advance.

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>