Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/validation/integration-release-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,16 @@ for the tested wheel and usage scope.
The earlier cabinet QI1 outcomes remain unchanged. The paired drawer showcase
revision retains source mapping, Chinese captions and synchronized displacement
traces. Its final continuous-playback visual review remains pending.

The public dev2 archive subsequently completed the same fixed first delivery
from an isolated installation with empty asset caches. The host acquired the
selected GSO object and notice, ran the physical and native video checks, and
submitted the independently reviewed result in 137.114 seconds with 37,388
observed tokens. The package and receipt hashes are recorded in the
[dev2 release qualification](https://github.com/ros-claw/simscene/releases/download/v0.2.0-dev.2/release-qualification.json).

## Worktop transfer

The post-release worktop trials compare additional pinned props on the
released first-delivery support. Their measurement and historical physics
scope are documented in [worktop transfer](worktop-transfer.md).
56 changes: 56 additions & 0 deletions docs/validation/worktop-transfer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Reusing the first-delivery worktop

The worktop transfer trials reuse the [released first-delivery
recipe](../../examples/first_delivery/README.md) with selected ABO and GSO
objects. The support is an editable, static collision-enabled box with a
horizontal 0.66 × 0.50 m top at 0.72 m. The trials use 240 steps at 60 Hz and
seed 42. Imported props use an explicit convex-hull profile and a 0.12 kg
experimental mass. The initial body height and the asset pins are frozen for
each pose before running.

## Recorded trials

| Tested prop | Observed XY envelope around worktop center | Vertical drop | Direct worktop callbacks |
| --- | ---: | ---: | ---: |
| GSO Ready-to-Use Rolled Fondant box | 90.7 × 240.4 mm | 234.8 mm | 24 (steps 13–36) |
| AmazonBasics Classic Blank Notebook | 89.5 × 150.0 mm | 232.5 mm | 25 (steps 12–36) |
| Crunch Girl Scouts Peanut Butter Creme carton | 151.1 × 149.1 mm | 234.8 mm | 24 (steps 13–36) |

All three pinned runs passed their independent gravity, direct contact, final
bounds and settling checks. Profile parameters and raw run hashes are in the
observations. In the two transfer runs, the prepared prop was placed at the
measured center with a 232.5 mm bottom clearance. Both used the same support
and thresholds as the release trial after freezing the exact object pins and
its initial body-origin height.

The first cold notebook catalog query exhausted its 12-second budget before
any model acquisition. A separate retry completed the metadata query within
45 seconds and produced the recorded notebook result.

## Select for a measured support

A build from the current source exposes the resource template

```text
simscene://recipes/worktop-fit/{width_m}/{depth_m}/{edge_clearance_m}
```

For example, read `simscene://recipes/worktop-fit/0.30/0.24/0.02` to look for
poses that fit a 0.30 × 0.24 m usable rectangle with a 20 mm margin on every
edge. Use the measured unobstructed rectangle of a level, static support with
collision enabled. Width and depth follow the pose axes in the evidence.

The filter compares this rectangle with the measured XY envelope around the
original worktop center. The envelope includes the initial and every recorded
physics sample for that pose. Matches retain the source revision, preparation
parameters and tested pose. The contact and settling entries refer to the
recorded worktop and run. Apply the recorded orientation and offset from
the usable rectangle center. If that rectangle is a subregion of the support,
convert the center and offset to the support-local coordinates used by
`place_on`. Confirm the placement with `scene_measure` and verify a new run.

The filter runs locally and performs no catalog downloads. The checked-in
[observations](../../src/simscene/recipes/data/worktop-support.json) contain
finite cases with measured motion and support. The dev2 download provides the
original GSO first-delivery recipe. The fit resource is a post-release addition
to the source branch.
8 changes: 8 additions & 0 deletions skills/build-scene/references/measured-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ orientation before measuring. `avoid_ids`, `clearance_m`, and world metre
`keepout_bounds:[{min:[x,y,z],max:[x,y,z]}]` reject reserved-space intrusion.
This is geometric placement, not a dynamic stability proof.

If the server exposes the `simscene://recipes/worktop-fit/{width_m}/{depth_m}/{edge_clearance_m}`
resource template, read it before fetching candidates for a level, static
collision-enabled worktop. Use the measured usable rectangle and margin in
metres. The matches identify pinned props in a tested pose with recorded
worktop contact and settling. Apply the recorded orientation and offset from
the usable rectangle center. Express that placement in the support-local
coordinates for `place_on`, measure it, and verify a new physical run.

For repeatable sampled placement of 1–8 existing props, call
`scene_plan_layout(scene_id, ids, support, support_surface, seed, clearance_m,
gap_m, avoid_ids, keepout_bounds)`. Omit `support_surface` for a primitive box
Expand Down
9 changes: 9 additions & 0 deletions src/simscene/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ def fixed_examples_resource() -> str:
from .recipes.registry import list_examples
return json.dumps(list_examples(),ensure_ascii=False)

@server.resource('simscene://recipes/worktop-fit/{width_m}/{depth_m}/{edge_clearance_m}')
def worktop_fit_resource(width_m: str, depth_m: str, edge_clearance_m: str) -> str:
"""Find recorded prop poses that fit a measured, level static worktop. Dimensions are metres."""
import json
from .recipes.worktop_fit import worktop_fit
return json.dumps(worktop_fit(float(width_m), float(depth_m), float(edge_clearance_m)),
ensure_ascii=False, allow_nan=False)


@server.resource('simscene://runtime/identity')
def runtime_identity_resource() -> str:
"""Report this process's loaded package paths and local build identity."""
Expand Down
Loading
Loading