Skip to content

OW5i: predict the jolt plant's vehicle in a Jolt world of the client's own - #1463

Merged
transfix merged 1 commit into
feat/one-world-staticsfrom
feat/one-world-ow5i
Nov 23, 2026
Merged

transfix merged 1 commit into
feat/one-world-staticsfrom
feat/one-world-ow5i

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's ninth slice (ARIADNE_WORLDS.md §18.5): the vehicle a client drives on the jolt plant is now predicted, like the kinematic and dynamic plants'. Until now a jolt vehicle was played out a round trip behind the driver's keys. Stacked on #1444.

What changed

  • The room's entities carry it. dynamic_drive takes plant jolt (valid()), and WorldVehicles::dynamics fills it for a jolt fleet's vehicle: its preset and numbers, the navigator's hold and its ticks, as for the dynamic plants.
  • dynamic_vehicle_model runs a jolt vehicle in a Jolt world of its own. That world is made as the relay's scene world is (its step, gravity and solver settings), with the statics and the vehicle alone. jolt_vehicle_world gives the statics and gravity; without statics it's flat ground at the drive's height.
    • The vehicle's state is the whole of that world, saved after each step (jolt_vehicle_saved, world::save). The Jolt state includes the vehicle's wheels, gearbox and driver.
    • At a navigator tick, the step applies the same hold as the dynamic plants, then nav_plant::command's forward/reverse choice, then world::drive.
    • at() restores what was predicted for the sample's tick. It puts the chassis at the sample's position, heading and horizontal velocity, keeping the predicted pitch, roll and spin, which a driver's pose doesn't carry. Without one, it starts from the vehicle as it was added, at rest.
  • The holon gives a jolt model its statics (the replica's, each body on its surface: OW5c, OW5h) and the rules' gravity. New statics (set_statics) rebuild its world, with the vehicle placed again where it is. set_vehicle_ground leaves jolt models alone, since they drive on the statics.
  • avatar_world gains a constructor from a world_config, so the model's world steps as the relay's does.

Found

The gearbox, clutch and engine aren't in the pose stream, and they matter. The relay's Humvee pulls away about half a second after a fresh model would, presumably because the navigator's hold before the driver got in is still in its powertrain. So running the model open loop from one sample strays by metres (6 m over 9 s). The holon takes a sample every 4 ticks, and with that each sample finds the model within millimetres. The dynamic plants have no such hidden state, which is why they agree open loop.

Tests

  • AriadneOneWorld.AClientRunsTheJoltVehicleItDrivesAsTheWorldDoes: the relay's drivable Humvee on jolt against the client's model on the client's own statics from the same document, through throttle, a turn, the brake and reverse, with the relay's sample every 4 ticks. Each sample finds it within 3.2 mm and 0.6 mrad on flat ground, and 4.7 mm and 1.7 mrad climbing the 3 m dome (0.52 m up). Ride height is within 2.7 / 5.5 mm, and pitch and roll within 0.017 / 0.019 rad.
  • HolonVehicleTest.TheJoltVehicleWeDriveIsPredictedAndReconciled: two models on the same ground agree exactly, with nothing to correct while it turns at up to 0.71 rad/s. A 1.5 m push is corrected at the next sample, and after that they agree exactly.
  • HolonSyncTest.TheClientPumpPredictsTheJoltVehicleWeDrive: the plant round-trips through the room's entities. client_pump predicts the vehicle on a jolt model, and new statics rebuild it with the vehicle where it was.
  • Locally, these suites pass: scene world 122, holon 53, holon sync 38, room scene 21, room intrinsics 21, room avatar 11, server document 23, pose stream 13, avatar sim 8, world clock 52, loader 254. arigl builds.

Not verified

  • I haven't run a live arisrv + arigl session.
  • The test measures the gap each sample finds. I didn't measure how a correction of a few millimetres looks on screen.
  • A jolt model touches only the statics: another vehicle or a dynamic body is still the relay's correction.
  • Each step saves the model's world, and the holon keeps a log of those saves. I didn't measure the cost on a large mesh or terrain world. The statics' shapes aren't saved, only body state, so a save is a few KB here.
  • Boats (the water) remain for OW5.

…s own

The vehicle a participant drives on the jolt plant (nav_plant: a Jolt vehicle in the relay's
world) is predicted like the dynamic plants'. The room's entities carry it as dynamic_drive with
plant "jolt" (WorldVehicles::dynamics). dynamic_vehicle_model runs it in a Jolt world made as the
relay's scene world is, with the holon's statics and the vehicle alone, and keeps the whole of
that world (world::save) as the vehicle's state, so a sample restores what was predicted for its
tick and replays. New statics rebuild the model's world. avatar_world gains a constructor from a
world_config.

The gearbox, clutch and engine are not in the pose stream; with the relay's sample every 4 ticks
each sample finds the model within 3-5 mm of the relay's Humvee, flat and over a 3 m dome.
@transfix
transfix merged commit f0a6d8a into feat/one-world-statics Nov 23, 2026
6 checks passed
@transfix
transfix deleted the feat/one-world-ow5i branch November 23, 2026 00: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