In this project, I aim to navigate through multiple maps, cause in some cases, the map is too large to load in rviz.
📣 Please sepecify the path of your map1,map2,and also modify your initial pose and goal pose if needed. 📣
custom_nav:
ros__parameters:
map_numbers: 2
map_0:
map_url_param: '/home/users/turtlebot3_ws/src/turtlebot3/turtlebot3_navigation2/map
/turtlebot3_world.yaml'
initial_pose: {x: -2.048, y: -0.561, z: 0.008, yaw: 1.0}
nav_pose : {x: 1.55 , y: 0.03, z: 0.0, yaw: 1.0}
map_1:
map_url_param: '/home/users/turtlebot3_ws/src/turtlebot3/turtlebot3_navigation2/map
/turtlebot3_world.yaml'
initial_pose: {x: 1.55 , y: 0.03, z: 0.0, yaw: 1.0}
nav_pose : {x: -2.048, y: -0.561, z: 0.008, yaw: 1.0}
# map_2:
# map_url_param: '/home/users/turtlebot3_ws/src/turtlebot3/turtlebot3_navigation2/map
/turtlebot3_world.yaml'
# initial_pose: {x: 155.94, y: 78.79, z: 0.0, yaw: 0.036}
# nav_pose : {x: 154.115, y: 80.52, z: 0.0, yaw: 0.036}
source /opt/ros/foxy/setup.bash
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
cd turtlebot3_ws
source install/setup.bash
ros2 launch turtlebot3_navigation2 navigation2.launch.py
cd ~
mkdir multi_map_navigation_ws
cd multi_map_navigation_ws
mkdir src
cd src
git clone https://github.com/StanleyChueh/Multi_map_navigation.git
cd ..
colcon build --symlink-install
source install/setup.bash
ros2 launch custom_nav custom_nav.launch.py
🤝 Please create an issue on this GitHub for any questions. This allows other people with the same question to find your answer. 🤝
Gazebo: https://youtu.be/_x5eRTNBcCU?si=bTipYbon7k8zvZaG
Real world: https://youtu.be/cTmAIjYQQr8?si=eYbt1TPjzM0RRFgE