1. Launch Simulation and SLAM
Launch the simulation stack, Nav2, and SLAM for each robot:
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/${ROS_DISTRO}/share/turtlebot3_gazebo/models
ros2 launch multirobot_map_merge multi_tb3_simulation_launch.py slam_gmapping:=True
To use slam_toolbox instead, use slam_toolbox:=True (requires the experimental branch).
To use unknown initial poses, add known_init_poses:=False to the launch command.
2. Launch the Merging Node
ros2 launch multirobot_map_merge map_merge.launch.py
To use unknown initial poses, add known_init_poses:=False to the launch command.
3. Visualize the Merged Map
Open RViz2 using the provided configuration file:
rviz2 -d <your/ros2_ws>/src/m-explore-ros2/map_merge/launch/map_merge.rviz
# Step 1: Launch simulation
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/${ROS_DISTRO}/share/turtlebot3_gazebo/models
ros2 launch multirobot_map_merge multi_tb3_simulation_launch.py slam_gmapping:=True
# Step 2: Launch merging node
ros2 launch multirobot_map_merge map_merge.launch.py
# Step 3: Visualize
rviz2 -d <your/ros2_ws>/src/m-explore-ros2/map_merge/launch/map_merge.rviz