Skip to content

World vehicles can sense the world under fog - #1340

Merged
transfix merged 8 commits into
masterfrom
feat/world-sense
Nov 18, 2026
Merged

transfix merged 8 commits into
masterfrom
feat/world-sense

Conversation

@transfix

Copy link
Copy Markdown
Owner

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 the vehicles.sense key) takes known or fog. known is the default and today's behaviour. Under 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 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 under known, its belief under fog. It's there for a view or host to draw.
  • ARIADNE.md describes avoidance (World vehicles steer around each other, on one plant and across plants #1339) and sensing in the vehicles section.

Tests

  • AriadneWorldVehicles.UnderFogTheNavigatorsSenseTheWorld:
    • Under known, the navigator plans on the grid's 240 blocked cells.
    • Under fog, it knows 29 at first (its first rays) and 100 after 10 s of driving, none beyond what's there.
    • The key switches it back.
  • Windows Release: 1,917/1,917 of the Ariadne/world/gym/vehicle/nav/plant/server-document/cvcgl ctest set pass. Changed lines are clang-format clean.

Not yet

  • nav_stats with agents added and removed: deferred. The world runtime doesn't arm nav_stats, and grl-snam's ports run it on fixed agent sets.

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).
Base automatically changed from feat/world-avoid to master November 18, 2026 04:29
…/world-sense

# Conflicts:
#	inc/cvc/ariadne/world_vehicles.h
#	src/cvc/ariadne/world_vehicles.cpp
#	src/cvc/tests/ariadne_scene_world_test.cpp
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
transfix merged commit 579daff into master Nov 18, 2026
29 checks passed
@transfix
transfix deleted the feat/world-sense branch November 18, 2026 21:07
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant