LITHE: Bridging Best-Effort Python and Real-Time C++ for Hot-Swapping Robotic Control Laws on Commodity Linux
He Kai Lim, Tyler R. Clites

TL;DR
LITHE enables dynamic, real-time evolution of robotic control laws by bridging Python and C++ on commodity hardware, allowing safe hot-swapping without interrupting high-frequency control loops.
Contribution
LITHE introduces a lightweight architecture combining CPU isolation, lock-free IPC, and multi-threaded linking to dynamically update real-time controllers from Python without disruption.
Findings
Achieves WCET < 100 μs and jitter < 4 μs under load.
Enables Python-based AI to modify real-time control logic on-the-fly.
Demonstrates online system identification with LLM supervision.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRobotic Locomotion and Control · Social Robot Interaction and HRI · Real-Time Systems Scheduling
