π Launch Instructions β warehouse_simulation-main¶
This guide explains how to bring up the complete warehouse simulation and navigation stack from the warehouse_simulation-main project.
π¦ Prerequisites¶
- ROS 2 Humble installed
ros2_wsworkspace created and built- The
warehouse_simulation-maindirectory placed in~/ros2_ws/src/ - Workspace built with
colcon buildand sourced
cd ~/ros2_ws
colcon build
source install/setup.bash
π§± Package Overview¶
| Package | Description |
|---|---|
custom_world_pkg |
Contains the warehouse Gazebo world and models |
path_planner_pkg |
Launches the Nav2 stack and sends goals |
π§ Step-by-Step Launch¶
1. π Launch Gazebo Simulation¶
ros2 launch custom_world_pkg launch_simulation.launch.py
- Loads the TurtleBot4 into the custom warehouse Gazebo world
- Gazebo GUI will open
2. πΊοΈ Launch Navigation Stack¶
Open a new terminal, and run:
source ~/ros2_ws/install/setup.bash
ros2 launch path_planner_pkg nav2.launch.py
This launches: - Map server - AMCL (localization) - Behavior tree navigator - Planner & controller servers
3. π― Send Goal from Custom Node¶
Still in a separate terminal:
source ~/ros2_ws/install/setup.bash
ros2 run path_planner mission_executor
This node:
- Sends a goal to /navigate_to_pose
- Uses the Nav2 BT Navigator to handle path planning & control
π Visualize in RViz2¶
Optionally, launch rviz2:
rviz2
Configure to display:
- /map
- /odom
- /path
- /tf
- /amcl_pose
- /goal_pose
π§ Final Flow Summary¶
Gazebo βΆ TF, scan, joint_states
β³ Nav2 Stack βΆ planner, controller, AMCL
β³ mission_executor.py βΆ sends custom goal
β³ RViz2 βΆ real-time feedback and map visualization
β Output¶
Once launched: - Robot will localize and navigate - Paths will be visible in RViz2 - Simulation runs in Gazebo using your custom world