首先要下载源码 :
wget https://raw.githubusercontent.com/ros2/ros2/dashing/ros2.repos
如果被挡了下不下来 直接连 git hub 下载
https://github.com/ros2/ros2
vcs import src < ros2.repos
下载有可能报错, 网路很多方法我都没试成功,我是重复到没报错为止.
在home底下
mkdir ROS2/src
把源码传到rk3588板上 src底下.
cd src
先加入這個才有辦法安裝編譯工具:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) mai