Repository navigation
FL1c: a fleet's plants (a list, each team's) and its metric (D9) - #1407
Merged
Merged
Conversation
AFleetIsLaidOutInTeamsAtRallyPoints (FL1a, #1384) stepped 240 times and asked for the fleet to be 5 m east. On OW1's 1/120 s quantum (#1378) those steps are 2.0 s, not the 2.4 s it was written at, and the fleet starting from rest is 4.36 m east by then. Neither PR's CI saw the other, so master has failed it since OW1 merged. It now steps 3 s of the clock (3 / kSimQuantum), about 9 m east.
A fleet's plant: is one plant, a list its vehicles cycle over, or each
team's ({ 0: jolt }; a team not named on the archetype's), each plant a
navigator of the fleet's own (<plant>/<fleet>); its plants all float or
none do. vehicles.fleets.<name>.plant switches them live
(fleet_plants::text: "jolt, kinematic", "kinematic, 0: jolt"), its
vehicles at rest where they are; a bad one is said in vehicles.status.
Its metric: trained (the trainer's vehicle: training_scene's rr, d_hat
and vmax at the hosts' tick, the plants' plan_with_vehicle off), vehicle
(each plant's own), or policy (the default: trained while weights drive
or are on their way, so their arrival does not make the navigator again;
vehicle on the built-in net, a fallback's included). .metric switches
it, .plans says which, and a change makes the navigators again.
plants() reports each fleet's own bicycle, and set_avoid sizes each
navigator's separation by its own vehicle.
Tests: AFleetHasPlantsAndAMetric; AFleetIsANamedStartEntry's plants and
metric; .plans across AFleetHasANavigatorAndAPolicyOfItsOwn's switches.
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.
FL1c of FLEETS_AND_NIGHT_ROADMAP.md, following FL1b (#1403). Its branch still carries #1405's rally-test fix, now on master (c1766d6) with the same change, so review only the FL1c commit; the squash merge brings only FL1c.
A fleet now chooses its plants and the metric it plans with.
Plants
plant:takes one of:[jolt, kinematic]);{ 0: jolt, 2: jolt }). A team that isn't named gets the archetype's plant.How it works:
<plant>/<fleet>, as FL1b set up. So a mixed fleet is several navigators, and their vehicles meet each other as foreign agents.dynamicboator none are.vehicles.fleets.<name>.plantswitches the plants. The vehicles start at rest where they are, on the new navigators.fleet_plants::text, a superset of what the YAML can say:jolt;jolt, kinematic;0: jolt, 2: jolt;kinematic, 0: jolt(team 0 on Jolt, the rest kinematic).vehicles.statusand changes nothing.fleet_plants,parse_fleet_plantsandvehicle_start::plants.The metric (D9)
metric:takes:trained: the trainer's vehicle. That istraining_scene's rr, d_hat and vmax (a 3 m disc and 18 m/s) at the hosts' tick, as SceneSwarm plans. The plants'plan_with_vehicleis off, and the kinematic bicycle drops its per-vehicle kinematics.vehicle: each plant's own size and limits, which is what world vehicles did before.policy(the default): follows the policy.trainedwhile weights drive the fleet or are still on their way. A download's arrival therefore doesn't remake the navigator, which would stop every vehicle on a first run.vehicleon the built-in net, whether asked for or a fallback's.Switching and reporting:
.metricswitches it..planssays which metric it plans with now.sim_world::set_live_knobsandnav_plant::set_plan_with_vehiclewould cover kinematic and Jolt, but the dynamic and boat plants takeplan_with_vehicleonly at construction.plants()now reports each fleet's own bicycle (sim_world::current_config().veh), not the world's, so a twin sees the trained metric.set_avoid) is sized by each navigator's own vehicle radius.Docs
world_rules.h's start block.Left for FL1 (FL1d):
poses(fleet);Tests
ariadne_scene_world_testpasses locally (MSVC, Jolt).AriadneWorldVehicles.AFleetHasPlantsAndAMetriccovers:[kinematic, dynamic]and one with{ 0: dynamic }by team, with their four navigators;.plantswitched live todynamic4w, the vehicles where they were and at rest, the old navigators gone;.metrictotrained: the kinematic vehicles' limits are the trainer's 3 m and 18 m/s, all still placed; then back topolicy.AFleetIsANamedStartEntrygains the plants and metric, their errors, and the key's text form;AFleetHasANavigatorAndAPolicyOfItsOwnchecks.plansacross its policy switches, including both fallbacks.