example.launch 802 B

123456789101112131415161718192021
  1. <launch>
  2. <!--
  3. NOTE: You'll need to bring up something that publishes sensor data (see
  4. rosstage), something that publishes a map (see map_server), and something to
  5. visualize a costmap (see nav_view), to see things work.
  6. Also, on a real robot, you'd want to set the "use_sim_time" parameter to false, or just not set it.
  7. -->
  8. <param name="/use_sim_time" value="true"/>
  9. <!-- Publishes the voxel grid to rviz for display -->
  10. <node pkg="costmap_2d" type="costmap_2d_markers" name="voxel_visualizer">
  11. <remap from="voxel_grid" to="costmap/voxel_grid"/>
  12. </node>
  13. <!-- Run the costmap node -->
  14. <node name="costmap_node" pkg="costmap_2d" type="costmap_2d_node" >
  15. <rosparam file="$(find costmap_2d)/launch/example_params.yaml" command="load" ns="costmap" />
  16. </node>
  17. </launch>