Troubleshooting Handbook

A quick reference to troubleshooting across the book, indexed by symptom. Each entry gives the most likely cause and the corresponding chapter.

C.1 Simulation-Side Faults

SymptomLikely causeHandlingChapter
Simulation crash / numerical explosionMJCF unit error / non-positive-definite inertiacheck units, validate_mjcf.pyAutomated Onshape→MJCF Modeling
Falls immediately on startupwrong center of mass / inertiare-check CAD→MJCFAutomated Onshape→MJCF Modeling
Violent joint jittermismatched BAM parametersre-calibrate on the benchBAM Actuator Modeling and Identification
CUDA out of memorynum_envs too largereduce num_envsThe MuJoCo-Warp Simulation Environment
Training not convergingsparse reward / poor learning ratetune reward, lower LRPPO Multi-Task Training
Action divergencemissing action/smoothing penaltyadd penaltiesPPO Multi-Task Training

C.2 Hardware-Side Faults

SymptomLikely causeHandlingChapter
A servo doesn't respondID conflictreconfigure the IDHardware Circuits and the TTL Bus
Random bus packet losssignal interferencelower baud rate, add isolationHardware Circuits and the TTL Bus
Freezes on power-oninsufficient power / shortseparate power, test one by oneHardware Circuits and the TTL Bus
Position driftsupply voltage sagcheck BMS, wire gaugeHardware Circuits and the TTL Bus
Gait jitterinaccurate BAM / control-loop timeoutre-calibrate / optimize inferenceBAM Actuator Modeling and Identification, 14
Attitude slowly tiltingIMU bias / mounting tiltsix-face calibration / compensate tiltServo and IMU Calibration
Frequent fallingobservation scaling misalignedcheck_obs_act_space.pyRK3566 Image and Firmware, 14

C.3 Sim2Real Difference Troubleshooting (Priority Order)

PriorityCheck itemTool
1Observation-space consistencycheck_obs_act_space.py
2Joint-limit alignmentMJCF vs. hardware
3IMU bias / mountingsix-face calibration
4BAM parameter accuracybench fitting
5Whole-machine mass / center of massweighing vs. CAD

Principle: change only one variable at a time and record each result, avoiding the inability to locate the cause from changing multiple factors at once.

C.4 Mechanical-Side Faults

SymptomLikely causeHandlingChapter
Servo horn slippinginsufficient interferencereplace horn / add adhesive3D Printing, Assembly, and Tolerances
Joint seizureprint interferencecorrect CAD clearanceHD1910 CAD Model Analysis
Center-of-mass offsetasymmetric assemblycheck left-right consistency3D Printing, Assembly, and Tolerances
Printed part fractureinsufficient wall thickness/infillthicken, raise infill3D Printing, Assembly, and Tolerances