Skip to content
Physical AI
Chapter 01 18 min read

Introduction to Physical AI

What it means for intelligence to have a body: perception, decision-making and action in a world governed by physics.

A chatbot that gets an answer wrong produces a bad sentence. A walking robot that gets an answer wrong falls over, and the floor does not accept a retry. This chapter explains what changes when intelligence has to act through a body, and why that change pulls physics, control theory and machine learning into one discipline.

What Physical AI means

Physical AI is artificial intelligence that perceives the physical world through sensors and acts on it through actuators, such as motors, grippers and wheels. Its outputs are not text or pixels. They are forces, torques and motions, and they obey the laws of physics whether or not the software expects them to.

A useful working definition:

A Physical AI system closes a loop between measurement and physical action, continuously, under real-time constraints, in an environment it does not fully control.

Each part of that sentence matters:

  • Closes a loop. The robot's action changes the world, and that change appears in its next measurement. The system is always reacting to the results of its own behaviour.
  • Continuously. A walking controller does not answer one question and stop. It produces a new decision tens or hundreds of times per second, for as long as the robot is switched on.
  • Real-time constraints. A late decision is a wrong decision. A balance correction that arrives 100 ms late can push the robot further toward a fall.
  • Not fully controlled. Floors are slippery, payloads shift, motors heat up, and people push robots. The environment is never exactly the one that was planned for.

How it differs from conventional software AI

Software AI (e.g. language or vision models)Physical AI (e.g. a walking robot)
OutputTokens, labels, imagesJoint targets, torques, forces
Effect of an errorA wrong answer, which can be regeneratedA fall, a collision, damaged hardware
TimingLatency affects user experienceLatency changes the physics, and late actions destabilise the system
FeedbackUsually one-shot (input → output)Closed-loop: output changes the next input
DataAbundant, static datasetsExpensive. It must be generated by interacting with the world or a simulator
Ground truthOften available (labels)Often unavailable. A robot cannot directly measure its own velocity or contact forces

The last row is easy to underestimate. Much of this site is about the gap between what a robot is doing (its true physical state) and what it can measure (its observations).

Embodied intelligence

Embodiment is the idea that intelligence is shaped by having a body. A body brings opportunities and constraints that a disembodied program never meets:

  • Mechanics do part of the work. A passive, compliant toe absorbs impact without any software involvement. A well-designed leg can be stable before a controller does anything.
  • The body limits what is possible. Motors have torque limits. Joints have travel limits. Mass determines how fast the robot can accelerate.
  • The body determines what can be sensed. An IMU measures rotation rate and specific force at one point on the robot. It cannot measure the position of the robot in the room.

A controller for a humanoid is therefore not a general-purpose intelligence. It is tuned to one body: its masses, motor characteristics, sensor placement and timing. Change the body and the controller usually has to change too.

Perception, decision-making and physical action

Every robot, from a thermostat to a humanoid, runs some version of the same loop:

  1. SensorsIMU, joint encoders
  2. State / Observationsnumbers the controller can use
  3. Controller or Policydecides the next action
  4. Actuatorsmotors apply torque
  5. Physical Environmentgravity, contact, friction

Loops back: Physical Environment → Sensors

The perception–action loop. Each block is the subject of at least one later chapter (click a block to jump there).
  1. Sensors convert physical quantities into electrical signals, and then into numbers. A joint encoder reports an angle. An IMU reports angular velocity and acceleration.
  2. State or observations are the numbers the controller actually receives. They are usually incomplete, noisy and slightly out of date. The distinction between state (everything needed to predict the future) and observation (what you can measure) runs through every later chapter.
  3. The controller or policy maps observations to actions. It might be a hand-written equation such as a PID controller, or a trained neural network.
  4. Actuators turn commands into physical effort. An electric motor produces torque, but only up to a limit, after a delay, and with internal friction.
  5. The environment responds according to physics. The robot accelerates, its feet hit the ground, and it tips or recovers. The new physical state is measured again by the sensors.

Try breaking the loop below. With feedback, the controller corrects pushes, friction and its own errors. Without feedback, it has no idea anything went wrong.

Loading simulation…
▸How this works · equations · source · limitationsOpen in lab

What it demonstrates

