Skip to content

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:

  1. Schema: schema/world.schema.json covers formats 0.1 and 0.2; schema/world-0.3.schema.json covers neutral traversals. Both are closed, so an unknown field, geometry type or place type fails with UNSUPPORTED instead of being ignored.
  2. 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. entrance and exit are 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-entrance lies on the route, facing along it, and every spawn is at least 0.25 m from the walls. Format livingproof-world/0.1 is a straight hallway along x, with route passage-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. Format livingproof-world/0.2 is any layout of axis-aligned walls, such as two hallways meeting at a corner, with route route-centreline. Its frame has +z up with the floor top at z = 0, and a pose's yaw is in degrees, counterclockwise about +z from +x. A synthetic L-shaped test world in tests/fixtures/worlds/ shows it validates. Format livingproof-world/0.3 uses contract 0.4.0: neutral endpoint segments and named traversal tuples bind from, start, route and finish. Each ordered route has distinct vertices and an inward-facing spawn strictly inside its first leg. All traversals are validated; geometry stays shared.
  3. 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 with python 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

  1. Make sure a spec in robot-capability-specs defines the world, then pin its tag and commit in specification.
  2. Create worlds/<id>/<content_version>/world.json that validates against the schema for its declared format (see above). Only add schema features that the spec needs; anything else must stay UNSUPPORTED.
  3. Write notes.md beside it with the hand-written sections ## Purpose, ## Changelog and ## Simulator support for formats 0.1/0.2. For format 0.3, use the reusable corner notes as the authoring example.
  4. Run task render. It generates world.svg and README.md (from tools/templates/world-README.md) and rewrites release.json checksums. 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.
  5. Add tests for the spec's canonical values in tests/, then run task check and task test. task check fails if a README or SVG is missing, stale or lacks a section, or if release.json doesn'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

Apache-2.0.

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