Repository navigation
Conversation
…ant by name (P9) The navigator planned every plant's vehicle with its own veh_params, which the trained metric sizes for no vehicle in particular: at Austin's 0.05 per metre, a 3 m disc, 18 m/s and 30 m/s^2, against a Humvee's 2.5 m/s^2 and 1.82 m track. - vehicle_desc::max_speed: the top speed the driver model holds (Humvee 24.6 m/s, 55 mph; RoboRacer 10 m/s), in the snapshot JSON, the tuning keys, pycvc and the docs. - plant_limits gains the vehicle's envelope and size: a_max, vmax, a_lat, half_width, front, rear. nav_plant::limits fills them (nav_plant_options::plan_with_vehicle, on by default): 0.8 of max_accel, max_speed, 0.5 g of cornering at most 0.8 of the static stability factor, and the chassis box and wheels from the rear axle. - sim_world drives with them in place of cfg.veh's a_max, vmax and a_lat_max, and covers the body with kPlantDiscs = 4 footprint discs. The discs are inset 0.7 half-widths and 1.3 half-widths wide, at body_gain 1/4. The drive gains per-agent disc offsets (veh_params::body_offsets_col, CPU) and a per-agent cornering limit (plant_drive::a_lat). plant_plan_of reads them back. - The plant arm sends the acceleration its own integration would apply, within [sp_min, vmax]: never a reverse nav forbids, never past vmax. nav_plant::command reads under 0.1 m/s as rest. Before, a Humvee asked to back out of a corner braked against its springs' jitter forever. - cvc::physics::plant_host puts a sim_world's agents on a plant by name: "kinematic", a preset, or a list cycled over the agents. It can do that in code or from <prefix>.nav_plant.vehicle, and builds and owns the world (a flat ground, or a cvc::world's collide items). It falls back to the bicycle without Jolt. - The cvcGL nav demos take --plant and a restart-panel plant control. nav_material_demo runs the bicycle and the Humvee side by side. The demos still default to the bicycle: in the Austin finale a Humvee drives its route, then wedges in a corner it cannot turn a 6.7 m circle out of (with the plan off too), and the material layer keeps the bicycle out of the lake but not the Humvee (0 entries against 65). Both wait on vehicle-aware routes and P8. Tests (Windows MSVC): - nav_plant_test's new PlansWithTheVehiclesOwnEnvelope drives a sim_world sized with nav's defaults through a hard turn. On the vehicle's plan it commands at most 2.0 m/s^2 and 0.50 g; on nav's numbers, 30 m/s^2 and 0.98 g. - The P4 gates, which size nav by hand, turn the plan off. - physics_plant_host_test (5) covers switching, lists, refusals, the state tree, and Jolt worker threads: the same state hash on 0 and 3 workers. - ctest: 4260/4261; the one failure is a model test that passes alone. The 361 nav, drive, material, physics and plant tests all pass.
This was referenced Oct 19, 2026
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.
Joe asked: "are we still using the point mass? can't we use the actual jolt vehicle dimensions and physics?" This is steps 1–3 of the answer. Stacked on #698 (P7); it will be retargeted to master when that merges.
Why
veh_params, which the trained metric sizes for no vehicle in particular. At Austin's 0.05 per metre that is a 3 m disc, 18 m/s and 30 m/s². A Humvee has 2.5 m/s² and a 1.82 m track.What changes
The vehicle's own plan (
nav_plant_options::plan_with_vehicle, on by default).plant_limitsgainsa_max,vmax,a_latand the body (half_width,front,rear):max_accel;vehicle_desc::max_speed, which the driver model holds (Humvee 24.6 m/s, RoboRacer 10 m/s);sim_worlddrives with them and covers the body with four footprint discs (inset 0.7, 1.3 half-widths wide). The drive gains per-agent disc offsets (CPU) and a per-agent cornering limit.plant_plan_ofreads them back.Two plant-arm fixes:
allow_reverseandvmax);nav_plant::commandtreats under 0.1 m/s as rest, so a Humvee asked to back out of a corner backs up instead of braking against its springs' jitter forever.cvc::physics::plant_host: the plant by name (kinematic,humvee,roboracer, or a list), in code or via<prefix>.nav_plant.vehicle. It owns the world: a flat ground, or acvc::world's collide items. It falls back to the bicycle without Jolt, andcheck(name)validates a name up front.Demos:
--plantonnav_city_drive,nav_city_swarm,nav_finaleandnav_fog_ghost, plus a plant control in the restart panel.nav_material_demoruns the bicycle and the Humvee side by side.Why the demos still default to the bicycle (measured)
Austin finale (
scene-austin-south-small):nav_material_demo:The material layer was tuned on the bicycle; with the plan off the Humvee still enters the lake 51 times.
cvcdbg's harness (CVC-DBG/cvcdbg#203) shows the same: on Humvees the lead gets less far and two followers wedge.
The default flip waits on routes that allow for a vehicle's turning circle, and on P8 (training through the vehicle). The roadmap records it as P9.
Tests (Windows MSVC)
nav_plant_testPlansWithTheVehiclesOwnEnvelope: a sim_world sized with nav's defaults, through a hard turn. On the vehicle's plan it commands ≤ 2.0 m/s² and 0.50 g; on nav's numbers, 30 m/s² and 0.98 g. The P4 gates size nav by hand, so they turn the plan off.physics_plant_host_test(5):