livingproof-worlds¶
Start here: documentation — manual source and preview instructions. Publication is pending deployment and live verification.
Versioned, engine-neutral robot test worlds for Living Proof Labs simulators.
A world here describes static geometry, named places (such as an entrance, an exit and the usable passage), the coordinate convention, spawn locations, and the provenance and licence of every asset. Simulator projects such as livingproof-sim-mujoco and livingproof-sim-gazebo pin a released world version and translate it into their own engine; engine conversion lives in those adapters, not here.
Responsibilities¶
- robot-capability-specs defines what a world must demonstrate: user stories, scenarios, acceptance criteria and required evidence.
- This repository supplies the versioned world definitions that satisfy them.
- Simulator repositories load a pinned world, run it, and produce observations and rendered evidence.
- Robot adapters come later and use the same worlds without changing them.
This is deliberately not a universal scene language. A world supports only what its specification requires, and engine-specific differences are documented. Equivalent geometry does not imply identical physics.
Worlds¶
| World | Content version | Specification |
|---|---|---|
hallway-open |
0.1.0 |
robot-capability-specs v1.3.0 specs/worlds/hallways.md, document revision 0.2.0 |
hallway-corner |
0.1.0 |
robot-capability-specs v2.2.2 specs/worlds/README.md, world contract revision 0.3.0 ("Any layout") |
hallway-corner |
0.2.0 |
robot-capability-specs v2.4.0 specs/worlds/README.md, world contract revision 0.4.0 (neutral endpoint traversals) |
Each world lives at worlds/<id>/<content_version>/ as world.json plus a
release.json manifest. task test checks three layers, without running a simulator:
- Schema:
schema/world.schema.jsoncovers formats 0.1 and 0.2;schema/world-0.3.schema.jsoncovers neutral traversals. Both are closed, so an unknown field, geometry type or place type fails withUNSUPPORTEDinstead of being ignored. - Semantic geometry: formats 0.1 and 0.2 meet the layout rules of the
robot-capability-specs world contract 0.3.0 ("Any layout"). Floors and walls are
axis-aligned boxes that do not overlap.
entranceandexitare segments across the clear width. A route polyline runs from the entrance to the exit at least half the clear width from every wall.spawn-entrancelies on the route, facing along it, and every spawn is at least 0.25 m from the walls. Formatlivingproof-world/0.1is a straight hallway along x, with routepassage-centreline: its entrance and exit must also sit on the open ends, and its dimensions must be within 0.01 m of the canonical table in a vendored copy of the pinned spec. Formatlivingproof-world/0.2is any layout of axis-aligned walls, such as two hallways meeting at a corner, with routeroute-centreline. Its frame has+zup with the floor top atz = 0, and a pose's yaw is in degrees, counterclockwise about+zfrom+x. A synthetic L-shaped test world intests/fixtures/worlds/shows it validates. Formatlivingproof-world/0.3uses contract 0.4.0: neutral endpoint segments and named traversal tuples bindfrom,start,routeandfinish. Each ordered route has distinct vertices and an inward-facing spawn strictly inside its first leg. All traversals are validated; geometry stays shared. - Provenance: every asset declares a licence, a source and a sha256, and
release.json(schema) records the id, content version and the sha256 of every file, recomputed on each run. After an intended change in a new version directory, regenerate it withpython tools/validate.py --write-manifest worlds/<id>/<version>.
The original hallway-corner 0.1.0 content is two 1.50 m hallways meeting at a right
angle, with a corner region where they meet and a three-point route-centreline.
It is drawn and documented from world.json the same way, for the walk-corner
scenario in
robot-capability-specs #40.
The first world is an open hallway with a named entrance, exit and usable passage, defined by robot-capability-specs #18. Both simulators will consume the same pinned release and check floor and wall collisions with a simple test object; no robot or controller is involved.
Add a world¶
- Make sure a spec in robot-capability-specs defines the world, then pin its tag
and commit in
specification. - Create
worlds/<id>/<content_version>/world.jsonthat validates against the schema for its declared format (see above). Only add schema features that the spec needs; anything else must stayUNSUPPORTED. - Write
notes.mdbeside it with the hand-written sections## Purpose,## Changelogand## Simulator supportfor formats 0.1/0.2. For format 0.3, use the reusable corner notes as the authoring example. - Run
task render. It generatesworld.svgandREADME.md(fromtools/templates/world-README.md) and rewritesrelease.jsonchecksums. Format 0.3 generates a separate SVG view for each traversal from the same geometry. Commit all generated files, and verify that every previously released directory remains byte-identical. - Add tests for the spec's canonical values in
tests/, then runtask checkandtask test.task checkfails if a README or SVG is missing, stale or lacks a section, or ifrelease.jsondoesn't cover every file.
Never edit a released version directory. Change a world by adding a new version.
Development¶
With Git, Docker Compose v2 and Task 3.54.0 installed: task setup, then
task check and task test (or task verify). Behind a proxy that blocks
deb.debian.org, set APT_MIRROR (for example https://cloudfront.debian.net)
before task setup. Inside the development container, use
task -t Taskfile.runtime.yml verify.
Status¶
hallway-open 0.1.0 is described and validated here and released in
v1.1.0.
Engine conversion lives in the simulators, not here: livingproof-sim-mujoco and
livingproof-sim-gazebo both pin v1.1.0. The MuJoCo hallway is used by the published
robot verification reports;
Gazebo robot verification is not finished yet.
hallway-corner 0.1.0 is described and validated here and is not released yet. It
will be in the next minor release after its pull request merges; no simulator pins it
yet.
License¶
Reusable corner traversals¶
Corner hallway 0.2.0 uses one physical fixture for both directions, with neutral endpoints and explicit traversal references. It consumes robot-capability-specs v2.4.0, contract revision 0.4.0. The existing 0.1.0 content remains unchanged. See the reusable simple worlds authoring guidance.
Documentation home · Docs: 1.4.32 · Version and source · Help / report an issue · License