pboon09
Institute of Field Robotics (FIBO), KMUTT

OTTO: Controllers on the Robot

June 2026 – Present

Overview

The baseline capability of the physical OTTO. The robot balances on two wheels, follows a speed and yaw rate command, holds a height, keeps level on uneven ground and jumps in place and while driving.

I designed these controllers for the physical robot. The control concepts follow earlier work on the platform in simulation, and I rederived the equations for the real robot.

System

Control RateBoth controllers run as ros2_control plugins at 1000 Hz
PowerCable from a bench supply on the 48 V bus
SoftwareROS 2 Jazzy, ros2_control

Process

  1. Control the wheels

    A velocity-form LQ servo balances the robot and tracks the commanded speed and yaw rate. It has integral action on position and heading, gains scheduled on the leg height, and a model of the loop delay.

  2. Control the legs

    The legs have four tasks, and each controls a different quantity, so they do not fight each other.

    • Posture pulls the mean hip angle to a table of hip and knee angles for each height.
    • Height controls the mean leg length.
    • Roll keeps the body level through the difference between the two leg lengths.
    • Wheel alignment controls the difference between the two hip angles.

    Gravity compensation adds the torque that carries the weight, so the legs do not sag.

  3. Estimate the contact

    The ground force at each wheel comes from the rigid-body dynamics. A contact gate lets the roll task push only through a leg whose wheel is on the ground.

  4. Sequence the commands

    A phase sequencer routes the operator command, sending the height command to the posture table, the jump trigger to the jump planner, and the speed and yaw rate commands to the wheel controller.

  5. Jump

    The jump has take-off, flight and landing phases, and each phase ends when a measurement shows it is over. A two-body model sets the take-off speed for the commanded height.

Results

The controller balances, moves, holds its height, crosses uneven ground and jumps on the physical robot. None of the 26 runs falls. At rest the travel stays within \(0.46\,\mathrm{mm}\), and the legs follow the height command within \(3.0\,\mathrm{mm}\).

Standing Still

Over a \(300\,\mathrm{s}\) window the axle stays within \(0.5\,\mathrm{mm}\) of its start. The pitch holds at \(1.96^\circ\) with a spread of \(0.12^\circ\).

Table 1. Standing still over a 300 s window

QuantityMeanMinMax
Pitch (\(^\circ\))1.961.902.02
Travel (mm)-0.12-0.460.25
Yaw (\(^\circ\))-0.08-0.310.21
Wheel Torque (\(\mathrm{N\,m}\))-0.11-0.190.00
Standing still for 5 minutes, the whole run at 12x with the logged pitch, travel and yaw

Push Recovery

The operator pushes the robot forward, pulls it backward and presses down on the torso, five times each. All ten pushes and pulls recover and end within \(1\,\mathrm{cm}\) of the start. A vertical push sags the height by at most \(2.9\,\mathrm{mm}\).

Table 2. Push recovery, range over the five trials of each case

LevelTrialsPitch Change (\(^\circ\))DisplacementMotion
Push Forward5-20.2 to -18.0Position error 31.9 to 36.8 cmRecovered
Pull Backward515.0 to 16.1Position error -51.6 to -49.8 cmRecovered
Vertical Push50.7 to 2.6Height sag 1.2 to 2.9 mmRecovered
Five pushes forward by hand
Five pulls backward by hand
Five vertical pushes on the torso

Height Control

One \(96\,\mathrm{s}\) run steps, strokes and ramps the height command between \(0.413\,\mathrm{m}\) and \(0.281\,\mathrm{m}\). The mean leg height stays within \(3.0\,\mathrm{mm}\) of the reference, and the roll within \(0.7^\circ\).

Table 3. Height command, one run

MetricValue
Height Error, RMS (mm)1.0
Height Error, Peak (mm)3.0
Height error at a constant command, mean (mm)0.8
Roll, Peak (\(^\circ\))0.7
Knee Effort, Peak (\(\mathrm{N\,m}\))10.7
Height command over 4 cm steps, full strokes, 20 mm/s ramps and 1 cm steps, at 4x

Uneven Ground

One wheel or both wheels drive over the ramp or the stairs at \(0.35\,\mathrm{m/s}\). The body stays within \(2.1^\circ\) of level on the ramp and \(3.4^\circ\) on the stairs. All four runs cross the course.

Table 4. Uneven ground, one run each

LevelRoll, Peak (\(^\circ\))Yaw Drift (\(^\circ\))Knee Effort, Peak (\(\mathrm{N\,m}\))Motion
One Wheel, Ramp2.17.410.3Crossed
One Wheel, Stairs3.46.316.8Crossed
Both Wheels, Ramp0.93.28.5Crossed
Both Wheels, Stairs1.21.923.8Crossed
One wheel over the 12 degree ramp
One wheel over the ramp and down the stairs
Both wheels over the ramp
Both wheels over the ramp and down the stairs

Drive Step

The speed command steps to \(0.5\,\mathrm{m/s}\), holds for \(1.8\,\mathrm{m}\), and returns to zero. The robot reaches \(90\%\) of the speed in \(0.54\,\mathrm{s}\) with \(7.3\%\) overshoot.

Table 5. Drive step, one run

MetricValue
Time to 90% (s)0.54
Overshoot (%)7.3
Position Error, Peak While Driving (cm)-10.0
Position Error, Peak After the Stop (cm)8.1
Speed Error, RMS (m/s)0.010
The robot drives 1.8 m at 0.5 m/s and stops

Spin

The robot spins one full turn in place at \(1.5\,\mathrm{rad/s}\) and back, once with the wheel alignment and once without it. The alignment cuts the RMS error from \(4.2\,\mathrm{mm}\) to \(1.5\,\mathrm{mm}\).

Table 6. Spin, one run each

LevelSeparation Error, RMS (mm)Separation Error, Peak (mm)
Alignment on1.55.9
Alignment Off4.216.1
Spin with the wheel alignment on and off
Spin with the wheel alignment on and off

Jump

Both jumps leave the ground, land and balance again, and the robot keeps driving after the second one. The flight lasts \(0.290\,\mathrm{s}\) in place and \(0.279\,\mathrm{s}\) while driving.

Table 7. Jump in place and while driving, one run each

LevelFlight (s)Pitch at Touchdown (\(^\circ\))Knee Effort (\(\mathrm{N\,m}\))Landing (g)Motion
In Place0.290-9.165.15.9Landed
Driving0.279-2.169.06.3Landed
Jump in place, played at 0.25x through the jump, then replayed phase by phase
Jump while driving, played at 0.25x through the jump, then replayed phase by phase

Jump Height

The height is estimated from the logs. The take-off speed is \(23\%\) and \(21\%\) above the target, so the center of mass rises \(9.1\,\mathrm{cm}\) and \(8.8\,\mathrm{cm}\) against \(6.0\,\mathrm{cm}\).

Table 8. Jump height estimated from the logs, against the target of 0.06 m

QuantityTargetIn PlaceDriving
Take-Off Speed (m/s)1.0851.3381.317
Center of Mass Apex (cm)6.09.18.8
Wheel Clearance, Peak (cm)-14.013.1
Torso rise at the hip, peak (cm)-6.16.1
Forward Distance in Flight (cm)-0.99.3
Estimated heights above the floor in flight
Estimated heights above the floor in flight

Figures

Architecture of the baseline controller
Architecture of the baseline controller
Ramp and stair courses
Ramp and stair courses, dimensions in millimetres
Leg length over the take-off, flight, and landing phases
Leg length over the take-off, flight, and landing phases