Repository navigation
OW5o: the room's vehicles in the car a client drives - #1494
Merged
Merged
Conversation
A jolt or boat model's world holds a box for each of the room's vehicles the client shows (dynamic_vehicle_model::hold_obstacles, from holon::held_obstacles). Before each step each goes where its vehicle is to be at the step's end, along its velocity, as the walker's world holds them. A kinematic-plant vehicle is a kinematic box. A vehicle the relay can push (a jolt vehicle, a dynamic plant's box) is a body of its mass (room_entity::dynamics, through hold_entity's new mass), put where it is shown before each step, so the car shoves it as the relay's does. The boxes are made with the model's world (obstacle_room: one per vehicle held and two spares of each size and mass), since world::restore needs the same bodies. When more come into view than it has room for, the holon makes the model again with room (vehicle_rebuilds). Held entities now count their steps while the participant drives, too. The relay's car into a parked vehicle, sampled every 4 ticks through the pose stream: the model is within 3.9 mm holding its box, 50 mm without (kinematic plant); 3.9 mm and 21 mm for a jolt Humvee shoved 4 m.
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 fifteenth slice (ARIADNE_WORLDS.md §18.5). The car a client drives now meets the room's other vehicles in its prediction. Before, it drove into them between samples until the relay pulled it back. Stacked on #1488.
What changed
dynamic_vehicle_model::hold_obstacles). Before each step, the model puts a box for each vehicle the client shows where that vehicle will be at the step's end: on from where it was shown, along its velocity, as the walker's world already holds them (holon::held_obstacles).room_entity::dynamics;holon_syncpasses it toholon::hold_entity, which gains amassargument.jolt_vehicle_world::obstacle_room). The model saves and restores its world at every reconcile, andworld::restoreneeds the same bodies in the same order, so boxes can't be added later.hold_obstaclesreturns false. The holon then makes the model again with room, keeping the vehicle where it is, as a change of statics already does (holon::vehicle_rebuilds).holon's held entities now count their steps while it drives too. Before, the count advanced only in the walker's step, so a held vehicle stood still in the prediction while you drove.Tests
AriadneOneWorld.AClientsCarMeetsTheRoomsVehicles: the relay's driver goes at full throttle at a vehicle parked 30 m ahead. The client's jolt model gets samples every 4 ticks through the pose stream.HolonVehicleTest.TheJoltCarWeDriveMeetsTheRoomsVehicles: the car a client holon predicts at full throttle stops at a vehicle held 15 m ahead (x −29.7, at its face). A client that doesn't hold it drives on through (x −21.9). The model had no room when it was made, so it is made again once.Not done yet
Not verified