Skip to content
Physical AI

Architecture

The complete Physical AI pipeline

Thirteen stages take a robot from a CAD model to a walking machine evaluated in the real world. Click any block to open the chapter that explains it.

  1. Design

    1. 01Robot CAD & Mechanical DesignGeometry, materials, mass properties
    2. 02Robot Description (MJCF/URDF)Bodies, joints, actuators, sensors
  2. Simulation

    1. 03Physics EngineDynamics, contact, integration
    2. 04Actuator & Sensor ModelsSaturation, delay, noise, IMU
  3. Interfaces

    1. 05Communication & Firmware InterfacesCAN, SocketCAN, UDP, FusionX
    2. 06Observation Construction45-dim actor vector
  4. Learning

    1. 07RL Training EnvironmentEpisodes, rewards, resets
    2. 08Actor-Critic Training45-dim actor, 64-dim critic
    3. 09Trained PolicyFrozen actor network
  5. Validation

    1. 10Simulation ValidationHeld-out conditions, disturbances
    2. 11Processor-in-the-Loop ValidationReal firmware, simulated body
  6. Deployment

    1. 12Hardware DeploymentActor inference on the robot
    2. 13Real-World EvaluationMeasure, compare, iterate

The loop closes at stage 13. Real-world evaluation feeds back into the robot description and simulator (system identification), the actuator and sensor models, and the training setup.

Physics simulation

Every simulation step turns the current state, applied forces and constraints into the next state. MuJoCo runs this loop at a fixed timestep. For Asimov that is 200 Hz (5 ms) Documented.
  1. State (q, q̇)positions & velocities
  2. Forward kinematicsbody poses, contact candidates
  3. Applied forcesactuators, gravity, damping
  4. Collision detectiongeom pairs in contact
  5. Constraint / contact solvecontact forces, joint limits
  6. Integrateq̈ → q̇ → q, advance by Δt

Loops back: Integrate → State (q, q̇)

Explained in Chapter 2 and Chapter 3.

Sensor data flow

Physical quantities become numbers through sensors. Each stage adds noise, bias, quantisation or delay before the data reaches the policy.

Joint state

  1. Joint motion
  2. Encoderangle counts
  3. Motor controllerposition, velocity estimate
  4. CAN framebinary payload
  5. Joint position & velocity obs12 + 12 values

Body orientation and rotation

  1. Body rotation & acceleration
  2. IMUgyroscope + accelerometer
  3. Sensor fusionorientation estimate
  4. Projected gravity + angular velocity3 + 3 values

CAN communication

A shared differential bus connects the robot computer to the motor controllers. Message IDs set priority. Bus load and arbitration set timing. Specific IDs and payload layouts shown on this site are Illustrative example.
  1. Robot ComputerSocketCAN interface
  2. CAN BusCAN_H / CAN_L, differential
  3. Motor Controllersfirmware, current loop
  4. Encoders and Actuatorsmeasure & apply torque

Firmware integration (processor-in-the-loop)

In processor-in-the-loop validation the real firmware and IO path run against a simulated body. Joint feedback arrives over virtual CAN. Simulated IMU data travels over UDP into the same FusionX path used on hardware Documented.

Joint path

  1. MuJoCo Physics Engine
  2. Virtual CAN Joint Feedbackvcan via SocketCAN
  3. Firmware / IO Processing
  4. Observation Construction
  5. Locomotion Policy
  6. Actuator Commands

Loops back: Actuator Commands → MuJoCo Physics Engine

IMU path

  1. MuJoCo IMU Sensorsimu_ang_vel, imu_lin_acc
  2. UDP Bridge
  3. Firmware Sensor FusionFusionX
  4. Projected Gravity
  5. Policy Observation
Source: Menlo, Understanding Your Simulation Environment. Explained in Chapter 6.

Reinforcement learning training

The policy improves through repeated interaction. It acts, the simulated environment responds with a new observation and a reward, and the learning algorithm updates the weights.
  1. Observation
  2. Actor Policy
  3. Action
  4. Environment
  5. New Observation and Reward
  6. Learning Algorithm
  7. Updated Policy Weights

Loops back: Updated Policy Weights → Observation

Actor-critic architecture

The actor sees only what the real robot can measure (45 values). The critic also sees 19 privileged simulator quantities (64 values) and is discarded after training Documented.

Actor

  1. MuJoCo Environment
  2. Hardware-compatible observations (45)
  3. Actor45 → 512 → 256 → 128 → 12
  4. 12 Joint Actions
  5. Simulated Robot

Critic

  1. MuJoCo Environment
  2. Hardware + privileged observations (64)
  3. Critic64 → 512 → 256 → 128 → 1
  4. Value Estimate

Update

  1. Rewards + Value Estimates
  2. RL Optimization
  3. Actor and Critic Weight Updates

Sim-to-real deployment

At deployment, only the trained actor runs. No critic, no privileged observations, no reward computation and no optimiser.
  1. Real Robot Sensors + Command + Action History
  2. 45-Dimensional Observation
  3. Trained Actor
  4. 12 Joint Actions
  5. Low-Level Actuator Controller
  6. Physical Robot

Proposed: progressive observation masking

Proposed research A research idea, not a validated method. The actor starts with all 64 observations, and privileged groups are masked in stages until only the 45 deployable inputs remain. The critic keeps all 64 throughout.
  1. 1All 64 observations
  2. 2Mask passive toe state
  3. 3Mask foot contact forces
  4. 4Mask foot height, air time, contact
  5. 5Mask base linear velocity
  6. 6Train on 45 deployable observations
The removal order is itself a hypothesis. See the research proposal.