-
Notifications
You must be signed in to change notification settings - Fork 36
Building a map with Cartographer
Nils edited this page Jul 6, 2019
·
1 revision
There are two bash scripts in the scripts folder which use Cartographer to create a map of a racetrack. This map can then be used for different purposes, for example in the ROS navigation stack.
- To build a map while a roscore is running and providing sensor data, use the
cartographer_onlinescript. - To build a map from a rosbag, use the
cartographer_offlinescript. The rosbag must provide range data on the rostopic/scanand a transformation tree on/tf; depending on your configuration of cartographer incar_cartographer/configit may need to also have odometry data on/odomor IMU data on/imu.
# Either:
./scripts/cartographer_online.sh
# Or:
./scripts/cartographer_offline.sh /absolute/path/to/rosbag