Unable to extract depth images from bag file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to extract depth images from bag file

wajih
This post was updated on .
Hi all,

I am newbie to ros and have a simple question. I have recorded a bag file of kinect.

The rosbag info, the lauch file to extract the depth images from the bag file and the error is given below.
Kindly let me know whats worng.


The ros bag info is as follows


types:       sensor_msgs/Image [060021388200f6f0f447d0fcd9c64743]
topics:      /camera/depth/image_raw   677 msgs @ 14.8 Hz : sensor_msgs/Image
             /camera/rgb/image_color   632 msgs @ 14.7 Hz : sensor_msgs/Image


The launch file to extract the depth image is as follows

<launch>

  <node pkg="rosbag" type="rosbag" name="rosbag" args="play -d 2  /home/nonsemantic/Implementation/Fitting_3D_Box/kinect_dataset/room_one.bag"/>

  <node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="node">
    <remap from="image" to="camera/depth/image_raw"/>
   
   
  </node>
 
</launch>


The result is

process[rosbag-1]: started with pid [30868]
process[extract-2]: started with pid [30869]
[ INFO] [1321471787.864113637]: Initialized sec per frame to 0.000000
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::io::too_many_args> >'
  what():  boost::too_many_args: format-string referred to less arguments than were passed
[extract-2] process has died [pid 30869, exit code -6].


Thanking all in anticipation.

regards
wajih

Reply | Threaded
Open this post in threaded view
|

Err: Unable to extract depth images from bag file

wajih
In the original message the launch file is missing some portion. The complete launch file is as follows

<launch>

  <node pkg="rosbag" type="rosbag" name="rosbag" args="play -d 2  room_one.bag"/>

  <node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="node">
    <remap from="image" to="camera/depth/image_raw"/>
    param name="filename_format" value="room_one.pgm"/>
    param name="sec_per_frame" value="0.00000000001"/>
  </node>
 
</launch>