跨界融合:基于RK3576与Ubuntu虚拟机的AIoT与ROS开发环境深度整合

硬核上车!RK3576基于Ubuntu部署ROS机器人系统详细攻略(上) 检查/opt/ros/cross-compile/cross-compile.mixin及build_ros2.sh, 将其中的Python版本号修改成RK LinuxSDK对应的版本号,例如:310修改成38,其中310表示Python3.10版本,以此类推~3.10修改成3.8。在RK Linux SDK的Buildroot目录中,检查是否存在ros2_dep.config文件​​​​​​​。如需要自己下载其它版本的源码,进入docker后,可使用vcs-import:​​​​​​​。 阅读详情

跨界融合:基于RK3576与Ubuntu虚拟机的AIoT与ROS开发环境深度整合

在当今技术快速迭代的背景下,AIoT(人工智能物联网)与ROS(机器人操作系统)的融合正成为智能设备开发的新趋势。瑞芯微RK3576作为一款高性能、低功耗的处理器,凭借其多核架构和丰富的计算核心,为这类复杂应用场景提供了理想的硬件平台。然而,许多开发者在实际项目中面临一个共同挑战:如何在熟悉的Ubuntu虚拟机环境中高效配置和优化开发环境,以充分发挥RK3576的潜力,同时实现AIoT与ROS的无缝整合?这不仅涉及虚拟机与宿主机的网络配置、ROS库的交叉编译,还包括NPU加速支持的启用和实时性能的测试。本文将深入探讨这一跨界融合的实践路径,为AIoT开发者、机器人工程师以及技术团队提供一套完整、可操作的解决方案。

1. 环境准备与基础配置

在开始深度整合之前,确保开发环境的基础配置正确无误是至关重要的。Ubuntu虚拟机的选择建议使用18.04或20.04版本,这两个版本在兼容性和稳定性方面经过广泛验证,能够更好地支持RK3576的开发工具链。VMware Workstation Pro 16.2.5是推荐的虚拟化软件,它在网络配置和硬件模拟方面表现出色,尤其适合处理资源密集型的开发任务。

安装Ubuntu虚拟机时,需要注意几个关键参数:内存分配建议不少于8GB,如果涉及Android源码编译,则可能需要16GB或更高;处理器核心数应根据宿主机的逻辑处理器数量合理设置,例如宿主机有16个逻辑处理器时,虚拟机可以配置为8核;磁盘空间至少需要100GB,推荐200GB以上,以容纳源码、编译输出和工具链。网络适配器应选择“桥接模式”,这样虚拟机可以获得独立的IP地址,便于与宿主机和RK3576开发板进行通信。

提示:避免在虚拟机命名、用户名和路径中使用汉字,这可能导致不可预见的错误。此外,定期创建虚拟机快照可以在配置出错时快速恢复,节省大量时间。

安装完成后,首先更新系统并安装基础工具:

sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential curl git net-tools

接下来,配置SSH服务以实现宿主机与虚拟机的便捷通信:

sudo apt install -y openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh

检查虚拟机的IP地址(使用ifconfig或ip a命令),并在宿主机中使用SSH客户端(如PuTTY或终端)进行连接测试。这一步骤为后续的文件传输和远程管理奠定了基础。

2. 开发工具链与交叉编译环境搭建

针对RK3576的ARM架构,我们需要在Ubuntu虚拟机中配置交叉编译工具链。瑞芯微官方提供了完整的SDK,其中包含编译内核、驱动和应用程序所需的工具。首先,下载并解压SDK包(通常命名为rk3576_linux_sdk.tar.gz)到虚拟机的适当目录,例如/opt/rk3576_sdk/。

解压后,设置环境变量是关键一步。编辑~/.bashrc文件,添加以下内容:

export RK3576_SDK_PATH=/opt/rk3576_sdk
export PATH=$RK3576_SDK_PATH/toolchain/bin:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-

保存后执行source ~/.bashrc使配置生效。验证工具链是否正确安装:

