- Install Nav2 on ROS2 Humble
- Generate a map with SLAM
- Make a robot navigate from point A to point B using the map
- Install ROS2 Humble on Ubuntu 22.04
- No need to buy any hardware
- Gazebo simulation
- Install Navigation2 and TurtleBot3
sudo apt install ros-humble-navigation2 ros-humble-nav2-bringup ros-humble-turtlebot3*
- Specify the TurtleBot3 model by opening bashrc via
gedit ~/.bashrc
and save it by adding this lineexport TURTLEBOT3_MODEL=waffle
- Create
ros2_nav2_ws
folder, and go to the folder bycd ros2_nav2_ws/
- Create
src
folder, and go to the folder bycd src
ros2 pkg create --build-type ament_cmake --node-name my_node my_pkg
cd my_pkg/
code .
- Create
urdf
folder, and make a file namedmy_robot.urdf
- Write the urdf code
ros2 launch urdf_tutorial display.launch.py model:=/home/mahfuz/ros2_nav2_ws/src/my_pkg/urdf/my_robot.urdf