kittiplayer_libviso2.launch 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" ?>
  2. <launch>
  3. <!-- USEFUL ROS LAUNCH STUFF -->
  4. <!--
  5. output = "screen"
  6. -->
  7. <!-- The namespace where images are published -->
  8. <arg name="camera" default="/kitti_player/grayscale" />
  9. <arg name="directory"
  10. default="$(find kitti_player)/dataset/2011_10_03/2011_10_03_drive_0058_extract/"
  11. />
  12. <node name="kitti_player" pkg="kitti_player" type="kitti_player"
  13. required="true"
  14. args= "-d $(arg directory) -f 1 -a -s -l -v -V"
  15. />
  16. <!--TYPE THIS LINE TO VIEW SOMETHING-->
  17. <!--rosrun image_view stereo_view stereo:=/kitti_player/grayscale image:=image_rect _approximate_sync:=True-->
  18. <group ns="$(arg camera)" >
  19. <node pkg="stereo_image_proc" type="stereo_image_proc" name="stereo_image_proc" required="true" output = "screen">
  20. <param name="approximate_sync" value="true"/>
  21. <param name="stereo_algorithm" value="1"/> <!-- 0=BlockMachingGlobal 1=SemiGlobalBMl -->
  22. <!--ISIS Lab Magic Numbers-->
  23. <param name="correlation_window_size" value="9" /> <!-- SAD correlation window width, pixels -->
  24. <param name="disparity_range" value="112" /> <!-- Number of disparities to search, pixels-->
  25. <param name="prefilter_size" value="5" /> <!-- Normalization window size, pixels-->
  26. <param name="prefilter_cap " value="63" /> <!-- Bound on normalized pixel values-->
  27. <param name="min_disparity" value="0" /> <!-- Disparity to begin search at, pixels (may be negative)-->
  28. <param name="texture_threshold" value="100"/> <!-- Filter out if SAD window response does not exceed texture threshold-->
  29. <param name="uniqueness_ratio" value="5" /> <!-- Filter out if best match does not sufficiently exceed the next-best match-->
  30. <param name="speckle_size" value="196"/> <!-- Reject regions smaller than this size, pixels-->
  31. <param name="speckle_range" value="128" /> <!-- Max allowed difference between detected disparities-->
  32. <param name="disp12MaxDiff" value="90" /> <!-- Maximum allowed difference (in integer pixel units) in the left-right disparity check, only available in SGBM-->
  33. <param name="P1" value="0" /> <!-- The first parameter controlling the disparity smoothness, only available in SGBM-->
  34. <param name="P2" value="128"/> <!-- The second parameter controlling the disparity smoothness., only available in SGBM-->
  35. <param name="fullDP" value="0" /> <!-- Run the full variant of the algorithm, only available in SGBM -->
  36. </node>
  37. </group>
  38. <!--This transform is also defined in the RLE launchers, useless-->
  39. <!-- <node pkg="tf" type="static_transform_publisher" name="visual_odometry_camera_frame_to_visual_odometry_car_frame"
  40. args="0 0 0 -1.570796 0 -1.570796 base_link kitti_player 50" />-->
  41. <!-- Run the viso2_ros package -->
  42. <!--
  43. <node pkg="viso2_ros" type="stereo_odometer" name="stereo_odometer" required="true">
  44. <rosparam param="base_link_frame_id">visual_odometry_camera_frame</rosparam>
  45. <remap from="stereo" to="$(arg camera)"/>
  46. <remap from="image" to="image_rect"/>
  47. </node>
  48. -->
  49. </launch>