-
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_online
script. - To build a map from a rosbag, use the
cartographer_offline
script. The rosbag must provide range data on the rostopic/scan
and a transformation tree on/tf
; depending on your configuration of cartographer incar_cartographer/config
it may need to also have odometry data on/odom
or IMU data on/imu
.
# Either:
./scripts/cartographer_online.sh
# Or:
./scripts/cartographer_offline.sh /absolute/path/to/rosbag