ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Follow the building and installation steps given here.

Take a look here at the launch files. Choose one that suits you best or write your own and do a remap of the topics on either cartographer side or your camera. Launch both your own node and cartographer and this should work. A simple example would be:

<launch>
  <param name="robot_description"
    textfile="$(find robot_descriptopn)/urdf/my_robot.urdf.xacro" />

  <node name="cartographer_node" pkg="cartographer_ros"
     type="cartographer_node" args="
    -configuration_directory $(find cartographer_ros)/configuration_files
    -configuration_basename test.lua"
     output="screen">
  </node>

  <node name="cartographer_occupancy_grid_node" pkg="cartographer_ros"
     type="cartographer_occupancy_grid_node" args="-resolution 0.05" />
</launch>