demo_sick.launch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--
  2. Example launch file: launches the scan matcher with pre-recorded data
  3. -->
  4. <launch>
  5. <!-- <arg name="IS_TWISTSTAMPED" default="true" /> -->
  6. <arg name="use_rviz" default="true" />
  7. <arg name="publish_covariance" default="false"/>
  8. #### set up data playback from bag #############################
  9. <param name="/use_sim_time" value="true"/>
  10. <!-- <param name="/stamped_vel" value="$(arg IS_TWISTSTAMPED)"/> -->
  11. <group if="$(arg use_rviz)">
  12. <node pkg="rviz" type="rviz" name="rviz"
  13. args="-d $(find scan_matcher_ICP)/scripts/demo.rviz"/>
  14. </group>
  15. <!-- <node pkg="rosbag" type="play" name="play"
  16. args="$(find laser_scan_matcher)/demo/scan1.bag"/> -->
  17. #### publish an example base_link -> laser transform ###########
  18. <node pkg="tf" type="static_transform_publisher" name="base_link_to_laser"
  19. args="0.0 0.0 0.0 0.0 0.0 0.0 1.0 /base_link /laser 40" />
  20. #### start the laser scan_matcher ##############################
  21. <group if="$(arg publish_covariance)">
  22. <param name="laser_scan_matcher_node/do_compute_covariance" value="1"/>
  23. <param name="laser_scan_matcher_node/publish_pose_with_covariance" value="true"/>
  24. <param name="laser_scan_matcher_node/publish_pose_with_covariance_stamped" value="true"/>
  25. </group>
  26. <node pkg="scan_matcher_ICP" type="scan_matcher_ICP_node"
  27. name="scan_matcher_ICP_node" output="screen">
  28. <param name="fixed_frame" value="map"/>
  29. <param name="base_frame" value="base_link"/>
  30. <param name="max_iterations" value="10"/>
  31. </node>
  32. </launch>