赞
踩
操作系统:ubuntu16.04
ROS版本:kinetic
Gazebo版本:7.0.0
mkdir -p ~/racecar_ws/src
cd ~/racecar_ws/src
catkin_init_workspace
git clone https://github.com/xmy0916/racecar.git
cd ..
catkin_make
创建成功如下:
echo "source ~/racecar_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
roslaunch racecar_gazebo racecar_runway.launch
新建终端
cd racecar_ws/
roslaunch racecar_gazebo slam_gmapping.launch
原图:
成果图:
保存地图的路径:/racecar_ws/src/racecar/racecar_gazebo/map
cd ~/racecar_ws/src/racecar/racecar_gazebo/map
rosrun map_server map_saver -f map_racecar
分析:在控制小车运动时,小车很容易翻车。不过最终能运行完地图。
新建终端
cd racecar_ws/
roslaunch racecar_gazebo racecar_runway_navigation.launch
新建终端:
cd racecar_ws/
roslaunch racecar_gazebo racecar_rviz.launch
新建终端
cd racecar_ws/
rosrun racecar_gazebo path_pursuit.py
上图,对比发现小车确实打导航定位成功。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。