[go: up one dir, main page]

Skip to content

Project for a diff drive robot mapping while navigating using slam_toolbox and Nav2

Notifications You must be signed in to change notification settings

PrakritTyagi/my_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_bot

This is a simple bot that can autonomously navigate unknown environments. It has a lidar, camera and wheel encoders for sensing and a differential drive for movement.

Installation

Necessary dependencies:

  • ROS2 Humble (Developed in this version)
  • Gazebo classic
  • Navigation2
  • SLAM Toolbox
  • xacro
  • gazebo_ros_pkgs
  • twist_mux
  • ros2_control

To install the package, run the following commands:

mkdir -p ~/ws_my_bot/src && cd ~/ws_my_bot/src
git clone https://github.com/PrakritTyagi/my_bot.git 
cd ~/ws_my_bot
colcon build
source install/setup.bash

Usage

To launch the gazebo simulation, run the following command:

ros2 launch my_bot display.launch.py 

To launch the slam tool, run the following command:

ros2 launch my_bot online_async_launch.py use_sim_time:=true

To launch the navigation tool, run the following command:

ros2 launch nav2_bringup navigation_launch.py use_sim_time:=true

Simulation World

The simulation world is duckytown.world. It is a simple world in urban environment with a few obstacles.

Simulation World

Navigation while Mapping

SLAM_while_navigating.mp4

Docker

The docker file is provided in the my_bot/dockerfile directory. You can copy it to the root of the workspace and build the docker image. I used this with vscode remote container extension.

  • If while running docker the gazebo takes time to load, change the world file to a simple one. In my experience, you would have to wait a while for the gazebo to load the duckytown.world file.

About

Project for a diff drive robot mapping while navigating using slam_toolbox and Nav2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published