demo_sick.launch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. #### set up data playback from bag #############################
  8. <param name="/use_sim_time" value="true"/>
  9. <!-- <param name="/stamped_vel" value="$(arg IS_TWISTSTAMPED)"/> -->
  10. <group if="$(arg use_rviz)">
  11. <node pkg="rviz" type="rviz" name="rviz"
  12. args="-d $(find scan_matcher_ICP)/scripts/demo.rviz"/>
  13. </group>
  14. <!-- <node pkg="rosbag" type="play" name="play"
  15. args="$(find laser_scan_matcher)/demo/scan1.bag"/> -->
  16. #### publish an example base_link -> laser transform ###########
  17. <node pkg="tf" type="static_transform_publisher" name="base_link_to_laser"
  18. args="0.0 0.0 0.0 0.0 0.0 0.0 1.0 /base_link /laser 40" />
  19. #### start the laser scan_matcher ##############################
  20. <node pkg="scan_matcher_ICP" type="scan_matcher_ICP_node"
  21. name="scan_matcher_ICP_node" output="screen">
  22. <param name="fixed_frame" value="map"/>
  23. <param name="base_frame" value="base_link"/>
  24. <param name="max_iterations" value="10"/>
  25. </node>
  26. </launch>