Skip to content

Relay 4d: a stock server world with vehicles, and a client seeing them end to end - #1338

Merged
transfix merged 1 commit into
feat/relay-worldfrom
feat/relay-world-demo
Nov 18, 2026
Merged

transfix merged 1 commit into
feat/relay-worldfrom
feat/relay-world-demo

Conversation

@transfix

Copy link
Copy Markdown
Owner

Last step of the relay hand-off, stacked on #1337. With #1335 to #1337, arisrv --doc cvc://worlds/traffic.ari runs a world on the server, and every client that joins sees its vehicles drive.

Change

  • cvc://worlds/traffic.ari is a stock server world: a 160 m ground, twelve blocks on a grid of streets, and eighteen vehicles it starts with (world: vehicles: start:), 12 rovers and 6 trucks driving under nav@1. The blocks are plain boxes, so the room publishes them and clients draw them.
  • arisrv --doc takes a cvc:// URI (the file libcvc installs). It also prints how many vehicles its document's world runs.
  • The end-to-end test. RoomRelayLoopbackTest.AClientSeesTheServerWorldsVehiclesMove: the loopback relay runs the pose stream with the room's entities as arisrv does (relay_options::pose_stream). A client applying its snapshots with an entity_playout sees the server document's six vehicles listed, posed and moving, each within 3 m of where the relay has it.
  • ServerDocumentTest.TheStockTrafficWorldRuns (all eighteen placed, most driving) and the arisrv_doc_vehicles ctest.
  • ARIADNE_WORLDS.md. WD3 is marked started. §14 gains "On the relay" and the start: list. The "vehicles do not steer around each other" note is corrected: no inter-vehicle steering is on at all, on one plant or several. The stale "boats drawn as hulls" note is replaced (Ariadne: a boat node you can drive, and boats drawn with their hulls (D5, D6) #1316 drew them).

Tests

Decided

  • The default meeting worlds (default.ari, large.ari) stay without vehicles. A world named by --scene is published, not run, so vehicles there would need arisrv to run every stock world. traffic.ari is the server world with vehicles instead.

…m end to end

- cvc://worlds/traffic.ari: a stock server world (arisrv --doc): a 160 m
  ground, twelve blocks on a grid of streets, and eighteen vehicles it
  starts with (world: vehicles: start:) driving under nav@1. The blocks
  are plain boxes, so the room publishes them and clients draw them.
- arisrv --doc takes a cvc:// URI (the file libcvc installs), and says
  how many vehicles its document's world runs.
- RoomRelayLoopbackTest.AClientSeesTheServerWorldsVehiclesMove: the
  loopback relay runs the pose stream with the room's entities as arisrv
  does (relay_options::pose_stream), and a client applying its snapshots
  with an entity_playout sees the server document's six vehicles listed,
  posed and moving, within 3 m of where the relay has them.
- ServerDocumentTest.TheStockTrafficWorldRuns (all eighteen placed, most
  driving) and the arisrv_doc_vehicles ctest.
- ARIADNE_WORLDS.md: WD3 started; §14 "On the relay", the start: list,
  the corrected "do not steer around each other" note, and the stale
  "boats drawn as hulls" note replaced (#1316 drew them).
Base automatically changed from feat/relay-entity-view to feat/relay-entities November 18, 2026 03:53
Base automatically changed from feat/relay-entities to feat/relay-world November 18, 2026 03:53
@transfix
transfix merged commit 19dc140 into feat/relay-world Nov 18, 2026
8 checks passed
@transfix
transfix deleted the feat/relay-world-demo branch November 18, 2026 04:29
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