How sensing, observation, control, actuation and the physical environment form a closed loop, and what happens when the loop is broken, delayed or noisy.

How it works

A 1 kg point mass slides on a rail with dry (Coulomb) and viscous friction. Every 2 ms the simulated sensor measures its position with Gaussian noise and timestamps the reading. The controller only receives the reading from `latency` seconds ago, as a real robot would after sensing, filtering and bus transmission.

A proportional-derivative (PD) controller converts the position error into a force command. The actuator clips the command to ±6 N, and Newton's second law (with friction and any push you apply) is integrated with semi-implicit Euler. With the loop open, the controller sends a fixed command and ignores the sensors.

Adjustable parameters

  • Closed / open loop
  • Target position (−1 to 1 m)
  • Proportional gain Kp (0–80 N/m)
  • Damping gain Kd (0–20 N·s/m)
  • Sensor noise σ (0–5 cm)
  • Latency (0–250 ms)
  • External push (25 N for 80 ms)

Known limitations

  • One degree of freedom. Real robots have many coupled joints.
  • The latency is a pure delay. Real systems also have jitter and occasional dropped messages.
  • Friction uses a simple Coulomb + viscous model with a crude stiction band.

Equations

u(t)=Kp (x∗−x^(t−τ))−Kd x˙^(t−τ)u(t) = K_p\,\big(x^* - \hat{x}(t-\tau)\big) - K_d\,\hat{\dot x}(t-\tau)
F=clip⁡(u,−Fmax,Fmax)F = \operatorname{clip}(u, -F_{max}, F_{max})
mx¨=F+Fdist−μc sign⁡(x˙)−b x˙m\ddot{x} = F + F_{dist} - \mu_c\,\operatorname{sign}(\dot x) - b\,\dot x
x˙k+1=x˙k+x¨k Δt,xk+1=xk+x˙k+1 Δt\dot x_{k+1} = \dot x_k + \ddot x_k\,\Delta t, \quad x_{k+1} = x_k + \dot x_{k+1}\,\Delta t

Core update rule

// One 2 ms tick of the loop (lib/sim/feedback.ts)
buffer.push({ t, x: x + noise * gaussian() });        // 1. sense
while (buffer[1]?.t <= t - latency) buffer.shift();
const obs = buffer[0].x;                               // 2. observe (delayed)
const u = closedLoop
  ? kp * (target - obs) - kd * obsVel                  // 3. decide
  : openLoopForce;
const F = clamp(u, -maxForce, maxForce);               // 4. actuate
const a = (F + disturbance + friction(v, F)) / mass;   // 5. physics
v += a * dt;                                           // semi-implicit Euler
x += v * dt;

Explained in Chapter 1: Physical AI

Three things to try:

  • Open the loop, then press Push the robot. Nothing corrects the disturbance.
  • Increase latency to about 120 ms with the default gains. The robot starts to oscillate. The controller keeps reacting to where the robot was, not where it is.
  • Raise sensor noise. The controller amplifies the noise into shaky forces. This is why real velocity estimates are filtered, and why filtering itself adds delay.

Why robotics needs physics, control and machine learning

A modern legged robot draws on three disciplines at once, and each covers a weakness in the others.

Physics describes how the body moves when forces act on it: Newton's laws, rigid-body dynamics, contact and friction. Without physics, you cannot simulate a robot, design its motors, or predict whether a motion is feasible. Chapter 2 builds this up from first principles.

Control theory describes how to choose inputs so that a dynamic system does what you want, stably. It gives the tools to reason about feedback, gains, delay and stability margins, which are exactly the effects in the experiment above. Even a learned walking policy usually sits on top of a classical low-level controller that turns joint targets into motor torques.

Machine learning, specifically reinforcement learning, provides a way to find controllers for problems too complex to solve by hand. Balancing a 12-joint biped through intermittent foot contact is one of them. Instead of deriving the controller, you specify what good behaviour looks like (a reward) and let an optimiser search for it in simulation.

“The neural network replaces the physics.”

It does not. A learned policy is trained inside a physics simulator and deployed onto a physical body. If the simulator's physics or timing is wrong, the policy learns to exploit those errors. Most of the engineering effort in learned locomotion goes into making the simulated physics, sensors and timing match the real robot.

Traditional control versus learned control

