Skip to content

Multiple TB3 navigation in RViz and Gazebo. Last task in Smart Methods training.

License

Notifications You must be signed in to change notification settings

RghdE/N-Robots-Navigation

Repository files navigation

N-Robots-Navigation

Multiple TB3 navigation in RViz and Gazebo

This package is for controlling multiple TB3 on Gazebo and RViz

$ cd /catkin_ws/src

$ git clone https://github.com/raghdutionn/N-Robots-Navigation 

$ cd .. (go back to parent directory)

$ catkin_make

$ cd 

$ source ~/catkin_ws/devel/setup.bash

$ sudo apt-get install ros-melodic-turtlebot3

$ sudo apt-get install ros-melodic-turtlebot3-gazebo

$ sudo apt-get install ros-melodic-turtlebot3-navigation

$ roscore (1st tab)

$ export TURTLEBOT3_MODEL=burger (2nd tab)

$ roslaunch turtlebot3_gazebo turtlebot3_world_multi.launch 

note: if you got an error like this:

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_06_22_14

just go to the exact directory and launch the file, and hopefully it'll work

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_06_34_18

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_06_47_26


$ export TURTLEBOT3_MODEL=burger (3rd tab)

$ roslaunch turtlebot3_navigation turtlebot3_navigation_multi.launch

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_07_30_45

after you adjust each robot's laser to the map using 2D Pose Estimate (notice there are two 2D pose Estimate and 2D Nav Goal for each robot) you'll see the map like this:

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_07_54_18


$ rostopic list (to see the topics)

VirtualBox_Ubuntu 18 4 Bionic_23_08_2021_07_57_00


$ rosrun rqt_graph rqt_graph

rosgraph

Final Result:

n_robots_nav.webm.mov

Resources:

[1] - https://github.com/syahmi001/multinav_turtlebot3/tree/f4ab06f46fb0b8d13386ec61e46b4ff756de0269

[2] - https://github.com/ROBOTIS-GIT/turtlebot3

About

Multiple TB3 navigation in RViz and Gazebo. Last task in Smart Methods training.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published