Prepare Cartographer launch file
Copy the cartographer_simple.launch.py file into the cartographer_ros package and rebuild.
The common_platform repository provides a customized Cartographer launch file. Copy it into the cartographer_ros package and rebuild Cartographer.
bash
cp ~/repos/common_platform/launch/cartographer_simple.launch.py ~/ros2_ws/src/cartographer_ros/cartographer_ros/launch/
bash
cd ~/ros2_ws
colcon build --packages-select cartographer_ros --symlink-install