Skip to content

OW5m: a vehicle's attitude in its pose - #1484

Merged
transfix merged 2 commits into
feat/one-world-ow5lfrom
feat/one-world-ow5m
Nov 23, 2026
Merged

transfix merged 2 commits into
feat/one-world-ow5lfrom
feat/one-world-ow5m

Conversation

@transfix

@transfix transfix commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

OW5's thirteenth slice (ARIADNE_WORLDS.md §18.5). The relay's poses now carry a vehicle's pitch and roll, so a client draws the room's vehicles tilted as they are, and a driven jolt car's or boat's prediction starts from the relay's attitude. Stacked on #1481.

What changed

  • The relay's pose carries the chassis's attitude (entity_ride, world_vehicles.h). It applies when an entity's chassis is a body in the relay's world: a jolt vehicle, a boat's hull, or a dynamic plant's box. The pose then has that body's rotation and vertical speed; before, it was a turn about z alone. The pose stream already carried a full quaternion, so the wire format is unchanged.
    • It covers both a driver's own pose (holon) and the room's entities as the relay streams them (conference::entity_pose_subjects, which every client draws them by).
    • Fixed in 15f60cd: the first commit changed only holon's pose and holon::entities(). The stream arisrv actually sends for the room's vehicles still had the heading only, so clients drew them level. Both now share entity_ride, and WorldVehicles::world() gives the relay's stream the chassis.
  • A jolt or boat model takes pitch, roll and vertical speed from each sample (dynamic_vehicle_model::at). Its spin stays the predicted one, because the stream doesn't carry it.
    • A heading-only sample from an older relay (a rotation with x = y = 0) keeps the predicted pitch and roll, as before.
  • The driver's drive axes read the pose's heading correctly at any tilt. The holon used 2·atan2(z, w), which is right only for a turn about z alone; it now uses heading_of, the general formula.

Tests

Run (AriadneOneWorld) Attitude gap before Now
Boat on OW5l's waves, from the first sample 145 mrad 7.9 mrad
Same boat, from the second second 23 mrad 2.6 mrad
Jolt Humvee 17.5 mrad 3.7 mrad
Boat on the still lake 5.0 mrad 1.7 mrad
  • Height gaps shrank too: the jolt Humvee from 2.7 mm to 0.4 mm, the boat on the waves to 4.7 mm.
  • The driver's pose is within 4e-8 rad of the hull's attitude.
  • The vehicle's own entry in the relay's entity stream is checked too (client_run::entity_gap): within 1e-6 rad of the chassis in the jolt and boat runs. Without the fix it was 169 mrad off for the jolt car on the hill and 207 mrad for the boat on the waves.
    • The helper's gap measure divides the dot product by both norms. A float quaternion's norm is 1 only to about 1e-7, which acos would otherwise read as 1 mrad.
  • HolonVehicleTest.TheBoatWeDriveIsPredictedAndReconciled: a rolled sample puts the hull at its roll; a heading-only sample after it keeps that roll.
  • The waves test's phase check is weaker now. A model reading the waves half a second off drifts only 18 mm from the hull's height between samples (171 mm before), because each sample puts it back. The check now asks for 2.5 times the right model's 4.7 mm.
  • Locally, these suites pass: scene world 126 (FleetBench skipped), holon 54, holon sync 39, server document 23, world dataset 4, pose stream 13, 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 done yet

  • A dynamic4w model's attitude from the sample. Its box's pitch and roll come from its suspension state, which stays the predicted one. Its gap was already 0.7 mrad.

Not verified

  • I haven't run it live. In particular, I haven't watched how the tilted poses look on the room's vehicles in arigl.

The relay's pose for an entity whose chassis is a body in its world (a
jolt vehicle, a boat's hull, a dynamic plant's box) now carries that
body's attitude and vertical speed, for the room's entities and for a
driver's pose alike; before, a turn about z alone. A jolt or boat
model takes its chassis's pitch, roll and vertical speed from each
sample; a heading-only sample (an older relay's) keeps the predicted
ones. The drive axes read the pose's heading whatever its tilt.

On OW5l's waves the boat model is within 7.9 mrad of the hull's
attitude from its first sample (145 mrad before); the jolt Humvee
within 3.7 mrad (17.5 before).
The relay streams the room's vehicles from
conference::entity_pose_subjects, which still built a heading-only pose;
OW5m had changed only holon's ride_of (a driver's pose and
holon::entities). Both now use entity_ride (world_vehicles.h), with
WorldVehicles::world() for the chassis. Every client draws the room's
vehicles from that stream, so they were drawn level.

client_run gains entity_gap: the jolt and boat runs check the
vehicle's own entry in that stream is within 1e-6 rad of the chassis.
Without this fix it was 169 mrad off for the jolt car on the hill and
207 mrad for the boat on the waves.
@transfix
transfix merged commit 4fdfbc2 into feat/one-world-ow5l Nov 23, 2026
7 checks passed
@transfix
transfix deleted the feat/one-world-ow5m branch November 23, 2026 21:44
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