Repository navigation
OW5i: predict the jolt plant's vehicle in a Jolt world of the client's own - #1463
Merged
Merged
Conversation
…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.
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OW5's ninth slice (ARIADNE_WORLDS.md §18.5): the vehicle a client drives on the
joltplant 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
dynamic_drivetakes plantjolt(valid()), andWorldVehicles::dynamicsfills 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_modelruns 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_worldgives the statics and gravity; without statics it's flat ground at the drive's height.jolt_vehicle_saved,world::save). The Jolt state includes the vehicle's wheels, gearbox and driver.nav_plant::command's forward/reverse choice, thenworld::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.set_statics) rebuild its world, with the vehicle placed again where it is.set_vehicle_groundleaves jolt models alone, since they drive on the statics.avatar_worldgains a constructor from aworld_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 onjoltagainst 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_pumppredicts the vehicle on a jolt model, and new statics rebuild it with the vehicle where it was.Not verified