aarch64-linux-gnu-gcc --version
泰山派3-RK3576开发环境搭建(一):VMware虚拟机安装Ubuntu22.04全流程 本文详细介绍了为泰山派3-RK3576开发板搭建开发环境的第一步:在Windows系统上使用VMware Workstation Pro虚拟机安装Ubuntu22.04 LTS操作系统的完整流程。内容涵盖VMware软件下载安装、Ubuntu镜像获取、虚拟机创建与硬件配置优化,以及安装后的基本设置,为后续编译Android、Debian系统镜像奠定坚实基础。 阅读详情

相关推荐

实战指南:RK3576在Ubuntu上搭建ROS2机器人开发环境全解析

本文提供了一份详细的实战指南,手把手教你如何在瑞芯微RK3576开发板上,基于Ubuntu系统搭建完整的ROS2机器人开发环境。内容涵盖从硬件选型、软件准备、Docker环境配置、Buildroot依赖集成,到ROS2源码交叉编译、常见问题解决(如TRY_RUN错误),直至最终烧录系统并成功运行ROS2经典demo的全过程。旨在帮助开发者高效利用RK3576的强劲性能与NPU算力,快速启动可靠的机器人项目开发与部署。

weixin_29192211的博客 337

RK3576+Ubuntu22.04+ROS2嵌入式机器人系统构建指南

嵌入式Linux系统是机器人控制的核心基础,其本质是硬件抽象层(HAL)与实时操作系统内核的深度协同。理解设备树(DTB)、U-Boot启动流程、内核ABI兼容性及ROS2运行时依赖关系,是实现ARM平台稳定部署的关键技术路径。尤其在RK3576这类集成NPU与PCIe的异构SoC上,Ubuntu 22.04因LTS周期匹配Linux 6.1主线内核与ROS2 Humble ABI,成为兼顾驱动支持、实时性与AI推理能力的最优选择。本文聚焦RK3576开发板从裸机启动到ROS2节点稳定运行的全链路实践,覆盖

weixin_29178069的博客 150

从零到一:RK3576开发板Ubuntu虚拟机环境搭建的避坑指南与性能调优

本文详细介绍了RK3576开发板在VMware虚拟机中搭建Ubuntu环境的完整流程与性能优化方案。针对瑞芯微RK3576处理器的特性,提供了虚拟机资源配置策略、Ubuntu版本选择、系统参数调优及编译效率提升的实战技巧,帮助开发者避免常见陷阱,显著提升开发效率。

sun99的博客 282

【Ubuntu22.04】RK3576 Linux6.10 主板接hub启动Type-C连接PC无法识别device设备问题(USB Gadget )

摘要:本文分析了RK3576开发板在Linux 6.10内核+Ubuntu 22.04系统下出现的USB Gadget识别异常问题。当设备以OTG模式开机并通过Hub连接PC时,PC无法识别为USB设备模式,但执行"/usr/local/bin/usbdevice restart"命令后可恢复正常。如果你正在开发基于 RK3576 的嵌入式系统,遇到相关问题,欢迎继续关注本博客,获取更多实战经验分享。

qq_34478161的博客 676

从赛题到实战:一份面向高职“区块链技术应用”赛项的食品溯源系统全栈部署与运维指南

本文为高职院校学生备战“区块链技术应用”技能大赛提供了一份详实的食品溯源系统全栈部署与运维指南。内容涵盖从理解赛题业务逻辑、绘制技术蓝图,到搭建4节点FISCO BCOS联盟链、部署管理平台与智能合约,再到核心运维技能与前后端联调测试的完整流程,旨在帮助参赛者将赛题转化为可运行的实战项目,全面提升区块链全栈开发与运维能力。

weixin_29172201的博客 708

别再手动算考勤了!教你用Python+企业微信API自动生成月度报表

本文介绍如何利用Python和企业微信API构建自动化考勤分析系统,实现从数据获取到可视化报表生成的全流程自动化。通过企业微信打卡接口获取数据,使用Pandas进行高效清洗和分析,并生成Excel和HTML格式的报表,大幅提升考勤统计效率。系统支持智能判定考勤状态,如迟到、早退等,并可通过定时任务实现月度自动化运行。

