Skip to content

OW5e: predict the vehicle a client drives on the dynamic4w plant - #1453

Merged
transfix merged 5 commits into
feat/one-world-dynamicfrom
feat/one-world-dynamic4w
Nov 22, 2026
Merged

transfix merged 5 commits into
feat/one-world-dynamicfrom
feat/one-world-dynamic4w

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's fifth slice (ARIADNE_WORLDS.md §18.5): a client now predicts the vehicle it drives (or is) when that vehicle runs on the dynamic4w plant, as #1448 (OW5d) does for the dynamic plant. Until now such a vehicle was played out a round trip behind the driver's keys. Stacked on #1448.

What changed

  • The relay says which plant, and the height it rides from. dynamic_drive gains:

    • plant: dynamic or dynamic4w;
    • ground: the height dyn_4w_plant measures its vehicles' heights from (ground_reference(), the ground under its first vehicle's start).

    WorldVehicles::dynamics now answers for a dynamic4w vehicle too. The room's entities carry both fields (entities.e<id>.dynamics.plant, .ground). An entity written without plant reads as dynamic.

  • dyn_4w_plant::save / restore (dyn_4w_saved: the model's state with the suspension, the driver, the held command), plus rear_axle(i) and box_pose(i, ...), as OW5d: predict the vehicle a client drives on the dynamic plant #1448 adds to dyn_bike_plant.

  • dynamic_vehicle_model runs either plant. For dynamic4w it builds a dyn_4w_plant with that one vehicle and no world, on flat ground at ground, one substep per physics step.

    • dynamic_vehicle::model is now a std::variant of the two plants' saved states.
    • The box carries the model's pitch and roll, and dynamic_vehicle_state draws it leaning with them.
    • The box rides at the model's height, carried one step at its heave rate.
  • A driver's pose carries its heading alone (holon's ride_of). So at() on dynamic4w takes the box's attitude from the sample's yaw plus the model's pitch and roll. Heave, roll, pitch and their rates come from what was predicted for that tick, as the yaw rate already does.

  • The holon and client_pump need no new code: predict_vehicle(pid, dynamic_drive) builds whichever model the drive names.

Tests

  • AriadneOneWorld.AClientRunsTheFourWheelVehicleItDrivesAsTheWorldDoes: the relay's world with a drivable Humvee on dynamic4w, against the client's model on the same drive axes, over the same 9 s of throttle, a turn, braking and reverse. Worst errors:

    • position 0.000007 m and yaw 0.000025 rad;
    • height 0.0005 m;
    • attitude against the relay's chassis body 0.0007 rad.

    The OW5d test now shares this body (drive_as_the_world_does), and still gets 0.000007 m and 0.000002 rad.

  • HolonVehicleTest.TheFourWheelVehicleWeDriveIsPredictedAndReconciled, which shares its body with OW5d's:

    • over 600 steps turning at up to 0.68 rad/s, nothing is corrected (0 m);
    • a 1.5 m push is corrected by exactly 1.500 m, and the prediction agrees again (0.0000 m).

    Also checked: stepping a vehicle of the other plant throws, and jolt isn't a plant a client runs.

  • HolonSyncTest.TheClientPumpPredictsTheFourWheelVehicleWeDrive: the plant and the height round-trip through the room's entities, and client_pump predicts the vehicle on the four-wheel model.

  • Locally, these suites pass: scene world 111, holon 52, holon sync 35, dyn_4w_plant 8, dyn_bike_plant 11, room scene 21, room avatar 10, room intrinsics 21, server document 23, world dataset 4, pose stream 13, avatar sim 8. arigl builds.

Not verified

  • I haven't run a live arisrv + arigl session.
  • The client's model runs on flat ground at the plant's reference height. On terrain, a slope or against a wall, the relay's samples correct it rather than the client predicting it.
  • The relay publishes a driver's pose with yaw only, so other clients see this vehicle's driver without the lean. The driving client draws its own model's pitch and roll.
  • The box's height leaves out the one step of gravity that Jolt integrates (about 0.5 mm).
  • jolt and boats are still played out.

@transfix
transfix merged commit 6d63163 into feat/one-world-dynamic Nov 22, 2026
5 of 20 checks passed
@transfix
transfix deleted the feat/one-world-dynamic4w branch November 22, 2026 21:59
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