安装一些功能包 Install some packages:
sudo apt install ros-melodic-joint-state-publisher-gui
sudo apt install ros-melodic-ros-control
sudo apt install ros-melodic-ros-controllers
sudo apt install ros-melodic-gmapping
sudo apt install ros-melodic-ackermann-msgs
sudo apt install ros-melodic-navigation
sudo apt install ros-melodic-teb-local-planner
将三个功能包放进工作空间src目录下,进行编译
cp /three packages /***_ws/src
cd ..
catkin_make
source devel/setup.bash
roslaunch racebot_gazebo racebot.launch
roslaunch racebot_gazebo gmapping.launch
roslaunch racebot_gazebo tianracer.launch
roslaunch racebot_gazebo gmapping.launch
将鼠标点击键盘控制窗口,即可控制小车运动进行建图。Click the mouse on the keyboard control window, you can control the movement of the car to build a map.
roslaunch racebot_gazebo tianracer.launch
roslaunch racebot_gazebo navigation.launch
roslaunch racebot_gazebo teb_demo.launch
roslaunch racebot_gazebo teb_demo.launch
roslaunch racebot_gazebo racebot.launch
roslaunch racebot_gazebo slam_navi.launch
roslaunch racebot_gazebo tianracer.launch
roslaunch racebot_gazebo slam_navi.launch