Skip to content

One World OW7d: scripted people step around cars; the live check - #1544

Merged
transfix merged 1 commit into
masterfrom
feat/one-world-ow7d
Nov 26, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/one-world-ow7d

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW7d of the One World plan (docs/roadmap/ARIADNE_WORLDS.md §18.2): scripted people step around cars. This PR also records the live check that arisrv hosting the traffic world now allows on the Windows workstation.

People step around cars

inc/cvc/ariadne/people_walk.h adds walker_velocity, which turns a scripted person's wanted walk into one that goes around the cars. It works in each car's frame, against the car's footprint grown by the person's radius and a margin, using the person's motion relative to the car:

  • Moving car in their path within 2 s: they wait for it, or step out of its lane when standing still would be reached.
  • Stopped car across their way: they walk round its nearer end.
  • Stopped car along their way: they pass it on its nearer side.

Wiring:

  • WorldVehicles::footprints() gives each placed vehicle as a walker sees it: centre, heading, half-length, half-width and velocity.
  • WorldGym's walking people take their way from it before each step.

Measured

Traffic world, six people, one minute, cars braking (ServerDocumentTest.TheTrafficWorldHostsPeopleWalkingAmongItsCars, three runs):

run car–person touches while moving > 1 m/s closest least walked
cars braking, people walking round 0 0 1.12 m 53.9 m
cars braking, people straight on 79 0 1.44 m 15.8 m
cars only steering, people straight on 25 25 (at up to 9 m/s) 0.50 m 59.3 m

All 18 cars drive in every run.

In the gym (AriadneWorldGym.PeopleAreInTheGymsWorld), a person walking at a car parked across their way passes it untouched, 1.96 m off their line at most.

Live check

arisrv was built with gRPC from cvcpkg (grpc 1.68.2+cvc.7, protobuf 28.3+cvc.3, --link shared) and run as arisrv --doc cvc://worlds/traffic.ari. It runs the world at 120 Hz with its 18 vehicles as the room's entities. Two arigl snapshot clients joined:

  • one over gRPC, walking its avatar back and forth;
  • one over WebSocket, standing, which joined twice.

Both built the world document and saw each other. Between the second client's two snapshots the cars had driven on (one truck gone, three rovers arrived), and the walker had walked into view. This was checked by eye from the snapshots.

Tests

Local, Windows Release with Jolt, gRPC and WS, all passing:

  • ariadne_scene_world_test: 147
  • holon_test: 58
  • holon_sync_test: 40
  • ariadne_server_document_test: 25
  • ariadne_world_dataset_test: 10
  • pose_stream_test: 14
  • room_aoi_relay_test: 10
  • room_avatar_test: 12
  • room_scene_test: 21
  • world_rules_test: 10
  • fast_lane_test: 9
  • cvcgl_ariadne_physics

arisrv's own ctests were not run locally.

people_walk.h's walker_velocity gives a scripted person their way among
the cars: in each car's frame, against its footprint grown by their
radius and a margin, a moving car in their path within 2 s is waited for
(or its lane stepped out of), a stopped car across their way walked round
its nearer end, one along their way passed on its nearer side.
WorldVehicles::footprints() gives the cars as a walker sees them, and
WorldGym's walking people take their way from it before each step.

Traffic world, a minute, cars braking: car-person touches 79 -> 0, the
closest 1.12 m, the least-walked person 53.9 m (15.8 straight on); all 18
cars drive. Gym: a person passes a car parked across their way untouched.

Live: arisrv built with cvcpkg's grpc 1.68.2 hosts traffic.ari; arigl
clients over gRPC and WebSocket join, see each other and the cars drive.
@transfix
transfix merged commit 3efc232 into master Nov 26, 2026
30 checks passed
@transfix
transfix deleted the feat/one-world-ow7d branch November 26, 2026 08:30
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