Skip to content

icclab/tb3_multirobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tb3_multirobot localicazation and navigation

This project starts from the nav2 bringup examples in ROS2. Differently from the proposed nav2 multirobot example, where each tb3 has his own RviZ and his own map, here the two tb3s are spawned on the same single shared map and one single RviZ instance is used for visualization.

Launch command is:

ros2 launch tb3_multirobot two_tb3_simulation_launch.py headless:=False use_composition:=False 

In RviZ the initial position is automatically set, but can be adjusted if needed using the tool configurator and setting the initial pose topic using either robot_1 or robot_2 prefix. The 2D Goal Pose in RviZ can also be similarly configured using the tool configurator to navigate on the given map.

As an alternative, under the scripts folder, there is a basic Python3 script BasicNavigator.py to move the robot around. Change the namespace for the robot to move either robot_1 or robot_2 and give it the pose you like.

tb3_multirobot SLAM

Similar to the simple navigation and localization, SLAM functionalities are available using one single joint map and a single RViZ for two tb3s.

To launch the project with SLAM functionalities we need the following project to merge the two maps into one single map https://github.com/icclab/mapMergeForMultiRobotMapping-ROS2 Clone and build also that repo into your workspace. The configuration of the map topics is pretty simple in the merge_map.py file.

After building and sourcing your workspace use the following command to launch the SLAM project:

ros2 launch tb3_multirobot two_tb3_simulation_launch.py headless:=False use_composition:=False slam:=True

Again you can use RviZ and the 2D Goal Pose in RviZ configured for either of the robots, or the BasicNavigator.py script.

You can save the obtained map for instance with the following command.

ros2 run nav2_map_server map_saver_cli -f my_map

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages