Skip to content

OW5l: a sea's waves under a predicted boat - #1481

Merged
transfix merged 4 commits into
feat/one-world-ow5jfrom
feat/one-world-ow5l
Nov 23, 2026
Merged

transfix merged 4 commits into
feat/one-world-ow5jfrom
feat/one-world-ow5l

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's twelfth slice (ARIADNE_WORLDS.md §18.5). A client now predicts the boat it drives on a sea's waves; OW5j did it on still water only. Stacked on #1470.

What changed

  • The relay's waves are read at the clock's time. SceneWorld::follow sets its world's field time to the clock's time at its first call, as world::follow already does. The step ending on tick T then reads the sea at T × fixed_dt, however long the holon ran before the world was attached.
    • Before this, the field time counted from the world's own first step. A world attached after the clock had run floated its bodies on different waves from the drawn sea, which is drawn at the clock's time.
    • Storms in the air were already read at the clock's time through an offset; that offset is now 0.
  • The client's boat reads the same waves. dynamic_vehicle_model::at sets its world's field time to the sample's tick × fixed_dt (the holon passes the server's tick), and each step adds fixed_dt.

Tests

  • AriadneOneWorld.AClientsBoatRidesTheRelaysWaves: the launch on a wider, deeper lake with a 14 m/s wind sea. The relay's holon ran 7 s before its world was attached.
    • The waves heave the relay's launch 0.71 m (0.000 m on the still lake).
    • Each sample (every 4 ticks) finds the client's model within 2.2 mm of the relay's launch and 6.4 mm of its height.
    • A second model that reads the waves half a second off is 171 mm off the launch's height, so the test tells the right wave phase from a wrong one.
    • From the second second on, the model is within 1.4 mrad of the launch's heading and 23 mrad of its pitch and roll.
  • drive_as_the_world_does (used by every plant's test) now also checks that the relay world's field time equals the holon's tick × fixed_dt after attaching.
  • Two tests pinned the old field time, and now pin the new one:
    • AriadneSceneWeather.TheGustFrontIsInTheStepOnTheClocksTime: a world that anchors late now has the clock's field time and an air offset of 0, where before its offset was the clock's time. The air read at its field time is still the storms at the clock's time.
    • AriadneBoatNode.TheWakesPushIsTheSameAtAnyFramePacing now anchors at t = 0 before its first frame, as a drawn scene does. Before, its 0.137 s run anchored after a frame of 8 quanta, and the wake's field time is in the state hash it compares.
  • Locally, these suites pass: scene world 126 (FleetBench skipped), server document 23, world dataset 4, holon sync 39, holon 54. cvcgl_ariadne_physics passes. arigl builds.

Not done yet

  • A boat's attitude at its first sample. The model starts level, but the relay's hull may already be pitching on a wave, because a driver's pose carries only its heading. Its pitch and roll are up to 145 mrad off for the first second, until the same waves bring it into line. The test checks attitude only from the second second on; position and height are checked from the start.
  • A sea that the relay's storms change on the clock's periods (a weather node's sea keyframes). The client's water is its document's sea as built, and it doesn't follow those keyframes.

Not verified

  • The holon-level boat test (HolonVehicleTest) still uses a hand-built still lake. On waves, only the model's path is tested. The holon's reconcile passes the server's tick to at(), which is the only input the change needs.
  • I haven't run it live.

The relay's scene world now reads its water's waves at the clock's
time: SceneWorld::follow sets the world's field time to the clock's at
its first call, as world::follow does. The step ending on tick T reads
the sea at T x fixed_dt however late the world was attached, and the
bodies float on the waves the drawn sea shows. A client's boat model
sets its world's field time to the sample's tick x fixed_dt, so it
rides the relay's waves.

AriadneOneWorld.AClientsBoatRidesTheRelaysWaves: on a lake with a
14 m/s wind sea that heaves the launch 0.71 m, each sample finds the
model within 2.2 mm of it and 6.4 mm of its height; a model reading
the waves half a second off is 171 mm off. The gust-front and wake
frame-pacing tests now pin the clock-anchored field time.
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.
Base automatically changed from feat/one-world-ow5k to feat/one-world-ow5j November 23, 2026 07:52
OW5m: a vehicle's attitude in its pose
@transfix
transfix merged commit 8f47dc4 into feat/one-world-ow5j Nov 23, 2026
1 of 6 checks passed
@transfix
transfix deleted the feat/one-world-ow5l branch November 23, 2026 21:48
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