Skip to content
SP
All work

Independent robotics compiler prototype, 2026

RoboWeaver

An LLVM-style compiler for robotics: a plain-language task is lowered through a typed intermediate representation, RoboIR, into a verified robot skill.

581
tests across 68 files
12
registered robot profiles
3
code targets: ROS 2, URScript, ABB RAPID
75%
branch-coverage floor in CI
RoboWeaver dashboard compiling the request 'Pick the red cube and place it into the blue bin' for a Franka Emika Panda. A panel lists request parsing as recorded, object position as assumed and robot motion as computed.
A real compile for a Franka Panda. The evidence panel separates what was recorded, assumed and computed.

The problem

"Pick up the red cube" sounds simple. Executing it safely needs a target robot, capability checks, a task graph, kinematics, trajectories, safety constraints, simulation evidence and controller-specific output. Without a shared representation, each of those layers quietly makes its own assumptions.

The approach

One typed intermediate representation that every stage reads. Task parsing is deterministic by default. The target-independent program is lowered separately for each robot, and code generators consume only the verified IR, so missing capabilities and unsafe plans become structured diagnostics instead of late runtime surprises.

What I did

  • Designed RoboIR, a structured intermediate representation for lowering high-level robot tasks into behaviour trees and simulation workflows.
  • Implemented task parsing, robot-backend interfaces and capability diagnostics, using Python, ROS 2 and MuJoCo to develop and test the execution pipeline.
  • Evaluated hardware bridges through simulation and virtual serial loopback.

How it works

  1. Instruction

    Plain language, routed deterministically across 18 actions

  2. RoboIR

    Typed program, lowered separately for each target robot

  3. Capability checks

    A task the robot cannot perform fails here, with a diagnostic

  4. Motion planning

    Inverse kinematics and joint trajectories

  5. Verification

    Workspace, joint, velocity and bounded forbidden-zone checks

  6. Code generation

    ROS 2 packages, BehaviorTree.CPP XML, URScript, ABB RAPID

  7. Simulation and runtime

    Native simulation, optional MuJoCo, telemetry and recovery

Key decisions

  • A typed IR as the fixed point, borrowed from LLVM

    One representation lets a planner, a simulator and a code generator share a pipeline instead of each re-deriving intent from the instruction.

  • Deterministic by default, with the LLM as an optional helper

    A local Ollama co-pilot can explain results and propose fixes, but it cannot bypass diagnostics, verification or deployment gates. The reproducible path stays reproducible.

  • Failures are structured diagnostics

    A missing capability or unsafe plan stops the pipeline with a coded error (RW1xx to RW7xx) that names the cause and the fix, rather than a warning the compiler proceeds past.

  • In the driving domain, the policy and its rulebook are compiled apart

    If rules were compiled into the policy, obeying them would be true by construction. Monitoring them independently against the trajectory actually produced makes it a falsifiable claim.

From the tool itself

A real diagnostic: asking a mobile base to tighten a bolt

Error RW102: Cannot compile skill 'skill_m8_bolt_407db03cd329' for backend 'temi'.
  Reason: RoboIR requires sensing.force_torque; Temi does not declare it.
  Fixes:  attach and register the sensor, or select a compatible controller.

What has been checked

  • 581 tests across 68 files, covering the compiler, diagnostics, planning, code generators, simulation, safety checks and hardware protocols.
  • CI runs on Python 3.10 and 3.12 with a 75% branch-coverage floor, plus dependency audits, Bandit and CodeQL.
  • CI builds one generated package with ROS 2 Humble colcon, so generated output is compiled, not only produced.

What has not

  • Physical-robot validation is a separate step. Hardware-in-the-loop evidence is not part of CI.
  • Default scenes use explicitly labelled assumed poses, and no camera detector is bundled.
  • Collision planning is bounded sampled geometry, not continuous or self-collision proof.
  • Orientation and dynamics planning are incomplete, and only PICK has a native process-outcome model.
  • Research and simulation software, not a certified robot safety controller.

Working on something related?

I am looking for a Master's thesis or visiting research placement on LLM pipelines, covering their reliability, evaluation and structured output, including language-guided robotics, starting in winter semester 2027/28.