Skip to content

OW5n: a vehicle's spin and steering in its pose - #1488

Merged
transfix merged 5 commits into
feat/one-world-ow5jfrom
feat/one-world-ow5n
Nov 24, 2026
Merged

transfix merged 5 commits into
feat/one-world-ow5jfrom
feat/one-world-ow5n

Conversation

@transfix

@transfix transfix commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

OW5's fourteenth slice (ARIADNE_WORLDS.md §18.5). The relay's poses now carry a vehicle's angular velocity and steering angle, and a client's models take them, along with the four-wheel suspension, from each sample. A client that starts predicting a vehicle the relay is already driving starts it as the relay has it: not level, not still, and not with its wheels straight. Stacked on #1484.

What changed

  • The pose stream carries spin and steering. PoseEntry gains wx, wy, wz (angular velocity, mrad/s) and steer (a vehicle's steering angle, microradians). They are sent as differences, like the other fields, so a vehicle going straight costs nothing extra.
    • PoseSnapshot.carries (bit kCarriesMotion) says the relay sends them. A relay from before this leaves it 0, so a client reads its zeros as "not known", not as "not turning", and keeps its model's values.
    • The proto change is wire-compatible: new field numbers, which older peers ignore.
  • The relay fills them:
    • the angular velocity from the chassis body (entity_ride);
    • the steering from the plant (entity_info::steer, and the new holon::steer for a driver's pose).
  • The client passes them on. pose_sample::steer (set when the snapshot carries them) goes through holon::apply_authoritative to dynamic_vehicle_model::at:
    • the dynamic plants take the steering angle and the yaw rate;
    • dynamic4w also takes the roll and pitch rates;
    • a jolt or boat model takes its chassis's spin.
  • The four-wheel suspension comes from the sample (this PR's first commit): its pitch and roll from the relay box's attitude (OW5m's), and its heave from the box's height (dyn_4w_plant::box_pose inverted).
    • The heave rate stays the model's. The pose's vertical speed is the box's after the relay's Jolt step under gravity, so it reads −g·dt (−0.0817 m/s) at rest. Taking it made the height 5 mm off.

Why it needed the steering

With the attitude alone, a client joining mid-turn was still 24 mrad off. I traced it to the front wheels: the model started them straight, and they took half a second to reach the relay's angle, during which the roll rate drifted. In a test, I gave the model the relay's steering angle and rates at each sample:

  • steering alone took it to 5 mrad;
  • the rates alone, to 12 mrad;
  • both together, to 0.7 mrad.

Tests

  • AriadneOneWorld.AClientJoinsAFourWheelVehicleMidTurn: the client starts its model partway through the drive, with samples every 4 ticks, now through the real pose stream (quantized).
Join Tilt: before / attitude only / now Heading: before / now Height now
Mid-turn, flat 94 / 24 / 0.7 mrad 10.5 / 0.3 mrad 0.6 mm
Mid-turn, on the dome 98 / 25 / 0.7 mrad 10.7 / 0.2 mrad 1.7 mm
At 1 s, on the dome 10 / 1.2 / 0.7 mrad 0.04 / 0.08 mrad 0.7 mm
  • The heights are in the stream's millimetres; they were 0.3–1.2 mm before quantizing.
  • The test also checks directly that at() sets the steering angle and rates from a sample that carries them, and keeps the predicted values without.
  • drive_as_the_world_does now passes every relay update through pose_stream_encoder and pose_stream_decoder. This affects all the plants' sampled runs:
    • the jolt Humvee is within 1.1 mrad of its chassis's attitude (3.7 before);
    • the boat on OW5l's waves is within 3.6 mm of the hull's height (4.7 before).
  • The waves test's phase check now uses a one-second skew. With the spin also reset at each sample, a model reading the waves half a second off drifts only 8 mm between samples, 2.3× the correct model. A second off, it drifts 15 mm, about 4×, so the 2.5× bar holds.
  • HolonVehicleTest.ASampleCarriesTheSteeringToTheModel: on both dynamic plants, a sample with steering places the holon's model with the relay's steering angle and yaw rate; one without places it straight.
  • PoseStream.AVehiclesSpinAndSteeringRideTheStream: the new fields round-trip, a change of steering alone produces an entry, and a snapshot without carries gives no steering and zero spin.
  • The WebSocket and gRPC transport tests' sample snapshot now carries the new fields and carries, and their comparison checks them.
  • These suites pass locally: scene world 127 (FleetBench skipped), holon 55, holon sync 39, server document 23, world dataset 4, pose stream 14, room AOI relay 10, room avatar 11, room scene 21, world rules 9, fast lane 9 (4 skipped). cvcgl_ariadne_physics passes. arigl builds.

Not verified

  • The transport tests haven't run locally. This machine's build has neither gRPC nor WebSocket. A second build with both compiled every file that touches the new fields, including both transport tests. The link then failed: the prebuilt protobuf and gRPC need STL symbols (__std_rotate) this MSVC 14.44 toolset lacks. CI runs them.
  • I haven't run it live, and haven't checked arigl visuals.

Not done yet

  • The kinematic plant's model still assumes the box moves straight through its tick; it could use the yaw rate now carried.
  • A jolt model takes the spin but not the steering, since its wheels follow the command.
  • The holon only re-places a model from a sample when its position is off by more than reconcile_tol. So a model that is close in position but has a different steering angle isn't corrected until it drifts.

A dynamic4w model takes its suspension's pitch and roll from each sample
that carries them (the relay's box, OW5m) and its heave from the box's
height (dyn_4w_plant::box_pose inverted). The rates of heave, roll and
pitch stay the model's: the pose stream carries no roll or pitch rate,
and its vertical speed is the box's after the relay's step under
gravity. A heading-only sample keeps the predicted suspension.

A client joining a four-wheel vehicle mid-turn is now within 24-26 mrad
of its attitude (94-98 before) and 0.3-1.2 mm of its height (1.7-10).
drive_as_the_world_does gains sampled_too and join for the new
AriadneOneWorld.AClientJoinsAFourWheelVehicleMidTurn.
The pose stream carries each entry's angular velocity (mrad/s) and a
vehicle's steering angle (microradians), delta-encoded like the rest
(PoseEntry.wx, wy, wz, steer). PoseSnapshot.carries says the relay
sends them (kCarriesMotion); a relay before this leaves it 0, so its
zeros read as not known, not as not turning, and a client keeps its
model's values.

The relay fills them from the chassis body (entity_ride's angular
velocity) and the plant's steering (entity_info::steer; holon::steer
for a driver). A client's sample carries them (pose_sample::steer)
through holon::apply_authoritative to dynamic_vehicle_model::at: the
dynamic plants take the steering angle and yaw rate, dynamic4w the
roll and pitch rates too, a jolt or boat model its chassis's spin.

A client joining a four-wheel Humvee mid-turn, through the pose
stream, is now within 0.7 mrad of its attitude and 0.3 mrad of its
heading (24-25 and 10.4 with the attitude alone). The jolt Humvee is
within 1.1 mrad (3.7); the boat on the waves within 3.6 mm of height
(4.7). The waves test's phase check now skews by a second (15 mm of
drift) rather than half (8 mm).
@transfix transfix changed the title OW5n: a four-wheel suspension from its pose OW5n: a vehicle's spin and steering in its pose Nov 23, 2026
A jolt or boat model's world holds a box for each of the room's
vehicles the client shows (dynamic_vehicle_model::hold_obstacles, from
holon::held_obstacles). Before each step each goes where its vehicle is
to be at the step's end, along its velocity, as the walker's world holds
them. A kinematic-plant vehicle is a kinematic box. A vehicle the relay
can push (a jolt vehicle, a dynamic plant's box) is a body of its mass
(room_entity::dynamics, through hold_entity's new mass), put where it is
shown before each step, so the car shoves it as the relay's does.

The boxes are made with the model's world (obstacle_room: one per
vehicle held and two spares of each size and mass), since world::restore
needs the same bodies. When more come into view than it has room for,
the holon makes the model again with room (vehicle_rebuilds). Held
entities now count their steps while the participant drives, too.

The relay's car into a parked vehicle, sampled every 4 ticks through the
pose stream: the model is within 3.9 mm holding its box, 50 mm without
(kinematic plant); 3.9 mm and 21 mm for a jolt Humvee shoved 4 m.
Base automatically changed from feat/one-world-ow5m to feat/one-world-ow5l November 23, 2026 21:44
Base automatically changed from feat/one-world-ow5l to feat/one-world-ow5j November 23, 2026 21:48
OW5o: the room's vehicles in the car a client drives
@transfix
transfix merged commit 8190bfa into feat/one-world-ow5j Nov 24, 2026
1 of 6 checks passed
@transfix
transfix deleted the feat/one-world-ow5n branch November 24, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant