Repository navigation
nav_plant: the ground is not a building contact (ground_bodies) - #1011
Merged
Merged
Conversation
nav_plant counted every chassis contact with a massless body as a static contact, the ground box included, so nav_stats' building_contacts scored a chassis scraping the ground (a RoboRacer on a flat city: 35) as building hits. nav_plant_options::ground_bodies names the bodies the vehicles drive on, as the dynamic plants' own ground_bodies do; a chassis touching one is no static contact. plant_host, nav_eval and the Jolt training rollout pass their ground, and pycvc's nav_plant takes ground_bodies=[ids] (one body_ids helper now serves it and dyn_bike_plant). Empty, every massless body still counts. NavPlant.GroundContactsAreNotBuildingContacts: a Humvee whose body box reaches below its wheels rests on the ground; it counts without the ground's id and not with it, and a pole through a nose still counts. test_pycvc_physics.py checks the same from Python with a chassis set into the ground.
transfix
added a commit
to CVC-Lab/GRL-SNAM
that referenced
this pull request
Nov 3, 2026
…r material (#154) JoltPlant names its ground to pycvc's nav_plant (ground_bodies, transfix/libcvc#1011), so a chassis scraping it is no building contact in nav_stats; it falls back on a pycvc without the argument. material-demo --plant runs libcvc's risk governor on the dynamic and Jolt plants where pycvc has it (sim_world::set_risk_governor, transfix/libcvc#1012; NativeSimWorld.set_risk_governor, PlantNavigator(risk_governor=...)). --no-governor shows the forces alone, --governor puts it on the kinematic bicycle too. The forces slow a vehicle only by what they take from its goal pull's surplus over its top speed, which on a physics plant is all of it: the dynamic RoboRacer crossed the scenario story's water at its top speed, its run the same to the millimetre as without material. Under the governor it stops short of the water (0 hazard steps, 14 before). docs/PLANTS.md explains both, with the material demo's table for every plant with and without the governor.
This was referenced Nov 4, 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.
What
nav_plantcounted every chassis contact with a massless body as a static contact, the ground box included. So nav_stats'building_contactsscored a chassis scraping the ground as building hits: a RoboRacer driving GRL-SNAM's flat city scored 35.nav_plant_options::ground_bodiesnames the bodies the vehicles drive on, as the dynamic plants' ownground_bodiesalready do. A chassis touching one of them is not a static contact. Left empty, every massless body still counts, as before.Every libcvc caller that builds a ground now passes it:
plant_host(its ground box, or its terrain's height fields);nav_eval;pycvc's
nav_plant(..., ground_bodies=[ids])takes it too. The id-list conversion is now one helper,body_ids, shared withdyn_bike_plant.Tests
NavPlant.GroundContactsAreNotBuildingContacts: a Humvee whose body box reaches below its wheels rests on the ground. That counts as a contact without the ground's id and not with it. A pole through a nose still counts. nav_stats agrees withstatic_contacts_step.test_pycvc_physics.py: the same from Python, with a chassis set into the ground (spawn_height=0.2), plus the argument check.Local run: Windows, MSVC 14.44 Release, Jolt on. Passing:
test_pycvc_physics.py(76 checks).Naming the floor as ground in the Jolt rollout changes no training test. clang-format 18 is clean on the changed lines.
GRL-SNAM's
JoltPlantpasses its ground when the running pycvc takes the argument (CVC-Lab/GRL-SNAM, follow-up PR).