Physical AI · research notes
Taking a humanoid apart, one part at a time
I follow one robot from head to cloud and explain the technology behind each part, from overview to practice. Hands-on results and measurements come only from my own work.
- sim2real
- real2sim
- Humanoid
- VLA
- Teleoperation
- SLAM
- Nav2
- HRI
- Reinforcement learning
- Imitation learning
Robot map
Pick a part to see its technology stack
Each part leads to lessons in four levels: Overview, Basics, Advanced and In practice.
On the robot
Head: camera
The vision system that turns light into images tagged with capture time and coordinate frame, and uses them to compute the 3D positions of objects.
- Overview What a vision system gives the robot: pixels, capture time, lens, mounting position
- Basics Camera interfaces and bandwidth calculation, depth measurement with the RealSense D435i, sending and receiving camera images in ROS 2, intrinsic calibration and back-projection
- Advanced Extrinsic and hand-eye calibration, camera timestamps and exposure time, zero-copy frame handling on Jetson (GStreamer, NVMM), detection and tracking with DeepStream
- In practice The error budget from pixels to end-effector coordinates, common camera problems in the field, evaluating open-vocabulary detectors and VLMs
On the robot
Torso: balance and real-time control
Controls whole-body forces and momentum to keep balance, delivers commands from higher layers to the motors on time, and handles power and safety.
- Overview From 50 Hz commands to joint torques, why robots stay upright (CoM, support polygon, ZMP), power, heat and emergency stop managed in the torso
- Basics The linear inverted pendulum model (LIPM) and capture point, low-level joint command loops, DDS/QoS and measuring real-time performance, the motor bus bandwidth budget
- Advanced Centroidal dynamics, whole-body control as a QP, real-time design with EtherCAT and ros2_control, clock domains and time sync
- In practice Integrating the lower-body locomotion controller with the upper-body task controller, safety placed in the fastest loop (E-stops, watchdogs, multi-level limits), thermal and battery constraints, debugging jitter, dropouts and time going backwards
On the robot
Arms and hands: manipulation
Turns the hand's target position and force into joint torques and contact. Also covers how the resulting errors affect data and simulators.
- Overview The loops running during one reach, how gear ratio determines an arm's character, why grasping is hard
- Basics FK, Jacobians and IK, joint sag and gravity compensation, grasping with a parallel gripper
- Advanced Current loops, gear ratio and reflected inertia, impedance control and torque control, why IK is re-solved every cycle, the contract between actions and the controller
- In practice Filling in the gap checklist with three measurements, deploying a policy on a real arm, classifying and automatically detecting grasp failures
On the robot
Legs: locomotion and navigation
Walking without falling, estimating where the robot is, and reaching the goal along a collision-free path. Covers locomotion policies, LiDAR and SLAM, and Nav2.
- Overview Update rates at each layer from a goal pose to joint torques, wheels versus legs, the two 'current positions' of odom and map
- Basics Running the G1 locomotion policy in sim, processing IMU and LiDAR data, building a 2D map with slam_toolbox, reaching a goal with Nav2
- Advanced RL for locomotion policies, sim2real for locomotion policies, state estimation fusing the IMU with leg kinematics, SLAM and Nav2 internals
- In practice Map editing and diagnosing localization failures, deciding when the robot has arrived and switching to arm tasks, deploying a locomotion policy and Nav2 on a real legged robot
On the robot
Backpack: on-board computer
The onboard computer that runs perception models and policies on time. Heavy inference is handled by the edge server, and servo control and safety stops by the motor drivers.
- Overview The role of the onboard computer, what runs on the board and what stays off it
- Basics Setting up a Jetson environment (JetPack, power modes, containers), building a TensorRT engine and measuring its latency distribution, running a policy on the board
- Advanced Performance loss during long runs: heat, throttling, power modes, long-duration tests
- In practice Finding the causes of latency, analyzing the GPU timeline with Nsight Systems
Around the robot
Leader arm: teleoperation and data
An input device that lets a human operate the robot in place of the policy, recording the motion as observation, action and timestamp data for policy training.
- Overview Where teleop sits in the robot stack (a loop the human closes in place of the policy), comparing teleop interfaces from leader arms to human demonstration videos
- Basics Recording a first demo with an SO-101 leader-follower, the data structure of LeRobotDataset, VR and hand-tracking teleop basics
- Advanced Operating styles under latency (move-and-wait, bilateral teleop), leader-arm dynamics and gravity compensation, the action logging schema and time alignment, collecting data without a robot (UMI, gloves, exoskeletons, human demonstration videos)
- In practice What makes a good demo, intervention data and DAgger-style methods, what goes wrong during data collection
Around the robot
Simulator
A virtual environment for training policies, generating demo data and evaluating before deployment. Also covers matching the simulator to reality (real2sim).
- Overview The roles of a simulator (policy training, data generation, evaluation), where sim and reality diverge, how to choose a physics engine
- Basics URDF, MJCF and USD formats and conversion, a first MuJoCo experiment, setting up an RL environment in Isaac Lab, collecting demos in sim
- Advanced How contact is computed, actuator modeling, domain randomization, system identification, automatic demo generation with MimicGen and SkillGen
- In practice When simulator evaluation results can be trusted, reviewing simulator settings with the gap checklist, the benefits and limits of co-training with simulation data, using world models as simulators
Around the robot
Edge server: inference
A workstation on the robot's network that handles heavy model inference. VLAs such as GR00T or π0 run as policy servers that the robot calls.
- Overview How to decide where inference runs (dividing work among the onboard computer, edge server and data center), why memory bandwidth and power come before TOPS
- Basics Setting up a VLA policy server and calling it from the robot, measuring round-trip latency
- Advanced Analyzing VLA inference with the roofline model, comparing FP16 and INT8 engines in closed loop, async execution and Real-Time Chunking
- In practice Criteria for moving a loop off the robot, tail latency and handling link dropouts
Around the robot
Cloud: training
Retrains policies on demos and failures collected from robots, evaluates whether performance actually improved, and deploys them back to the robots. One of the slowest feedback loops.
- Overview The training pipeline from data collection to deployment, comparing robot foundation models (action output, openness, required resources)
- Basics Training a first policy with ACT or Diffusion Policy and tracking experiments, trial counts and confidence intervals for success rates
- Advanced Why ACT and Diffusion Policy output actions in chunks, how VLAs output actions (regression, tokens, flow matching), fine-tuning VLAs in practice, RL fine-tuning with demos and experience data
- In practice Debugging train-deploy mismatch, designing policy evaluations, building a data flywheel, staged rollout and rollback
What's new
Latest articles
-
Lesson Start here Overview
The gears that make up a robot: the loops in and around it, each running at its own rate
A motor driver's current loop runs thousands to tens of thousands of times a second; policies are retrained every few weeks. How do these loops fit together?
-
Lesson Start here Overview
Why I'm starting this blog
A blog that explains the whole Physical AI stack part by part, with one robot at the center. How to make sense of the robot map, and why I started this blog.