Numbe of extracted messages is less than number of messages
Hi, I am new to ROS and need some help.
I recorded 4754 messages in a bag file from a camera with 10 FPS.
I extracted messages by
rosrun image_view extract_images _sec_per_frame:=0 image:=/camera/rgb/image
but the number of extracted images is always less than the number of messages. The number of images is 4065..
I played with the value of _sec_per_frame such as _sec_per_frame=0.1, 0.01, 0.001 but not successful.
How do I extract the same number of images as the number of messages?
Thank you!
Are you sure you recorded all the frames? What does
rosbag info
tell you?Yes, rosbag info tells me that 4754 msgs are recorded. However, only 4065 are extracted.. Is there any delay-related issue in rosbag play?
You could use
rosbag play --pause
to start it in paused mode before yourrosrun
, perhaps? We actually use a script like this one to dump images.