Autoware 安装运行

一. 配置

  • ubuntu 18.04
  • ROS Melodic
  • Autoware 1.12.0 (以上)
  • CUDA 10.0(可选)

二. 安装步骤

安装一些依赖

sudo apt install libglew-dev
sudo apt install ros-melodic-nmea-navsat-driver libgps-dev
sudo apt install ros-melodic-lanelet2
sudo apt install ros-melodic-visualization-msgs 
sudo apt install ros-melodic-jsk-recognition-msgs 
sudo apt install ros-melodic-automotive-platform-msgs
sudo apt install ros-melodic-automotive-navigation-msgs
sudo apt install ros-melodic-pacmod-msgs
sudo apt install ros-melodic-velodyne-pointcloud
sudo apt install ros-melodic-gps-common
mkdir -p autoware.ai/src
cd autoware.ai
wget -O autoware.ai.repos "https://raw.githubusercontent.com/Autoware-AI/autoware.ai/1.12.0/autoware.ai.repos"

autoware.ai/autoware.ai.repos 修改

repositories:
  autoware/common:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/common.git
    version: 1.12.0
  autoware/core_perception:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/core_perception.git
    version: 1.12.0
  autoware/core_planning:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/core_planning.git
    version: 1.12.0
  autoware/documentation:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/documentation.git
    version: 1.12.0
  autoware/messages:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/messages.git
    version: 1.12.0
  autoware/simulation:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/simulation.git
    version: 1.12.0
  autoware/utilities:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/utilities.git
    version: 1.12.0
  autoware/visualization:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/visualization.git
    version: 1.12.0
  drivers/awf_drivers:
    type: git
    url: https://gitlab.com/autowarefoundation/autoware.ai/drivers.git
    version: 1.12.0
  citysim:
    type: git
    url: https://github.com/CPFL/osrf_citysim.git
    version: 27bd05bc6c762b3ad8c9bb85f678d4b7ce7a27c5
  car_demo:
    type: git
    url: https://github.com/CPFL/car_demo.git
    version: e364448fad421cb6244c9f828f978d8d877dcbf9
  drivers/ds4:
    type: git
    url: https://github.com/tier4/ds4.git
    version: 5aa2f7f53a67992fffa7c801ed9c663a380b5d4a

编译,不使用CUDA

colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release

使用CUDA的话

 AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
  • 编译过程中缺少依赖的话,自己安装一下:
sudo apt install libglew-dev
sudo apt-get install ros-melodic-nmea-navsat-driver libgps-dev
sudo apt install ros-melodic-lanelet2
sudo apt install ros-melodic-visualization-msgs 
sudo apt install ros-melodic-jsk-recognition-msgs 
sudo apt install ros-melodic-automotive-platform-msgs
sudo apt install ros-melodic-automotive-navigation-msgs
sudo apt install ros-melodic-pacmod-msgs
sudo apt install ros-melodic-velodyne-pointcloud
sudo apt install ros-melodic-gps-common
  • 编译成功的话:
    在这里插入图片描述

三. 运行程序

1. 下载数据

wget https://autoware-ai.s3.us-east-2.amazonaws.com/sample_moriyama_data.tar.gz
wget https://autoware-ai.s3.us-east-2.amazonaws.com/sample_moriyama_150324.tar.gz

或者这里下载:

https://pan.baidu.com/s/1WELbGVUu-APX7O9jnqgNjg#list/path=%2F&parentPath=%2F

6hw9

2. 运行

cd autoware.ai 
source install/setup.bash 
roslaunch runtime_manager runtime_manager.launch

显示不了图形界面的话,安装一下:

sudo apt install rosbash

3. 启动仿真

  • 切换Tab,选择 Simulation
  • ref 选择 sample_moriyama_150324.bag
  • 点击play 按钮, 右侧的Playing…%0 出现进度条之后,点击Pause按钮
  • 点击右下角的 RViz 按钮,启动RViz视图,File -> Open Config,打开配置文件
    autoware.ai/src/autoware/documentation/autoware_quickstart_examples/launch/rosbag_demo/default.rviz 
    
  • 转到 Quick Start 选项卡,逐一加载预先安装的roslaunch脚本,脚本位于
    autoware.ai/src/autoware/documentation/autoware_quickstart_examples/launch/rosbag_demo/
    
  • 启动后某个节点后,取消暂停仿真将在Rviz中显示结果
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Authware古诗教程是一款专门为学习和欣赏古诗而设计的软件。它提供了丰富的古诗资源和相关的学习功能,帮助用户更好地理解和感受古代文化。 首先,Authware古诗教程拥有庞大的古诗库,涵盖了各个朝代的经典古诗。用户可以通过浏览功能,随时查阅自己喜欢的古诗,了解作者背景和作品的内涵。 其次,Authware古诗教程提供了详细的古诗解析和注释。对于初学者来说,读懂古诗可能会有一些难度,但通过软件提供的解析和注释,用户可以更好地理解古人的用词和意境,进一步欣赏古诗之美。 此外,Authware古诗教程还提供了古诗背景介绍和相关阅读材料。了解古代社会背景和文化氛围,能够更加全面地把握古诗的内涵和艺术价值。通过相关阅读材料的学习,用户可以拓展自己的知识面,提升古诗欣赏的层次。 最后,Authware古诗教程还提供了互动学习和分享社区。用户可以与其他热爱古诗的人交流学习,分享自己的感悟和见解。这种互动交流可以激发更多的灵感和思考,使学习和欣赏古诗变得更加有趣和有意义。 总之,Authware古诗教程是一款功能丰富、易于操作的软件,它可以帮助用户更好地学习和欣赏古诗,了解古代文化,并与其他人分享自己的想法。无论是初学者还是资深爱好者,都可以在这个平台上找到自己需要的资源和交流机会。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值