Abstract
Autonomous nano-drones, powered by vision-based tiny machine learning (TinyML) models, are a novel technology gaining momentum thanks to their broad applicability and pushing scientific advancement on resource-limited embedded systems. Their small form factor, i.e., a few 10s grams, severely limits their onboard computational resources to sub-\SI{100}{\milli\watt} microcontroller units (MCUs). The Bitcraze Crazyflie nano-drone is the \textit{de facto} standard, offering a rich set of programmable MCUs for low-level control, multi-core processing, and radio transmission. However, roboticists very often underutilize these onboard precious resources due to the absence of a simple yet efficient software layer capable of time-optimal pipelining of multi-buffer image acquisition, multi-core computation, intra-MCUs data exchange, and Wi-Fi streaming, leading to sub-optimal control performances. Our \textit{NanoCockpit} framework aims to fill this gap, increasing the throughput and minimizing the system's latency, while simplifying the developer experience through coroutine-based multi-tasking. In-field experiments on three real-world TinyML nanorobotics applications show our framework achieves ideal end-to-end latency, i.e. zero overhead due to serialized tasks, delivering quantifiable improvements in closed-loop control performance ($-$30\% mean position error, mission success rate increased from 40\% to 100\%).
Abstract (translated)
自主纳米无人机,搭载基于视觉的微型机器学习(TinyML)模型,因其广泛的应用性和在资源受限嵌入式系统中推动科学进步的能力而迅速发展。这些无人机小巧的体积(几十分之一克)严重限制了其机载计算资源,仅能使用低于100毫瓦微控制器单元(MCUs)。Bitcraze Crazyflie纳米无人机成为事实上的行业标准,提供了丰富的低级控制、多核处理和无线电传输编程MCU。然而,由于缺乏一个简单而高效的软件层来实现时间最优的多缓冲图像采集、多核计算、MCU间数据交换以及Wi-Fi流媒体的时间优化流水线,机器人工程师往往未能充分利用这些宝贵的机载资源,从而导致了次优的控制性能。 我们的NanoCockpit框架旨在填补这一空白,通过协程式的多任务处理简化开发人员体验,同时提高系统吞吐量并最小化延迟。实地实验表明,在三个真实的TinyML纳米机器人应用中,我们的框架能够实现理想的端到端时延(即由于串行任务导致的零额外开销),并在闭环控制性能方面带来了可量化改进:平均位置误差减少了30%,使命成功率从40%提高到了100%。
URL
https://arxiv.org/abs/2601.07476