Repository navigation
pycvc: wading over time (#1542's flood_area, water_inside, dyn_bike_plant.wading) - #1558
Merged
Merged
Conversation
…lant.wading) #1542 merged before #1548, so the bindings take its fields: - wading_desc.flood_area (and as_dict); vehicle_state water_inside and water_inside_mass; dyn_bike_plant.wading(i) / waded(i); WorldEntities' wading dict; - world_binding: a tuning.wading.flood_area knob (whether it is 0 stays fixed: set_vehicle refuses the change, so it is ignored) and the water_inside / water_inside_mass telemetry, with key metadata. test_pycvc_physics_water: a hard-doored Humvee (flood_area 0.1) in 0.7 m fills over seconds to the level outside (0.787 m^3 at 60 s), published by the binding; a dyn_bike_plant Humvee in 0.5 m wades (3738 N lifted).
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.
This binds the fields that #1542 (wading over time) added. #1542 merged before #1548 (pycvc's water bindings), so under the agreement between the two sessions, the binding session picks up #1542's new fields.
What changed
pycvc
wading_desc.flood_areareads and writes in place, andas_dict()includes it.vehicle_stateaddswater_insideandwater_inside_mass.dyn_bike_plant.wading(i)returns the plant's water fromdyn_wading.h: wet, engine_flooded, drag, lift, and each axle's contact, grip and depth.dyn_bike_plant.waded(i)says whether the vehicle stood in water during the last tick.WorldEntities.list()'swadingdict includesflood_area.The physics binding (
world_binding, C++)vehicles.<name>.tuning.wading.flood_area. Its value can be tuned, but whether it is 0 is fixed when the vehicle is added.set_vehiclerefuses a change to or from 0, so the binding ignores one.water_insideandwater_inside_mass.binding_meta.cpp) and are listed in the header's key list.PhysicsVehicle.TheTreeDrivesTunesAndReadsAPublishedVehiclechecks that the knob is seeded with the vehicle's value and that a change from 0 is refused.pycvc has no binding for
dyn_4w_plant, so itswading(i)readback stays C++-only.Verified (Windows, MSVC Release, Jolt, pycvc core; cvcGL off)
pycvc_physics_waterpasses all 122 checks; 15 of them are new.flood_area0.1 m²) parked in 0.7 m of water has 0.056 m³ inside at 1 s and 0.282 m³ at 5 s, and reaches the level outside (0.787 m³) by 60 s. These match Land vehicles in water: flooding over time, wading dynamic plants, lake-bed friction #1542's measurements. The binding seeds the knob with 0.1 and publisheswater_inside. A change to 0 is refused throughset_vehicleand ignored through the tree.dyn_bike_plantHumvee in 0.5 m of water has 3738 N lifted off its tires (C++'s Jolt figure is 3733 N), 0.50 m of water over each axle, and goes 7.3 m in 3 s against 8.6 m dry.physics_vehicle_testpasses all 37 tests, including the new knob check and Land vehicles in water: flooding over time, wading dynamic plants, lake-bed friction #1542's own tests.EveryPublishedKeySaysWhatItIscovers the new keys.pycvc_physicspasses, including the bit-for-bit parity check againstphysics_parity_test.pycvc_plant_host,pycvc_world_entities,pycvc_world_posesandpycvc_smokepass too.git-clang-format HEADleaves the changed C++ lines unchanged.Not run locally: Linux, macOS, wasm, pycvc_gl. CI's
pycvc-linuxlane is the authoritative run.