Repository navigation
World vehicles can sense the world under fog - #1340
Merged
Merged
Conversation
The world runtime turned on none of the navigator's inter-agent steering, so vehicles met only physically: two kinematic boxes drove through each other, and a kinematic box shoved a dynamic chassis back the way it came. - cvc::nav::sim_world::set_foreign_agents: points outside the world (another fleet's vehicles) that the separation steers each agent away from as from a peer; nothing moves them, and min_gap and yielding do not see them. Empty by default: runs are byte-unchanged. - sim_world::config::sep_side and sep_side_radius: passing on the right. A peer ahead, within sep_side_radius and no further than sep_radius off the agent's line, turns its carrot right by sep_side times the peer's weight times the carrot's distance, so two that meet head on both swing right and pass, where the push along the line between them only slowed them. Default 0 = off. set_separation_side sets them. - WorldVehicles: on by default (set_avoid, the vehicles.avoid key): every navigator's separation at 5 vehicle radii and 1.5 radii of strength, the turn at 0.6 with a 20-radius look-ahead, and before each fleet steps the other plants' vehicles as its foreign agents. Turning it off changes the navigators in place. Test: AriadneWorldVehicles.VehiclesSteerAroundEachOtherOnOneAndManyPlants (head on, 0.5 m off one line: two kinematic cars pass 2.40 m apart instead of 0.50 m; a kinematic car and a dynamic one pass 2.68 m apart and both get past, where without it the car shoved the other 52 m back; the key turns it off).
…grid WorldVehicles froze every navigator's sensing on the world's grid, so a world could not run libcvc's fog navigation (a belief built from the vehicles' rays), which the fog and ghost demos are. - WorldVehicles::set_sense (the vehicles.sense key): "known" (the default, as before) or "fog": each plant's navigator starts from an empty prior and senses the grid with its vehicles' rays (60 m, 120 of them), building a belief it plans on. Changing it makes the navigators again, and every vehicle goes back to its start. - WorldVehicles::belief(plant, ...): the occupancy a plant's navigator plans on (the grid under known, its belief under fog), for a view or a host to draw. - ARIADNE.md: avoidance (#1339) and sensing in the vehicles section. Test: AriadneWorldVehicles.UnderFogTheNavigatorsSenseTheWorld (known: the grid's 240 blocked cells; fog: 29 at first, 100 after 10 s of driving, none beyond what is there; the key sets it back).
…/world-sense # Conflicts: # inc/cvc/ariadne/world_vehicles.h # src/cvc/ariadne/world_vehicles.cpp # src/cvc/tests/ariadne_scene_world_test.cpp
…/world-sense # Conflicts: # src/cvc/ariadne/world_vehicles.cpp
…/world-sense # Conflicts: # docs/ARIADNE.md
TilerIntrinsicsAriadne.AnActionStartsItUnderTheDefaultLimits runs a contour stack through an action's frame loop, as the segmentation action test runs its volume, and ran past ctest's 300 s in #1340's Debug package job. The tiler's port test gets the segmentation test's 900 s, and its own loop allows 900 s too.
transfix
added a commit
that referenced
this pull request
Nov 18, 2026
TilerIntrinsicsAriadne.AnActionStartsItUnderTheDefaultLimits runs a contour stack through an action's frame loop, as the segmentation action test runs its volume, and ran past ctest's 300 s in #1340's Debug package job. The tiler's port test gets the segmentation test's 900 s, and its own loop allows 900 s too. (cherry picked from commit eeba725)
…/world-sense # Conflicts: # src/cvc/tests/CMakeLists.txt # src/cvc/tests/tiler_intrinsics_test.cpp
transfix
added a commit
that referenced
this pull request
Nov 18, 2026
…ance, starts documented (#1354) * Room entities: a boat's model at its overall length, entities by distance, starts documented Three of the local-world gaps: - A boat's model at its overall length. room_entity.fit_length carries a floating plant's dyn_boat_desc::length_overall (7.8 m for the tactical boat, whose hull box is 6.85 m), and room_view fits a model look to it, so a client draws the TacticalBoat at the size the boat node does. - Entities by distance. room_pose_relay::config::entity_near_m, entity_far_m and entity_beyond_factor: an entity within entity_near_m of the viewer's avatar comes at most every entity_interval_ticks (30 Hz), within entity_far_m every push_interval_ticks (as a far participant), beyond it entity_beyond_factor times less often. 0 (the default) keeps every entity near; arisrv sets them from the area of interest's inner and middle radii when it is on. - Starts documented: a fixed start (at:, a spawn's x/y) and a spawn point name the vehicle's rear axle, the navigator's reference point on every plant, while the entities' table gives its chassis's centre. Changing the convention would move every spawn point, gym start and bit-for-bit comparison, so the docs say it instead. Tests: RoomEntities.AFarEntityComesLessOften (near, far and beyond, each fewer than the last), the section round trip with fit_length; cvcgl_room_view and the pose stream tests pass; arisrv's main.cpp compiles with gRPC and WS. * tests: the tiler's action test gets 900 s on slow Debug runners TilerIntrinsicsAriadne.AnActionStartsItUnderTheDefaultLimits runs a contour stack through an action's frame loop, as the segmentation action test runs its volume, and ran past ctest's 300 s in #1340's Debug package job. The tiler's port test gets the segmentation test's 900 s, and its own loop allows 900 s too. (cherry picked from commit eeba725) * tests: the tiler action test's comment within the line limit (cherry picked from commit 1f72fe2)
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.
Track 1 of the local-world gaps, second part, stacked on #1339: a world's navigators can sense the world under fog instead of knowing its grid. libcvc's fog and ghost demos, and grl-snam's fog port, navigate this way.
Change
WorldVehicles::set_sense(or thevehicles.sensekey) takesknownorfog.knownis the default and today's behaviour. Underfog, each plant's navigator starts from an empty prior and senses the grid with its vehicles' rays (60 m, 120 of them), building a belief it plans on. Changing the mode rebuilds the navigators, and every vehicle goes back to its start.WorldVehicles::belief(plant, ...)returns the occupancy a plant's navigator plans on: the grid underknown, its belief underfog. It's there for a view or host to draw.Tests
AriadneWorldVehicles.UnderFogTheNavigatorsSenseTheWorld:known, the navigator plans on the grid's 240 blocked cells.fog, it knows 29 at first (its first rays) and 100 after 10 s of driving, none beyond what's there.Not yet