Skip to content
Physical AI

An engineering notebook · robotics & reinforcement learning

Understanding Physical AI from First Principles.

From physics engines and robot dynamics to reinforcement learning and real-world humanoid locomotion, explained step by step and backed by simulations you can run in your browser.

Chapters
10
Experiments
47
Reference robot
12 + 2
Loading 3D model…

One connected system, not separate topics

A walking policy is only as good as the physics, sensors, timing and interfaces it was trained against. Each chapter covers one link in that chain and shows how it connects to the next.

Full system architecture
  1. 02PhysicsNewton → contact → integration
  2. 03MuJoComjModel, mjData, mj_step
  3. 04SensorsIMU, encoders, frames
  4. 05CommunicationCAN, SocketCAN, UDP
  5. 06Asimov sim200 / 50 Hz, PIL
  6. 07Policy45 → 512 → 256 → 128 → 12
  7. 08Actor-critic64 privileged inputs

Chapters

Read in order. Each chapter starts with the intuition, then the equations, data formats and code.

  1. 01Introduction to Physical AIWhat it means for intelligence to have a body: perception, decision-making and action in a world governed by physics.
  2. 02Understanding Physics EnginesFrom Newton's laws to numerical integration: how software predicts the next physical state of a robot.
  3. 03How MuJoCo Works InternallyRobot description formats, mjModel and mjData, and what actually happens inside mj_step().
  4. 04Robot Sensors and Data InterfacesIMUs, encoders, coordinate frames, projected gravity, and why real sensor data is noisy, biased and late.
  5. 05Robot Communication and FirmwareCAN bus, SocketCAN, virtual CAN, UDP and binary serialization — how bytes move between a robot computer and its motors.
  6. 06Understanding Asimov's Simulation EnvironmentA lower-body humanoid in MuJoCo: parallel ankles, passive toes, multi-rate timing and processor-in-the-loop validation.
  7. 07Reinforcement Learning FundamentalsAgents, rewards, policies and value functions from first principles — with algorithms that actually learn in your browser.
  8. 08Reinforcement Learning for Asimov LocomotionThe 45-dimensional observation, the 45→512→256→128→12 actor, and how a neural network becomes a walking controller.
  9. 09Actor-Critic and Privileged LearningWhy the critic sees 64 values while the deployed actor sees 45 — and what privileged information can and cannot fix.
  10. 10Research Exploration: Learning to Walk with Less InformationA proposed experiment: progressively masking privileged observations from the actor during training.

Experiments, not illustrations

Every experiment shows its equations, its core source code and its limitations. Learning demos run real algorithms. Nothing is a pre-recorded animation.

All 47 experiments

How this site treats facts

Robotics writing often blurs what a source states, what is general knowledge, and what is a guess. Here every Asimov-specific claim is attributed to Menlo’s documentation. Example values are marked as examples. My own ideas are marked as proposals.

DocumentedGeneral principleIllustrative exampleProposed research
Proposed research

Learning to walk with less information

Can an actor that starts with all 64 privileged observations, and gradually loses 19 of them, learn faster or more robustly than one restricted to the 45 deployable inputs from day one? Methodology, baselines and an interactive masking playground. No results yet, and none are claimed.

Read the proposal