Both approaches produce a function from observations to actions. They differ in how that function is found.

Traditional (model-based) control writes the controller down explicitly. A PD controller computes a torque from position and velocity error:

τ=Kp (q∗−q)−Kd q˙\tau = K_p\,(q^* - q) - K_d\,\dot q

For whole-body walking, engineers build simplified models (for example, the linear inverted pendulum), plan footsteps and centre-of-mass trajectories, and track them with optimisation-based controllers. The result is interpretable and analysable. It also takes significant expertise to design, and it can be brittle when reality departs from the simplified model.

Learned control represents the controller as a neural network with thousands to millions of parameters, at=πθ(ot)a_t = \pi_\theta(o_t), and tunes θ\theta by trial and error in simulation. It can discover behaviours that would be hard to write by hand, such as recovering from a stumble, and it handles contact-rich dynamics without an explicit model. In exchange, it is harder to analyse, it depends heavily on simulator fidelity, and it can fail in surprising ways outside its training distribution.

Traditional controlLearned control
Where the controller comes fromDerived by engineers from a modelOptimised from experience in simulation
InterpretabilityHigh: gains and equations have meaningLow: behaviour is distributed across weights
Handles complex contactHard, needs careful modellingNaturally, if the simulator captures it
Main riskModel too simple for realitySimulator differs from reality
Typical role todayLow-level joint control, safety layersHigh-level locomotion and recovery behaviours

In practice the two are layered. On a platform like Asimov, a learned policy running at 50 Hz outputs commanded joint targets, and lower-level actuator control turns those targets into motor effort at a much higher rate (see Chapter 6).

Simulation, training and deployment

Three phases are easy to confuse because they all involve "running the robot":

  • Simulation is computing how a model of the robot would move. A physics engine such as MuJoCo advances the robot's state in small time steps. Simulation by itself involves no learning. It is just prediction.
  • Training is the optimisation process that improves the policy. It uses simulation, often thousands of simulated robots in parallel, to collect experience, compute rewards and update network weights. Training is expensive and happens offline, before the robot walks.
  • Deployment (or inference) is running the finished, frozen policy on the robot. No rewards, no weight updates, no simulator. The policy just reads observations and outputs actions as fast as the control loop requires.
  1. Simulationphysics engine predicts motion
  2. TrainingRL updates policy weights
  3. Validationtest in sim, then processor-in-the-loop
  4. Deploymentfrozen policy on the real robot

What sim-to-real means

Sim-to-real transfer (often written sim2real) is the problem of taking a policy trained in simulation and making it work on physical hardware. A policy that walks perfectly in simulation has only demonstrated that it can exploit that simulator. Whether it walks on the real robot depends on how closely the simulator matched the real robot's physics, sensors and timing.

Menlo's Asimov documentation frames sim-to-real primarily as a data-matching problem. The policy must see the same type, timing and quality of data in simulation as on hardware. Menlo also attributes their sim-to-real performance mainly to the observation and actuation interface rather than to novelty in the network architecture.

Why a robot that works in simulation may fail on hardware

The causes fall into a few families. You can explore several of them below:

Loading simulation…
▸How this works · equations · source · limitationsOpen in lab

What it demonstrates

Why a controller that works perfectly in simulation can overshoot, lag or oscillate on hardware when the simulator omits friction, mass errors, latency, saturation or noise.

How it works

Two copies of the same 1-D robot run in parallel with an identical PD controller tuned on the ideal model. The ‘simulated’ copy uses the nominal model: no dry friction, nominal mass, no delay, effectively unlimited force.

The ‘real’ copy adds whichever unmodelled effects you enable. Both follow the same square-wave target. The difference between the two traces is the sim-to-real gap for this controller.

Adjustable parameters

  • Friction on/off
  • +35% mass on/off
  • Latency on/off and 5–150 ms
  • 8 N actuator limit on/off
  • Sensor noise on/off

Known limitations

  • The ‘real’ robot is still a simulation. It shows the kind of gap, not real numbers.
  • Real sim-to-real gaps also come from contact dynamics, backlash, compliance, thermal effects and unmodelled software paths.

Equations

