Skip to content

Ariadne OW5r: a sample corrects all of a vehicle's motion - #1523

Merged
transfix merged 2 commits into
feat/one-world-ow5qfrom
feat/one-world-ow5r
Nov 24, 2026
Merged

transfix merged 2 commits into
feat/one-world-ow5qfrom
feat/one-world-ow5r

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's eighteenth slice (ARIADNE_WORLDS.md §18.5): a sample from the relay now corrects all of a vehicle's motion, not only its place. It closes the three gaps OW5n left. Stacked on #1521 (OW5q).

What changed

  • A kinematic vehicle turns through its tick (kinematic_vehicle_at).
    • The relay's kinematic box moves on a line from the bicycle's box at a navigator tick's start to its box at the end, its yaw included (move_kinematic). So within a tick its velocity and yaw rate are constant, and the pose's angular velocity is that rate.
    • A model placed from a sample now turns at that rate through the rest of the tick, and its bicycle starts the next tick at the relay's heading.
    • Before, the box went straight to the tick's end, and the next tick started at the heading the sample had, short of the rest of the tick's turn.
    • A sample without the spin (a relay before OW5n) goes straight, as before.
  • A jolt vehicle's wheels at the relay's steering (new world::set_vehicle_steer).
    • It puts a vehicle's steering actuator at an angle, clamped to its lock, as if it had slewed there. The wheels take the angle at the next step, and the actuator slews on toward the command from there.
    • A jolt model placed from a sample that carries the relay's steering angle puts its actuator there (dynamic_vehicle_model::at). Before, the spin was the relay's but the wheels started straight.
  • A vehicle turned or sped up in place is placed again (holon::moves_as_predicted).
    • The holon re-placed a predicted vehicle only when the sample's place was more than reconcile_tol (5 cm) off. A heading slightly off, with the place still close, went uncorrected and drove off the relay's line until the place was off.
    • It now also re-places the vehicle when its heading or velocity is off by more than holon_config::reconcile_yaw_tol (0.01 rad) or reconcile_speed_tol (0.05 m/s).
  • Roadmap: the day-night cycle (FLEETS_AND_NIGHT_ROADMAP.md NL5, Joe 2026-11-24, not for now).
    • A document can set the cycle against the system clock.
    • A client connected to a server uses the server's time. OW5q's shown_clock already carries that time to what a client draws.
    • D6 (may a client set its own time of day) is partly settled; whether a connected client may override it locally is still open.

Tests

  • New AriadneOneWorld.AClientPlacesAKinematicVehicleFromSamplesMidTurn: a kinematic Humvee the relay drives through turns of up to 1.47 rad/s, placed from its samples every 4 ticks through the pose stream. 154 of the 180 samples fall part-way through a 12-step tick.
Placed from the sample Off at a sample, at worst
With its yaw rate 2.3 mm
Without (a relay before OW5n) 4.4 mm
  • The rest is the bicycle's speed at the tick's end, which one sample does not give.
  • New AriadneOneWorld.AClientJoinsAJoltVehicleMidTurn: a client starts predicting the relay's jolt Humvee mid-turn.
Wheels Heading off Attitude off
At the relay's steering 0.31 mrad 1.26 mrad
Straight (before) 2.75 mrad 4.7 mrad
  • The model's actuator takes a sample's angle, clamps to the lock, and is left as predicted by a sample without one.
  • New HolonVehicleTest.AVehicleTurnedOrSpedUpInPlaceIsPlacedAgain:
    • a sample at the predicted place but turned 0.05 rad re-places the vehicle at the sample's heading;
    • 0.005 rad leaves it as predicted, and so do wide tolerances;
    • 0.5 m/s faster re-places it, and 0.02 m/s does not.
  • New PhysicsVehicle.TheSteerCanBePutAtAnAngle:
    • the actuator is at the angle at once;
    • the wheels turn from it at the next step;
    • it is clamped to the lock, and a non-finite angle is refused.
  • The predictions that already agreed still have nothing to correct (HolonVehicleTest.TheVehicleWeDriveIsPredictedAndReconciled).
  • These suites pass locally: scene world 137 (FleetBench skipped), holon 58, holon sync 40, server document 23, world dataset 4, pose stream 14, room AOI relay 10, room avatar 11, room scene 21, world rules 9, fast lane 9 (4 skipped), physics vehicle 35, physics world 47. cvcgl_ariadne_physics passes. arigl builds.

Not done yet

  • A kinematic sample does not give the bicycle's speed at the tick's end, so the model keeps the 2.3 mm. I tried the box's chord speed instead of its speed along the end heading; it was worse (8.5 mm).
  • World documents a client does not ship with, from a cvcpkg package, a URL or the relay (section 12). This overlaps with the terrain-generator session's GB5 plan to fetch by content address, so it is left for coordination.

Not verified

  • I haven't run it live against a relay.

A kinematic vehicle turns through its tick: the relay's kinematic box
goes on a line between the bicycle's boxes at a navigator tick's ends,
yaw included, so the pose's yaw rate is the tick's, and
kinematic_vehicle_at now turns the box at it through the rest of the
tick and starts the next tick at the relay's heading. Placed from
samples every 4 ticks while turning: 2.3 mm off at a sample, 4.4 mm
without the yaw rate.

A jolt vehicle's wheels at the relay's steering: world::set_vehicle_steer
puts a vehicle's steering actuator at an angle (clamped to its lock),
and a jolt model placed from a sample that carries the relay's steering
puts it there. Joining the relay's jolt Humvee mid-turn: 0.31 mrad of
heading and 1.26 of attitude off at worst, 2.75 and 4.7 with straight
wheels.

A vehicle turned or sped up in place is placed again: the holon now
re-places a predicted vehicle when its heading or velocity is off the
sample by more than holon_config::reconcile_yaw_tol or
reconcile_speed_tol, not only its place.

Roadmap: the day-night cycle (FLEETS_AND_NIGHT_ROADMAP.md NL5) gains
Joe's requirements: set against the system clock as an option, and a
connected client on the server's time; D6 partly settled.
@transfix
transfix merged commit 3676c93 into feat/one-world-ow5q Nov 24, 2026
5 of 6 checks passed
@transfix
transfix deleted the feat/one-world-ow5r branch November 24, 2026 22:07
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