cd ~/catkin_ws/src/
git clone https://gitee.com/bingda-robot/robot_navigation.git
cd ~/catkin_ws/
catkin_make
sudo apt-get install ros-$ROS_DISTRO-amcl ros-$ROS_DISTRO-move-base ros-$ROS_DISTRO-slam-gmapping ros-$ROS_DISTRO-slam-karto ros-$ROS_DISTRO-cartographer ros-$ROS_DISTRO-cartographer-ros ros-$ROS_DISTRO-dwa-local-planner ros-$ROS_DISTRO-teb-local-planner ros-$ROS_DISTRO-map-server ros-$ROS_DISTRO-hector-slam*
echo "export BASE_TYPE=NanoRobot" >> ~/.bashrc
source ~/.bashrc
【无标题】
![](https://img-home.csdnimg.cn/images/20240711042549.png)