Ubuntu 20.04 环境下Autoware.universe 与 Carla 0.9.13 联合仿真

安装内容:
  • ROS Galactic
  • Autoware.universe based on ROS Galactic
  • Carla 0.9.13
  • UnrealEngine 4.26
  • Openplanner (additional files: op-bridge/op-agent/scenariorunner/map data)
Autoware.universe 与 OpenPlanner 的安装

Openplaner 是 Dr. Hatem 贡献在 github 中的代码,用来实现 Autoware.universe 与 Carla 0.9.13 的联合仿真。但使用Dr. Hatem 提供的教程安装的 Autoware在后续的编译过程中存在较多问题。使用官方教程并修改配置文件,能避免很多不必要的bug。

  • 安装git
sudo apt-get -y update
sudo apt-get -y install git
构建 Autoware 开发环境
  • 复制 autowarefoundation/autoware 到本地
    当前官方教程中支持ubuntu 20.04 的autoware 版本是基于 ROS Galactic的。 在复制相关代码时,选择galactic 分支。
cd ~
mkdir carla-autoware-universe
cd carla-autoware-universe/
git clone https://github.com/autowarefoundation/autoware.git -b galactic
  • 自动安装相关系统依赖
cd autoware
./setup-dev-env.sh
构建工作空间
  • 创建 src 文件夹并复制代码库
mkdir src
  • 在将代码库复制到本地之前,需要先修改 autoware.repos 文件,自动下载 openplanner 的代码库。在 autoware/autoware.repos 文件28-31 行中加入以下内容
universe/external/open_planner:
    type: git
    url: https://github.com/ZATiTech/open_planner.git
    version: main
  • 运行命令,将代码库下载到本地。Autoware 使用 vcstool 构建工作空间。
vcs import src < autoware.repos
安装 Autoware 以来的ROS 包
  • 由于 ROS Galactic 已经停止更新,因此在官方教程的基础上加入 --include-eol-distros 参数,以便下载 galactic 的 pkg。
rosdep update --include-eol-distros
source /opt/ros/galactic/setup.bash
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
  • 使用 colcon 编译工作空间
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
安装 UnrealEngine 4.26

Carla 0.9.13 使用的引擎

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值