arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.07442cs.RO
收藏

LITHE:连接最佳努力Python与实时C++以实现机器人控制律的热插拔

LITHE: Bridging Best-Effort Python and Real-Time C++ for Hot-Swapping Robotic Control Laws on Commodity Linux

Department of Mechanical and Aerospace Engineering, University of California Los Angeles(加州大学洛杉矶分校机械与航空航天工程系)

He Kai Lim, Tyler R. Clites

AI总结:

LITHE通过轻量级架构实现Python与C++的实时控制律热插拔,提升机器人系统在动态环境中的适应能力。

摘要:

现代机器人系统依赖于分层控制,其中高级的“大脑”(Python)指导低级的“脊柱”(C++实时控制器)。尽管其必要性,这种分层结构使得大脑难以完全重写脊柱的不可变控制逻辑,从而抑制了对不同任务和环境的基本适应能力。传统方法需要复杂的中间件、专有硬件或牺牲实时性能。我们提出了LITHE(Linux隔离线程用于分层执行),这是一种轻量级的软件架构,将机器人控制分层架构压缩到商用单板计算机(Raspberry Pi 4B带pi3hat)上,同时保持大脑和脊柱之间安全的频率解耦。LITHE集成了严格的CPU隔离(isolcpus)、无锁进程间通信(IPC)和流水线执行,以在最小的抖动下满足高频截止时间。通过添加多线程动态链接,LITHE使基于Python的大脑能够动态演化1kHz C++脊柱的逻辑,而无需中断。我们通过最坏执行时间(WCET)< 100 μs和最大释放抖动(MRJ)< 4 μs在高负载下验证了“功能性实时”系统的性能。我们展示了一个新的应用,其中大型语言模型(LLM)监督器进行在线系统识别,以实时演化控制器,而不会中断1kHz的控制循环。本质上,LITHE消除了“不可变编译代码”瓶颈,使最佳努力大脑能够合成和注入全新的控制律到实时脊柱中。这填补了高级AI与低级实时控制之间的关键差距,以解锁在安全的人机协作系统中连续实时演化的具身智能。

英文摘要:

Modern robotic systems rely on hierarchical control, where a high-level "Brain" (Python) directs a lower-level "Spine" (C++ real-time controller). Despite its necessity, this hierarchy makes it difficult for the Brain to completely rewrite the Spine's immutable control logic, consequently inhibiting fundamental adaptation for different tasks and environments. Conventional approaches require complex middleware, proprietary hardware, or sacrifice real-time performance. We present LITHE (Linux Isolated Threading for Hierarchical Execution), a lightweight software architecture that collapses the robot control hierarchy onto a commodity single-board computer (Raspberry Pi 4B with pi3hat), while maintaining safe frequency decoupling between the Brain and Spine. LITHE integrates strict CPU isolation (isolcpus), lock-free inter-process communication (IPC), and pipelined execution to meet high-frequency deadlines with minimal jitter. By adding multi-threaded dynamic linking, LITHE enables a Python-based Brain to dynamically evolve the logic of a 1kHz C++ Spine without interruption. We validate "functional real-time" system performance with worst-case execution time (WCET) < 100 $μ$s and maximum release jitter (MRJ) < 4 $μ$s under heavy load. We demonstrate a novel application where a large language model (LLM) supervisor performs online system identification to evolve a real-time controller on-the-fly, without interrupting the 1 kHz control loop. In essence, LITHE eliminates the "immutable compiled code" bottleneck for best-effort Brains to synthesize and inject completely new control laws into the real-time Spine. This bridges a critical gap between high-level AI and low-level real-time control to unlock continuous real-time evolution of embodied intelligence in safe, human-in-the-loop systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