Process died whilst exporting bag to jpeg
Hi
I'm trying to export a bag file to jpegs by running:
roslaunch export.launch
where
export.launch
:
<launch>
<node pkg="rosbag" type="play" name="rosbag" required="true" args="/path/catkin_ws/test.bag"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" required="true" output="screen" cwd="ROS_HOME">
<remap from="image" to="/camera/rgb/image_raw"/>
</node>
</launch>
The bag is 2s long (60 messages), but I get the following message after frame0015.jpg
is saved:
REQUIRED process [rosbag-2] has died!
process has finished cleanly
log file: /path/.ros/log/2723c992-cb16-11e9-8dca-001c42b1c2c9/rosbag-2*.log
Initiating shutdown!
I'd expect 60 images to be exported as 60 messages were captured. Does anyone know why rosbag
crashes as described?
Here's a more complete output:
setting /run_id to 2723c992-cb16-11e9-8dca-001c42b1c2c9
process[rosout-1]: started with pid [964]
started core service [/rosout]
process[rosbag-2]: started with pid [970]
process[extract-3]: started with pid [973]
[ INFO] [1567163162.419827776]: Initialized sec per frame to 0.100000
[ INFO] [1567163162.682550707]: Saved image frame0000.jpg
[ INFO] [1567163162.813832567]: Saved image frame0001.jpg
[ INFO] [1567163162.913869500]: Saved image frame0002.jpg
[ INFO] [1567163163.014113532]: Saved image frame0003.jpg
[ INFO] [1567163163.145443605]: Saved image frame0004.jpg
[ INFO] [1567163163.245991123]: Saved image frame0005.jpg
[ INFO] [1567163163.381262565]: Saved image frame0006.jpg
[ INFO] [1567163163.481461543]: Saved image frame0007.jpg
[ INFO] [1567163163.581605202]: Saved image frame0008.jpg
[ INFO] [1567163163.714315667]: Saved image frame0009.jpg
[ INFO] [1567163163.845826862]: Saved image frame0010.jpg
[ INFO] [1567163163.945990088]: Saved image frame0011.jpg
[ INFO] [1567163164.077795395]: Saved image frame0012.jpg
[ INFO] [1567163164.213862555]: Saved image frame0013.jpg
[ INFO] [1567163164.345490987]: Saved image frame0014.jpg
[ INFO] [1567163164.477983058]: Saved image frame0015.jpg
================================================================================REQUIRED process [rosbag-2] has died!
process has finished cleanly
log file: /path/.ros/log/2723c992-cb16-11e9-8dca-001c42b1c2c9/rosbag-2*.log
Initiating shutdown!
================================================================================
[extract-3] killing on exit
[rosbag-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
Are you sure it's not simply reaching the end of the bag file and shutting down?
@PeteBlackerThe3rd How do I tell? Shouldn't 60 images be expected if 60 messages were captured?
rosbag info
gives the following:I think you're right! I've set
sec_per_frame
to 0.03 and I'm getting almost all of the frames. Thanks.Great. Glad you've got this working.