REINFORCEMENT LEARNING FOR ROBOTICSMETHOD

How this book is built

The FCP method, the visual language, the toolchain, and the standard of evidence it holds itself to.

The FCP method

Three layers run through every chapter, interleaved rather than separated. The Foundation layer states and derives the mathematics in full — if a proof is genuinely out of scope, the theorem is stated precisely and the proof is cited, never waved at. The Conceptual layer gives every hard idea something you can manipulate, because a parameter you have dragged is a parameter you understand. The Practical layer implements the algorithm in Rust, seeded and tested, so the reader ends with working code rather than pseudocode.

The visual language

One encoding scheme runs book-wide, so a color means the same thing in Chapter 20 as it did in Chapter 4. The palette is validated for colorblind separation, lightness banding and contrast in both light and dark themes — not chosen by eye.

QuantityEncoding
Value functionSequential blue ramp
PolicyDirectional arrows, slot-1 hue
Reward / TD error / advantageDiverging blue↔red, gray midpoint
UncertaintyFan or band, series hue at low alpha

Every chart also carries a table view, so the numbers are readable without relying on color at all, and every interactive widget degrades to a captioned static figure.

The Rust toolchain

Teaching code lives in the book's own crates rather than depending on third-party RL libraries — building the gym-style abstractions is itself curriculum. External crates are used where they are genuinely best in class:

DomainCrateWhy
Deep learningburnPure Rust, multi-backend, trains natively and runs in the browser via WGPU.
Tensors & geometryndarray, nalgebraML-shaped data and SE(3)/Riccati geometry respectively.
Physicsrapier2d / rapier3dDeterministic option, WASM-compatible — simulations run client-side.
Robot modelsurdf-rs, kURDF parsing plus serial-chain forward/inverse kinematics and Jacobians.
3D scenesbevy + bevy_rapierWASM-capable 3D for locomotion and manipulation demonstrations.
Dashboardsegui + egui_plotImmediate-mode training dashboards that compile to the browser.
ParallelismrayonVectorized environment rollout farms.
OptimizationcmaesPolicy search over DMP weights and system-identification fits.

The standard of evidence

Claims about what reinforcement learning achieves on real robots are graded against Tang et al.'s levels of real-world success, from L0 (simulation only) to L5 (shipping in a product). It is an unusually honest rubric for a field that often reports its best single trial, and this book applies it to its own capstone as strictly as to the literature.