KRS编译与安装1. KRS是什么KRS(Kria Robotics Stack)是Xilinx Kira基于ROS2二次开发的机器人开发套件,github Xilinx/KRS 仓库地址:https://github.com/Xilinx/KRS. 2. 编译与安装并不顺利KRS的编译与安装并不太顺利.使用经历了不太舒心的一个过程,开始KV260宣传1小时可部署,发现这个说法只适用于smartcam等应用.这类应用有预编译的固件和应用.这类行业应用有很多开箱的例子,个人比较关心codec部分,从gstream的pipeline有分析codec的使用,未来有所发现再另发个帖子描述下过程. 对于KRS来讲并没有预先编译好的镜像可供使用,分析原因感觉主要有以下几个方面吧: 3. kv260的编译工具链安装按照前边的install.html,这里安装条件要求ubuntu22,且ram要32G,这个我的主机满足要求,ubuntu22其实确实还有不稳定的地方,我有次默认升级后无法进入系统,进启动项,选择旧内核才进入了系统. 4. KRS代码包编译与交叉编译PC上已经安装了ROS2 humble版本,首先安装依赖的软件 sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu sudo apt-get install qemu-user-static sudo apt-get install ros-humble-gazebo-ros ros-humble-gazebo-plugins ros-humble-gazebo-msgs 创建krs工作空间,并下载代码包数据 mkdir -p ~/krs_ws/src; cd ~/krs_ws ################################################### # 3. Create file with KRS 1.0 additional repos ################################################### cat << 'EOF' > krs_humble.repos repositories: perception/image_pipeline: type: git url: https://github.com/ros-acceleration/image_pipeline version: ros2 tracing/tracetools_acceleration: type: git url: https://github.com/ros-acceleration/tracetools_acceleration version: humble firmware/acceleration_firmware_kr260: type: zip url: https://github.com/ros-acceleration/acceleration_firmware_kr260/releases/download/v1.1.1/acceleration_firmware_kr260.zip acceleration/adaptive_component: type: git url: https://github.com/ros-acceleration/adaptive_component version: humble acceleration/ament_acceleration: type: git url: https://github.com/ros-acceleration/ament_acceleration version: humble acceleration/ament_vitis: type: git url: https://github.com/ros-acceleration/ament_vitis version: humble acceleration/colcon-hardware-acceleration: type: git url: https://github.com/colcon/colcon-hardware-acceleration version: main acceleration/ros2_kria: type: git url: https://github.com/ros-acceleration/ros2_kria version: main acceleration/ros2acceleration: type: git url: https://github.com/ros-acceleration/ros2acceleration version: humble acceleration/vitis_common: type: git url: https://github.com/ros-acceleration/vitis_common version: humble acceleration/acceleration_examples: type: git url: https://github.com/ros-acceleration/acceleration_examples version: main EOF ################################################### # 4. import repos of KRS 1.0 release ################################################### vcs import src --recursive < krs_humble.repos 下面编译AMD64下的包,一切顺利 下面是交叉变异开发板上的包,这里遇到了问题,交叉编译sysroot中没有安装ros2相关的包,报下面的错误 使用sysroot下的build-sysroot.sh --update ros-humble-desktop命令在sysroot中安装了ros2 humble版本,但编译时开始报找不到代码文件错误
5. kv260开发板安装ROS2,并测试KRS开发板上需要手动安装ROS2 Humble, 使用小鱼一键盘安装工具修改源,后直接 apt安装即可,安装耗时约半个小时. 将编译出的install文件夹scp到kv260开发板,运行demo如下 |
只有小组成员才能发言,加入小组>>
3007个成员聚集在这个小组
加入小组1255 浏览 0 评论
【KV260视觉入门套件试用体验】四、KV260 视觉入门套件和固件更新
1885 浏览 0 评论
【KV260视觉入门套件试用体验】Vitis AI Library体验之OCR识别
1391 浏览 0 评论
【KV260视觉入门套件试用体验】Vitis AI 通过迁移学习训练自定义模型
2033 浏览 0 评论
【KV260视觉入门套件试用体验】KV260系列之Petalinux镜像+Resnet 50探索
1509 浏览 0 评论
【KV260视觉入门套件试用体验】 硬件加速之—使用PL加速FFT运算(Vivado)
2345浏览 2评论
【AMD KV260视觉入门开发套件试用】4、简单几步体验ubuntu 20.04.3 LTS运行人员检测应用
1748浏览 1评论
6107浏览 1评论
【KV260视觉入门套件试用体验】老刘记事儿KV260初体验之Micro-SD选型提速研究(三)
1056浏览 1评论
【KV260视觉入门套件试用体验】KV260部署yolov3实现车辆和行人检测
2761浏览 1评论