You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This repository contains the code to produce a Gazebo Classic Simulation of a Turtlebot3 (waffle) robot (designed by Robotis) that navigates its way through a simple maze autonomously.
This repository contains the code to produce aGazebo Classic Simulation of aTurtlebot3 (waffle) robot (designed byRobotis) that navigates its way through a simple mazeautonomously.
This repository was built while following the learnings and instructions of theUdemy CourseROS2 Autonomous Driving and SLAM using NAV2 with TurtleBot3 created byMuhammad Luqman.
The software tools mainly used in building this project are :
Python3 Interpreter
Basic ROS2 Framework
Gazebo Classic Simulator
turtlebot3_gazebo ROS2 package
slam_toolbox ROS2 package
Navigation2 Stack
Operating System :
Ubuntu (you can use the latest version available)
In order to deploy this project successfully, all the above listed softwares must be installed in your Ubuntu OS.
What is DIFFERENT in this Project ?
Originally, this project was built as anament_python type ROS2 package in the above mentioned Course. However, in this repository, I have built the project as anament_cmake type ROS2 package.
Deployment
To deploy this project, please follow the below mentioned steps.
Create a new folder at a suitable space in your Ubuntu OS. You can name the folder anything you want. But for the sake of this demonstration, I am naming it asCloned Repo
Open anew terminal inside the folder.
Clone this repository inside the folder by running the following terminal command.
This will open aGazebo Classic Simulator Window (with the simulatedmaze world and aTurtlebot3 robot - inside of it) AND aRViz2 Window (where you can see a 2D map of the maze world).
UseMouse Scroll Wheel toZoom IN/Zoom OUT in both theGazebo andRViz2 enviroments.
Useleft mouse button (to PAN) andMouse Scroll Button (to ROTATE) -- for adjusting the position and view of themaze world in theGazebo environment - as per your convenience.
Useleft mouse button (to ROTATE) andMouse Scroll Button (to PAN) -- for adjusting the position and view of the2D maze map in theRViz2 environment - a per your convenience.
Also, before proceeding to the next step, it is recomended to keep both theGazebo andRviz2 windows opened side by side, so that you that you can see see what's happening in both the windows at the same time.
Open a second parallel terminal inside theAutonomous Maze Solving Turtlebot3 Simulation directory (while keeping the previous terminal alive) and run the following command from it :
source install/setup.bashros2 run autonomous_tb3 maze_solver.py
Output
Once you have followed all the mentioned steps inside theDeployment section, the followingsimulation output can be seen in theGazebo Classic Simulator window.
You can also see the robot followingthe same trajectory in the2D maze map of theRViz2 environment simultaneously. I could not screen record theRViz2 simulation to show you - due to my computer hardware limitations.
This repository contains the code to produce a Gazebo Classic Simulation of a Turtlebot3 (waffle) robot (designed by Robotis) that navigates its way through a simple maze autonomously.