pboon09
Institute of Field Robotics (FIBO), KMUTT

OTTO: Real-to-Sim

June 2026 – Present

Overview

The simulation has to behave like the robot, and three parts of the original model did not.

  • The wheel and leg motors had guessed inertia and friction and no command delay.
  • The encoders and the IMU read angles with a constant offset, so the robot balanced 8 to 10 degrees away from the balance of the model.
  • The robot is 1.23 kg heavier than the CAD model.

I built the identification pipeline that measures, fits and fixes each problem.

Process

  1. Excite each motor

    Each motor is commanded with a speed staircase, a torque step, a torque ramp and a torque sine, and the motion is recorded.

  2. Fit the motor model

    A MuJoCo model of each motor, with an inertia, LuGre friction and a torque delay, replays the recorded torque. CMA-ES searches for the values that make the simulated motion match the measured motion.

  3. Measure the angle offsets

    The angles are measured directly at three heights. A leveling measurement on the torso gives the true pitch, and a ruler gives the hip height and the knee height above the floor. These fix the IMU offset and the encoder offsets.

  4. Find the missing mass

    The mass the CAD model lacks is added to the torso as one mass, and its position is chosen so the model balances at the pitch the robot reaches.

  5. Validate on new signals

    The robot and the full simulation run the same wheel and leg tests, and the errors are compared.

Results

Motor Model

The fit is good on the leg motor and on the ramps of the wheel motor, fair on the wheel motor steps, and weak on the wheel motor sines. In the validation on the robot, the simulation speed error is 0.11 rad/s on the wheel speed stair, and the hip and knee angle errors are 0.012 rad and 0.026 rad.

Table 1. Root mean square speed error of the original and the fitted model over all recorded pieces of each signal (rad/s)

SignalWheel OriginalWheel FittedLeg OriginalLeg Fitted
Torque Steps0.970.401.440.13
Torque Ramps0.750.121.360.06
Torque Sines1.110.771.810.18

Robot Parameters

Table 2. Robot parameters before and after identification

ParameterBeforeAfter
Total Mass10.55 kg11.78 kg
Torso Mass2.27 kg3.49 kg
IMU Offset0°1.46°
Pitch Setpoint7.7°, by Hand1.2° on the Robot, 0° in the Simulation
Fig. 1. Measured and simulated speed of the wheel motor
Fig. 1. Measured and simulated speed of the wheel motor
Fig. 2. Measured and simulated speed of the leg motor
Fig. 2. Measured and simulated speed of the leg motor

Figures and Video

How each problem is measured, fitted and fixed
How each problem is measured, fitted and fixed
Replay of a recorded run and the search over the motor values
Replay of a recorded run and the search over the motor values