赞
踩
本文章是ROS2 Humble版本的最新autoware源码安装方式、autoware.universe安装方式;
下面是ROS 2 Humble的官方安装说明
//ROS 2 Humble Debian安装说明
http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
需要注意的是:
https://raw.githubusercontent.com
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
上面的网址无法访问,所以ros.key无法下载;造成代码报错,即GPG key无法添加;
解决方法:
sudo curl -sSL https://gitee.com/hirowen/ros.key/raw/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
或者直接在gitee网址下载ros.key,然后在下载文件的目录执行下面的命令:
sudo cp ros.key /usr/share/keyrings/ros-archive-keyring.gpg
sudo apt-get -y update
sudo apt-get -y install git
git clone https://github.com/autowarefoundation/autoware.git
https://github.com/autowarefoundation/autoware/blob/main/setup-dev-env.sh
安装命令如下:
cd autoware
./setup-dev-env.sh
cd autoware
./setup-dev-env.sh --no-nvidia --no-cuda-drivers --runtime
找到并修改下面的文件:
//文件位置
/autoware/ansible/roles/ros2/tasks/main.yaml
//第14行进行调整
url: https://raw.githubusercontent.com/ros/rosdistro/master/ros.key
//修改为如下地址
url: https://gitee.com/hirowen/ros.key/raw/master/ros.key
可以多尝试几次,或者第二天再试;
解决思路,未实际测试:
https://mp.weixin.qq.com/s?__biz=MzU1NjEwMTY0Mw==&mid=2247538690&idx=1&sn=cef61930268608b5011d19a79935060a&chksm=fbc82166ccbfa870d2b97403178abc64815a6414d6fd1000dde984ff282cd753c0bd19f1218e&scene=27
解决思路,未实际测试
# 参考链接
https://mirrors.tuna.tsinghua.edu.cn/help/rosdistro/
# 手动模拟 rosdep init
sudo mkdir -p /etc/ros/rosdep/sources.list.d/
sudo curl -o /etc/ros/rosdep/sources.list.d/20-default.list https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
# 为 rosdep update 换源
export ROSDISTRO_INDEX_URL=https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml
rosdep update
cd autoware
mkdir src
vcs import src < autoware.repos
source /opt/ros/humble/setup.bash
rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
更新资源包的话,可以按照下面流程进行,检查更新、代码更新、重新编译;
cd autoware
git pull
vcs import src < autoware.repos
vcs pull src
source /opt/ros/humble/setup.bash
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
参考链接:
[1]: http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
[2]: https://autowarefoundation.github.io/autoware-documentation/main/installation/
[3]: https://mirrors.tuna.tsinghua.edu.cn/help/rosdistro/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。