dlo.launch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--
  2. Copyright (c) 2021, University of California, Los Angeles
  3. Authors: Kenny J. Chen, Brett T. Lopez
  4. Contact: kennyjchen@ucla.edu, btlopez@ucla.edu
  5. -->
  6. <launch>
  7. <arg name="robot_namespace" default="robot"/>
  8. <arg name="pointcloud_topic" default="rslidar_points"/>
  9. <arg name="imu_topic" default="imu_data"/>
  10. <!-- DLO Odometry Node -->
  11. <node ns="$(arg robot_namespace)" name="dlo_odom" pkg="direct_lidar_odometry" type="dlo_odom_node" output="screen" clear_params="true">
  12. <!-- Load parameters -->
  13. <rosparam file="$(find direct_lidar_odometry)/cfg/dlo.yaml" command="load"/>
  14. <rosparam file="$(find direct_lidar_odometry)/cfg/params.yaml" command="load"/>
  15. <!-- Subscriptions -->
  16. <remap from="~pointcloud" to="$(arg pointcloud_topic)"/>
  17. <remap from="~imu" to="$(arg imu_topic)"/>
  18. <!-- Publications -->
  19. <remap from="~odom" to="dlo/odom_node/odom"/>
  20. <remap from="~kfs" to="dlo/odom_node/odom/keyframe"/>
  21. <remap from="~keyframe" to="dlo/odom_node/pointcloud/keyframe"/>
  22. </node>
  23. <!-- DLO Mapping Node -->
  24. <node ns="$(arg robot_namespace)" name="dlo_map" pkg="direct_lidar_odometry" type="dlo_map_node" output="screen" clear_params="true">
  25. <!-- Load parameters -->
  26. <rosparam file="$(find direct_lidar_odometry)/cfg/dlo.yaml" command="load"/>
  27. <!-- Subscriptions -->
  28. <remap from="~keyframes" to="dlo/odom_node/pointcloud/keyframe"/>
  29. <!-- Publications -->
  30. <remap from="~map" to="dlo/map_node/map"/>
  31. </node>
  32. <!-- RViz -->
  33. <node pkg="rviz" type="rviz" name="dlo_rviz" args="-d $(find direct_lidar_odometry)/launch/dlo.rviz"/>
  34. </launch>