This project has built successfully in Ubuntu18.04 and Ubuntu20.04.
Please install ROS first. Follow this page to install ROS.
- sudo apt install ros-${ros_version}-base-local-planner
- sudo apt install ros-${ros_version}-move-base
- sudo apt install ros-${ros_version}-turtlebot3
git clone https://github.com/GKSAMA/multi_navigation.git
cd ..
catkin_make
source devel/setup.bash
- 将src/multi_turtlebot3_navigation/lib下的动态库copy至 /usr/lib/x86_64-linux-gnu/gazebo-9/plugins/目录下
- 需要对每个终端添加变量
TURTLEBOT3_MODEL=burger或者直接在.bashrc中添加export TURTLEBOT3_MODEL=burger` - 在src下运行git clone https://github.com/locusrobotics/robot_navigation.git 以使用dwb_local_planner
- roslaunch multi_turtlebot3_navigation multi_turtlebot3_gazebo.launch
- roslaunch multi_turtlebot3_navigation move_base_tree.launch
- roslaunch multi_turtlebot3_navigation navigation_tree.launch
(optional)
rosrun multi_turtlebot3_navigation multi_showpath
rosrun multi_turtlebot3_navigation navigation_by_waypoints
(data record)
rosrun multi_turtlebot3_navigation datarecord
(data analysis)
rosrun multi_turtlebot3_navigation showdata