Repository navigation
ariadne: pose entities, placed by an outside simulation with no plant integrating them - #1375
Merged
Merged
Conversation
… integrating them
A world entity with the new `pose` controller is not driven: something outside
the world says where it is, and the world takes it at the next physics step.
Its chassis is a kinematic box in the scene's physics world, moved to each pose,
so it keeps its archetype's look and label, casts shadows, is picked, pushes
what it meets and is a foreign agent the navigators steer around. It needs no
grid.
- entity_pose: x, y (chassis centre, or rear axle), z (or on the ground),
heading/pitch/roll, speed and steer for the wheels' look, and a time. Timed
poses are drawn between the last two, a tick behind; a jump, a time gone back
or the first timed pose is taken at once. A still pose entity is exactly at
rest.
- Inputs: entities.<id>.pose.{x,y,z,heading,pitch,roll,speed,steer,t,ref} or
.matrix; a packed text value of many (entities.poses; pack_poses /
parse_poses); world: vehicles: poses: <path>, a table read by id or name
whose entries naming an archetype spawn and remove the entities (a server
document publishes it and stock clients' worlds draw them); and thread-safe
WorldVehicles::set_pose / set_poses(span) / pose / set_pose_jump.
- pycvc.WorldEntities.set_pose, set_poses (numpy rows), pose, set_pose_jump;
list() carries posed and pose.
- The box look's wheels roll at a pose entity's speed (entity_wheel::spin,
Rz(steer) Ry(spin)).
- physics.hash = 1 publishes physics.stats.hash (the world's state hash).
- A drawn scene now spawns world: vehicles: start: as a headless one does.
Tests: a scripted track followed exactly with its state hash pinned headless
and drawn (cvcgl_ariadne_physics) and in arigl snapshot (arigl_pose_entities,
the same hash as ariadne_scene_world_test's headless run of its document);
timed interpolation, batches, another thread, the table, a server document;
a relay round trip (room_relay_integration_test); pycvc_world_poses.
Documented in ARIADNE.md and ARIADNE_WORLDS.md (WD3).
transfix
enabled auto-merge (squash)
November 19, 2026 22:53
transfix
added a commit
that referenced
this pull request
Nov 20, 2026
Master's pose entities (#1375) and FL1a met in WorldVehicles' entity, info(), spawn(), clear() and entities(): both kept. Kinematic overlaps on the grid include pose entities, and a pose entity is placed at once while a fleet holds its own placing. A fleet's vehicles are driven, so a fleet entry with controller: pose is refused, and so is a fleet whose archetype's first controller is pose.
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.
A world entity with the new
posecontroller is placed by a simulation the world does not run. No plant integrates it and no navigator plans for it. Its chassis is a kinematic box in the scene's physics world, moved to each pose at the next step. So it keeps its archetype's look (the Humvee model or the box look) and itsentity_labels:label, casts shadows, is picked, pushes what it meets, and is a foreign agent the other vehicles' navigators steer around. It needs no grid.This is a step toward WD3's server-dynamic entities: a server simulates, and stock clients (arigl, arigl-web) draw the entities where it says.
What a host or a document writes
entities.<id>.pose.{x,y,z,heading,pitch,roll,speed,steer,t,ref}, or.matrix(16 numbers, row-major).x,y: the chassis's centre, or its rear axle withref: rear.z: not given means standing on the ground under it.speedandsteer: the wheels' look.t: a timed pose. It is drawn between the last two, a tick behind. A jump (over 20 m,set_pose_jump), a time gone back, or the first timed pose is taken at once.entities.poses, a packed text value:id x y z heading pitch roll speed steer t [rear]a line. It is text, so a relay carries it.pack_posesandparse_poseswrite and read it.WorldVehicles::set_pose,set_poses(std::span<const entity_pose_update>),poseandset_pose_jump, callable from any thread.world: vehicles: poses: <path>, read by id or by name, with its own packed<path>.poses.<path>.<key>.archetype, plusname,team,color,color2) spawns a pose entity.server: publish: [fleet]), and each client's own world spawns and places the entities.WorldEntities.set_pose(id, x, y, z=, heading=, pitch=, roll=, speed=, steer=, t=, rear_axle=),set_poses(ids, poses)(numpy rows of 2 to 9 numbers),pose(id)andset_pose_jump.list()carriesposedandpose.Also
entity_wheel::spin, drawn as Rz(steer) Ry(spin). The other plants keep spin 0, so their look is unchanged.physics.hash: 1publishesphysics.stats.hash, the world's state hash. It costs a save of the world, so only a check asks for it.realize_scene) now spawnsworld: vehicles: start:, asSceneWorld::from_scenealready did. Until now arigl never spawned a document's start vehicles.Tests
cvcgl_ariadne_physics/test_vehicle_poses_headless_and_drawn:696bba66a89b43ec.arigl_pose_entities:arigl snapshotrunssrc/cvc/tests/data/ariadne_pose_entities.arioffscreen. It has two start entities and one spawned from its table, pitched and rolled.9e21a383280ccbb7.AriadneWorldVehicles.APoseDocumentsHashIsPinnedruns the same document headless and pins the same hash.ariadne_scene_world_test:ffffc2632ce76a65), including a matrix pose and a rear-axle pose.set_poses, the packed value, andset_posesfrom another thread while the world steps.room_relay_integration_test/AClientsWorldPlacesTheServersPosedEntities:pycvc_world_poses: 46 checks.The pinned hashes are guarded by
cap_determinism_cross_platform, asphysics_world_test's golden hash is. Thearigltest skips on a build without Jolt.Found on the way (not fixed here)
state-set-treeof the entry nor of its parent reached the client. So the docs say to take a server's entity out by emptying its archetype.room_relay_integration_testdoes not compile on master withCVC_ENABLE_WSalone, without gRPC: it usesr.grpcunguarded around line 1616.Checked locally
Linux, GCC 13, Release, Jolt 5.6.0+cvc.6, gRPC and WS on:
ariadne_scene_world_test(AriadneWorldVehicles.*, 26 tests)cvcgl_ariadne_physicsarigl_pose_entities, 3 of 3 runs on the same hashpycvc_world_entitiesandpycvc_world_poses