gap(t)=∣xreal(t)−xsim(t)∣\text{gap}(t) = \lvert x_{real}(t) - x_{sim}(t) \rvert
mrealx¨=clip⁡ ⁣(u(t−τ))−μcsign⁡(x˙)−brealx˙m_{real}\ddot{x} = \operatorname{clip}\!\big(u(t-\tau)\big) - \mu_c\operatorname{sign}(\dot x) - b_{real}\dot x

Core update rule

const tgt = squareWave(t);           // same command for both
stepLoop(simRobot,  dt, NOMINAL_PLANT, CONTROLLER);
stepLoop(realRobot, dt, realPlant(gaps), { ...CONTROLLER, latency, noise });
gap = Math.abs(realRobot.x - simRobot.x);

Explained in Chapter 1: Physical AI

  • Unmodelled dynamics. Joint friction, backlash in gears, cable drag, flexible links and motor heating are often missing or simplified in simulation.
  • Parameter errors. The CAD model's mass and inertia rarely match the assembled robot exactly. Batteries, fasteners and wiring add mass in places the model doesn't know about.
  • Actuator behaviour. Real motors saturate at a torque limit, respond after a delay, and lose torque at high speed. A simulator that applies commanded torques instantly and exactly is optimistic.
  • Contact. Foot–ground contact is stiff, discontinuous and sensitive to geometry and friction coefficients. Small modelling choices change how a foot slips or rolls.
  • Sensing. Simulated sensors return perfect values unless noise, bias and drift are added on purpose. Some quantities that are trivial to read in simulation, such as the robot's exact linear velocity, cannot be measured directly on hardware at all (Chapter 4).
  • Timing. On a real robot, sensor readings arrive over a communication bus with delays and jitter, different joints may be read at slightly different moments, and commands take time to reach the motors (Chapter 5). A policy trained on perfectly synchronised, zero-latency data may never have seen a stale observation.

Menlo's documentation notes that many real-world failures come from timing skew, stale observations, bus jitter, or signals computed differently in simulation and on hardware, rather than from large mismatches in physics.

The standard countermeasures are to model what matters (actuator dynamics, delays, contact geometry), measure the real robot to tune the model (system identification), randomise what you cannot measure precisely (domain randomisation), and only give the policy inputs that will exist on the real robot. The rest of this site works through each of these.

How this connects to the rest of the site

  • Chapter 2 and Chapter 3 cover how the environment block is simulated.
  • Chapter 4 and Chapter 5 cover how the sensor and actuator blocks really behave, and how their data travels.
  • Chapter 6 shows how a real humanoid platform models all of this in simulation.
  • Chapters 7–9 cover how the controller block is learned.
  • The research section explores a proposed idea about what information the controller should see during training.

Limitations and common misconceptions

“If it works in simulation, the hard part is done.”

For learned locomotion, the simulator result is closer to the beginning than the end. Transfer, safety and robustness on hardware is where most of the remaining effort goes.

“More realistic graphics means a more realistic simulation.”

Rendering and physics are separate. A beautifully rendered robot can have completely wrong masses, contacts and timing. Chapter 2 explains the difference.

“The policy plans a walking motion.”

A typical locomotion policy does not plan a trajectory. At every control step it maps the current observation to the next action. The walking gait emerges from repeating that mapping many times per second.

Key takeaways

Key takeaways

  • Physical AI closes a continuous, real-time loop between measurement and physical action.
  • The controller never sees the true state. It sees observations that are incomplete, noisy and delayed.
  • Physics, control theory and machine learning each cover gaps in the others. Learned policies still depend on accurate physics and low-level control.
  • Simulation predicts, training optimises, deployment executes. They are different phases with different requirements.
  • Sim-to-real failures often come from timing, sensing and actuator interfaces, not just from physics.

References and further reading

  • Menlo, Asimov locomotion-training guide, the reference platform used throughout this site.
  • Menlo, Reinforcement Learning for Locomotion.
  • R. Pfeifer and J. Bongard, How the Body Shapes the Way We Think (MIT Press, 2006), on embodied intelligence.
  • K. J. Åström and R. M. Murray, Feedback Systems: An Introduction for Scientists and Engineers, 2nd ed. (Princeton, 2021). Free online.
  • J. Tobin et al., "Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World," IROS 2017.
  • J. Hwangbo et al., "Learning agile and dynamic motor skills for legged robots," Science Robotics, 2019.