Repository navigation
Ariadne OW5r: a sample corrects all of a vehicle's motion - #1523
Merged
Merged
Conversation
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.
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 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
kinematic_vehicle_at).move_kinematic). So within a tick its velocity and yaw rate are constant, and the pose's angular velocity is that rate.world::set_vehicle_steer).dynamic_vehicle_model::at). Before, the spin was the relay's but the wheels started straight.holon::moves_as_predicted).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.holon_config::reconcile_yaw_tol(0.01 rad) orreconcile_speed_tol(0.05 m/s).shown_clockalready carries that time to what a client draws.Tests
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.AriadneOneWorld.AClientJoinsAJoltVehicleMidTurn: a client starts predicting the relay's jolt Humvee mid-turn.HolonVehicleTest.AVehicleTurnedOrSpedUpInPlaceIsPlacedAgain:PhysicsVehicle.TheSteerCanBePutAtAnAngle:HolonVehicleTest.TheVehicleWeDriveIsPredictedAndReconciled).Not done yet
Not verified