工作站/个人电脑/PX2任选其一:
1:
Generic x86
Intel Core i7 (推荐), Core i5, Atom
内存16-32G
超过30G的固态SSD
NVIDIA GTX GeForce GPU (980M或以上)
2:
NVIDIA DRIVE
DRIVE PX2,要求>30G的SSD固态
1 ubuntu16.04(推荐) 或者ubuntu14.04
2 ROS kinetic (对应ubuntu16) 或者ROS indigo (对应ubuntu14)
以上满足要求后,可以开始安装。有两种安装方式:通过docker安装或者通过source源码编译安装。
注意:github上此项目推荐通过docker安装,用过Linux的都知道,包,库之间的依赖关系比较复杂,常常出现不兼容的情况,docker就像是一个容器,把包,库之间的依赖关系隔离开来,而且不必像虚拟机那样固定的分配内存与硬盘空间造成资源浪费。
但是:本文先讲如何通过source安装,因为docker安装autoware涉及docker的其他步骤,以及Nvidia的docker安装,等有时间再另开文章写。
地址:https://github.com/CPFL/Autoware/wiki/Source-Build
1:(必须)ROS indigo (Ubuntu 14.04) or ROS jade (Ubuntu 15.04) or ROS kinetic (Ubuntu 16.04)
2:(必须)OpenCV 2.4.10 或者更新版本
3:(必须)Qt 5.2.1 或更新版本
4:CUDA (可选)
5:FlyCapture2 (optional):
6:Armadillo (optional)
假设你已经满足版本,进入正题:
ubuntu14.04:
sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin
sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install libmosquitto-dev
ubuntu16.04
sudo apt-get update
sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin libmosquitto-dev gksu
1 克隆github仓库
cd $HOME
git clone https://github.com/CPFL/Autoware.git --recurse-submodules
如果你是从github上下载压缩包,解压后,还需要
git submodule update --init --recursive # 在解压后的文件夹下执行
cd ~/Autoware/ros/src
catkin_init_workspace
cd ../
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
./catkin_make_release
如果没出错,就可以运行:
cd $HOME/Autoware/ros
./run
1 检查 ROS,opencv,QT是否满足版本要求
2 如果在初始化工作空间并编译 这一步出错,请复制出错信息到github:
https://github.com/CPFL/Autoware/issues
链接:https://www.autoware.ai/sample/sample_moriyama_data.tar.gz
解压后,包含
欢迎交流,有任何疑问或问题,请在下方留言或者发送邮件:[email protected]