Technical insight7 min read

Why AI planning and real-time robot control belong in separate layers

Foundation models can interpret open-ended tasks; robot execution still depends on bounded timing, constraints and defined failure behavior. Reliable Physical AI systems give each layer a different job.

By:Matrix Dimension Robotics Engineering

Why AI planning and real-time robot control belong in separate layers

The short answer: language and vision models are useful precisely because they can work with ambiguity. A manipulator or mobile base, however, needs measurable deadlines, predictable execution and explicit behavior when something goes wrong. Separating those concerns preserves AI flexibility without placing open-ended inference inside a high-frequency control loop.

One instruction becomes at least four engineering layers

LayerPrimary inputOutputQuestion it must answer
IntentLanguage and task contextStructured goal and constraintsWhat outcome is requested, and what must not be violated?
PerceptionCameras, state and workpiece dataObject pose and scene stateWhere is the target, and is the evidence sufficient to act?
Task and motion planningGoal, robot model and sceneReviewable stages and trajectoriesIs the motion reachable, collision-aware and within constraints?
Real-time executionTrajectory, feedback and safety stateJoint/base commands and feedbackDo cycle time, jitter and fault handling meet the application need?

MoveIt Task Constructor models a complex task as interdependent stages and passes state between them. Its PlanningScene represents both robot state and the surrounding world. That makes a request such as “pick up the cable” a sequence of inspectable steps—not a single model response. The official MTC documentation also keeps planning and execution as distinct operations.

Low latency is not the definition of real-time

The ROS 2 real-time design material frames the problem around deadlines, predictability and the failure mode after a missed deadline. A call that is fast on average can still be unsuitable for deterministic control if it occasionally blocks. The design guidance discusses separating real-time and non-real-time work and avoiding sources of nondeterminism such as dynamic allocation, page faults and lower-priority work blocking a real-time thread.

The planning layer should produce a constrained task—not motor commands

  1. Translate language into a structured goal. Name the object, destination, allowed contact, speed limits and stopping conditions.
  2. Validate the goal against the current scene. Check perception confidence, robot state, collision geometry and tool state.
  3. Generate reviewable stages and trajectories. Check reachability, joint limits, collision constraints and time parameterization before execution.
  4. Hand execution to the real-time layer. Read feedback, issue commands and monitor faults on the required cycle.
  5. Return outcome and exceptions upstream. Success, deviation, grasp failure and safety events become inputs to the next planning decision.

Industrial networking solves a different deterministic problem. EtherCAT Technology Group describes on-the-fly frame processing and distributed clocks for predictable transfer and synchronization. That supports the execution layer; it does not replace task or motion planning.

Architecture review checklist

  • Does language output pass through a structured task and constraint check?
  • Do perception results carry confidence, timestamps and failure handling?
  • Does planning use current robot state and an updated collision scene?
  • Are cycle time, jitter, bus synchronization and load conditions measured?
  • Are emergency stop, protective stop and limits independent from open-ended AI?
  • Does the end-to-end demonstration include recovery, not only one successful run?

Matrix Dimension perspective

The useful product boundary is a clear contract between layers. AI proposes intent and candidate plans; the planning layer produces a trajectory that respects robot and scene constraints; the real-time layer executes only confirmed commands and returns state continuously. Product claims should still be published from tests on a named robot, load, network and task—not inferred from architecture alone.

Safety boundary: ISO 10218-1:2025 addresses safety requirements for the industrial robot, while complete applications and integration also involve ISO 10218-2:2025. This article explains architecture; it does not replace an application risk assessment, functional-safety design or conformity work.

Frequently asked questions

Can a foundation model directly command robot joints?

Open-ended model output should not become joint commands without constraints. A safer architecture converts intent into a structured goal, checks scene, collision, limits and safety state, then hands execution to a real-time layer.

Does real-time simply mean faster?

No. Real-time is about completing work predictably before a defined deadline and specifying what happens if that deadline is missed.

Why does a dual-arm system make layering more important?

Two arms add synchronization, mutual collision, shared-object and contact-force constraints. Planning handles coordination while the execution layer maintains deterministic feedback and synchronization.

Sources

These primary references support the architecture, real-time and safety boundaries discussed above.

  1. ROS 2 Design — Introduction to Real-time Systems
  2. ROS 2 Design — Proposal for Implementation of Real-time Systems
  3. MoveIt — MoveIt Task Constructor
  4. EtherCAT Technology Group — EtherCAT Technology
  5. ISO 10218-1:2025 — Industrial robot safety requirements

Evaluating robot control, bimanual manipulation or a mobile platform?

Talk to Matrix Dimension →