-
Notifications
You must be signed in to change notification settings - Fork 113
Ubuntu 20.04 Setup Guide
HaiderAbasi edited this page Sep 12, 2022
·
2 revisions
- Follow along with the video tutorial from the author to setup the project.
- Install the required modules using the terminal.
- Clone the repository in your Home folder
git clone https://github.com/HaiderAbasi/ROS2-Path-Planning-and-Maze-Solving.git
- Navigate into your downloaded repository
cd /path/to/ROS2-Path-Planning-and-Maze-Solving/path_planning_ws
- Source your ROS2 installation to build workspaces
source /opt/ros/foxy/setup.bash
- Perform Colcon Build ( source ~/opt.ros )
colcon build
- Source your Workspace in any terminal you open to Run files from this workspace ( Basic thing of ROS2 )
source ~/ROS2-Path-Planning-and-Maze-Solving/path_planning_ws/install/setup.bash
- (Optional for Power USERs ) Add source to this workspace into bash file
echo "source ~/ROS2-Path-Planning-and-Maze-Solving/path_planning_ws/install/setup.bash" >> ~/.bashrc
NOTE: This upper command is going to add the source file path into your ~/.bashrc file ( Only perform it ONCE and you know what you are doing).This will save your time when running things from the Workspace
- Launch the ROS2 Simulation (Mazebot).
ros2 launch maze_bot maze_1_robot_camera.launch.py
- Open a new Terminal (Ctrl+Shift+T), then source the workspace again.
source ~/ROS2-Path-Planning-and-Maze-Solving/path_planning_ws/install/setup.bash
- Finally, Run the maze solver 👍.
ros2 run maze_bot maze_solver