weixin_27875131的博客 300

因内存不足原因导致fragment空白解决方案

在androidx之前,一般我们防止Fragment重建是在actvitity的onCreate方法中使用savedInstanceState?.remove(“android:support:fragments”)或者savedInstanceState?但是在androidx中,使用这两行代码不生效,但是看FragmentActivity中的FRAGMENT_TAG还是android:support:fragments,那为什么会不生效呢,后来点进去看发现。

qq_39431405的博客 553

Vivado工程芯片型号更换全流程:从IP更新到生成新bit文件(避坑指南)

本文详细介绍了Vivado工程中更换芯片型号的全流程,包括IP更新、约束文件适配和生成新bit文件的关键步骤。特别针对FPGA开发中常见的兼容性问题提供避坑指南,帮助开发者高效完成芯片迁移,确保设计稳定性和性能优化。

weixin_42549451的博客 307

保姆级教程:手把手带你玩转英飞凌TC397开发板的板载资源(CAN FD、LCD、SD卡)

本文提供英飞凌TC397开发板的全面开发指南,涵盖CAN FD通信、LCD显示、SD卡文件系统和以太网通信等核心功能。通过详细的代码示例和硬件连接说明,帮助开发者快速上手并充分利用开发板的丰富资源,实现高效嵌入式系统开发。

weixin_33726313的博客 247

深入理解「二进制掩码」:从原理到实践

二进制掩码本质上是一个二进制数,用于通过位操作(如与、或、非、异或等)选择性地操作目标数据的某些位。掩码的每一位(bit)可以看作一个“开关”,决定是否对目标数据的对应位进行操作。二进制掩码是位操作的灵魂,掌握它不仅能提升代码效率,还能解锁许多高级编程技巧。从基础的位提取到复杂的子集枚举,掩码的应用无处不在。希望本文的讲解和代码示例能帮助你快速上手,并在实际项目中灵活运用。如果你有更多关于掩码的疑问或应用场景,欢迎在评论区留言交流!

m0_73494933的博客 2443

手把手教你学RDMA驱动开发专栏--第7章 队列对(QP)与数据传输实现​7.3 完成队列(CQ):事件通知机制与轮询/中断模式

本章详细探讨了RDMA驱动中完成队列(CQ)的事件通知机制,重点分析了轮询与中断两种模式的实现原理及优化策略。CQ作为操作结果的报告载体,其核心功能包括结果反馈、事件通知和资源同步。轮询模式通过主动查询实现低延迟,适合高性能场景;中断模式通过被动通知节省CPU资源,适用于低频事件处理。驱动实现需考虑CQ溢出防护、多QP共享同步等关键问题,并提供事件通道机制将CQE传递给用户态。通过对比两种模式的优缺点及适用场景,揭示了RDMA系统在性能与资源间的权衡机制。

MHD0815的博客 409

【OpenClaw从入门到精通】第73篇:30天OpenClaw实战挑战——从零搭建个人数字助理(Day15-21)万字超详细高阶实战版

经过前两周的基础部署与功能搭建,你已拥有可自动化干活的AI助理与数字员工团队,但距离“高阶精通”仍有差距。本文聚焦第三周(Day15-21)核心实战,围绕安全审计、语音能力接入、Token成本控制、Agent Loop优化、One-Liner指令五大核心模块,结合真实落地案例与踩坑经验,提供超详细实操指南。通过本文,你将掌握生产级安全加固方案、语音交互全流程配置、低成本高性价比使用策略、Agent自主闭环优化技巧,以及一句话搞定复杂任务的高效指令用法,同时完成中期复盘与最后九天冲刺规划

专注于人工智能、软件开发、工控自动化、工厂数字化及智能化等领域,希望和大家共同进步! 373

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

上一篇: 肉包 Roubao:用 Kotlin 与 VLM 重构手机自动化的 Android 原生实践
下一篇: ModBus协议在工业物联网中的核心作用与实战解析
vim8coder
博客等级 码龄1天 0粉丝 1693原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址