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 Rate | Both controllers run as ros2_control plugins at 1000 Hz |
|---|---|
| Power | Cable from a bench supply on the 48 V bus |
| Software | ROS 2 Jazzy, ros2_control |
Process
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.
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.
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.
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.
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
| Quantity | Mean | Min | Max |
|---|---|---|---|
| Pitch (\(^\circ\)) | 1.96 | 1.90 | 2.02 |
| Travel (mm) | -0.12 | -0.46 | 0.25 |
| Yaw (\(^\circ\)) | -0.08 | -0.31 | 0.21 |
| Wheel Torque (\(\mathrm{N\,m}\)) | -0.11 | -0.19 | 0.00 |
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
| Level | Trials | Pitch Change (\(^\circ\)) | Displacement | Motion |
|---|---|---|---|---|
| Push Forward | 5 | -20.2 to -18.0 | Position error 31.9 to 36.8 cm | Recovered |
| Pull Backward | 5 | 15.0 to 16.1 | Position error -51.6 to -49.8 cm | Recovered |
| Vertical Push | 5 | 0.7 to 2.6 | Height sag 1.2 to 2.9 mm | Recovered |
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
| Metric | Value |
|---|---|
| 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 |
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
| Level | Roll, Peak (\(^\circ\)) | Yaw Drift (\(^\circ\)) | Knee Effort, Peak (\(\mathrm{N\,m}\)) | Motion |
|---|---|---|---|---|
| One Wheel, Ramp | 2.1 | 7.4 | 10.3 | Crossed |
| One Wheel, Stairs | 3.4 | 6.3 | 16.8 | Crossed |
| Both Wheels, Ramp | 0.9 | 3.2 | 8.5 | Crossed |
| Both Wheels, Stairs | 1.2 | 1.9 | 23.8 | Crossed |
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
| Metric | Value |
|---|---|
| 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 |
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
| Level | Separation Error, RMS (mm) | Separation Error, Peak (mm) |
|---|---|---|
| Alignment on | 1.5 | 5.9 |
| Alignment Off | 4.2 | 16.1 |
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
| Level | Flight (s) | Pitch at Touchdown (\(^\circ\)) | Knee Effort (\(\mathrm{N\,m}\)) | Landing (g) | Motion |
|---|---|---|---|---|---|
| In Place | 0.290 | -9.1 | 65.1 | 5.9 | Landed |
| Driving | 0.279 | -2.1 | 69.0 | 6.3 | Landed |
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
| Quantity | Target | In Place | Driving |
|---|---|---|---|
| Take-Off Speed (m/s) | 1.085 | 1.338 | 1.317 |
| Center of Mass Apex (cm) | 6.0 | 9.1 | 8.8 |
| Wheel Clearance, Peak (cm) | - | 14.0 | 13.1 |
| Torso rise at the hip, peak (cm) | - | 6.1 | 6.1 |
| Forward Distance in Flight (cm) | - | 0.9 | 9.3 |

