Repository navigation
One World OW7d: scripted people step around cars; the live check - #1544
Merged
Merged
Conversation
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.
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.
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.haddswalker_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: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):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 asarisrv --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: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:
arisrv's own ctests were not run locally.