How to use lsd_slam with usb camera?
I install lsd_slam from here. I run succesfully lsd_slam with .bag files from taken here. I want to try lsd_Slam with usb camera or image sequence. To do it, I run below commands :
roscore
rosrun lsd_slam_viewer viewer
rosrun lsd_slam_core live_slam /image:=/usb_cam/image_raw _calib:=pinhole_example_calib.cfg
roslaunch slam.launch
slam.launch
<launch>
<!-- Activate the color webcam. -->
<node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
<param name="video_device" value="/dev/video0" />
<param name="image_width" value="640" />
<param name="image_height" value="480" />
<param name="pixel_format" value="yuyv" />
<param name="camera_frame_id" value="usb_cam" />
<param name="io_method" value="mmap" />
</node>
<!-- Convert the color webcam's output to mono. -->
<node name="to_mono_node1" pkg="image_proc" type="image_proc" ns="usb_cam" />
<!-- Display the mono stream. -->
<node name="image_view" pkg="image_view" type="image_view" respawn="false" output="screen">
<remap from="image" to="/usb_cam/image_mono" />
<param name="autosize" value="true" />
</node>
</launch>
Error is :
Input resolution: 752 480
In: 0.527334 0.827306 0.473568 0.499436 0.000000
NO RECTIFICATION
Output resolution: 752 480
Prepped Warp matrices
Started constraint search thread!
Started mapping thread!
Started optimization thread
UndistorterPTAM: input image size differs from expected input size! Not undistorting.
Doing Random initialization!
Segmentation fault (core dumped)
I use ros-indigo, ubuntu 14.04. How can I run lsd_slam with images or usb camera frames?