diff --git a/.github/workflows/continuous-grip.yml b/.github/workflows/continuous-grip.yml index c4a2716..e61ebb3 100644 --- a/.github/workflows/continuous-grip.yml +++ b/.github/workflows/continuous-grip.yml @@ -1,4 +1,4 @@ -name: Continuous shoe grip +name: Continuous grip and graspability on: push: pull_request: @@ -31,18 +31,22 @@ jobs: run: | npm ci --ignore-scripts --prefix viewer npm run --prefix viewer build:grip - git diff --exit-code -- src/dvidia_training/grip_lab.bundle.js + npm run --prefix viewer build:graspability + git diff --exit-code -- src/dvidia_training/grip_lab.bundle.js src/dvidia_training/graspability_lab.bundle.js - name: Provision pinned native PiPER mechanics run: | python -m pip install '.[arm]' python -m pip check dvidia-grip-benchmark --help + dvidia-graspability-benchmark --help dvidia-robot-sim fetch piper --output runs/prerequisite-assets-ci dvidia-robot-sim audit piper runs/prerequisite-assets-ci - name: Check native development cases and evidence contracts env: DVIDIA_ROBOT_PROFILE_ASSETS: runs/prerequisite-assets-ci - run: python -m unittest tests.test_continuous_grip tests.test_grip_protocol tests.test_grip_monitor_evidence tests.test_grip_benchmark -v + run: | + python -m unittest tests.test_continuous_grip tests.test_grip_protocol tests.test_grip_monitor_evidence tests.test_grip_benchmark tests.test_graspability tests.test_graspability_protocol tests.test_graspability_benchmark -v + python -m unittest discover -s publishing/huggingface -p 'test_publish_prerequisites.py' -v - name: Retain every development attempt and its replay run: >- dvidia-grip-benchmark --assets runs/prerequisite-assets-ci @@ -80,6 +84,45 @@ jobs: print(json.dumps({'attempts_retained': len(expected), 'groups': report['groups'], 'scope': 'Development regression only; no heldout run or hardware qualification.'})) PY + - name: Retain the direct-pickup development factorial + run: >- + dvidia-graspability-benchmark --assets runs/prerequisite-assets-ci + --output runs/graspability-development-ci --split development + --source-commit "$GITHUB_SHA" + - name: Independently verify every direct-pickup receipt + run: | + python - <<'PY' + from hashlib import sha256 + import json + from pathlib import Path + from dvidia_training.graspability_protocol import score_result + root = Path('runs/graspability-development-ci') + protocol = json.loads((root / 'protocol.json').read_text()) + report = json.loads((root / 'benchmark.json').read_text()) + assert protocol['split'] == report['split'] == 'development' + expected = {row['id']: row for row in protocol['attempts']} + assert len(expected) == len(report['attempts']) == 12 + assert set(expected) == {row['id'] for row in report['attempts']} + assert all(row['valid'] for row in report['attempts']), 'Task failures remain valid; native/export errors do not' + fingerprints = {row['robot_actuator_sha256'] for row in report['attempts']} + assert len(fingerprints) == 1, 'The factorial changed robot actuator settings' + assert (root / 'benchmark.json').stat().st_size <= 8 * 1024 * 1024 + for row in report['attempts']: + receipt = json.loads((root / 'trials' / (row['id'] + '.json')).read_text()) + assert {k: row[k] for k in ('id', 'task', 'policy', 'case')} == expected[row['id']] + assert {k: v for k, v in receipt.items() if k != 'native_trace'} == row + independently_scored = score_result(receipt) + assert independently_scored['task_success'] == row['success'] + assert all(row['independent_score'][k] == value for k, value in independently_scored.items()) + assert all((root / value).is_file() for value in row['replay'].values()) + integrity = json.loads((root / 'integrity.json').read_text()) + for name, entry in integrity['files'].items(): + content = (root / name).read_bytes() + assert len(content) == entry['bytes'] + assert sha256(content).hexdigest() == entry['sha256'], name + print(json.dumps({'attempts_retained': len(expected), 'groups': report['groups'], + 'scope': 'Known development factorial only; no fresh cohort executed.'})) + PY - name: Retain evidence even when a check fails if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 @@ -87,3 +130,10 @@ jobs: name: continuous-grip-development path: runs/grip-development-ci if-no-files-found: ignore + - name: Retain direct-pickup evidence even when a check fails + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: graspability-development + path: runs/graspability-development-ci + if-no-files-found: ignore diff --git a/README.md b/README.md index 5bc58b8..657b46f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,15 @@ **Research alpha.** The recorded demo covers the original one-scene simulation pilot; the frozen benchmark is a separate experiment. Training runs locally. No human-video action bridge or hardware skill is established. +**[Shoe graspability v0.3](https://research.dvidia.org/papers/shoe-graspability-v03/).** +A controlled direct-pickup lab separates rigid object shape, 30 g versus 300 g +load, and mounted versus absent wrist tool. All 24 fresh simulations are valid; +lightweight lifts vary by condition, while all 12 reference-load attempts fail. +This exposes model and grip limitations before adding more retries. +[Explore the 3D comparisons](https://dvidia-robot-simulation-lab.static.hf.space/prerequisites/v03/index.html) · +[Run locally](docs/shoe-graspability.md) · +[Complete results](benchmarks/shoe-graspability-20261014/README.md). + **[Continuous shoe grip v0.2](https://research.dvidia.org/papers/continuous-shoe-grip-v02/).** The mounted-rake experiment now checks grip throughout motion, tests a small lift and lowers onto support before a bounded regrasp. The fresh comparison diff --git a/benchmarks/shoe-graspability-20261014/README.md b/benchmarks/shoe-graspability-20261014/README.md new file mode 100644 index 0000000..d787aa6 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/README.md @@ -0,0 +1,42 @@ +# Shoe graspability v0.3 — frozen diagnostic + +Source: [`73057dc259c6a19344906f4a43a283553e17ade0`](https://github.com/Dvidia-Inference/dvidia-training/tree/73057dc259c6a19344906f4a43a283553e17ade0). + +**All 24 native attempts are valid. The 30 g controls complete 8/12 lifts; all 12 attempts at 300 g fail.** Removing the rake gains one narrow-shoe result and loses one block result, with no net completion gain. The full rigid shoe completes 1/2 lightweight cases with either tool condition and 0/2 at 300 g. This is a direct-grasp diagnostic, not a shoe retrieval success rate or an improvement claim over v0.2. + +[Research](https://research.dvidia.org/papers/shoe-graspability-v03/) · [Complete recorded trials](https://research.dvidia.org/downloads/topics/physical-grounding/runs/2026-10-14-shoe-graspability-v03/lab/) · [Hugging Face](https://dvidia-robot-simulation-lab.static.hf.space/prerequisites/v03/index.html) · [Run locally](../../docs/shoe-graspability.md) + +| Rigid shape | 30 g, rake mounted | 30 g, rake absent | 300 g, mounted | 300 g, absent | +| --- | ---: | ---: | ---: | ---: | +| 40 mm block | 2/2 | 1/2 | 0/2 | 0/2 | +| Narrow shoe proxy | 1/2 | 2/2 | 0/2 | 0/2 | +| Current shoe proxy | 1/2 | 1/2 | 0/2 | 0/2 | + +The two replicates use paired layout/friction combinations. The controller has fixed shape-specific grasp offsets and shares its trajectory, gains and command limits across the tool and load conditions. The rake is present or absent from reset. Its removal changes collision geometry and wrist inertia; neither autonomous detachment nor the preceding retrieval is tested. Shape changes also change inertia and contact geometry. A 30 g shoe shape is a deliberate lightweight control, not a measured physical shoe. + +## Evidence + +- [Frozen protocol](protocol.json), [all-attempt benchmark index](benchmark.json), [complete export inventory](integrity.json). +- [Derived counts, timing and force summary](analysis.json). +- [Independent native audit](frozen-audit.json), [portable audit script](audit_frozen.py), [recorded jaw-limit diagnostic](jaw-limit-audit.json) and [diagnostic script](audit_jaw_limits.py). +- [Source-bound release acceptance](acceptance.json) and [local browser checks](browser-qa.json). + +This directory contains compact evidence. The complete **107-file, 55,750,637-byte** export includes every full trial, all 79,200 native ticks, geometry and motion, replay UI and upstream licenses on the linked research site and Hugging Face. The source was frozen before this single confirmation execution. Replaying or rerunning these cases does not make them unseen evaluation data again. + +The independent scorer verifies world-supported, robot-clear settling at 0.4 s over the previous 100 ms, with at most 1 mm position variation on each axis. Success needs object-origin rise **at least 35 mm** relative to that reference, both finger normal forces **above 0.01 N**, and world/rake/other-robot support **below 0.01 N** on all 250 final native ticks (500 ms). The object's lowest collision surface is reported separately. These are synthetic scoring conventions, not physical force or safety limits. + +All 12 tool pairs retain the same robot actuator fingerprint. Full compiled-model hashes differ because object shape, mass and tool geometry differ. Trial validity means numerical/evidence validity, not successful manipulation or hardware fidelity. + +## What changed in our understanding + +The current scene does not establish that the shoe alone is the problem. Even the block fails every 300 g condition. The pinned gripper position-drive gain is 40 N/m, damping is 5 N·s/m, and its actuator cap is ±10 N. A force cap does not cause the actuator to apply that force. The highest absolute gripper actuator force across this cohort is **1.7024 N**, a transient observation rather than a guaranteed gripping capacity. Actual fingertip contact forces are separate trace columns. No setting was increased to make the benchmark pass. + +The full shoe is a rigid, solid proxy: no hollow collar, flexible upper, laces or heel tab. Its 100 mm sole and 94 mm upper exceed the pinned model's nominal 70 mm slide-coordinate span, while the controller targets a narrower region. This geometry omits useful physical grasp strategies and does not prove all shoe grasps impossible. Both retained lightweight current-shoe attempts also exceed the nominal 70 mm span throughout their final 250 native ticks: **71.003–71.135 mm mounted; 71.597–71.768 mm absent**. Sampled issued commands remain within their limits, while the simulated joint-limit constraints permit actual overtravel. The frozen score did not include a joint-limit tolerance, so those results are unchanged. This does not establish a physical aperture or prove the same lift works with hard travel stops. Next work should check drive calibration and reachable contact geometry against named hardware. + +## Timing + +On the recorded macOS arm64 host, Python 3.12.9 and MuJoCo 3.15.0, the 24 attempts total **158.40 simulated seconds**, **8.4043 s native wall time**, and **20.0317 s separate audit/export time**. Each episode is 6.60 simulated seconds. Native timing includes initialization, control, physics and recording, excluding rendering, downloads and physical sensing/actuation. + +There are 7,920 timed target-solver calls: p95 **0.0443 ms**, maximum **4.2008 ms**, zero above 20 ms. These calls do not measure the complete observation/control loop or establish real-time hardware latency. CPU-native simulation needs no discrete GPU; browser replay requires WebGL2. Minimum RAM remains unmeasured. + +Authored policy, privileged simulator observations, rigid synthetic contacts and uncalibrated hardware parameters. Original code and synthetic primitives are MIT; upstream notices are bundled. No learned skill or physical-robot qualification is claimed. diff --git a/benchmarks/shoe-graspability-20261014/acceptance.json b/benchmarks/shoe-graspability-20261014/acceptance.json new file mode 100644 index 0000000..9882408 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/acceptance.json @@ -0,0 +1,16 @@ +{ + "schema": "dvidia.graspability-publication-acceptance/v1", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "tests_passed": true, + "browser_qa_passed": true, + "benchmark_reviewed": true, + "benchmark_sha256": "b17a057e8f9aebe8335b2ef7ee683f38bd1a1ebd284f551254c9c2625604b7a7", + "integrity_sha256": "329284b83d15364b61113fafe5daf05f163f0d62ecc66ebb145ce28ee229e935", + "browser_qa_sha256": "39f64e278a510519698b085245efa09a1e3d68dd8543f53359691ece6a720b62", + "independent_audit_sha256": "de6b685b0300a7c46f108dec87179268dbbed33037723b02f0b554e30ca32e84", + "tests": { + "native_and_regression_passed": 48, + "publication_passed": 26 + }, + "scope": "Publish complete diagnostic evidence, including failures; no controller or physics alterations after source freeze." +} diff --git a/benchmarks/shoe-graspability-20261014/analysis.json b/benchmarks/shoe-graspability-20261014/analysis.json new file mode 100644 index 0000000..a148ac6 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/analysis.json @@ -0,0 +1,212 @@ +{ + "schema": "dvidia.graspability-analysis/v3", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "benchmark_sha256": "b17a057e8f9aebe8335b2ef7ee683f38bd1a1ebd284f551254c9c2625604b7a7", + "integrity_sha256": "329284b83d15364b61113fafe5daf05f163f0d62ecc66ebb145ce28ee229e935", + "attempts": 24, + "valid": 24, + "diagnostic_lifts": 8, + "groups": [ + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.8524755409453064 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7190215003211051 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6634467490948737 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6968085840344429 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6847902501467615 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.9523207088932395 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6063288331497461 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6478457078337669 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7174647499341518 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6380515417549759 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.5986854590009898 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6270182910375297 + } + ], + "tool_absent_paired_gains": 1, + "tool_absent_paired_losses": 1, + "all_paired_robot_actuators_match": true, + "simulated_seconds": 158.39999999998787, + "native_wall_seconds": 8.40425791614689, + "audit_export_wall_seconds": 20.031671040458605, + "target_solver_calls": 7920, + "target_solver_p50_ms": 0.0238749198615551, + "target_solver_p95_ms": 0.044250162318348885, + "target_solver_max_ms": 4.200750030577183, + "target_solver_over_20ms": 0, + "percentile_method": "Nearest-rank p95 over all recorded target-solver calls; p50 median. Not a whole-loop latency measure.", + "export_files": 107, + "export_bytes": 55750637, + "native_ticks": 79200, + "max_gripper_actuator_force_abs_n": 1.7023603196120416, + "scope": "One frozen factorial confirmation run; direct in-reach pickup under authored policy and synthetic contacts. The 8/24 aggregate mixes shape/load/tool diagnostic cells and is not a shoe reliability rate." +} diff --git a/benchmarks/shoe-graspability-20261014/audit_frozen.py b/benchmarks/shoe-graspability-20261014/audit_frozen.py new file mode 100644 index 0000000..90f7f19 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/audit_frozen.py @@ -0,0 +1,143 @@ +"""Audit sealed v03 evidence and compile declared models without simulation steps.""" +import argparse +from hashlib import sha256 +from pathlib import Path +import json +import math +import subprocess +import time +from dvidia_training import graspability, graspability_protocol, graspability_benchmark, reference_sim + +parser = argparse.ArgumentParser(description=__doc__) +parser.add_argument('--repository', type=Path, default=Path.cwd(), + help='Source Git checkout; defaults to the current working directory') +parser.add_argument('--export', required=True, type=Path) +parser.add_argument('--assets', required=True, type=Path) +parser.add_argument('--output', required=True, type=Path) +args = parser.parse_args() +REPO = Path(subprocess.check_output( + ['git', '-C', str(args.repository.resolve()), 'rev-parse', '--show-toplevel'], + text=True).strip()).resolve() +ROOT = args.export.resolve() +OUTPUT = args.output.resolve() +SOURCE = '73057dc259c6a19344906f4a43a283553e17ade0' +ASSETS = args.assets.resolve() +started = time.perf_counter() +report = json.loads((ROOT / 'benchmark.json').read_bytes()) +protocol = json.loads((ROOT / 'protocol.json').read_bytes()) +seal = json.loads((ROOT / 'integrity.json').read_bytes()) +assert report['source']['commit'] == protocol['source_commit'] == SOURCE +assert report['source']['protocol_sha256'] == sha256((ROOT / 'protocol.json').read_bytes()).hexdigest() +assert protocol['split'] == report['split'] == 'heldout' +assert protocol['fixture_sha256'] == graspability_protocol.FIXTURE_SHA256 +assert protocol['attempts'] == graspability_protocol.protocol('heldout')['attempts'] +assert len(protocol['attempts']) == len(report['attempts']) == 24 +actual_files = {p.relative_to(ROOT).as_posix() for p in ROOT.rglob('*') if p.is_file()} +assert actual_files == set(seal['files']) | {'integrity.json'} +for name, entry in seal['files'].items(): + raw = (ROOT / name).read_bytes() + assert len(raw) == entry['bytes'] and sha256(raw).hexdigest() == entry['sha256'], name +for name, digest in protocol['implementation_sha256'].items(): + rel = 'src/dvidia_training/' + name + committed = subprocess.check_output(['git', 'show', SOURCE + ':' + rel], cwd=REPO) + assert sha256(committed).hexdigest() == digest, name + assert sha256((REPO / rel).read_bytes()).hexdigest() == digest, name +mj, np = reference_sim._native_imports() +# Compiling a model is permitted; executing any native step is forbidden here. +def forbidden_step(*args, **kwargs): + raise AssertionError('Independent export audit must not rerun native physics') +mj.mj_step = forbidden_step +native_robot_contract = None +rows = [] +for planned, row in zip(protocol['attempts'], report['attempts']): + assert {k: row[k] for k in ('id', 'task', 'policy', 'case')} == planned + receipt = json.loads((ROOT / 'trials' / (row['id'] + '.json')).read_bytes()) + assert {k: v for k, v in receipt.items() if k != 'native_trace'} == row + score = graspability_protocol.score_result(receipt) + assert row['valid'] and score['valid'] + assert score['task_success'] == row['success'] + assert all(row['independent_score'][k] == v for k, v in score.items()) + assert row['independent_score']['controller_claim_agrees'] + assert row['controller_reported_success'] == row['success'] + assert score['reference'] and score['reference']['valid'] + case = row['case'] + model = graspability.build_model(ASSETS, case, tool=case['tool_condition']) + assert reference_sim.model_digest(model) == row['independent_score']['compiled_model_sha256'] + assert graspability_benchmark.robot_actuator_fingerprint(model) == row['robot_actuator_sha256'] + obj = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, graspability.ws.SHOE) + assert math.isclose(float(model.body_mass[obj]), case['mass'], abs_tol=1e-12) + assert model.body_gravcomp[obj] == 0 + assert model.jnt_type[model.body_jntadr[obj]] == mj.mjtJoint.mjJNT_FREE + assert row['metrics']['object_equality_constraints'] == 0 + assert row['metrics']['object_external_force_used'] is False + assert row['metrics']['solver_warnings'] == 0 + np.testing.assert_allclose(model.body_pos[obj][:2], [case['object_x'], case['object_y']], atol=1e-12) + for g in range(int(model.body_geomadr[obj]), int(model.body_geomadr[obj] + model.body_geomnum[obj])): + np.testing.assert_allclose(model.geom_friction[g], [case['friction'], .005, .0001], atol=1e-12) + tool = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, 'reach_rake') + assert (tool >= 0) == (case['tool_condition'] == 'mounted') + # Compare named robot links directly as well as the declared actuator hash. + robot = {} + for name in ('base_link', *(f'link{i}' for i in range(1, 9))): + body = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, name) + if body < 0: + continue + robot[name] = {key: np.asarray(getattr(model, key)[body]).tolist() for key in + ('body_mass', 'body_inertia', 'body_ipos', 'body_iquat')} + if native_robot_contract is None: + native_robot_contract = robot + assert robot == native_robot_contract + trace = np.asarray(receipt['native_trace']) + columns = receipt['native_trace_columns'] + final = trace[-250:] + drive = trace[:, columns.index('gripper_actuator_force_n')] + rows.append({'id': row['id'], 'object_shape': case['object_shape'], + 'mass_kg': case['mass'], 'tool_condition': case['tool_condition'], + 'replicate_id': case['replicate_id'], 'friction': case['friction'], + 'valid': row['valid'], 'success': row['success'], + 'compiled_model_sha256': row['independent_score']['compiled_model_sha256'], + 'failed_criteria': score['failed_criteria'], + 'terminal_relative_lift_m': score['terminal_relative_lift_m'], + 'minimum_final_collision_surface_z_m': score['minimum_final_collision_surface_z_m'], + 'final_bilateral_missing_ticks': score['bilateral_contact_missing_ticks'], + 'final_world_supported_ticks': score['world_supported_ticks'], + 'final_tool_supported_ticks': score['tool_supported_ticks'], + 'final_other_robot_supported_ticks': score['other_robot_supported_ticks'], + 'max_abs_native_gripper_actuator_force_n': float(np.max(np.abs(drive))), + 'closure_observation': row['metrics']['closure_observation'], + 'simulation_seconds': row['metrics']['simulation_seconds'], + 'native_wall_seconds': row['wall_seconds'], + 'audit_export_seconds': row['export_seconds']}) +assert graspability_benchmark.summarize(report['attempts']) == report['groups'] +assert graspability_benchmark.paired_comparisons(report['attempts']) == report['paired_comparisons'] +assert all(pair['valid_pair'] and pair['same_robot_actuators'] for pair in report['paired_comparisons']) +assert len({row['robot_actuator_sha256'] for row in report['attempts']}) == 1 +simulation_seconds = sum(row['simulation_seconds'] for row in rows) +native_wall_seconds = sum(row['native_wall_seconds'] for row in rows) +result = {'schema': 'dvidia.graspability-independent-audit/v3', + 'scope': 'Recomputed all recorded scores and compiled all declared models; no native simulation steps or controller tuning.', + 'source_commit': SOURCE, + 'protocol_sha256': sha256((ROOT / 'protocol.json').read_bytes()).hexdigest(), + 'benchmark_sha256': sha256((ROOT / 'benchmark.json').read_bytes()).hexdigest(), + 'integrity_sha256': sha256((ROOT / 'integrity.json').read_bytes()).hexdigest(), + 'fixture_sha256': graspability_protocol.FIXTURE_SHA256, + 'native_steps_executed_by_audit': 0, + 'compiled_models_verified': len(rows), 'attempts_verified': len(rows), + 'valid_attempts': sum(row['valid'] for row in rows), + 'files_verified': len(seal['files']), + 'implementation_files_bound_to_frozen_commit': len(protocol['implementation_sha256']), + 'robot_link_mass_inertia_unchanged': True, + 'robot_actuator_sha256': report['attempts'][0]['robot_actuator_sha256'], + 'groups': report['groups'], 'paired_comparisons': report['paired_comparisons'], + 'timing': {'simulated_seconds': simulation_seconds, + 'native_wall_seconds': native_wall_seconds, + 'simulated_to_native_wall_ratio': simulation_seconds / native_wall_seconds, + 'audit_export_wall_seconds': sum(row['audit_export_seconds'] for row in rows), + 'scope': report['timing_scope']}, + 'load_context': {'lightweight_control_weight_n': .03 * 9.81, + 'reference_load_weight_n': .30 * 9.81, + 'gripper_position_gain_n_per_m': 40., + 'scope': 'Assumed model loads and pinned simulator gain. Contact normals can include table pressure; signed actuator force is not directly measured pinch capacity. These runs do not identify physical PiPER payload or isolate a calibrated friction limit.'}, + 'rows': rows, 'audit_wall_seconds': time.perf_counter() - started} +OUTPUT.write_text(json.dumps(result, indent=2, allow_nan=False) + '\n') +print(json.dumps({k: result[k] for k in ('source_commit', 'attempts_verified', 'valid_attempts', 'files_verified', 'compiled_models_verified', 'timing', 'groups')}, indent=2)) diff --git a/benchmarks/shoe-graspability-20261014/audit_jaw_limits.py b/benchmarks/shoe-graspability-20261014/audit_jaw_limits.py new file mode 100644 index 0000000..88b56f0 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/audit_jaw_limits.py @@ -0,0 +1,59 @@ +"""Read native jaw spans and sampled joint positions; execute no simulation.""" +import argparse +from hashlib import sha256 +import json +from pathlib import Path +from dvidia_training import graspability, reference_sim + +parser = argparse.ArgumentParser(description=__doc__) +parser.add_argument('--export', required=True, type=Path) +parser.add_argument('--assets', required=True, type=Path) +parser.add_argument('--output', required=True, type=Path) +args = parser.parse_args() +root = args.export +report = json.loads((root / 'benchmark.json').read_bytes()) +mj, np = reference_sim._native_imports() +model = graspability.build_model(args.assets, report['attempts'][0]['case'], + tool=report['attempts'][0]['case']['tool_condition']) +ranges = model.jnt_range[:8] +nominal_span = float(ranges[6, 1] - ranges[7, 0]) +rows = [] +for attempt in report['attempts']: + receipt = json.loads((root / 'trials' / (attempt['id'] + '.json')).read_bytes()) + columns = receipt['native_trace_columns'] + trace = np.asarray(receipt['native_trace']) + jaw = trace[:, columns.index('jaw_opening_m')] + final = jaw[-250:] + motion = json.loads((root / attempt['replay']['motion']).read_bytes()) + sampled = motion['rows'] + qpos = np.asarray([row['qpos_rad_m'][:8] for row in sampled]) + violations = np.maximum(np.maximum(qpos - ranges[:, 1], ranges[:, 0] - qpos), 0.) + final_rows = [row for row in sampled if row['t'] > trace[-1, 0] - .5 + 1e-8] + final_qpos = np.asarray([row['qpos_rad_m'][:8] for row in final_rows]) + final_violation = np.maximum(np.maximum(final_qpos - ranges[:, 1], ranges[:, 0] - final_qpos), 0.) + ctrl = np.asarray([row['issued_ctrl'] for row in sampled]) + ctrllimits = model.actuator_ctrlrange + assert np.all(ctrl >= ctrllimits[:, 0] - 1e-10) and np.all(ctrl <= ctrllimits[:, 1] + 1e-10) + rows.append({'id': attempt['id'], 'object_shape': attempt['case']['object_shape'], + 'mass_kg': attempt['case']['mass'], 'tool_condition': attempt['case']['tool_condition'], + 'retention_success_under_frozen_criteria': attempt['success'], + 'maximum_native_jaw_span_m': float(np.max(jaw)), + 'minimum_final_native_jaw_span_m': float(np.min(final)), + 'maximum_final_native_jaw_span_m': float(np.max(final)), + 'final_native_ticks_above_nominal_span': int(np.sum(final > nominal_span + 1e-9)), + 'max_joint_limit_violation_on_20ms_frames_rad_m': np.max(violations, axis=0).tolist(), + 'max_final_joint_limit_violation_on_20ms_frames_rad_m': np.max(final_violation, axis=0).tolist(), + 'issued_commands_within_declared_control_limits_on_all_exported_frames': True}) +result = {'schema': 'dvidia.graspability-jaw-limit-diagnostic/v3', + 'source_commit': report['source']['commit'], + 'benchmark_sha256': sha256((root / 'benchmark.json').read_bytes()).hexdigest(), + 'scope': 'Post-freeze diagnostic on recorded data only. Native jaw-span observations are every2ms; individual joint-position observations are sampled every20ms. No rescoring, controller tuning or simulation steps.', + 'native_steps_executed_by_audit': 0, + 'nominal_slide_coordinate_span_m': nominal_span, + 'pinned_robot_joint_ranges_rad_m': ranges.tolist(), + 'interpretation': 'MuJoCo joint limits are compliant constraints, while actuator command limits bound issued targets. Recorded jaw coordinates can exceed nominal travel under contact. Existing retention criteria did not include a joint-limit tolerance, so scores stay unchanged. Observed overtravel does not establish real hardware aperture or prove that the same lift works with hard travel stops.', + 'rows': rows} +args.output.write_text(json.dumps(result, indent=2, allow_nan=False) + '\n') +for row in rows: + if row['object_shape'] == 'current-shoe' and row['retention_success_under_frozen_criteria']: + print(json.dumps(row, indent=2)) diff --git a/benchmarks/shoe-graspability-20261014/benchmark.json b/benchmarks/shoe-graspability-20261014/benchmark.json new file mode 100644 index 0000000..23da4bf --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/benchmark.json @@ -0,0 +1,14988 @@ +{ + "schema": "dvidia.graspability/v3", + "scope": "Authored direct in-reach pickup with pinned PiPER drives, rigid object proxies and privileged native observations. Shape, explicit load and mounted-tool conditions are diagnostic controls. No learned skill, tool detachment, retrieval or hardware qualification.", + "source": { + "commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "protocol_sha256": "27a4d1dfc4fe49b96311d8e5fea7f0d1897526a37aed824ba8405939c169d3f5", + "mujoco": "3.15.0", + "numpy": "2.5.3", + "robot_assets": { + "profile": "piper", + "repository": "https://github.com/google-deepmind/mujoco_menagerie", + "commit": "0059d4335f8156206f63a35662313385f7ad6d74", + "files_verified": 90, + "bytes_verified": 34562302, + "lock_sha256": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe", + "simulation_asset_license": "MIT" + } + }, + "split": "heldout", + "host": { + "system": "Darwin", + "release": "25.5.0", + "machine": "arm64", + "python": "3.12.9", + "numpy": "2.5.3", + "mujoco": "3.15.0", + "compute": "CPU native simulation; browser replay needs WebGL2. No GPU required for native benchmark." + }, + "learned_policy": false, + "hardware_validated": false, + "attempts": [ + { + "id": "grasp-fresh-01-light-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.5814414580818266, + "real_time_factor": 11.351099768105414, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 8e-06, + 8e-06, + 8e-06 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.8223884666341261, + "peak_object_origin_rise_m": 0.222398379327335, + "peak_lowest_surface_z_m": 0.22124519386673783, + "final_object_position_m": [ + 0.40115978513587364, + -0.11624945431802022, + 0.21791766872170093 + ], + "final_lowest_surface_z_m": 0.21633650269748314, + "closure_observation": { + "finger_normal_forces_n": [ + 0.28184588866069815, + 0.4869884424647821 + ], + "world_support_n": 0.6251021748231735, + "actuator_force_n": -0.7664057786486548, + "jaw_opening_m": 0.03911216478233269 + }, + "policy_compute_p50_ms": 0.02377049531787634, + "policy_compute_p95_ms": 0.044937781058251865, + "policy_compute_max_ms": 0.6139581091701984, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904815, + "object_lowest_z_m": -0.0001077864535468688 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.28184588866069815, + 0.4869884424647821 + ], + "world_object_force_n": 0.6251021748231735, + "gripper_actuator_force_n": -0.7664057786486548, + "jaw_opening_m": 0.03911216478233269 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.5897014169022441, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.027584144845604897, + 0.04512490704655647, + 0.027167145162820816, + 0.027667032554745674, + 0.05124998278915882, + 0.028708018362522125, + 0.025124987587332726, + 0.0253340695053339, + 0.025582965463399887, + 0.026250025257468224, + 0.023582950234413147, + 0.023624859750270844, + 0.0238749198615551, + 0.028625130653381348, + 0.025999965146183968, + 0.025541987270116806, + 0.045666005462408066, + 0.029959017410874367, + 0.026333844289183617, + 0.02691708505153656, + 0.05487492308020592, + 0.035708071663975716, + 0.05937507376074791, + 0.03383401781320572, + 0.027416972443461418, + 0.03541703335940838, + 0.025124987587332726, + 0.024208100512623787, + 0.023750122636556625, + 0.0238749198615551, + 0.02337503246963024, + 0.02350006252527237, + 0.023250002413988113, + 0.022165942937135696, + 0.021958956494927406, + 0.023999949917197227, + 0.038125086575746536, + 0.03558420576155186, + 0.032041920349001884, + 0.03129197284579277, + 0.024792039766907692, + 0.025124987587332726, + 0.026124995201826096, + 0.02437504008412361, + 0.025124987587332726, + 0.025582965463399887, + 0.025124987587332726, + 0.023208092898130417, + 0.02329121343791485, + 0.02287491224706173, + 0.022249994799494743, + 0.022500054910779, + 0.022249994799494743, + 0.024041160941123962, + 0.021999934688210487, + 0.021750107407569885, + 0.021832995116710663, + 0.021792016923427582, + 0.021625077351927757, + 0.0213750172406435, + 0.021582935005426407, + 0.02229190431535244, + 0.05541718564927578, + 0.025625107809901237, + 0.024166889488697052, + 0.023124972358345985, + 0.02291705459356308, + 0.05791592411696911, + 0.034833094105124474, + 0.027292175218462944, + 0.025209039449691772, + 0.03024982288479805, + 0.023292144760489464, + 0.02287491224706173, + 0.02245791256427765, + 0.022166874259710312, + 0.02187490463256836, + 0.02237502485513687, + 0.025041168555617332, + 0.02216617576777935, + 0.023582950234413147, + 0.022041145712137222, + 0.02150004729628563, + 0.04916684702038765, + 0.025124987587332726, + 0.02412521280348301, + 0.023624859750270844, + 0.023207860067486763, + 0.022500054910779, + 0.022750115022063255, + 0.022292137145996094, + 0.02483394928276539, + 0.02350006252527237, + 0.03479211591184139, + 0.027250032871961594, + 0.024208100512623787, + 0.026625115424394608, + 0.023875152692198753, + 0.02645794302225113, + 0.023250002413988113, + 0.0374580267816782, + 0.029333867132663727, + 0.024082837626338005, + 0.02345792017877102, + 0.0524579081684351, + 0.033708056434988976, + 0.029209069907665253, + 0.023790867999196053, + 0.023624859750270844, + 0.022709136828780174, + 0.026875175535678864, + 0.022625084966421127, + 0.02191704697906971, + 0.021999934688210487, + 0.02254103310406208, + 0.022792024537920952, + 0.022082822397351265, + 0.02787495031952858, + 0.028542010113596916, + 0.022083986550569534, + 0.02333289012312889, + 0.026999972760677338, + 0.022124964743852615, + 0.028542010113596916, + 0.026416964828968048, + 0.043082982301712036, + 0.02337503246963024, + 0.023707980290055275, + 0.02258317545056343, + 0.0227498821914196, + 0.022500054910779, + 0.02233404666185379, + 0.022207852452993393, + 0.02316618338227272, + 0.024124979972839355, + 0.023165950551629066, + 0.02316618338227272, + 0.02295803278684616, + 0.023124972358345985, + 0.024499837309122086, + 0.023707980290055275, + 0.022666994482278824, + 0.022333115339279175, + 0.022625084966421127, + 0.025041867047548294, + 0.022292137145996094, + 0.6139581091701984, + 0.026916153728961945, + 0.023458153009414673, + 0.023416941985487938, + 0.02395804040133953, + 0.022290972992777824, + 0.03591692075133324, + 0.026332912966609, + 0.024290988221764565, + 0.023999949917197227, + 0.026332912966609, + 0.022875145077705383, + 0.031250063329935074, + 0.025541987270116806, + 0.024167122319340706, + 0.023333122953772545, + 0.023124972358345985, + 0.022583873942494392, + 0.02537504769861698, + 0.022166874259710312, + 0.022249994799494743, + 0.04470907151699066, + 0.023416010662913322, + 0.02291589044034481, + 0.022208085283637047, + 0.0227498821914196, + 0.022707972675561905, + 0.023707980290055275, + 0.022167107090353966, + 0.02345792017877102, + 0.022416934370994568, + 0.021875137463212013, + 0.023875152692198753, + 0.03083283081650734, + 0.027041882276535034, + 0.02537504769861698, + 0.02391589805483818, + 0.02474989742040634, + 0.022750115022063255, + 0.022709136828780174, + 0.022582942619919777, + 0.02187490463256836, + 0.05183415487408638, + 0.02395804040133953, + 0.022165942937135696, + 0.022333115339279175, + 0.03541586920619011, + 0.027417205274105072, + 0.026416964828968048, + 0.02454221248626709, + 0.023250002413988113, + 0.02350006252527237, + 0.023124972358345985, + 0.023167114704847336, + 0.026250025257468224, + 0.027207890525460243, + 0.024667009711265564, + 0.022625084966421127, + 0.029082875698804855, + 0.02429191954433918, + 0.02337503246963024, + 0.022750115022063255, + 0.022957799956202507, + 0.04512490704655647, + 0.02233288250863552, + 0.022790860384702682, + 0.022249994799494743, + 0.02170819789171219, + 0.02195802517235279, + 0.021709129214286804, + 0.021584099158644676, + 0.022042077034711838, + 0.05037500523030758, + 0.029125018045306206, + 0.024166889488697052, + 0.024625100195407867, + 0.03358302637934685, + 0.026082852855324745, + 0.023207860067486763, + 0.022333115339279175, + 0.022541964426636696, + 0.022541964426636696, + 0.022541964426636696, + 0.022416934370994568, + 0.042750034481287, + 0.029791146516799927, + 0.02508307807147503, + 0.02391706220805645, + 0.022792024537920952, + 0.023250002413988113, + 0.02345908433198929, + 0.022709136828780174, + 0.02345792017877102, + 0.02350006252527237, + 0.023290980607271194, + 0.025625107809901237, + 0.022290972992777824, + 0.022500054910779, + 0.0388328917324543, + 0.026916153728961945, + 0.025208108127117157, + 0.024250010028481483, + 0.02437504008412361, + 0.023667002096772194, + 0.022834166884422302, + 0.0463749747723341, + 0.024667009711265564, + 0.02458319067955017, + 0.023999949917197227, + 0.023290980607271194, + 0.023124972358345985, + 0.023250002413988113, + 0.02291705459356308, + 0.02808310091495514, + 0.02370821312069893, + 0.022999942302703857, + 0.023250002413988113, + 0.030708033591508865, + 0.024458160623908043, + 0.023916829377412796, + 0.023124972358345985, + 0.029792077839374542, + 0.03308313898742199, + 0.026042107492685318, + 0.027542002499103546, + 0.023999949917197227, + 0.049625057727098465, + 0.023166881874203682, + 0.022958964109420776, + 0.025041168555617332, + 0.02545793540775776, + 0.022707972675561905, + 0.02237502485513687, + 0.022707972675561905, + 0.02491590566933155, + 0.024499837309122086, + 0.02400018274784088, + 0.026332912966609, + 0.022624852135777473, + 0.022124964743852615, + 0.022584106773138046, + 0.02350006252527237, + 0.022625084966421127, + 0.029749935492873192, + 0.024792039766907692, + 0.02350006252527237, + 0.02291589044034481, + 0.05237502045929432, + 0.02595805563032627, + 0.025625107809901237, + 0.022416934370994568, + 0.022416934370994568, + 0.022166874259710312, + 0.02204091288149357, + 0.02237502485513687, + 0.02187490463256836, + 0.022541964426636696, + 0.0235831830650568, + 0.022875145077705383, + 0.02295803278684616, + 0.022792024537920952, + 0.022166874259710312, + 0.02233404666185379, + 0.022207852452993393, + 0.022124964743852615, + 0.03587501123547554, + 0.026624882593750954, + 0.025416025891900063, + 0.05291611887514591, + 0.044291140511631966, + 0.03416696563363075, + 0.02737506292760372, + 0.024333130568265915, + 0.02383394166827202, + 0.030667055398225784, + 0.02745911478996277, + 0.028625130653381348, + 0.024417182430624962, + 0.02445909194648266, + 0.0235831830650568, + 0.026332912966609, + 0.02391706220805645, + 0.023250002413988113, + 0.026041874662041664 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904815, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.319255898441952e-13, + 4.581057755359552e-14, + 9.531326229120717e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.21802545516888996, + "maximum_relative_lift_m": 0.222398379327335, + "minimum_final_relative_lift_m": 0.21619000472886088, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.21464964456186214, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "5e64effef1ba5138ca4cd60945d7dc131a0632b1c2f5368bc065cfb142d2d726" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-01-light-easy-block-mounted.model.json", + "motion": "trials/grasp-fresh-01-light-easy-block-mounted.motion.json" + }, + "export_seconds": 0.8939502080902457 + }, + { + "id": "grasp-fresh-01-light-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3452384581323713, + "real_time_factor": 19.11722128439388, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 8e-06, + 8e-06, + 8e-06 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.9054504902852831, + "peak_object_origin_rise_m": 0.22862069725665918, + "peak_lowest_surface_z_m": 0.22054828106985835, + "final_object_position_m": [ + 0.4098169258053336, + -0.15049865040067611, + 0.01989224454990295 + ], + "final_lowest_surface_z_m": -0.00010775547205658237, + "closure_observation": { + "finger_normal_forces_n": [ + 0.3532047294984325, + 0.4214003719210142 + ], + "world_support_n": 0.14952881417797267, + "actuator_force_n": -0.7766044644516528, + "jaw_opening_m": 0.03953216930701619 + }, + "policy_compute_p50_ms": 0.022957916371524334, + "policy_compute_p95_ms": 0.03108395030722022, + "policy_compute_max_ms": 0.053999945521354675, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904815, + "object_lowest_z_m": -0.0001077864535468688 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.3532047294984325, + 0.4214003719210142 + ], + "world_object_force_n": 0.14952881417797267, + "gripper_actuator_force_n": -0.7766044644516528, + "jaw_opening_m": 0.03953216930701619 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3910003306037872, + -0.11299993472059401, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.34633345901966095, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.0238749198615551, + 0.028584152460098267, + 0.02487492747604847, + 0.025124987587332726, + 0.023250002413988113, + 0.0227498821914196, + 0.023625092580914497, + 0.023374799638986588, + 0.022707972675561905, + 0.022792024537920952, + 0.023250002413988113, + 0.027916859835386276, + 0.02345792017877102, + 0.02233288250863552, + 0.032542040571570396, + 0.026582973077893257, + 0.024582957848906517, + 0.02366607077419758, + 0.024374807253479958, + 0.02333405427634716, + 0.026582973077893257, + 0.05049980245530605, + 0.033708056434988976, + 0.02791709266602993, + 0.025290995836257935, + 0.024084001779556274, + 0.02370891161262989, + 0.0238749198615551, + 0.023124972358345985, + 0.023124972358345985, + 0.02395804040133953, + 0.024209031835198402, + 0.02316618338227272, + 0.027999980375170708, + 0.0249580480158329, + 0.024042092263698578, + 0.026208115741610527, + 0.022666994482278824, + 0.02233288250863552, + 0.022875145077705383, + 0.022500054910779, + 0.023582950234413147, + 0.021875137463212013, + 0.02258317545056343, + 0.022707972675561905, + 0.02229190431535244, + 0.022582942619919777, + 0.02270820550620556, + 0.023625092580914497, + 0.02287491224706173, + 0.02295803278684616, + 0.022541964426636696, + 0.022500054910779, + 0.022249994799494743, + 0.022417167201638222, + 0.022499822080135345, + 0.022541964426636696, + 0.053999945521354675, + 0.02474989742040634, + 0.02245791256427765, + 0.02208305522799492, + 0.021999934688210487, + 0.021834159269928932, + 0.021958956494927406, + 0.02187490463256836, + 0.022417167201638222, + 0.021999934688210487, + 0.024999957531690598, + 0.022167107090353966, + 0.022834166884422302, + 0.021958956494927406, + 0.022500054910779, + 0.021792016923427582, + 0.022792024537920952, + 0.022165942937135696, + 0.022249994799494743, + 0.02200016751885414, + 0.02195802517235279, + 0.03350013867020607, + 0.027165981009602547, + 0.025124987587332726, + 0.024165958166122437, + 0.026875175535678864, + 0.023041851818561554, + 0.022792024537920952, + 0.023124972358345985, + 0.02295803278684616, + 0.023250002413988113, + 0.02350006252527237, + 0.022791093215346336, + 0.022750115022063255, + 0.02283393405377865, + 0.022707972675561905, + 0.02237502485513687, + 0.022624852135777473, + 0.023124972358345985, + 0.022624852135777473, + 0.022582942619919777, + 0.031084055081009865, + 0.02504093572497368, + 0.03891694359481335, + 0.02945796586573124, + 0.02600019797682762, + 0.024625100195407867, + 0.024084001779556274, + 0.02574990503489971, + 0.023250002413988113, + 0.022625084966421127, + 0.02187490463256836, + 0.026124995201826096, + 0.02195802517235279, + 0.022249994799494743, + 0.021916814148426056, + 0.02187490463256836, + 0.022124964743852615, + 0.02150004729628563, + 0.021750107407569885, + 0.021666986867785454, + 0.021165935322642326, + 0.021249987185001373, + 0.022666994482278824, + 0.022249994799494743, + 0.029458897188305855, + 0.025124987587332726, + 0.02429191954433918, + 0.02408307045698166, + 0.023833010345697403, + 0.02341577783226967, + 0.023584114387631416, + 0.023541972041130066, + 0.023083994165062904, + 0.027625123038887978, + 0.024625100195407867, + 0.02345792017877102, + 0.0238749198615551, + 0.023625092580914497, + 0.025124987587332726, + 0.022875145077705383, + 0.022625084966421127, + 0.022666994482278824, + 0.022791791707277298, + 0.023041153326630592, + 0.022500054910779, + 0.022292137145996094, + 0.022249994799494743, + 0.022042077034711838, + 0.02320879139006138, + 0.024084001779556274, + 0.02237502485513687, + 0.02237502485513687, + 0.02333405427634716, + 0.02237502485513687, + 0.029125018045306206, + 0.02895807847380638, + 0.023374799638986588, + 0.022625084966421127, + 0.02200016751885414, + 0.022499822080135345, + 0.022541964426636696, + 0.023667002096772194, + 0.022042077034711838, + 0.021832995116710663, + 0.022208085283637047, + 0.03108382225036621, + 0.022249994799494743, + 0.021875137463212013, + 0.021750107407569885, + 0.021541956812143326, + 0.021832995116710663, + 0.02158316783607006, + 0.022416934370994568, + 0.022666994482278824, + 0.028708018362522125, + 0.024209031835198402, + 0.023124972358345985, + 0.023083994165062904, + 0.022707972675561905, + 0.024124979972839355, + 0.02283393405377865, + 0.022249994799494743, + 0.025624874979257584, + 0.023667002096772194, + 0.022666994482278824, + 0.02287491224706173, + 0.022124964743852615, + 0.021791085600852966, + 0.03174995072185993, + 0.02587493509054184, + 0.02420879900455475, + 0.023416010662913322, + 0.023166881874203682, + 0.02608378417789936, + 0.022709136828780174, + 0.02466607838869095, + 0.022584106773138046, + 0.02195802517235279, + 0.02216617576777935, + 0.02437504008412361, + 0.05183299072086811, + 0.025041867047548294, + 0.023207860067486763, + 0.02254219725728035, + 0.022333115339279175, + 0.022707972675561905, + 0.02245791256427765, + 0.02229190431535244, + 0.02195802517235279, + 0.022249994799494743, + 0.021624844521284103, + 0.021791085600852966, + 0.031916191801428795, + 0.02541579306125641, + 0.023582950234413147, + 0.02283393405377865, + 0.02433289773762226, + 0.026833033189177513, + 0.024041859433054924, + 0.022249994799494743, + 0.02212519757449627, + 0.023041153326630592, + 0.022209016606211662, + 0.021792016923427582, + 0.021999934688210487, + 0.026250025257468224, + 0.024042092263698578, + 0.022541964426636696, + 0.02220878377556801, + 0.023792032152414322, + 0.021792016923427582, + 0.02187490463256836, + 0.021624844521284103, + 0.022999942302703857, + 0.02433289773762226, + 0.02254103310406208, + 0.025750137865543365, + 0.029166927561163902, + 0.026625115424394608, + 0.024167122319340706, + 0.023707980290055275, + 0.024958979338407516, + 0.023792032152414322, + 0.023541972041130066, + 0.022833002731204033, + 0.022416003048419952, + 0.021999934688210487, + 0.022207852452993393, + 0.022084219381213188, + 0.021791085600852966, + 0.0235831830650568, + 0.02174987457692623, + 0.021625077351927757, + 0.024124979972839355, + 0.024875160306692123, + 0.03162515349686146, + 0.02450007013976574, + 0.023792032152414322, + 0.023165950551629066, + 0.024207867681980133, + 0.03150012344121933, + 0.02533290535211563, + 0.023707980290055275, + 0.023750122636556625, + 0.025625107809901237, + 0.0360831618309021, + 0.028749927878379822, + 0.0260830856859684, + 0.026708003133535385, + 0.02291705459356308, + 0.023333122953772545, + 0.023416941985487938, + 0.034499913454055786, + 0.03220816142857075, + 0.024582957848906517, + 0.022957799956202507, + 0.022541964426636696, + 0.022167107090353966, + 0.02229120582342148, + 0.022792024537920952, + 0.022791791707277298, + 0.028624897822737694, + 0.024499837309122086, + 0.023041851818561554, + 0.024166889488697052, + 0.022167107090353966, + 0.022500054910779, + 0.02258317545056343, + 0.02129189670085907, + 0.02145790494978428, + 0.024541979655623436, + 0.02108304761350155, + 0.02133287489414215, + 0.020833918824791908, + 0.021792016923427582, + 0.021083978936076164, + 0.021875137463212013, + 0.021541956812143326, + 0.021707965061068535, + 0.021291198208928108, + 0.021207844838500023, + 0.022709136828780174, + 0.021124957129359245, + 0.0213750172406435, + 0.027333851903676987, + 0.02450007013976574, + 0.023209024220705032, + 0.02354104071855545, + 0.02283393405377865, + 0.022999942302703857, + 0.025209039449691772, + 0.022916123270988464, + 0.022042077034711838, + 0.02233288250863552, + 0.04720897413790226, + 0.027708010748028755, + 0.023999949917197227, + 0.03733299672603607, + 0.024999957531690598, + 0.021750107407569885, + 0.026250025257468224, + 0.021750107407569885, + 0.022041844204068184, + 0.02154218964278698, + 0.024583889171481133, + 0.028959009796380997, + 0.02391706220805645, + 0.022707972675561905, + 0.02254103310406208, + 0.021999934688210487, + 0.02304092049598694, + 0.022249994799494743 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904815, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.319255898441952e-13, + 4.581057755359552e-14, + 9.531326229120717e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.020000030997091998, + "maximum_relative_lift_m": 0.22862069725665918, + "minimum_final_relative_lift_m": 0.018768871254312914, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.0024934956013727035, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "c2d0428151ddbaa295910a8b3e95ff1d467ba358be8ffdd1f3f5048e30e7861c" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-light-easy-block-absent.model.json", + "motion": "trials/grasp-fresh-01-light-easy-block-absent.motion.json" + }, + "export_seconds": 0.820534290978685 + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.30837500002235174, + "real_time_factor": 21.402513172342477, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 1.525e-05, + 5.8e-05, + 5.525000000000001e-05 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 9.944651072761388, + "peak_object_origin_rise_m": 0.02508371903935839, + "peak_lowest_surface_z_m": 7.288598258674284e-05, + "final_object_position_m": [ + 0.39913852146289713, + -0.11134488308331128, + 0.024892244578760096 + ], + "final_lowest_surface_z_m": -0.0001077554212398843, + "closure_observation": { + "finger_normal_forces_n": [ + 2.181246683420468, + 0.6982000057287798 + ], + "world_support_n": 2.822790769797666, + "actuator_force_n": -1.5771891853422535, + "jaw_opening_m": 0.06613460694307906 + }, + "policy_compute_p50_ms": 0.022833002731204033, + "policy_compute_p95_ms": 0.042983063030987985, + "policy_compute_max_ms": 0.3642910160124302, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718911084, + "object_lowest_z_m": -0.00010778644853652597 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 2.181246683420468, + 0.6982000057287798 + ], + "world_object_force_n": 2.822790769797666, + "gripper_actuator_force_n": -1.5771891853422535, + "jaw_opening_m": 0.06613460694307906 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.30948191694915295, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.024041859433054924, + 0.03237486816942692, + 0.022999942302703857, + 0.02437504008412361, + 0.023541972041130066, + 0.02300017513334751, + 0.023582950234413147, + 0.02687494270503521, + 0.022624852135777473, + 0.022249994799494743, + 0.022041145712137222, + 0.022042077034711838, + 0.021707965061068535, + 0.023041851818561554, + 0.022416934370994568, + 0.0449158251285553, + 0.03158394247293472, + 0.02795807085931301, + 0.025999965146183968, + 0.025499844923615456, + 0.02633407711982727, + 0.025833025574684143, + 0.03041699528694153, + 0.04824995994567871, + 0.033333199098706245, + 0.027125002816319466, + 0.027125002816319466, + 0.024499837309122086, + 0.023165950551629066, + 0.026250025257468224, + 0.02308306284248829, + 0.023250002413988113, + 0.023416941985487938, + 0.022458145394921303, + 0.02337503246963024, + 0.022999942302703857, + 0.022500054910779, + 0.02445792779326439, + 0.025124987587332726, + 0.02158316783607006, + 0.021624844521284103, + 0.021582935005426407, + 0.02245907671749592, + 0.021790852770209312, + 0.0213750172406435, + 0.022166874259710312, + 0.02637505531311035, + 0.02295803278684616, + 0.022833002731204033, + 0.026209047064185143, + 0.02287491224706173, + 0.021792016923427582, + 0.021875137463212013, + 0.02174987457692623, + 0.021416926756501198, + 0.021791085600852966, + 0.022958964109420776, + 0.022165942937135696, + 0.022499822080135345, + 0.02191704697906971, + 0.022042077034711838, + 0.0213750172406435, + 0.02195802517235279, + 0.02483394928276539, + 0.02191704697906971, + 0.021707965061068535, + 0.023082830011844635, + 0.02450007013976574, + 0.02291705459356308, + 0.0213750172406435, + 0.02150004729628563, + 0.05754106678068638, + 0.03400002606213093, + 0.027542002499103546, + 0.02574990503489971, + 0.02404092811048031, + 0.024750130251049995, + 0.02370891161262989, + 0.02291705459356308, + 0.022958964109420776, + 0.02266606315970421, + 0.022666994482278824, + 0.02474989742040634, + 0.02283393405377865, + 0.043208012357354164, + 0.022999942302703857, + 0.022458145394921303, + 0.030957860872149467, + 0.025165965780615807, + 0.023582950234413147, + 0.023166881874203682, + 0.022958964109420776, + 0.04483410157263279, + 0.030792085453867912, + 0.023416941985487938, + 0.022582942619919777, + 0.022417167201638222, + 0.025124987587332726, + 0.022249994799494743, + 0.022249994799494743, + 0.023207860067486763, + 0.02350006252527237, + 0.023290980607271194, + 0.026999972760677338, + 0.022292137145996094, + 0.04724995233118534, + 0.022584106773138046, + 0.021707965061068535, + 0.021416926756501198, + 0.02158316783607006, + 0.02933293581008911, + 0.02445792779326439, + 0.02370891161262989, + 0.022875145077705383, + 0.022707972675561905, + 0.022624852135777473, + 0.022499822080135345, + 0.022041844204068184, + 0.02187490463256836, + 0.02237502485513687, + 0.027125002816319466, + 0.023042084649205208, + 0.02637505531311035, + 0.02174987457692623, + 0.021875137463212013, + 0.0227498821914196, + 0.04512513987720013, + 0.02237502485513687, + 0.022042077034711838, + 0.021999934688210487, + 0.025417190045118332, + 0.022790860384702682, + 0.022167107090353966, + 0.021958956494927406, + 0.022166874259710312, + 0.02191704697906971, + 0.022541964426636696, + 0.022166874259710312, + 0.021958956494927406, + 0.021916115656495094, + 0.02195802517235279, + 0.02174987457692623, + 0.02166605554521084, + 0.021916814148426056, + 0.021832995116710663, + 0.0213750172406435, + 0.029582995921373367, + 0.04379195161163807, + 0.02879183739423752, + 0.024290988221764565, + 0.023082830011844635, + 0.0227498821914196, + 0.022625084966421127, + 0.024458859115839005, + 0.02254219725728035, + 0.025250017642974854, + 0.021792016923427582, + 0.022042077034711838, + 0.022625084966421127, + 0.022916123270988464, + 0.022041844204068184, + 0.021875137463212013, + 0.021791085600852966, + 0.026790890842676163, + 0.023624859750270844, + 0.023124972358345985, + 0.022666994482278824, + 0.022709136828780174, + 0.04037492908537388, + 0.022500054910779, + 0.02233288250863552, + 0.022499822080135345, + 0.02191704697906971, + 0.02245791256427765, + 0.023667002096772194, + 0.022041145712137222, + 0.022541964426636696, + 0.022333115339279175, + 0.021999934688210487, + 0.02208305522799492, + 0.02270890399813652, + 0.04741596058011055, + 0.0299159437417984, + 0.024208100512623787, + 0.0235831830650568, + 0.022792024537920952, + 0.023165950551629066, + 0.02233404666185379, + 0.02245791256427765, + 0.044625019654631615, + 0.022167107090353966, + 0.02245791256427765, + 0.022209016606211662, + 0.022416934370994568, + 0.02174987457692623, + 0.02208305522799492, + 0.022582942619919777, + 0.022499822080135345, + 0.028667040169239044, + 0.0238749198615551, + 0.023124972358345985, + 0.022500054910779, + 0.022500054910779, + 0.02300017513334751, + 0.022833002731204033, + 0.02400018274784088, + 0.022583873942494392, + 0.02174987457692623, + 0.021666986867785454, + 0.02166605554521084, + 0.042708124965429306, + 0.02200016751885414, + 0.021292129531502724, + 0.02824980765581131, + 0.023750122636556625, + 0.023042084649205208, + 0.024667009711265564, + 0.053041847422719, + 0.027708010748028755, + 0.029333168640732765, + 0.024207867681980133, + 0.02295919694006443, + 0.022833002731204033, + 0.02237502485513687, + 0.022458843886852264, + 0.02270890399813652, + 0.02212519757449627, + 0.022166874259710312, + 0.02237502485513687, + 0.021999934688210487, + 0.022958964109420776, + 0.3642910160124302, + 0.023582950234413147, + 0.02229190431535244, + 0.021832995116710663, + 0.021791784092783928, + 0.02150004729628563, + 0.022124964743852615, + 0.021832995116710663, + 0.026167137548327446, + 0.022624852135777473, + 0.02245791256427765, + 0.02187490463256836, + 0.02408307045698166, + 0.021541956812143326, + 0.021541956812143326, + 0.021459069103002548, + 0.02158316783607006, + 0.05037500523030758, + 0.030375085771083832, + 0.03150012344121933, + 0.023250002413988113, + 0.04679197445511818, + 0.023250002413988113, + 0.022999942302703857, + 0.022083986550569534, + 0.021792016923427582, + 0.02254219725728035, + 0.02187490463256836, + 0.022083986550569534, + 0.02174987457692623, + 0.02687494270503521, + 0.023124972358345985, + 0.022124964743852615, + 0.02150004729628563, + 0.021625077351927757, + 0.02154102548956871, + 0.022625084966421127, + 0.0249580480158329, + 0.022041145712137222, + 0.022041145712137222, + 0.022042077034711838, + 0.022916123270988464, + 0.047999899834394455, + 0.022584106773138046, + 0.02166605554521084, + 0.021082814782857895, + 0.02116616815328598, + 0.026165973395109177, + 0.021333107724785805, + 0.02329191192984581, + 0.021792016923427582, + 0.021625077351927757, + 0.021999934688210487, + 0.03574998117983341, + 0.025250017642974854, + 0.0249580480158329, + 0.023958971723914146, + 0.023124972358345985, + 0.025124987587332726, + 0.02650008536875248, + 0.02304092049598694, + 0.02295803278684616, + 0.023124972358345985, + 0.04624994471669197, + 0.02287491224706173, + 0.02287491224706173, + 0.022666994482278824, + 0.02354104071855545, + 0.02300017513334751, + 0.023042084649205208, + 0.02308306284248829, + 0.022999942302703857, + 0.022584106773138046, + 0.023208092898130417, + 0.02308306284248829, + 0.02304092049598694, + 0.026084017008543015, + 0.023166881874203682, + 0.023333122953772545, + 0.03070780076086521, + 0.023416010662913322, + 0.022292137145996094, + 0.021541956812143326, + 0.022707972675561905, + 0.04704180173575878, + 0.022167107090353966, + 0.021792016923427582, + 0.02129189670085907, + 0.021582935005426407, + 0.03508315421640873, + 0.02591707743704319, + 0.024791806936264038, + 0.029208138585090637, + 0.023209024220705032, + 0.023124972358345985, + 0.0227498821914196, + 0.023790867999196053, + 0.022209016606211662, + 0.02304092049598694 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718911084, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 1.8318679906315083e-15, + 1.8471335572201042e-14, + 9.531326247669384e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.025000031025949207, + "maximum_relative_lift_m": 0.02508371903935839, + "minimum_final_relative_lift_m": 0.025000031025801065, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542138802621, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "f2408e79a9e2459c09822b6064db1ef317ca279658afce546e66736cd0d9dba8" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-light-simplified-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-01-light-simplified-shoe-mounted.motion.json" + }, + "export_seconds": 0.8235835419036448 + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3625902500934899, + "real_time_factor": 18.20236478586437, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 1.525e-05, + 5.8e-05, + 5.525000000000001e-05 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 6.359134460390499, + "peak_object_origin_rise_m": 0.23867665089878826, + "peak_lowest_surface_z_m": 0.23063240458973608, + "final_object_position_m": [ + 0.40646649536862306, + -0.11884749971588028, + 0.22524234588473088 + ], + "final_lowest_surface_z_m": 0.22135270204112892, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7150370043911345, + 0.2735518401223763 + ], + "world_support_n": 0.8313709486476036, + "actuator_force_n": -0.9828011633925535, + "jaw_opening_m": 0.04985183410610135 + }, + "policy_compute_p50_ms": 0.025583547540009022, + "policy_compute_p95_ms": 0.0476455199532211, + "policy_compute_max_ms": 0.19745808094739914, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718911084, + "object_lowest_z_m": -0.00010778644853652597 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.7150370043911345, + 0.2735518401223763 + ], + "world_object_force_n": 0.8313709486476036, + "gripper_actuator_force_n": -0.9828011633925535, + "jaw_opening_m": 0.04985183410610135 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39100003397919814, + -0.112999766295696, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3639570421073586, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02729194238781929, + 0.027625123038887978, + 0.023625092580914497, + 0.02683396451175213, + 0.0235831830650568, + 0.024124979972839355, + 0.02995808608829975, + 0.031082890927791595, + 0.025165965780615807, + 0.02400018274784088, + 0.02291705459356308, + 0.022582942619919777, + 0.02150004729628563, + 0.022292137145996094, + 0.02445792779326439, + 0.02183392643928528, + 0.021875137463212013, + 0.0213750172406435, + 0.02195802517235279, + 0.024124979972839355, + 0.04012486897408962, + 0.06724987179040909, + 0.026999972760677338, + 0.02537504769861698, + 0.024041859433054924, + 0.024041160941123962, + 0.02637505531311035, + 0.04695798270404339, + 0.03545801155269146, + 0.046208035200834274, + 0.04979083314538002, + 0.03579212352633476, + 0.027916161343455315, + 0.02883397974073887, + 0.02466607838869095, + 0.02345792017877102, + 0.023124972358345985, + 0.023292144760489464, + 0.023499829694628716, + 0.033624935895204544, + 0.028790906071662903, + 0.026999972760677338, + 0.030540861189365387, + 0.0302919652312994, + 0.025166897103190422, + 0.02350006252527237, + 0.023625092580914497, + 0.028624897822737694, + 0.025625107809901237, + 0.024791806936264038, + 0.024167122319340706, + 0.024416949599981308, + 0.02412521280348301, + 0.023124972358345985, + 0.023833010345697403, + 0.02308306284248829, + 0.03079185262322426, + 0.026166904717683792, + 0.024207867681980133, + 0.02395804040133953, + 0.025582965463399887, + 0.02945796586573124, + 0.02645794302225113, + 0.02345792017877102, + 0.022792024537920952, + 0.03304099664092064, + 0.024084001779556274, + 0.04358310252428055, + 0.02929195761680603, + 0.024875160306692123, + 0.023999949917197227, + 0.023750122636556625, + 0.02366607077419758, + 0.03129197284579277, + 0.02845912240445614, + 0.03329198807477951, + 0.028250040486454964, + 0.02550007775425911, + 0.023416010662913322, + 0.022833002731204033, + 0.02308306284248829, + 0.02287491224706173, + 0.02245907671749592, + 0.022290972992777824, + 0.02887495793402195, + 0.02529192715883255, + 0.023833010345697403, + 0.06612483412027359, + 0.0325001310557127, + 0.027624890208244324, + 0.03091595135629177, + 0.025625107809901237, + 0.023707980290055275, + 0.02337503246963024, + 0.022999942302703857, + 0.022750115022063255, + 0.025707995519042015, + 0.02295803278684616, + 0.025792047381401062, + 0.025583896785974503, + 0.023625092580914497, + 0.02374988980591297, + 0.02395804040133953, + 0.023083994165062904, + 0.02254219725728035, + 0.02287491224706173, + 0.02304092049598694, + 0.02558319829404354, + 0.07966696284711361, + 0.03454089164733887, + 0.026582973077893257, + 0.027708010748028755, + 0.024999957531690598, + 0.024167122319340706, + 0.023833010345697403, + 0.023999949917197227, + 0.02395804040133953, + 0.02437504008412361, + 0.027624890208244324, + 0.02429191954433918, + 0.04449998959898949, + 0.028416048735380173, + 0.026667024940252304, + 0.025084009394049644, + 0.02437504008412361, + 0.024207867681980133, + 0.024458160623908043, + 0.032624928280711174, + 0.025792047381401062, + 0.02395804040133953, + 0.024207867681980133, + 0.025250017642974854, + 0.023083994165062904, + 0.023250002413988113, + 0.02295803278684616, + 0.024499837309122086, + 0.022750115022063255, + 0.02270890399813652, + 0.022750115022063255, + 0.02295919694006443, + 0.022499822080135345, + 0.02995808608829975, + 0.025416957214474678, + 0.024750130251049995, + 0.024624867364764214, + 0.02383394166827202, + 0.02350006252527237, + 0.035250093787908554, + 0.027957838028669357, + 0.02787495031952858, + 0.024207867681980133, + 0.02733292058110237, + 0.028999987989664078, + 0.024290988221764565, + 0.022999942302703857, + 0.022707972675561905, + 0.030375085771083832, + 0.025750137865543365, + 0.025207875296473503, + 0.02437504008412361, + 0.024292152374982834, + 0.027582980692386627, + 0.026208115741610527, + 0.0238749198615551, + 0.023792032152414322, + 0.0288328155875206, + 0.02295803278684616, + 0.023166881874203682, + 0.02529192715883255, + 0.048416899517178535, + 0.029167160391807556, + 0.025791116058826447, + 0.030167168006300926, + 0.025790883228182793, + 0.026416964828968048, + 0.03400002606213093, + 0.026667024940252304, + 0.10862504132091999, + 0.03700004890561104, + 0.026667024940252304, + 0.025709159672260284, + 0.03400002606213093, + 0.044582877308130264, + 0.02966681495308876, + 0.030082883313298225, + 0.02687494270503521, + 0.02574990503489971, + 0.048208050429821014, + 0.0285410787910223, + 0.024792039766907692, + 0.02991710789501667, + 0.0278339721262455, + 0.026667024940252304, + 0.024250010028481483, + 0.024166889488697052, + 0.024333130568265915, + 0.025042099878191948, + 0.027041882276535034, + 0.024790875613689423, + 0.025791814550757408, + 0.023416941985487938, + 0.02566608600318432, + 0.033250078558921814, + 0.02537504769861698, + 0.02487492747604847, + 0.046582892537117004, + 0.029582995921373367, + 0.026208115741610527, + 0.02600019797682762, + 0.04675006493926048, + 0.02558319829404354, + 0.02408307045698166, + 0.023625092580914497, + 0.023499829694628716, + 0.023584114387631416, + 0.023833010345697403, + 0.042208004742860794, + 0.03008311614394188, + 0.03183307126164436, + 0.03041699528694153, + 0.06204191595315933, + 0.031499890610575676, + 0.0350000336766243, + 0.026167137548327446, + 0.033082906156778336, + 0.02791709266602993, + 0.02787495031952858, + 0.026499852538108826, + 0.03695790655910969, + 0.026084017008543015, + 0.02791592851281166, + 0.024584122002124786, + 0.0321660190820694, + 0.026957830414175987, + 0.025625107809901237, + 0.027416041120886803, + 0.02408307045698166, + 0.024416949599981308, + 0.03087497316300869, + 0.025292159989476204, + 0.025667017325758934, + 0.024416018277406693, + 0.023999949917197227, + 0.04645809531211853, + 0.04112487658858299, + 0.026958994567394257, + 0.026082852855324745, + 0.026042107492685318, + 0.02437504008412361, + 0.029499875381588936, + 0.027416972443461418, + 0.02687494270503521, + 0.04924996756017208, + 0.03433297388255596, + 0.11620880104601383, + 0.06687501445412636, + 0.07395818829536438, + 0.03291596658527851, + 0.03887503407895565, + 0.028084032237529755, + 0.03374996595084667, + 0.03300001844763756, + 0.05816691555082798, + 0.029542017728090286, + 0.024707987904548645, + 0.023750122636556625, + 0.023624859750270844, + 0.026999972760677338, + 0.02395804040133953, + 0.025833025574684143, + 0.0389590859413147, + 0.027458881959319115, + 0.025417190045118332, + 0.024499837309122086, + 0.02724980004131794, + 0.023875152692198753, + 0.0238749198615551, + 0.19745808094739914, + 0.03658304922282696, + 0.0778338871896267, + 0.09966711513698101, + 0.04016607999801636, + 0.02833409234881401, + 0.03900006413459778, + 0.027667032554745674, + 0.028416980057954788, + 0.03512483090162277, + 0.029416056349873543, + 0.02450007013976574, + 0.023791100829839706, + 0.027583912014961243, + 0.02395804040133953, + 0.0238749198615551, + 0.023707980290055275, + 0.0238749198615551, + 0.022958964109420776, + 0.0227498821914196, + 0.02308306284248829, + 0.027542002499103546, + 0.023207860067486763, + 0.025166897103190422, + 0.02487492747604847, + 0.036499928683042526, + 0.027542002499103546, + 0.025250017642974854, + 0.0274579506367445, + 0.025124987587332726, + 0.02429191954433918, + 0.02374988980591297, + 0.05045789293944836, + 0.030458904802799225, + 0.026458175852894783, + 0.03170897252857685, + 0.026208115741610527, + 0.024916836991906166, + 0.024458160623908043, + 0.02370891161262989, + 0.023999949917197227, + 0.02687494270503521, + 0.02383394166827202, + 0.023124972358345985, + 0.023833010345697403, + 0.023833010345697403, + 0.023833010345697403, + 0.02308306284248829, + 0.023166881874203682, + 0.025250017642974854, + 0.02574990503489971, + 0.023583881556987762, + 0.023083994165062904 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718911084, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 1.8318679906315083e-15, + 1.8471335572201042e-14, + 9.531326247669384e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.22535013233192, + "maximum_relative_lift_m": 0.23867665089878826, + "minimum_final_relative_lift_m": 0.22535013233192, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.22135270204112892, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "4f7a5f983a189d5e4389da1ff055ca21738bebc5c67ee32245edadf6add9c7f7" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-01-light-simplified-shoe-absent.model.json", + "motion": "trials/grasp-fresh-01-light-simplified-shoe-absent.motion.json" + }, + "export_seconds": 0.8256862498819828 + }, + { + "id": "grasp-fresh-01-light-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.366504583042115, + "real_time_factor": 18.007960351320055, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.030000000000000002, + "object_inertia_kg_m2": [ + 0.0001626885804904764, + 0.00016069610068592213, + 3.3768618823601193e-05 + ], + "object_weight_n": 0.29430000000000006, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 14.567385691831067, + "peak_object_origin_rise_m": 0.12464067404755573, + "peak_lowest_surface_z_m": 0.003840442724825782, + "final_object_position_m": [ + 0.25584527901045934, + -0.12085985248579441, + -0.00010773877978277163 + ], + "final_lowest_surface_z_m": -0.00011688122966863577, + "closure_observation": { + "finger_normal_forces_n": [ + 1.4813111117073152, + 1.7760371084831708 + ], + "world_support_n": 1.1893551845912984, + "actuator_force_n": -1.4176914120569473, + "jaw_opening_m": 0.07149098842555507 + }, + "policy_compute_p50_ms": 0.024916487745940685, + "policy_compute_p95_ms": 0.05383774405345321, + "policy_compute_max_ms": 0.36837486550211906, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712248, + "object_lowest_z_m": -0.00011690829053421017 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 1.4813111117073152, + 1.7760371084831708 + ], + "world_object_force_n": 1.1893551845912984, + "gripper_actuator_force_n": -1.4176914120569473, + "jaw_opening_m": 0.07149098842555507 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.36792225018143654, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022625084966421127, + 0.027542002499103546, + 0.023833010345697403, + 0.047416193410754204, + 0.03204215317964554, + 0.02700020559132099, + 0.026916852220892906, + 0.024750130251049995, + 0.02408307045698166, + 0.023583881556987762, + 0.02291589044034481, + 0.022833002731204033, + 0.02254103310406208, + 0.02300017513334751, + 0.025250017642974854, + 0.02229120582342148, + 0.022249994799494743, + 0.022249994799494743, + 0.02287491224706173, + 0.023458153009414673, + 0.0702079851180315, + 0.04458311013877392, + 0.030583934858441353, + 0.026583904400467873, + 0.02474989742040634, + 0.024207867681980133, + 0.024165958166122437, + 0.0239592045545578, + 0.02395804040133953, + 0.023208092898130417, + 0.031000003218650818, + 0.0538751482963562, + 0.03083399496972561, + 0.02804095856845379, + 0.024790875613689423, + 0.02566608600318432, + 0.025625107809901237, + 0.02708309330046177, + 0.02437504008412361, + 0.02591591328382492, + 0.023416941985487938, + 0.06520911119878292, + 0.026708003133535385, + 0.026750145480036736, + 0.0238749198615551, + 0.023625092580914497, + 0.02350006252527237, + 0.03045797348022461, + 0.025374814867973328, + 0.02374988980591297, + 0.023124972358345985, + 0.028959009796380997, + 0.023916829377412796, + 0.023165950551629066, + 0.023916130885481834, + 0.023458851501345634, + 0.023667002096772194, + 0.02270820550620556, + 0.022791093215346336, + 0.02287491224706173, + 0.03191595897078514, + 0.025790883228182793, + 0.05370914004743099, + 0.023166881874203682, + 0.026166904717683792, + 0.02291705459356308, + 0.02295803278684616, + 0.02266606315970421, + 0.03783288411796093, + 0.028624897822737694, + 0.02545793540775776, + 0.023083994165062904, + 0.022750115022063255, + 0.022707972675561905, + 0.022584106773138046, + 0.02237502485513687, + 0.022416934370994568, + 0.029667047783732414, + 0.02545793540775776, + 0.023957807570695877, + 0.023166881874203682, + 0.02829195000231266, + 0.024625100195407867, + 0.05229096859693527, + 0.023082830011844635, + 0.022292137145996094, + 0.02345908433198929, + 0.025042099878191948, + 0.023250002413988113, + 0.022916123270988464, + 0.023750122636556625, + 0.023041153326630592, + 0.030542025342583656, + 0.03795814700424671, + 0.02824980765581131, + 0.025124987587332726, + 0.02733408473432064, + 0.024084001779556274, + 0.027125002816319466, + 0.023416010662913322, + 0.023499829694628716, + 0.023042084649205208, + 0.022208085283637047, + 0.024250010028481483, + 0.06279186345636845, + 0.02737506292760372, + 0.03591598942875862, + 0.031333183869719505, + 0.026084017008543015, + 0.02879183739423752, + 0.028708018362522125, + 0.05612499080598354, + 0.03812485374510288, + 0.0278339721262455, + 0.040665967389941216, + 0.025750137865543365, + 0.023250002413988113, + 0.0238749198615551, + 0.023209024220705032, + 0.024209031835198402, + 0.0238749198615551, + 0.023624859750270844, + 0.035750214010477066, + 0.026332912966609, + 0.02437504008412361, + 0.052582938224077225, + 0.03204215317964554, + 0.025374814867973328, + 0.024792039766907692, + 0.027082860469818115, + 0.032542040571570396, + 0.025250017642974854, + 0.026582973077893257, + 0.024792039766907692, + 0.030250055715441704, + 0.025709159672260284, + 0.02458319067955017, + 0.02433289773762226, + 0.023667002096772194, + 0.023165950551629066, + 0.023624859750270844, + 0.03450014628469944, + 0.027709174901247025, + 0.024792039766907692, + 0.02437504008412361, + 0.024209031835198402, + 0.05825003609061241, + 0.026499852538108826, + 0.02491590566933155, + 0.03400002606213093, + 0.02487492747604847, + 0.024041160941123962, + 0.04400010220706463, + 0.03183283843100071, + 0.02529192715883255, + 0.023958971723914146, + 0.02450007013976574, + 0.023791100829839706, + 0.02337503246963024, + 0.03041699528694153, + 0.027833040803670883, + 0.02450007013976574, + 0.032916897907853127, + 0.03300001844763756, + 0.03895792178809643, + 0.02908310852944851, + 0.02583395689725876, + 0.36837486550211906, + 0.16150018200278282, + 0.05962490104138851, + 0.03083399496972561, + 0.02420879900455475, + 0.02329191192984581, + 0.031499890610575676, + 0.02537504769861698, + 0.02445792779326439, + 0.02637505531311035, + 0.023458153009414673, + 0.03641587682068348, + 0.027250032871961594, + 0.026792054995894432, + 0.025750137865543365, + 0.026124995201826096, + 0.02924981527030468, + 0.02437504008412361, + 0.030250055715441704, + 0.025042099878191948, + 0.03258301876485348, + 0.05675014108419418, + 0.02437504008412361, + 0.02395804040133953, + 0.025958986952900887, + 0.023625092580914497, + 0.02337503246963024, + 0.022916123270988464, + 0.02866680733859539, + 0.024667009711265564, + 0.023667002096772194, + 0.023707980290055275, + 0.02300017513334751, + 0.022707972675561905, + 0.022999942302703857, + 0.026042107492685318, + 0.022165942937135696, + 0.027499860152602196, + 0.02433289773762226, + 0.023082830011844635, + 0.02287491224706173, + 0.022792024537920952, + 0.045625027269124985, + 0.028624897822737694, + 0.02454104833304882, + 0.03333413042128086, + 0.024707987904548645, + 0.023499829694628716, + 0.022916821762919426, + 0.02287491224706173, + 0.022499822080135345, + 0.028582988306879997, + 0.02391706220805645, + 0.023791100829839706, + 0.02429191954433918, + 0.024583889171481133, + 0.02491706982254982, + 0.03562518395483494, + 0.026042107492685318, + 0.03158301115036011, + 0.029708025977015495, + 0.025250017642974854, + 0.02454104833304882, + 0.07699988782405853, + 0.031207920983433723, + 0.039125094190239906, + 0.030166003853082657, + 0.030708033591508865, + 0.02391589805483818, + 0.02320879139006138, + 0.023875152692198753, + 0.024084001779556274, + 0.033542048186063766, + 0.027667032554745674, + 0.024624867364764214, + 0.02445792779326439, + 0.03895885311067104, + 0.1718329731374979, + 0.059999991208314896, + 0.030375085771083832, + 0.02708309330046177, + 0.0424159225076437, + 0.03079185262322426, + 0.027250032871961594, + 0.05379202775657177, + 0.0249580480158329, + 0.02466607838869095, + 0.032125040888786316, + 0.024416949599981308, + 0.023167114704847336, + 0.039207981899380684, + 0.06737513467669487, + 0.04295795224606991, + 0.030125025659799576, + 0.026124995201826096, + 0.03200001083314419, + 0.03237486816942692, + 0.025250017642974854, + 0.024625100195407867, + 0.026499852538108826, + 0.024582957848906517, + 0.023124972358345985, + 0.023416941985487938, + 0.02354104071855545, + 0.0235831830650568, + 0.05087489262223244, + 0.02429191954433918, + 0.022541964426636696, + 0.022790860384702682, + 0.022833002731204033, + 0.027792062610387802, + 0.023750122636556625, + 0.022791093215346336, + 0.024250010028481483, + 0.03554089926183224, + 0.026999972760677338, + 0.02433406189084053, + 0.03487500362098217, + 0.03554089926183224, + 0.027165981009602547, + 0.024333130568265915, + 0.023750122636556625, + 0.024417182430624962, + 0.027208123356103897, + 0.02470891922712326, + 0.04229205660521984, + 0.05591707304120064, + 0.02587493509054184, + 0.02474989742040634, + 0.02429191954433918, + 0.02345792017877102, + 0.022999942302703857, + 0.02337503246963024, + 0.023333122953772545, + 0.022584106773138046, + 0.025792047381401062, + 0.023167114704847336, + 0.02295803278684616, + 0.034084077924489975, + 0.02587493509054184, + 0.024166889488697052, + 0.023916130885481834, + 0.0238749198615551, + 0.08925003930926323, + 0.03379094414412975, + 0.02845795825123787, + 0.03504101186990738, + 0.0552500132471323, + 0.02537504769861698, + 0.02454104833304882, + 0.0296661164611578, + 0.033041927963495255, + 0.02566608600318432, + 0.02450007013976574, + 0.023833010345697403, + 0.027999980375170708, + 0.023625092580914497, + 0.025208108127117157, + 0.023541972041130066, + 0.026124995201826096, + 0.029125018045306206, + 0.02487492747604847, + 0.023792032152414322 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712248, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249848275163288e-11, + 9.536006010896843e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.108125435084992e-08, + "maximum_relative_lift_m": 0.12464067404755573, + "minimum_final_relative_lift_m": 7.859660298894372e-10, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688123077504067, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "04161d214e9256699fa7125d19eced18c6a7649a6c14cbb0ed1767c4f327643d" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-light-current-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-01-light-current-shoe-mounted.motion.json" + }, + "export_seconds": 0.8437092087697238 + }, + { + "id": "grasp-fresh-01-light-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.39893474988639355, + "real_time_factor": 16.544058901559733, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.030000000000000002, + "object_inertia_kg_m2": [ + 0.0001626885804904764, + 0.00016069610068592213, + 3.3768618823601193e-05 + ], + "object_weight_n": 0.29430000000000006, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 6.926029709995561, + "peak_object_origin_rise_m": 0.106211938686753, + "peak_lowest_surface_z_m": 7.803623039311092e-05, + "final_object_position_m": [ + 0.2931983680866364, + -0.12233928895637625, + -0.00010773877981931382 + ], + "final_lowest_surface_z_m": -0.00011688122898568902, + "closure_observation": { + "finger_normal_forces_n": [ + 2.811163056299122, + 4.104499196722824 + ], + "world_support_n": 4.551042121185688, + "actuator_force_n": -1.4408008908405283, + "jaw_opening_m": 0.07276860764323631 + }, + "policy_compute_p50_ms": 0.02316699828952551, + "policy_compute_p95_ms": 0.03267115680500865, + "policy_compute_max_ms": 0.09079207666218281, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712248, + "object_lowest_z_m": -0.00011690829053421017 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 2.811163056299122, + 4.104499196722824 + ], + "world_object_force_n": 4.551042121185688, + "gripper_actuator_force_n": -1.4408008908405283, + "jaw_opening_m": 0.07276860764323631 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.4004291659221053, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022833002731204033, + 0.028166919946670532, + 0.02487492747604847, + 0.025499844923615456, + 0.02391706220805645, + 0.023999949917197227, + 0.03279093652963638, + 0.026332912966609, + 0.0274579506367445, + 0.03216695040464401, + 0.023624859750270844, + 0.023582950234413147, + 0.022750115022063255, + 0.0264591071754694, + 0.022249994799494743, + 0.022584106773138046, + 0.0260830856859684, + 0.025541987270116806, + 0.024208100512623787, + 0.02291705459356308, + 0.04016701132059097, + 0.09079207666218281, + 0.025582965463399887, + 0.024208100512623787, + 0.022958964109420776, + 0.02329191192984581, + 0.02366607077419758, + 0.023416941985487938, + 0.023166881874203682, + 0.022750115022063255, + 0.02383394166827202, + 0.023707980290055275, + 0.02354220487177372, + 0.02329191192984581, + 0.02270890399813652, + 0.02287491224706173, + 0.045457854866981506, + 0.03374996595084667, + 0.027209054678678513, + 0.025625107809901237, + 0.029082875698804855, + 0.029624905437231064, + 0.02458319067955017, + 0.023791100829839706, + 0.022792024537920952, + 0.023042084649205208, + 0.02845795825123787, + 0.024583889171481133, + 0.025834189727902412, + 0.02329191192984581, + 0.025999965146183968, + 0.02329121343791485, + 0.022750115022063255, + 0.024416949599981308, + 0.03316695801913738, + 0.025207875296473503, + 0.023958971723914146, + 0.023041153326630592, + 0.02308306284248829, + 0.022416003048419952, + 0.02270890399813652, + 0.022042077034711838, + 0.02191588282585144, + 0.025999965146183968, + 0.02254103310406208, + 0.02350006252527237, + 0.0227498821914196, + 0.022292137145996094, + 0.02229190431535244, + 0.05287490785121918, + 0.03174995072185993, + 0.026916852220892906, + 0.024416949599981308, + 0.02374988980591297, + 0.023167114704847336, + 0.02450007013976574, + 0.02950010821223259, + 0.023417174816131592, + 0.022875145077705383, + 0.022165942937135696, + 0.022041844204068184, + 0.021790852770209312, + 0.022666994482278824, + 0.024833017960190773, + 0.02487492747604847, + 0.021625077351927757, + 0.021625077351927757, + 0.02204091288149357, + 0.02229120582342148, + 0.022249994799494743, + 0.022209016606211662, + 0.022249994799494743, + 0.02208305522799492, + 0.02345908433198929, + 0.04187505692243576, + 0.030916882678866386, + 0.027499860152602196, + 0.04954100586473942, + 0.024416949599981308, + 0.023916829377412796, + 0.023083994165062904, + 0.022999942302703857, + 0.023167114704847336, + 0.022416934370994568, + 0.032041920349001884, + 0.023541972041130066, + 0.022624852135777473, + 0.02237502485513687, + 0.03379210829734802, + 0.027209054678678513, + 0.025042099878191948, + 0.023667002096772194, + 0.023541972041130066, + 0.02287491224706173, + 0.02237502485513687, + 0.022416003048419952, + 0.02254103310406208, + 0.02191704697906971, + 0.02350006252527237, + 0.022625084966421127, + 0.023416941985487938, + 0.033542048186063766, + 0.025292159989476204, + 0.02395804040133953, + 0.024792039766907692, + 0.023209024220705032, + 0.023250002413988113, + 0.02233404666185379, + 0.025041168555617332, + 0.022041844204068184, + 0.021666986867785454, + 0.02245791256427765, + 0.024875160306692123, + 0.02174987457692623, + 0.021458836272358894, + 0.021916115656495094, + 0.031708041206002235, + 0.025416957214474678, + 0.02383394166827202, + 0.02437504008412361, + 0.023166881874203682, + 0.023041851818561554, + 0.02291705459356308, + 0.02591591328382492, + 0.023750122636556625, + 0.022500054910779, + 0.022750115022063255, + 0.02237502485513687, + 0.022624852135777473, + 0.022166874259710312, + 0.03837491385638714, + 0.026499852538108826, + 0.029999995604157448, + 0.02433289773762226, + 0.02337503246963024, + 0.022707972675561905, + 0.022624852135777473, + 0.02208305522799492, + 0.02208305522799492, + 0.022499822080135345, + 0.02195802517235279, + 0.0227498821914196, + 0.022208085283637047, + 0.02237502485513687, + 0.022833002731204033, + 0.02487492747604847, + 0.022791791707277298, + 0.032624928280711174, + 0.024916836991906166, + 0.023916829377412796, + 0.023625092580914497, + 0.0227498821914196, + 0.02229190431535244, + 0.0227498821914196, + 0.02295919694006443, + 0.040458980947732925, + 0.026167137548327446, + 0.024582957848906517, + 0.024290988221764565, + 0.023290980607271194, + 0.024458859115839005, + 0.028416048735380173, + 0.02437504008412361, + 0.023124972358345985, + 0.023541972041130066, + 0.022707972675561905, + 0.022416003048419952, + 0.02287491224706173, + 0.02350006252527237, + 0.022875145077705383, + 0.024250010028481483, + 0.02529192715883255, + 0.022499822080135345, + 0.023583881556987762, + 0.022209016606211662, + 0.023250002413988113, + 0.022417167201638222, + 0.0299159437417984, + 0.02487492747604847, + 0.026541994884610176, + 0.023208092898130417, + 0.022625084966421127, + 0.022249994799494743, + 0.022041844204068184, + 0.022124964743852615, + 0.022416934370994568, + 0.022207852452993393, + 0.02195802517235279, + 0.02191704697906971, + 0.02150004729628563, + 0.03187498077750206, + 0.026250025257468224, + 0.024999957531690598, + 0.024416018277406693, + 0.02350006252527237, + 0.02287491224706173, + 0.022666994482278824, + 0.022666994482278824, + 0.022333115339279175, + 0.03295810893177986, + 0.0274579506367445, + 0.023999949917197227, + 0.026667024940252304, + 0.026458874344825745, + 0.024290988221764565, + 0.023625092580914497, + 0.023167114704847336, + 0.022707972675561905, + 0.022499822080135345, + 0.02245907671749592, + 0.022750115022063255, + 0.024084001779556274, + 0.022333115339279175, + 0.04083290696144104, + 0.02866680733859539, + 0.02424977719783783, + 0.02333289012312889, + 0.02350006252527237, + 0.02312520518898964, + 0.022916123270988464, + 0.028791138902306557, + 0.0288328155875206, + 0.0249580480158329, + 0.023707980290055275, + 0.023416941985487938, + 0.027082860469818115, + 0.03054109402000904, + 0.024790875613689423, + 0.023667002096772194, + 0.02295803278684616, + 0.02308306284248829, + 0.022584106773138046, + 0.024750130251049995, + 0.02833292819559574, + 0.023958971723914146, + 0.023124972358345985, + 0.023124972358345985, + 0.02287491224706173, + 0.02791592851281166, + 0.027125002816319466, + 0.0227498821914196, + 0.022709136828780174, + 0.02995808608829975, + 0.03270898014307022, + 0.024707987904548645, + 0.02350006252527237, + 0.022541964426636696, + 0.023041153326630592, + 0.022624852135777473, + 0.022249994799494743, + 0.022624852135777473, + 0.022416003048419952, + 0.027416972443461418, + 0.021625077351927757, + 0.021416926756501198, + 0.021665822714567184, + 0.021707965061068535, + 0.021541956812143326, + 0.022249994799494743, + 0.020999927073717117, + 0.02187490463256836, + 0.021292129531502724, + 0.021459069103002548, + 0.021707965061068535, + 0.021583866328001022, + 0.027790898457169533, + 0.02333289012312889, + 0.022541964426636696, + 0.022625084966421127, + 0.022500054910779, + 0.022124964743852615, + 0.021999934688210487, + 0.022416003048419952, + 0.022082822397351265, + 0.022249994799494743, + 0.02200016751885414, + 0.023999949917197227, + 0.02200016751885414, + 0.021666986867785454, + 0.02133403904736042, + 0.021165935322642326, + 0.021290965378284454, + 0.02079200930893421, + 0.021207844838500023, + 0.027583912014961243, + 0.02908310852944851, + 0.028792070224881172, + 0.023166881874203682, + 0.022333115339279175, + 0.022500054910779, + 0.02266606315970421, + 0.02195802517235279, + 0.022209016606211662, + 0.02229190431535244, + 0.02254103310406208, + 0.022209016606211662, + 0.022791093215346336, + 0.02245791256427765, + 0.02566608600318432, + 0.02287491224706173, + 0.022625084966421127, + 0.021791085600852966, + 0.022249994799494743, + 0.03316695801913738, + 0.025290995836257935, + 0.023792032152414322, + 0.028833048418164253, + 0.023165950551629066, + 0.022957799956202507, + 0.023082830011844635 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712248, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249848275163288e-11, + 9.536006010896843e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.1081217808655954e-08, + "maximum_relative_lift_m": 0.106211938686753, + "minimum_final_relative_lift_m": 3.10812155018532e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688123048427153, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "83db413b0d8ec5d33b3d97f5d49c527632dd236e9a00f60cf8c6e95314fc015a" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-light-current-shoe-absent.model.json", + "motion": "trials/grasp-fresh-01-light-current-shoe-absent.motion.json" + }, + "export_seconds": 0.8242422500625253 + }, + { + "id": "grasp-fresh-01-reference-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.31652816594578326, + "real_time_factor": 20.8512249779692, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 8e-05, + 8e-05, + 8e-05 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.9999015876101187, + "peak_object_origin_rise_m": 1.9300584371821408e-05, + "peak_lowest_surface_z_m": -0.00010775542001875693, + "final_object_position_m": [ + 0.39100796914389385, + -0.11288427469833451, + -0.00010775542021616518 + ], + "final_lowest_surface_z_m": -0.00010775542125039672, + "closure_observation": { + "finger_normal_forces_n": [ + 0.8788628523458197, + 0.0 + ], + "world_support_n": 3.210922343726204, + "actuator_force_n": -0.8753068271240442, + "jaw_opening_m": 0.04472779187781091 + }, + "policy_compute_p50_ms": 0.022646039724349976, + "policy_compute_p95_ms": 0.03710463643074041, + "policy_compute_max_ms": 0.26750005781650543, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718905155, + "object_lowest_z_m": -0.00010778645442295273 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.8788628523458197, + 0.0 + ], + "world_object_force_n": 3.210922343726204, + "gripper_actuator_force_n": -0.8753068271240442, + "jaw_opening_m": 0.04472779187781091 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.31780158285982907, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02174987457692623, + 0.026790890842676163, + 0.0238749198615551, + 0.02550007775425911, + 0.048208050429821014, + 0.03316602669656277, + 0.02770894207060337, + 0.02574990503489971, + 0.02487492747604847, + 0.02420879900455475, + 0.023999949917197227, + 0.02733292058110237, + 0.023208092898130417, + 0.023667002096772194, + 0.022707972675561905, + 0.02300017513334751, + 0.022625084966421127, + 0.023083994165062904, + 0.028542010113596916, + 0.0260830856859684, + 0.04875008016824722, + 0.03445800393819809, + 0.02929195761680603, + 0.027084024623036385, + 0.026416964828968048, + 0.028624897822737694, + 0.028291018679738045, + 0.024792039766907692, + 0.02454104833304882, + 0.023792032152414322, + 0.02454104833304882, + 0.024458859115839005, + 0.025082845240831375, + 0.022707972675561905, + 0.022416934370994568, + 0.02212519757449627, + 0.022209016606211662, + 0.021999934688210487, + 0.021750107407569885, + 0.022167107090353966, + 0.02237502485513687, + 0.022500054910779, + 0.022416003048419952, + 0.021541956812143326, + 0.02208305522799492, + 0.02233404666185379, + 0.04912493750452995, + 0.030959025025367737, + 0.027082860469818115, + 0.025541987270116806, + 0.024250010028481483, + 0.023624859750270844, + 0.023207860067486763, + 0.027582980692386627, + 0.02474989742040634, + 0.02395804040133953, + 0.024541979655623436, + 0.024250010028481483, + 0.024165958166122437, + 0.022958964109420776, + 0.02366607077419758, + 0.02570892684161663, + 0.026082852855324745, + 0.0235831830650568, + 0.02254103310406208, + 0.022416934370994568, + 0.021999934688210487, + 0.02245907671749592, + 0.03091595135629177, + 0.02495921216905117, + 0.024082837626338005, + 0.022958964109420776, + 0.022625084966421127, + 0.022750115022063255, + 0.02245791256427765, + 0.021832995116710663, + 0.022249994799494743, + 0.02245791256427765, + 0.02354220487177372, + 0.02212519757449627, + 0.022500054910779, + 0.025041867047548294, + 0.02191704697906971, + 0.02150004729628563, + 0.26750005781650543, + 0.023792032152414322, + 0.02200016751885414, + 0.022209016606211662, + 0.021958956494927406, + 0.02174987457692623, + 0.02887495793402195, + 0.02454104833304882, + 0.023707980290055275, + 0.02354104071855545, + 0.02337503246963024, + 0.023124972358345985, + 0.02229190431535244, + 0.022124964743852615, + 0.022042077034711838, + 0.021999934688210487, + 0.022165942937135696, + 0.02195802517235279, + 0.021792016923427582, + 0.02158316783607006, + 0.021832995116710663, + 0.04487507976591587, + 0.02237502485513687, + 0.02154102548956871, + 0.021416926756501198, + 0.02195802517235279, + 0.029790913686156273, + 0.024833017960190773, + 0.02395804040133953, + 0.023167114704847336, + 0.02574990503489971, + 0.022249994799494743, + 0.022625084966421127, + 0.022416003048419952, + 0.022124964743852615, + 0.024292152374982834, + 0.023124972358345985, + 0.022833002731204033, + 0.02308306284248829, + 0.028583919629454613, + 0.024207867681980133, + 0.02291705459356308, + 0.04870793782174587, + 0.023208092898130417, + 0.022792024537920952, + 0.023124972358345985, + 0.022583873942494392, + 0.022333115339279175, + 0.022124964743852615, + 0.021832995116710663, + 0.022999942302703857, + 0.02233288250863552, + 0.02191704697906971, + 0.021750107407569885, + 0.022124964743852615, + 0.021208077669143677, + 0.021832995116710663, + 0.021832995116710663, + 0.021249987185001373, + 0.021416926756501198, + 0.02133403904736042, + 0.02145790494978428, + 0.028125010430812836, + 0.04712515510618687, + 0.0238749198615551, + 0.02287491224706173, + 0.02291705459356308, + 0.022999942302703857, + 0.022499822080135345, + 0.022624852135777473, + 0.02245907671749592, + 0.022290972992777824, + 0.022042077034711838, + 0.022582942619919777, + 0.022249994799494743, + 0.028041889891028404, + 0.024250010028481483, + 0.02333405427634716, + 0.02300017513334751, + 0.023165950551629066, + 0.022999942302703857, + 0.022792024537920952, + 0.025499844923615456, + 0.023042084649205208, + 0.04316703416407108, + 0.022624852135777473, + 0.022500054910779, + 0.03458396531641483, + 0.026750145480036736, + 0.022958964109420776, + 0.025624874979257584, + 0.022249994799494743, + 0.022791093215346336, + 0.02208305522799492, + 0.02191704697906971, + 0.022041844204068184, + 0.02295803278684616, + 0.02237502485513687, + 0.021958956494927406, + 0.022500054910779, + 0.02908310852944851, + 0.02433289773762226, + 0.023124972358345985, + 0.022792024537920952, + 0.02650008536875248, + 0.04975008778274059, + 0.022875145077705383, + 0.022416934370994568, + 0.022834166884422302, + 0.022333115339279175, + 0.021625077351927757, + 0.021541956812143326, + 0.02145790494978428, + 0.021667219698429108, + 0.02170889638364315, + 0.02491706982254982, + 0.022666994482278824, + 0.02233288250863552, + 0.02233404666185379, + 0.02237502485513687, + 0.022333115339279175, + 0.022707972675561905, + 0.02174987457692623, + 0.02183392643928528, + 0.021791085600852966, + 0.021875137463212013, + 0.04087504930794239, + 0.02245907671749592, + 0.02191704697906971, + 0.021666986867785454, + 0.02154102548956871, + 0.021292129531502724, + 0.021292129531502724, + 0.021541956812143326, + 0.021707965061068535, + 0.02150004729628563, + 0.021832995116710663, + 0.029042130336165428, + 0.024458160623908043, + 0.022833002731204033, + 0.023042084649205208, + 0.022124964743852615, + 0.02195802517235279, + 0.022416934370994568, + 0.02208305522799492, + 0.022249994799494743, + 0.023875152692198753, + 0.04912517033517361, + 0.0227498821914196, + 0.022165942937135696, + 0.022041844204068184, + 0.02166605554521084, + 0.02174987457692623, + 0.021750107407569885, + 0.021709129214286804, + 0.02195802517235279, + 0.022249994799494743, + 0.02141715958714485, + 0.022167107090353966, + 0.02170889638364315, + 0.02195802517235279, + 0.021875137463212013, + 0.021707965061068535, + 0.022165942937135696, + 0.022333813831210136, + 0.022292137145996094, + 0.02170819789171219, + 0.02141715958714485, + 0.040958868339657784, + 0.021957792341709137, + 0.02195802517235279, + 0.02533290535211563, + 0.024582957848906517, + 0.030125025659799576, + 0.0391670037060976, + 0.03216695040464401, + 0.032791867852211, + 0.026165973395109177, + 0.031499890610575676, + 0.023999949917197227, + 0.02345792017877102, + 0.03400002606213093, + 0.023624859750270844, + 0.022790860384702682, + 0.022124964743852615, + 0.02229190431535244, + 0.0227498821914196, + 0.022500054910779, + 0.021999934688210487, + 0.04933401942253113, + 0.022625084966421127, + 0.03087497316300869, + 0.02187490463256836, + 0.021832995116710663, + 0.022166874259710312, + 0.026207882910966873, + 0.023416010662913322, + 0.022499822080135345, + 0.022458145394921303, + 0.022083986550569534, + 0.021415995433926582, + 0.030124792829155922, + 0.02474989742040634, + 0.0238749198615551, + 0.025124987587332726, + 0.023209024220705032, + 0.02708309330046177, + 0.02291705459356308, + 0.024416018277406693, + 0.025082845240831375, + 0.04800013266503811, + 0.02208305522799492, + 0.02174987457692623, + 0.021541956812143326, + 0.02170819789171219, + 0.02154102548956871, + 0.02516619861125946, + 0.02374988980591297, + 0.022707972675561905, + 0.02191704697906971, + 0.021999934688210487, + 0.02233288250863552, + 0.02237502485513687, + 0.043791020289063454, + 0.028166919946670532, + 0.024833017960190773, + 0.024208100512623787, + 0.02295803278684616, + 0.02295803278684616, + 0.022500054910779, + 0.02270890399813652, + 0.043625012040138245, + 0.022208085283637047, + 0.021750107407569885, + 0.02145790494978428, + 0.0213750172406435, + 0.021625077351927757, + 0.02129189670085907, + 0.021584099158644676, + 0.021290965378284454, + 0.021415995433926582, + 0.02158316783607006, + 0.02154218964278698, + 0.021249987185001373, + 0.022124964743852615, + 0.024207867681980133 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718905155, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.1305179842556754e-13, + 1.030980856242536e-13, + 9.531326229070302e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697288636768e-08, + "maximum_relative_lift_m": 1.9300584371821408e-05, + "minimum_final_relative_lift_m": 3.1026972866052445e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542145679065, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "ce77503d7836700a62cb5cd69e289083232109860641abc4b796098b978c26ac" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-easy-block-mounted.model.json", + "motion": "trials/grasp-fresh-01-reference-easy-block-mounted.motion.json" + }, + "export_seconds": 0.8518624589778483 + }, + { + "id": "grasp-fresh-01-reference-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.29160795803181827, + "real_time_factor": 22.633127177137425, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 8e-05, + 8e-05, + 8e-05 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.9718731911559138, + "peak_object_origin_rise_m": 1.6149628555805803e-05, + "peak_lowest_surface_z_m": -9.37078635957038e-05, + "final_object_position_m": [ + 0.3910398423038978, + -0.1129235324178312, + -0.00010775542021616861 + ], + "final_lowest_surface_z_m": -0.00010775542146760839, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7712900809001034, + 0.0 + ], + "world_support_n": 2.856785080667112, + "actuator_force_n": -0.774946553024335, + "jaw_opening_m": 0.040118776898121836 + }, + "policy_compute_p50_ms": 0.02287491224706173, + "policy_compute_p95_ms": 0.03215238684788348, + "policy_compute_max_ms": 0.0654999166727066, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718905155, + "object_lowest_z_m": -0.00010778645442295273 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.7712900809001034, + 0.0 + ], + "world_object_force_n": 2.856785080667112, + "gripper_actuator_force_n": -0.774946553024335, + "jaw_opening_m": 0.040118776898121836 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39099969655773936, + -0.11300014699202043, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.29277720814570785, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.021750107407569885, + 0.0374580267816782, + 0.024667009711265564, + 0.024958979338407516, + 0.06191595457494259, + 0.05395803600549698, + 0.031291041523218155, + 0.02583395689725876, + 0.029667047783732414, + 0.02366607077419758, + 0.023041851818561554, + 0.02666679210960865, + 0.02333405427634716, + 0.023582950234413147, + 0.023124972358345985, + 0.023290980607271194, + 0.02345792017877102, + 0.025999965146183968, + 0.02254103310406208, + 0.022416003048419952, + 0.024499837309122086, + 0.0654999166727066, + 0.026540830731391907, + 0.02304092049598694, + 0.02208305522799492, + 0.021999934688210487, + 0.022541964426636696, + 0.022292137145996094, + 0.022042077034711838, + 0.05729100666940212, + 0.03304099664092064, + 0.02737506292760372, + 0.02504093572497368, + 0.026250025257468224, + 0.023667002096772194, + 0.023208092898130417, + 0.02329191192984581, + 0.0227498821914196, + 0.02237502485513687, + 0.027875183150172234, + 0.026791123673319817, + 0.02229190431535244, + 0.021666986867785454, + 0.02554105594754219, + 0.022166874259710312, + 0.021999934688210487, + 0.02212519757449627, + 0.02150004729628563, + 0.021584099158644676, + 0.021249987185001373, + 0.061416998505592346, + 0.033624935895204544, + 0.027624890208244324, + 0.025458866730332375, + 0.024124979972839355, + 0.023792032152414322, + 0.02437504008412361, + 0.023667002096772194, + 0.02337503246963024, + 0.023083994165062904, + 0.02333405427634716, + 0.022624852135777473, + 0.0227498821914196, + 0.023041153326630592, + 0.024582957848906517, + 0.02345792017877102, + 0.02291589044034481, + 0.022165942937135696, + 0.021999934688210487, + 0.021916115656495094, + 0.022333115339279175, + 0.02183392643928528, + 0.0249580480158329, + 0.021832995116710663, + 0.022124964743852615, + 0.0452918466180563, + 0.02983398735523224, + 0.024667009711265564, + 0.0238749198615551, + 0.022625084966421127, + 0.022499822080135345, + 0.022666994482278824, + 0.022290972992777824, + 0.02187490463256836, + 0.021792016923427582, + 0.024791806936264038, + 0.021666986867785454, + 0.022416003048419952, + 0.02133403904736042, + 0.02145790494978428, + 0.021624844521284103, + 0.02145790494978428, + 0.021333107724785805, + 0.021499814465641975, + 0.021625077351927757, + 0.021792016923427582, + 0.021750107407569885, + 0.03454205580055714, + 0.026957830414175987, + 0.02474989742040634, + 0.023916130885481834, + 0.02383394166827202, + 0.023458851501345634, + 0.029999995604157448, + 0.024709152057766914, + 0.023083994165062904, + 0.022500054910779, + 0.02283393405377865, + 0.02195802517235279, + 0.023207860067486763, + 0.022333813831210136, + 0.028125010430812836, + 0.024292152374982834, + 0.022792024537920952, + 0.022792024537920952, + 0.025665853172540665, + 0.022124964743852615, + 0.02233404666185379, + 0.022041145712137222, + 0.03129197284579277, + 0.02604094333946705, + 0.024250010028481483, + 0.023166881874203682, + 0.02450007013976574, + 0.022958964109420776, + 0.022500054910779, + 0.023124972358345985, + 0.023250002413988113, + 0.023416941985487938, + 0.022541964426636696, + 0.022582942619919777, + 0.024250010028481483, + 0.0235831830650568, + 0.02345792017877102, + 0.022999942302703857, + 0.022875145077705383, + 0.027084024623036385, + 0.022165942937135696, + 0.022500054910779, + 0.03258395008742809, + 0.024166889488697052, + 0.023292144760489464, + 0.02295803278684616, + 0.022791791707277298, + 0.022541964426636696, + 0.03287498839199543, + 0.02891593612730503, + 0.026166904717683792, + 0.022500054910779, + 0.023042084649205208, + 0.021707965061068535, + 0.022166874259710312, + 0.02150004729628563, + 0.023124972358345985, + 0.02683280035853386, + 0.021666986867785454, + 0.02504093572497368, + 0.02837507054209709, + 0.025625107809901237, + 0.02383394166827202, + 0.023292144760489464, + 0.02341577783226967, + 0.023416010662913322, + 0.02487492747604847, + 0.023083994165062904, + 0.021916814148426056, + 0.02212519757449627, + 0.022416934370994568, + 0.022458145394921303, + 0.022249994799494743, + 0.022208085283637047, + 0.023208092898130417, + 0.022666994482278824, + 0.025792047381401062, + 0.03316602669656277, + 0.04075001925230026, + 0.028165988624095917, + 0.024999957531690598, + 0.023875152692198753, + 0.023416941985487938, + 0.023958971723914146, + 0.023583881556987762, + 0.02287491224706173, + 0.022584106773138046, + 0.022333813831210136, + 0.02195802517235279, + 0.02237502485513687, + 0.02245907671749592, + 0.022167107090353966, + 0.02174987457692623, + 0.022167107090353966, + 0.021832995116710663, + 0.022082822397351265, + 0.027708010748028755, + 0.02512522041797638, + 0.023083994165062904, + 0.02291705459356308, + 0.02308306284248829, + 0.022041145712137222, + 0.02270890399813652, + 0.02933409996330738, + 0.024582957848906517, + 0.02329191192984581, + 0.023165950551629066, + 0.02374988980591297, + 0.031624920666217804, + 0.024416018277406693, + 0.022834166884422302, + 0.023124972358345985, + 0.026041874662041664, + 0.02174987457692623, + 0.02166605554521084, + 0.021584099158644676, + 0.02174987457692623, + 0.02529192715883255, + 0.022625084966421127, + 0.02237502485513687, + 0.021875137463212013, + 0.02158316783607006, + 0.025166897103190422, + 0.022333115339279175, + 0.022249994799494743, + 0.02233404666185379, + 0.021792016923427582, + 0.022791093215346336, + 0.03333296626806259, + 0.024958979338407516, + 0.02350006252527237, + 0.02291589044034481, + 0.023582950234413147, + 0.02237502485513687, + 0.025792047381401062, + 0.02195802517235279, + 0.022458843886852264, + 0.022707972675561905, + 0.02187490463256836, + 0.03337487578392029, + 0.025625107809901237, + 0.025582965463399887, + 0.028750160709023476, + 0.02537504769861698, + 0.02708309330046177, + 0.023667002096772194, + 0.022582942619919777, + 0.02229190431535244, + 0.021999934688210487, + 0.021750107407569885, + 0.02145790494978428, + 0.02150004729628563, + 0.02133403904736042, + 0.021666986867785454, + 0.021249987185001373, + 0.021209008991718292, + 0.020832987502217293, + 0.022292137145996094, + 0.021709129214286804, + 0.021750107407569885, + 0.021290965378284454, + 0.028999987989664078, + 0.024499837309122086, + 0.02350006252527237, + 0.02350006252527237, + 0.02333289012312889, + 0.031250063329935074, + 0.024792039766907692, + 0.02374988980591297, + 0.028041889891028404, + 0.022750115022063255, + 0.02574990503489971, + 0.022582942619919777, + 0.022290972992777824, + 0.021875137463212013, + 0.026499852538108826, + 0.02295803278684616, + 0.024624867364764214, + 0.02245907671749592, + 0.02283393405377865, + 0.028542010113596916, + 0.02187490463256836, + 0.0253340695053339, + 0.023250002413988113, + 0.022207852452993393, + 0.021625077351927757, + 0.021750107407569885, + 0.02174987457692623, + 0.022165942937135696, + 0.021792016923427582, + 0.0213750172406435, + 0.0213750172406435, + 0.02154102548956871, + 0.02141715958714485, + 0.0213750172406435, + 0.021249987185001373, + 0.021208077669143677, + 0.022500054910779, + 0.0213750172406435, + 0.021082814782857895, + 0.021333107724785805, + 0.021625077351927757, + 0.02204091288149357, + 0.021625077351927757, + 0.028999987989664078, + 0.023167114704847336, + 0.022750115022063255, + 0.02208305522799492, + 0.021957792341709137, + 0.025791814550757408, + 0.02237502485513687, + 0.021875137463212013, + 0.023042084649205208, + 0.021999934688210487, + 0.022124964743852615, + 0.021792016923427582, + 0.021625077351927757, + 0.02170889638364315, + 0.021290965378284454, + 0.02150004729628563, + 0.024541979655623436, + 0.021415995433926582, + 0.02141715958714485, + 0.021333107724785805, + 0.02474989742040634, + 0.02150004729628563, + 0.032916897907853127, + 0.02537504769861698, + 0.023667002096772194, + 0.02266606315970421, + 0.02287491224706173, + 0.022500054910779, + 0.022707972675561905 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718905155, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.1305179842556754e-13, + 1.030980856242536e-13, + 9.531326229070302e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.1026972882938894e-08, + "maximum_relative_lift_m": 1.6149628555805803e-05, + "minimum_final_relative_lift_m": 3.102697287735525e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542148576053, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "618332b4f9457031001000a9328726db95fdc259c85b88205db1ea82ab3aa0e1" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-easy-block-absent.model.json", + "motion": "trials/grasp-fresh-01-reference-easy-block-absent.motion.json" + }, + "export_seconds": 0.8148556668311357 + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.30259712506085634, + "real_time_factor": 21.811178803077347, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 0.0001525, + 0.00058, + 0.0005525 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 13.283453764287643, + "peak_object_origin_rise_m": 0.00024380751557435138, + "peak_lowest_surface_z_m": -0.00010775542008914507, + "final_object_position_m": [ + 0.39164656618160815, + -0.11309140558048544, + -0.0001077554202161662 + ], + "final_lowest_surface_z_m": -0.00010775542130703544, + "closure_observation": { + "finger_normal_forces_n": [ + 12.412945317891948, + 0.8705084463956954 + ], + "world_support_n": 15.525592773834294, + "actuator_force_n": -0.8546718463703092, + "jaw_opening_m": 0.04402333420237038 + }, + "policy_compute_p50_ms": 0.023187370970845222, + "policy_compute_p95_ms": 0.037614419125020504, + "policy_compute_max_ms": 0.45974995009601116, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904129, + "object_lowest_z_m": -0.00010778645249219163 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 12.412945317891948, + 0.8705084463956954 + ], + "world_object_force_n": 15.525592773834294, + "gripper_actuator_force_n": -0.8546718463703092, + "jaw_opening_m": 0.04402333420237038 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3040260002017021, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02170889638364315, + 0.0260830856859684, + 0.05266699008643627, + 0.034041935577988625, + 0.028458889573812485, + 0.02895807847380638, + 0.024790875613689423, + 0.024416949599981308, + 0.024208100512623787, + 0.023792032152414322, + 0.02291705459356308, + 0.022792024537920952, + 0.023541972041130066, + 0.023541972041130066, + 0.034624943509697914, + 0.027082860469818115, + 0.024084001779556274, + 0.02337503246963024, + 0.022792024537920952, + 0.022416934370994568, + 0.02537504769861698, + 0.02583395689725876, + 0.024124979972839355, + 0.028416048735380173, + 0.02929195761680603, + 0.02433289773762226, + 0.023209024220705032, + 0.02295803278684616, + 0.03183400258421898, + 0.025833025574684143, + 0.024166889488697052, + 0.024541979655623436, + 0.022750115022063255, + 0.023250002413988113, + 0.023290980607271194, + 0.026166904717683792, + 0.022500054910779, + 0.022665830329060555, + 0.022290972992777824, + 0.027333851903676987, + 0.02237502485513687, + 0.02174987457692623, + 0.02595805563032627, + 0.022167107090353966, + 0.02887495793402195, + 0.02437504008412361, + 0.02450007013976574, + 0.02258317545056343, + 0.022499822080135345, + 0.02258317545056343, + 0.021958956494927406, + 0.02245791256427765, + 0.02270820550620556, + 0.022790860384702682, + 0.025041168555617332, + 0.022541964426636696, + 0.027082860469818115, + 0.022333115339279175, + 0.02191704697906971, + 0.021832995116710663, + 0.021999934688210487, + 0.021832995116710663, + 0.021665822714567184, + 0.03537512384355068, + 0.026708003133535385, + 0.024458160623908043, + 0.024165958166122437, + 0.023792032152414322, + 0.023667002096772194, + 0.02304092049598694, + 0.02308306284248829, + 0.022500054910779, + 0.022624852135777473, + 0.023124972358345985, + 0.02295919694006443, + 0.023042084649205208, + 0.02237502485513687, + 0.02245907671749592, + 0.02233404666185379, + 0.02233404666185379, + 0.022833002731204033, + 0.022124964743852615, + 0.022249994799494743, + 0.021665822714567184, + 0.044625019654631615, + 0.02237502485513687, + 0.022042077034711838, + 0.024707987904548645, + 0.026374822482466698, + 0.022416934370994568, + 0.021624844521284103, + 0.02345908433198929, + 0.021875137463212013, + 0.02233288250863552, + 0.024999957531690598, + 0.021167099475860596, + 0.02129189670085907, + 0.021541956812143326, + 0.022042077034711838, + 0.022416934370994568, + 0.04429183900356293, + 0.028749927878379822, + 0.024958979338407516, + 0.024791806936264038, + 0.024250010028481483, + 0.05362485535442829, + 0.023541972041130066, + 0.023250002413988113, + 0.02245791256427765, + 0.02295803278684616, + 0.022290972992777824, + 0.02233288250863552, + 0.02183392643928528, + 0.02191704697906971, + 0.022042077034711838, + 0.023541972041130066, + 0.023041153326630592, + 0.022458843886852264, + 0.025124987587332726, + 0.03295810893177986, + 0.02537504769861698, + 0.02470891922712326, + 0.023958971723914146, + 0.0238749198615551, + 0.023208092898130417, + 0.05224999040365219, + 0.08108280599117279, + 0.028625130653381348, + 0.025041867047548294, + 0.027041882276535034, + 0.024957815185189247, + 0.024416949599981308, + 0.02374988980591297, + 0.023750122636556625, + 0.023166881874203682, + 0.022541964426636696, + 0.02295803278684616, + 0.022541964426636696, + 0.022791093215346336, + 0.022584106773138046, + 0.022333115339279175, + 0.02270820550620556, + 0.022416934370994568, + 0.022707972675561905, + 0.023667002096772194, + 0.02545793540775776, + 0.02254219725728035, + 0.054416945204138756, + 0.02245907671749592, + 0.023667002096772194, + 0.02437504008412361, + 0.02283393405377865, + 0.02466607838869095, + 0.02233404666185379, + 0.02329191192984581, + 0.022500054910779, + 0.02237502485513687, + 0.022625084966421127, + 0.03716698847711086, + 0.026584137231111526, + 0.024584122002124786, + 0.024250010028481483, + 0.024124979972839355, + 0.02400018274784088, + 0.0238749198615551, + 0.023833010345697403, + 0.023292144760489464, + 0.022999942302703857, + 0.05212496034801006, + 0.023999949917197227, + 0.022624852135777473, + 0.02229190431535244, + 0.022665830329060555, + 0.022625084966421127, + 0.037499936297535896, + 0.025124987587332726, + 0.024042092263698578, + 0.02391589805483818, + 0.022999942302703857, + 0.02329121343791485, + 0.024207867681980133, + 0.023250002413988113, + 0.023209024220705032, + 0.02291589044034481, + 0.022791791707277298, + 0.022625084966421127, + 0.02554105594754219, + 0.02308306284248829, + 0.02312520518898964, + 0.06033293902873993, + 0.025041867047548294, + 0.02345792017877102, + 0.024833017960190773, + 0.022958964109420776, + 0.02337503246963024, + 0.022792024537920952, + 0.022582942619919777, + 0.03629201091825962, + 0.03295904025435448, + 0.02554105594754219, + 0.02458319067955017, + 0.02466607838869095, + 0.026916852220892906, + 0.02833292819559574, + 0.025833025574684143, + 0.023124972358345985, + 0.023207860067486763, + 0.024582957848906517, + 0.02345792017877102, + 0.023124972358345985, + 0.05200016312301159, + 0.02270890399813652, + 0.0252497848123312, + 0.022540800273418427, + 0.022707972675561905, + 0.022500054910779, + 0.021999934688210487, + 0.025041867047548294, + 0.02337503246963024, + 0.02333405427634716, + 0.022833002731204033, + 0.038250116631388664, + 0.02654106356203556, + 0.023750122636556625, + 0.022166874259710312, + 0.02191704697906971, + 0.024707987904548645, + 0.022666994482278824, + 0.02191704697906971, + 0.022167107090353966, + 0.02212519757449627, + 0.04458311013877392, + 0.025667017325758934, + 0.022916821762919426, + 0.022499822080135345, + 0.022374792024493217, + 0.027041882276535034, + 0.022209016606211662, + 0.021792016923427582, + 0.022167107090353966, + 0.022791791707277298, + 0.021832995116710663, + 0.022041145712137222, + 0.03645801916718483, + 0.02445792779326439, + 0.023208092898130417, + 0.022540800273418427, + 0.02237502485513687, + 0.025582965463399887, + 0.022707972675561905, + 0.02237502485513687, + 0.021875137463212013, + 0.45974995009601116, + 0.02354104071855545, + 0.02245907671749592, + 0.02166605554521084, + 0.022916123270988464, + 0.022041844204068184, + 0.022792024537920952, + 0.02237502485513687, + 0.02574990503489971, + 0.028165988624095917, + 0.023792032152414322, + 0.022458145394921303, + 0.02850010059773922, + 0.024167122319340706, + 0.022999942302703857, + 0.02645794302225113, + 0.02887495793402195, + 0.025625107809901237, + 0.023124972358345985, + 0.02312520518898964, + 0.02283393405377865, + 0.06037508137524128, + 0.025957822799682617, + 0.02270890399813652, + 0.022541964426636696, + 0.028416048735380173, + 0.022416934370994568, + 0.02287491224706173, + 0.0227498821914196, + 0.022791791707277298, + 0.02195802517235279, + 0.022792024537920952, + 0.022124964743852615, + 0.037708086892962456, + 0.026624882593750954, + 0.024707987904548645, + 0.024667009711265564, + 0.026625115424394608, + 0.024416018277406693, + 0.0227498821914196, + 0.023707980290055275, + 0.02304092049598694, + 0.05329214036464691, + 0.022958964109420776, + 0.021832995116710663, + 0.022249994799494743, + 0.022249994799494743, + 0.02195802517235279, + 0.022124964743852615, + 0.0249580480158329, + 0.022791791707277298, + 0.028125010430812836, + 0.02195802517235279, + 0.022458145394921303, + 0.02574990503489971, + 0.022500054910779, + 0.02304092049598694, + 0.02787495031952858, + 0.02191588282585144, + 0.02195802517235279, + 0.023416010662913322, + 0.0249580480158329, + 0.02208305522799492, + 0.042708124965429306, + 0.022042077034711838, + 0.023790867999196053, + 0.024792039766907692, + 0.021832995116710663, + 0.021707965061068535, + 0.02400018274784088, + 0.021624844521284103, + 0.021999934688210487, + 0.02254103310406208, + 0.02591707743704319, + 0.02266606315970421, + 0.021999934688210487, + 0.03295787610113621, + 0.024499837309122086 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904129, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 8.881784197001252e-16, + 9.203748874142548e-14, + 9.531326226722462e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697287509198e-08, + "maximum_relative_lift_m": 0.00024380751557435138, + "minimum_final_relative_lift_m": 3.1026972854465034e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542134360688, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "aeda49bfec0f8d0947e300d779d7d3e0e4272752da9a15bceba9097ceb2ee63d" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-simplified-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-01-reference-simplified-shoe-mounted.motion.json" + }, + "export_seconds": 0.814579457975924 + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3010788750834763, + "real_time_factor": 21.92116600066875, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 0.0001525, + 0.00058, + 0.0005525 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 9.689451633404488, + "peak_object_origin_rise_m": 3.102736973009906e-08, + "peak_lowest_surface_z_m": -0.00010775542008914507, + "final_object_position_m": [ + 0.39136843399023863, + -0.11299116941478418, + -0.00010775542021616995 + ], + "final_lowest_surface_z_m": -0.00010775542117196293, + "closure_observation": { + "finger_normal_forces_n": [ + 0.5594404431328802, + 8.978427857789352 + ], + "world_support_n": 12.023937508006973, + "actuator_force_n": -0.8908087715567158, + "jaw_opening_m": 0.04539729729715703 + }, + "policy_compute_p50_ms": 0.0237500062212348, + "policy_compute_p95_ms": 0.033568800427019596, + "policy_compute_max_ms": 0.07333396933972836, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904129, + "object_lowest_z_m": -0.00010778645249219163 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.5594404431328802, + 8.978427857789352 + ], + "world_object_force_n": 12.023937508006973, + "gripper_actuator_force_n": -0.8908087715567158, + "jaw_opening_m": 0.04539729729715703 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.39099999310940237, + -0.11299960695820345, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.302430999930948, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022249994799494743, + 0.03133295103907585, + 0.024750130251049995, + 0.0249580480158329, + 0.02450007013976574, + 0.02437504008412361, + 0.023541972041130066, + 0.06262492388486862, + 0.03654207102954388, + 0.04687509499490261, + 0.034708064049482346, + 0.028084032237529755, + 0.0260830856859684, + 0.025625107809901237, + 0.02437504008412361, + 0.024417182430624962, + 0.023416010662913322, + 0.023791100829839706, + 0.022958964109420776, + 0.024499837309122086, + 0.02608378417789936, + 0.07333396933972836, + 0.027125002816319466, + 0.023167114704847336, + 0.02291705459356308, + 0.033250078558921814, + 0.027709174901247025, + 0.02583395689725876, + 0.025916844606399536, + 0.024916836991906166, + 0.024209031835198402, + 0.027416972443461418, + 0.0374580267816782, + 0.02887495793402195, + 0.02437504008412361, + 0.02374988980591297, + 0.023041851818561554, + 0.023042084649205208, + 0.02333405427634716, + 0.02295803278684616, + 0.033499905839562416, + 0.027417205274105072, + 0.041207997128367424, + 0.030207913368940353, + 0.02929195761680603, + 0.02533290535211563, + 0.024416949599981308, + 0.023665837943553925, + 0.023250002413988113, + 0.022999942302703857, + 0.02304092049598694, + 0.022500054910779, + 0.02545793540775776, + 0.02337503246963024, + 0.02308306284248829, + 0.022167107090353966, + 0.022584106773138046, + 0.022333813831210136, + 0.022166874259710312, + 0.023207860067486763, + 0.02445909194648266, + 0.023124972358345985, + 0.023250002413988113, + 0.027291011065244675, + 0.024084001779556274, + 0.04112487658858299, + 0.02737506292760372, + 0.02458319067955017, + 0.024167122319340706, + 0.02408307045698166, + 0.024041160941123962, + 0.025458168238401413, + 0.02570892684161663, + 0.024209031835198402, + 0.040958868339657784, + 0.03083399496972561, + 0.05950010381639004, + 0.03270898014307022, + 0.027041882276535034, + 0.024667009711265564, + 0.024167122319340706, + 0.025250017642974854, + 0.026792054995894432, + 0.027583912014961243, + 0.025041867047548294, + 0.02445909194648266, + 0.023999949917197227, + 0.05079084075987339, + 0.029542017728090286, + 0.024208100512623787, + 0.023582950234413147, + 0.02337503246963024, + 0.022458843886852264, + 0.026624882593750954, + 0.047999899834394455, + 0.031250063329935074, + 0.02829195000231266, + 0.026124995201826096, + 0.02637505531311035, + 0.025624874979257584, + 0.022541964426636696, + 0.024250010028481483, + 0.024790875613689423, + 0.02691592089831829, + 0.02333405427634716, + 0.023833010345697403, + 0.022582942619919777, + 0.024458160623908043, + 0.023875152692198753, + 0.022499822080135345, + 0.022082822397351265, + 0.021707965061068535, + 0.022249994799494743, + 0.021875137463212013, + 0.021416228264570236, + 0.022416934370994568, + 0.022207852452993393, + 0.03270781598985195, + 0.025707995519042015, + 0.0239592045545578, + 0.024540815502405167, + 0.02566608600318432, + 0.02283393405377865, + 0.026167137548327446, + 0.023707980290055275, + 0.023417174816131592, + 0.024041859433054924, + 0.02329191192984581, + 0.024416949599981308, + 0.024167122319340706, + 0.022165942937135696, + 0.022416934370994568, + 0.035833101719617844, + 0.03054109402000904, + 0.02733408473432064, + 0.0235831830650568, + 0.028291018679738045, + 0.024541979655623436, + 0.02891593612730503, + 0.022208085283637047, + 0.02208305522799492, + 0.02195802517235279, + 0.02200016751885414, + 0.021792016923427582, + 0.022707972675561905, + 0.02229190431535244, + 0.029959017410874367, + 0.025417190045118332, + 0.023790867999196053, + 0.02333289012312889, + 0.02258317545056343, + 0.022292137145996094, + 0.02237502485513687, + 0.023582950234413147, + 0.022792024537920952, + 0.031624920666217804, + 0.02433289773762226, + 0.02291589044034481, + 0.022500054910779, + 0.02258317545056343, + 0.02270890399813652, + 0.022709136828780174, + 0.024999957531690598, + 0.023041851818561554, + 0.025541987270116806, + 0.023042084649205208, + 0.022500054910779, + 0.021666986867785454, + 0.021666986867785454, + 0.025999965146183968, + 0.023166881874203682, + 0.0336251687258482, + 0.026250025257468224, + 0.026209047064185143, + 0.02374988980591297, + 0.02637505531311035, + 0.02345908433198929, + 0.023374799638986588, + 0.022790860384702682, + 0.02595805563032627, + 0.02737506292760372, + 0.023458851501345634, + 0.02291705459356308, + 0.02237502485513687, + 0.026250025257468224, + 0.023416941985487938, + 0.021707965061068535, + 0.02933409996330738, + 0.030583003535866737, + 0.023624859750270844, + 0.023416010662913322, + 0.02391706220805645, + 0.023209024220705032, + 0.028542010113596916, + 0.02237502485513687, + 0.02258317545056343, + 0.02208305522799492, + 0.023250002413988113, + 0.022124964743852615, + 0.02191704697906971, + 0.027167145162820816, + 0.022166874259710312, + 0.021832995116710663, + 0.02187490463256836, + 0.021666986867785454, + 0.028291018679738045, + 0.024124979972839355, + 0.023166881874203682, + 0.022833002731204033, + 0.02287491224706173, + 0.02533290535211563, + 0.022624852135777473, + 0.022165942937135696, + 0.022124964743852615, + 0.024292152374982834, + 0.02208305522799492, + 0.027582980692386627, + 0.023582950234413147, + 0.021999934688210487, + 0.022124964743852615, + 0.021709129214286804, + 0.02195802517235279, + 0.02233404666185379, + 0.02141715958714485, + 0.021666986867785454, + 0.022167107090353966, + 0.02174987457692623, + 0.024540815502405167, + 0.022583873942494392, + 0.033667078241705894, + 0.025957822799682617, + 0.024750130251049995, + 0.024124979972839355, + 0.02295803278684616, + 0.02291589044034481, + 0.022500054910779, + 0.022500054910779, + 0.02187490463256836, + 0.022166874259710312, + 0.02183392643928528, + 0.02283393405377865, + 0.022249994799494743, + 0.02208305522799492, + 0.021707965061068535, + 0.02150004729628563, + 0.02170889638364315, + 0.02208305522799492, + 0.02150004729628563, + 0.024792039766907692, + 0.02187490463256836, + 0.021707965061068535, + 0.028416980057954788, + 0.02474989742040634, + 0.023750122636556625, + 0.02345792017877102, + 0.024041859433054924, + 0.022541964426636696, + 0.02445792779326439, + 0.02304092049598694, + 0.028959009796380997, + 0.027250032871961594, + 0.031209085136651993, + 0.022916821762919426, + 0.03187498077750206, + 0.024416949599981308, + 0.02450007013976574, + 0.028125010430812836, + 0.027125002816319466, + 0.023042084649205208, + 0.023290980607271194, + 0.023582950234413147, + 0.025833025574684143, + 0.02229190431535244, + 0.022333115339279175, + 0.021999934688210487, + 0.022541964426636696, + 0.028625130653381348, + 0.023290980607271194, + 0.022707972675561905, + 0.025707995519042015, + 0.02345792017877102, + 0.022624852135777473, + 0.022584106773138046, + 0.02204091288149357, + 0.02245791256427765, + 0.025667017325758934, + 0.02604094333946705, + 0.025916146114468575, + 0.030125025659799576, + 0.0299159437417984, + 0.02395804040133953, + 0.024916836991906166, + 0.02245791256427765, + 0.03179116174578667, + 0.02837507054209709, + 0.02308306284248829, + 0.026458874344825745, + 0.022499822080135345, + 0.02208305522799492, + 0.02166605554521084, + 0.022083986550569534, + 0.022958964109420776, + 0.021625077351927757, + 0.026875175535678864, + 0.02445792779326439, + 0.02329121343791485, + 0.021167099475860596, + 0.025124987587332726, + 0.021541956812143326, + 0.03383401781320572, + 0.02391706220805645, + 0.028833048418164253, + 0.03733299672603607, + 0.025124987587332726, + 0.02270890399813652, + 0.026082852855324745, + 0.022625084966421127, + 0.023207860067486763, + 0.022124964743852615, + 0.02208305522799492, + 0.021584099158644676, + 0.027624890208244324, + 0.024665845558047295, + 0.025250017642974854, + 0.023041851818561554, + 0.022667227312922478, + 0.025999965146183968, + 0.024250010028481483, + 0.02204091288149357, + 0.026416033506393433 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904129, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 8.881784197001252e-16, + 9.203748874142548e-14, + 9.531326226722462e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697287133793e-08, + "maximum_relative_lift_m": 3.102736973009906e-08, + "minimum_final_relative_lift_m": 3.102697286973873e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.0001077554213460355, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "7f103065c3e07e56fbd566d24ad8b87eb430b735a0ad7431a0702f2a7a1989e8" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-simplified-shoe-absent.model.json", + "motion": "trials/grasp-fresh-01-reference-simplified-shoe-absent.motion.json" + }, + "export_seconds": 0.8340604170225561 + }, + { + "id": "grasp-fresh-01-reference-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3337214158382267, + "real_time_factor": 19.776974706348728, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.30000000000000004, + "object_inertia_kg_m2": [ + 0.0016268858049047633, + 0.0016069610068592207, + 0.0003376861882360116 + ], + "object_weight_n": 2.9430000000000005, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 25.15594385033541, + "peak_object_origin_rise_m": 3.4401182952357255e-05, + "peak_lowest_surface_z_m": -0.00011372699603405187, + "final_object_position_m": [ + 0.3975664541176128, + -0.11345692574155287, + -0.00010773877981947003 + ], + "final_lowest_surface_z_m": -0.00011688122898416767, + "closure_observation": { + "finger_normal_forces_n": [ + 4.938496785349013, + 4.74407224790012 + ], + "world_support_n": 10.015226769501323, + "actuator_force_n": -1.4738441474233412, + "jaw_opening_m": 0.07382207279840552 + }, + "policy_compute_p50_ms": 0.02397899515926838, + "policy_compute_p95_ms": 0.051641871687024846, + "policy_compute_max_ms": 0.4331250675022602, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712244, + "object_lowest_z_m": -0.00011690829053421017 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 4.938496785349013, + 4.74407224790012 + ], + "world_object_force_n": 10.015226769501323, + "gripper_actuator_force_n": -1.4738441474233412, + "jaw_opening_m": 0.07382207279840552 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3349277500528842, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02233404666185379, + 0.027207890525460243, + 0.02450007013976574, + 0.025042099878191948, + 0.02354104071855545, + 0.02287491224706173, + 0.025624874979257584, + 0.02537504769861698, + 0.02308306284248829, + 0.028125010430812836, + 0.022583873942494392, + 0.021750107407569885, + 0.025709159672260284, + 0.021666986867785454, + 0.021209008991718292, + 0.053416937589645386, + 0.030542025342583656, + 0.03179186023771763, + 0.02595805563032627, + 0.023499829694628716, + 0.027458881959319115, + 0.02487492747604847, + 0.02350006252527237, + 0.02295803278684616, + 0.02350006252527237, + 0.02433406189084053, + 0.023165950551629066, + 0.04629185423254967, + 0.032499898225069046, + 0.02737506292760372, + 0.027166912332177162, + 0.027084024623036385, + 0.052167102694511414, + 0.02933293581008911, + 0.025124987587332726, + 0.024124979972839355, + 0.039207981899380684, + 0.027458183467388153, + 0.025209039449691772, + 0.024166889488697052, + 0.02337503246963024, + 0.06529106758534908, + 0.02350006252527237, + 0.028708018362522125, + 0.023999949917197227, + 0.022707972675561905, + 0.022374792024493217, + 0.02245791256427765, + 0.021957792341709137, + 0.023833010345697403, + 0.02212519757449627, + 0.024750130251049995, + 0.022875145077705383, + 0.022624852135777473, + 0.02229190431535244, + 0.021792016923427582, + 0.02245791256427765, + 0.021792016923427582, + 0.022582942619919777, + 0.022292137145996094, + 0.022333115339279175, + 0.024999957531690598, + 0.055541982874274254, + 0.025166897103190422, + 0.022083986550569534, + 0.021916814148426056, + 0.022666994482278824, + 0.029958784580230713, + 0.025750137865543365, + 0.023792032152414322, + 0.04970794543623924, + 0.02595805563032627, + 0.02400018274784088, + 0.027250032871961594, + 0.022541964426636696, + 0.022625084966421127, + 0.02237502485513687, + 0.022541964426636696, + 0.024584122002124786, + 0.02737506292760372, + 0.021958956494927406, + 0.02187490463256836, + 0.022083986550569534, + 0.04449998959898949, + 0.022124964743852615, + 0.022582942619919777, + 0.0227498821914196, + 0.02350006252527237, + 0.023124972358345985, + 0.022709136828780174, + 0.027165981009602547, + 0.023250002413988113, + 0.02258317545056343, + 0.02350006252527237, + 0.02337503246963024, + 0.02308306284248829, + 0.022249994799494743, + 0.02650008536875248, + 0.024667009711265564, + 0.023750122636556625, + 0.022624852135777473, + 0.021875137463212013, + 0.022208085283637047, + 0.025250017642974854, + 0.052582938224077225, + 0.02295803278684616, + 0.02791709266602993, + 0.024584122002124786, + 0.02333289012312889, + 0.02350006252527237, + 0.02287491224706173, + 0.023499829694628716, + 0.02774992026388645, + 0.028165988624095917, + 0.025167129933834076, + 0.02283393405377865, + 0.023209024220705032, + 0.02233404666185379, + 0.025290995836257935, + 0.023292144760489464, + 0.02395804040133953, + 0.026207882910966873, + 0.022500054910779, + 0.022416003048419952, + 0.02191704697906971, + 0.05841720849275589, + 0.023208092898130417, + 0.022416934370994568, + 0.02191704697906971, + 0.02237502485513687, + 0.021792016923427582, + 0.021750107407569885, + 0.022833002731204033, + 0.0325001310557127, + 0.026167137548327446, + 0.08362485095858574, + 0.15458394773304462, + 0.0463749747723341, + 0.03050011582672596, + 0.06216694600880146, + 0.032041920349001884, + 0.02750009298324585, + 0.03695907071232796, + 0.035082921385765076, + 0.03333296626806259, + 0.031000003218650818, + 0.07737497799098492, + 0.02895807847380638, + 0.02600019797682762, + 0.08729193359613419, + 0.02595805563032627, + 0.0238749198615551, + 0.023167114704847336, + 0.027582980692386627, + 0.024667009711265564, + 0.02295803278684616, + 0.08433288894593716, + 0.04300009459257126, + 0.030291033908724785, + 0.03050011582672596, + 0.027250032871961594, + 0.134333036839962, + 0.038874801248311996, + 0.02629193477332592, + 0.027416972443461418, + 0.06449990905821323, + 0.05050003528594971, + 0.06716698408126831, + 0.029959017410874367, + 0.025624874979257584, + 0.024582957848906517, + 0.024209031835198402, + 0.027999980375170708, + 0.024625100195407867, + 0.0238749198615551, + 0.023374799638986588, + 0.023625092580914497, + 0.029791146516799927, + 0.03133411519229412, + 0.0363748986274004, + 0.028792070224881172, + 0.025833025574684143, + 0.024124979972839355, + 0.02370891161262989, + 0.023250002413988113, + 0.025665853172540665, + 0.02433406189084053, + 0.02437504008412361, + 0.4331250675022602, + 0.02445792779326439, + 0.023707980290055275, + 0.022999942302703857, + 0.0227498821914196, + 0.022624852135777473, + 0.029582995921373367, + 0.02545793540775776, + 0.02424977719783783, + 0.024707987904548645, + 0.02312520518898964, + 0.023791100829839706, + 0.023625092580914497, + 0.028625130653381348, + 0.0321660190820694, + 0.02574990503489971, + 0.024292152374982834, + 0.027416041120886803, + 0.02754107117652893, + 0.03374996595084667, + 0.02691708505153656, + 0.05395803600549698, + 0.02391706220805645, + 0.023292144760489464, + 0.023124972358345985, + 0.02295803278684616, + 0.022249994799494743, + 0.02245907671749592, + 0.021999934688210487, + 0.029333867132663727, + 0.02529192715883255, + 0.023667002096772194, + 0.02283393405377865, + 0.02291705459356308, + 0.022416003048419952, + 0.022249994799494743, + 0.022249994799494743, + 0.022249994799494743, + 0.025916844606399536, + 0.02233288250863552, + 0.049916794523596764, + 0.024875160306692123, + 0.05050003528594971, + 0.022999942302703857, + 0.022500054910779, + 0.02208305522799492, + 0.029583927243947983, + 0.024833017960190773, + 0.023124972358345985, + 0.022833002731204033, + 0.02258317545056343, + 0.026667024940252304, + 0.023667002096772194, + 0.028665876016020775, + 0.022416934370994568, + 0.02258317545056343, + 0.022625084966421127, + 0.021790852770209312, + 0.022249994799494743, + 0.02229120582342148, + 0.02187490463256836, + 0.022249994799494743, + 0.021750107407569885, + 0.04533398896455765, + 0.022249994799494743, + 0.024707987904548645, + 0.02245907671749592, + 0.026999972760677338, + 0.023124972358345985, + 0.02270890399813652, + 0.025416957214474678, + 0.02195802517235279, + 0.021832995116710663, + 0.03258395008742809, + 0.02624979242682457, + 0.024167122319340706, + 0.023083994165062904, + 0.023750122636556625, + 0.02333405427634716, + 0.029709190130233765, + 0.025624874979257584, + 0.022500054910779, + 0.027250032871961594, + 0.024167122319340706, + 0.04850002005696297, + 0.023207860067486763, + 0.022833002731204033, + 0.022666994482278824, + 0.022208085283637047, + 0.02237502485513687, + 0.02208305522799492, + 0.021832995116710663, + 0.022833002731204033, + 0.02504093572497368, + 0.021750107407569885, + 0.021582935005426407, + 0.02183392643928528, + 0.021875137463212013, + 0.02208305522799492, + 0.02208305522799492, + 0.022041145712137222, + 0.02774992026388645, + 0.023582950234413147, + 0.02220878377556801, + 0.022416003048419952, + 0.04791584797203541, + 0.022707972675561905, + 0.025875167921185493, + 0.02266606315970421, + 0.02491590566933155, + 0.02245791256427765, + 0.022666994482278824, + 0.022624852135777473, + 0.021999934688210487, + 0.03533298149704933, + 0.02591707743704319, + 0.024250010028481483, + 0.02429191954433918, + 0.025999965146183968, + 0.023374799638986588, + 0.023166881874203682, + 0.03045797348022461, + 0.02458319067955017, + 0.03437488339841366, + 0.026208115741610527, + 0.02466607838869095, + 0.050999922677874565, + 0.023875152692198753, + 0.0274579506367445, + 0.022916821762919426, + 0.023416941985487938, + 0.022833002731204033, + 0.02937507815659046, + 0.029041897505521774, + 0.030916882678866386, + 0.02508307807147503, + 0.023416941985487938, + 0.022792024537920952, + 0.027792062610387802, + 0.02437504008412361, + 0.02645794302225113, + 0.027625123038887978 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712244, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249848275163288e-11, + 9.536006010897656e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.108121765240887e-08, + "maximum_relative_lift_m": 3.4401182952357255e-05, + "minimum_final_relative_lift_m": 3.1081213492067635e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688122904813386, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "4a1d7158d95c7d5297b1f93a1708008babaa68153e706d749a53f63e7197c43c" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-current-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-01-reference-current-shoe-mounted.motion.json" + }, + "export_seconds": 0.8197355410084128 + }, + { + "id": "grasp-fresh-01-reference-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3324497079011053, + "real_time_factor": 19.852626857963177, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.30000000000000004, + "object_inertia_kg_m2": [ + 0.0016268858049047633, + 0.0016069610068592207, + 0.0003376861882360116 + ], + "object_weight_n": 2.9430000000000005, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 11.234549711844396, + "peak_object_origin_rise_m": 7.876415506838192e-05, + "peak_lowest_surface_z_m": -7.332539841724446e-05, + "final_object_position_m": [ + 0.39198523774875055, + -0.11439020150765544, + -0.00010773877981683082 + ], + "final_lowest_surface_z_m": -0.00011688122904759436, + "closure_observation": { + "finger_normal_forces_n": [ + 4.98931887691069, + 6.2452308349337065 + ], + "world_support_n": 11.092837992502036, + "actuator_force_n": -1.467075747738918, + "jaw_opening_m": 0.07404834899617901 + }, + "policy_compute_p50_ms": 0.023812521249055862, + "policy_compute_p95_ms": 0.0384390470571816, + "policy_compute_max_ms": 0.31095906160771847, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712244, + "object_lowest_z_m": -0.00011690829053421017 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 4.98931887691069, + 6.2452308349337065 + ], + "world_object_force_n": 11.092837992502036, + "gripper_actuator_force_n": -1.467075747738918, + "jaw_opening_m": 0.07404834899617901 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.3059999772540486, + -0.11300005186998244, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.33368179108947515, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022499822080135345, + 0.02787495031952858, + 0.03050011582672596, + 0.027417205274105072, + 0.025541987270116806, + 0.02458319067955017, + 0.02391706220805645, + 0.024041859433054924, + 0.023250002413988113, + 0.023582950234413147, + 0.023624859750270844, + 0.02291705459356308, + 0.02237502485513687, + 0.023165950551629066, + 0.02283393405377865, + 0.022916821762919426, + 0.038457801565527916, + 0.03308383747935295, + 0.027291011065244675, + 0.025667017325758934, + 0.05037500523030758, + 0.31095906160771847, + 0.028999987989664078, + 0.02637505531311035, + 0.024541979655623436, + 0.024250010028481483, + 0.02787495031952858, + 0.024416949599981308, + 0.030374852940440178, + 0.03245798870921135, + 0.026165973395109177, + 0.02587493509054184, + 0.024707987904548645, + 0.023792032152414322, + 0.0235831830650568, + 0.02329191192984581, + 0.023792032152414322, + 0.023833010345697403, + 0.02350006252527237, + 0.022416934370994568, + 0.02537504769861698, + 0.02291705459356308, + 0.022208085283637047, + 0.022999942302703857, + 0.022209016606211662, + 0.022416003048419952, + 0.022584106773138046, + 0.02237502485513687, + 0.051791081205010414, + 0.03316695801913738, + 0.026708003133535385, + 0.025041867047548294, + 0.02408307045698166, + 0.024582957848906517, + 0.023416941985487938, + 0.023667002096772194, + 0.030792085453867912, + 0.025707995519042015, + 0.030957860872149467, + 0.03033410757780075, + 0.02508307807147503, + 0.02429191954433918, + 0.023624859750270844, + 0.025582965463399887, + 0.023290980607271194, + 0.03841612488031387, + 0.03137486055493355, + 0.02416619099676609, + 0.023207860067486763, + 0.022750115022063255, + 0.02229120582342148, + 0.02270890399813652, + 0.022167107090353966, + 0.022041844204068184, + 0.022666994482278824, + 0.02229120582342148, + 0.02208305522799492, + 0.022541964426636696, + 0.04112487658858299, + 0.023999949917197227, + 0.03870879299938679, + 0.02474989742040634, + 0.022875145077705383, + 0.021999934688210487, + 0.021750107407569885, + 0.021541956812143326, + 0.03429199568927288, + 0.028250040486454964, + 0.029625138267874718, + 0.02450007013976574, + 0.024165958166122437, + 0.024124979972839355, + 0.024208100512623787, + 0.023707980290055275, + 0.023374799638986588, + 0.023416941985487938, + 0.024124979972839355, + 0.023541972041130066, + 0.023792032152414322, + 0.023082830011844635, + 0.023582950234413147, + 0.022790860384702682, + 0.022582942619919777, + 0.032624928280711174, + 0.02587493509054184, + 0.045582884922623634, + 0.02908380702137947, + 0.02408307045698166, + 0.0238749198615551, + 0.03741704858839512, + 0.029583927243947983, + 0.031542032957077026, + 0.02666609361767769, + 0.025792047381401062, + 0.024667009711265564, + 0.024042092263698578, + 0.02345792017877102, + 0.023250002413988113, + 0.023124972358345985, + 0.023791100829839706, + 0.024792039766907692, + 0.024292152374982834, + 0.023833010345697403, + 0.023458851501345634, + 0.023583881556987762, + 0.02337503246963024, + 0.022290972992777824, + 0.023333122953772545, + 0.034667085856199265, + 0.025207875296473503, + 0.02466607838869095, + 0.02395804040133953, + 0.02370891161262989, + 0.02395804040133953, + 0.023834174498915672, + 0.02437504008412361, + 0.023750122636556625, + 0.04283292219042778, + 0.03279210068285465, + 0.026041176170110703, + 0.027209054678678513, + 0.0249580480158329, + 0.040833139792084694, + 0.030542025342583656, + 0.02583279274404049, + 0.02545793540775776, + 0.025458866730332375, + 0.023916829377412796, + 0.02445792779326439, + 0.024208100512623787, + 0.024667009711265564, + 0.02291705459356308, + 0.023833010345697403, + 0.02433406189084053, + 0.022667227312922478, + 0.023416010662913322, + 0.05129212513566017, + 0.03441609442234039, + 0.026250025257468224, + 0.024042092263698578, + 0.022999942302703857, + 0.023292144760489464, + 0.02270820550620556, + 0.022709136828780174, + 0.02287491224706173, + 0.02374988980591297, + 0.02300017513334751, + 0.02254103310406208, + 0.02570892684161663, + 0.022625084966421127, + 0.03533298149704933, + 0.0296661164611578, + 0.02591707743704319, + 0.02637505531311035, + 0.024999957531690598, + 0.043791020289063454, + 0.029291026294231415, + 0.027416041120886803, + 0.024999957531690598, + 0.04758313298225403, + 0.032916897907853127, + 0.02708309330046177, + 0.024166889488697052, + 0.030291033908724785, + 0.02587493509054184, + 0.02433406189084053, + 0.02408307045698166, + 0.024124979972839355, + 0.023707980290055275, + 0.02295803278684616, + 0.023124972358345985, + 0.022875145077705383, + 0.02291705459356308, + 0.04695798270404339, + 0.028624897822737694, + 0.03083399496972561, + 0.04379195161163807, + 0.03541586920619011, + 0.031499890610575676, + 0.025833025574684143, + 0.02391589805483818, + 0.023333122953772545, + 0.023124972358345985, + 0.023167114704847336, + 0.023290980607271194, + 0.022249994799494743, + 0.022833002731204033, + 0.0224157702177763, + 0.022999942302703857, + 0.025167129933834076, + 0.03283284604549408, + 0.024707987904548645, + 0.022666994482278824, + 0.022041145712137222, + 0.02233288250863552, + 0.022707972675561905, + 0.022208085283637047, + 0.02174987457692623, + 0.022041145712137222, + 0.03779190592467785, + 0.026624882593750954, + 0.025999965146183968, + 0.02391706220805645, + 0.02783280797302723, + 0.022999942302703857, + 0.022541964426636696, + 0.022834166884422302, + 0.02587493509054184, + 0.02333405427634716, + 0.022624852135777473, + 0.02295803278684616, + 0.02266606315970421, + 0.02291705459356308, + 0.022750115022063255, + 0.022584106773138046, + 0.023250002413988113, + 0.023124972358345985, + 0.022750115022063255, + 0.022958964109420776, + 0.022958964109420776, + 0.022666994482278824, + 0.022625084966421127, + 0.0338749960064888, + 0.02620881423354149, + 0.023833010345697403, + 0.023290980607271194, + 0.02474989742040634, + 0.024084001779556274, + 0.023082830011844635, + 0.029749935492873192, + 0.027790898457169533, + 0.023875152692198753, + 0.023790867999196053, + 0.025833025574684143, + 0.023167114704847336, + 0.022207852452993393, + 0.029790913686156273, + 0.025041168555617332, + 0.02554105594754219, + 0.02270890399813652, + 0.04854099825024605, + 0.035499921068549156, + 0.025165965780615807, + 0.024791108444333076, + 0.02374988980591297, + 0.02329191192984581, + 0.022916821762919426, + 0.022999942302703857, + 0.022958964109420776, + 0.022792024537920952, + 0.023082830011844635, + 0.022290972992777824, + 0.02191588282585144, + 0.021875137463212013, + 0.022249994799494743, + 0.022042077034711838, + 0.024250010028481483, + 0.022625084966421127, + 0.022750115022063255, + 0.04479195922613144, + 0.02537504769861698, + 0.023250002413988113, + 0.02337503246963024, + 0.023124972358345985, + 0.022124964743852615, + 0.02537504769861698, + 0.023750122636556625, + 0.02295919694006443, + 0.04479219205677509, + 0.03837514668703079, + 0.02937507815659046, + 0.027624890208244324, + 0.023250002413988113, + 0.023042084649205208, + 0.02237502485513687, + 0.022124964743852615, + 0.022625084966421127, + 0.02408307045698166, + 0.022374792024493217, + 0.022290972992777824, + 0.022875145077705383, + 0.02204091288149357, + 0.021458836272358894, + 0.02237502485513687, + 0.022290972992777824, + 0.02291705459356308, + 0.02266606315970421, + 0.028916867449879646, + 0.02395804040133953, + 0.023667002096772194, + 0.02245907671749592, + 0.02245791256427765, + 0.02191704697906971, + 0.022249994799494743, + 0.021999934688210487, + 0.022500054910779, + 0.022124964743852615, + 0.022666994482278824, + 0.03470899537205696, + 0.0352498609572649, + 0.025250017642974854, + 0.023458153009414673, + 0.026250025257468224, + 0.02337503246963024, + 0.02295803278684616, + 0.022166874259710312, + 0.027667032554745674, + 0.021750107407569885, + 0.022582942619919777, + 0.02195802517235279 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712244, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249848275163288e-11, + 9.536006010897656e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.1081220291614454e-08, + "maximum_relative_lift_m": 7.876415506838192e-05, + "minimum_final_relative_lift_m": 3.1081213487405565e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688122904759436, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "1a0b217513b99117c339d1e4b02510e66641b1885a49920bd5e3dc554882555d" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-01-reference-current-shoe-absent.model.json", + "motion": "trials/grasp-fresh-01-reference-current-shoe-absent.motion.json" + }, + "export_seconds": 0.8445473748724908 + }, + { + "id": "grasp-fresh-02-light-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3604645000305027, + "real_time_factor": 18.30970872149962, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 8e-06, + 8e-06, + 8e-06 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.8389550372046259, + "peak_object_origin_rise_m": 0.22325491400202918, + "peak_lowest_surface_z_m": 0.2219287665391259, + "final_object_position_m": [ + 0.43970075789487123, + -0.07377163440504632, + 0.21858818613465802 + ], + "final_lowest_surface_z_m": 0.2165481843143357, + "closure_observation": { + "finger_normal_forces_n": [ + 0.39256927758119997, + 0.38758928659454467 + ], + "world_support_n": 0.833967034778164, + "actuator_force_n": -0.7726042269082146, + "jaw_opening_m": 0.03939168279702773 + }, + "policy_compute_p50_ms": 0.027979491278529167, + "policy_compute_p95_ms": 0.11073722271248702, + "policy_compute_max_ms": 0.31141703948378563, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904475, + "object_lowest_z_m": -0.0001077864536012628 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.39256927758119997, + 0.38758928659454467 + ], + "world_object_force_n": 0.833967034778164, + "gripper_actuator_force_n": -0.7726042269082146, + "jaw_opening_m": 0.03939168279702773 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3626192919909954, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.023250002413988113, + 0.028667040169239044, + 0.024999957531690598, + 0.024709152057766914, + 0.0310409814119339, + 0.02833409234881401, + 0.02504093572497368, + 0.04583294503390789, + 0.030792085453867912, + 0.029374845325946808, + 0.025333138182759285, + 0.025250017642974854, + 0.024165958166122437, + 0.024042092263698578, + 0.02437504008412361, + 0.023625092580914497, + 0.02350006252527237, + 0.024084001779556274, + 0.024584122002124786, + 0.02245791256427765, + 0.02529192715883255, + 0.02645794302225113, + 0.024292152374982834, + 0.023999949917197227, + 0.024333130568265915, + 0.022999942302703857, + 0.023541972041130066, + 0.039624981582164764, + 0.1787920482456684, + 0.0338749960064888, + 0.03174995072185993, + 0.02500019036233425, + 0.023499829694628716, + 0.022750115022063255, + 0.023333122953772545, + 0.02245907671749592, + 0.02450007013976574, + 0.029792077839374542, + 0.02491706982254982, + 0.02708309330046177, + 0.02437504008412361, + 0.02350006252527237, + 0.024290988221764565, + 0.02345792017877102, + 0.02395804040133953, + 0.023707980290055275, + 0.0238749198615551, + 0.023166881874203682, + 0.04983297549188137, + 0.03129197284579277, + 0.02729194238781929, + 0.038541154935956, + 0.02895807847380638, + 0.04095793701708317, + 0.03529200330376625, + 0.02654106356203556, + 0.025916146114468575, + 0.027833040803670883, + 0.03737490624189377, + 0.028999987989664078, + 0.025416957214474678, + 0.039667123928666115, + 0.028708018362522125, + 0.0289171002805233, + 0.025540823116898537, + 0.02450007013976574, + 0.026208115741610527, + 0.02374988980591297, + 0.023667002096772194, + 0.024290988221764565, + 0.023750122636556625, + 0.03441702574491501, + 0.026124995201826096, + 0.02429191954433918, + 0.02333405427634716, + 0.022958964109420776, + 0.022541964426636696, + 0.022500054910779, + 0.02233404666185379, + 0.022458145394921303, + 0.022209016606211662, + 0.022458145394921303, + 0.022792024537920952, + 0.023124972358345985, + 0.05345884710550308, + 0.02212519757449627, + 0.022500054910779, + 0.025667017325758934, + 0.03050011582672596, + 0.025124987587332726, + 0.02774992026388645, + 0.0238749198615551, + 0.02333405427634716, + 0.023667002096772194, + 0.036125071346759796, + 0.03341701813042164, + 0.023750122636556625, + 0.024124979972839355, + 0.02295803278684616, + 0.02558319829404354, + 0.027582980692386627, + 0.027125002816319466, + 0.024916836991906166, + 0.023833010345697403, + 0.0227498821914196, + 0.31141703948378563, + 0.028292182832956314, + 0.024250010028481483, + 0.02350006252527237, + 0.023707980290055275, + 0.024167122319340706, + 0.023541972041130066, + 0.023582950234413147, + 0.023290980607271194, + 0.03254180774092674, + 0.02512522041797638, + 0.02366607077419758, + 0.02350006252527237, + 0.023042084649205208, + 0.023667002096772194, + 0.025084009394049644, + 0.02741580829024315, + 0.02295803278684616, + 0.02333289012312889, + 0.060582999140024185, + 0.02637505531311035, + 0.11858297511935234, + 0.11266698129475117, + 0.057791825383901596, + 0.039291102439165115, + 0.027833040803670883, + 0.02433289773762226, + 0.055040931329131126, + 0.025707995519042015, + 0.026207882910966873, + 0.048625050112605095, + 0.031209085136651993, + 0.027624890208244324, + 0.02545793540775776, + 0.0253340695053339, + 0.026250025257468224, + 0.026833033189177513, + 0.03595883026719093, + 0.09316601790487766, + 0.03445800393819809, + 0.02633407711982727, + 0.04866695962846279, + 0.08224998600780964, + 0.03195786848664284, + 0.027250032871961594, + 0.024667009711265564, + 0.02395804040133953, + 0.024124979972839355, + 0.02291705459356308, + 0.04233419895172119, + 0.029792077839374542, + 0.02695806324481964, + 0.025790883228182793, + 0.02483394928276539, + 0.025250017642974854, + 0.030250055715441704, + 0.05537504330277443, + 0.03900006413459778, + 0.027041882276535034, + 0.025041168555617332, + 0.0285410787910223, + 0.028042122721672058, + 0.07145898416638374, + 0.07149996235966682, + 0.027916859835386276, + 0.025250017642974854, + 0.041040824726223946, + 0.030375085771083832, + 0.025750137865543365, + 0.023999949917197227, + 0.023625092580914497, + 0.02354104071855545, + 0.02333289012312889, + 0.022916123270988464, + 0.023707980290055275, + 0.027082860469818115, + 0.0288328155875206, + 0.051999930292367935, + 0.03383285365998745, + 0.027583912014961243, + 0.026624882593750954, + 0.08708401583135128, + 0.03733299672603607, + 0.04245806485414505, + 0.0765831209719181, + 0.13712490908801556, + 0.06283307448029518, + 0.03200001083314419, + 0.030166003853082657, + 0.025209039449691772, + 0.026082852855324745, + 0.027542002499103546, + 0.025292159989476204, + 0.024667009711265564, + 0.025167129933834076, + 0.06929109804332256, + 0.03716698847711086, + 0.03800005652010441, + 0.029833056032657623, + 0.026166904717683792, + 0.024584122002124786, + 0.025999965146183968, + 0.02587493509054184, + 0.12195785529911518, + 0.05312496796250343, + 0.06704195402562618, + 0.045625027269124985, + 0.039207981899380684, + 0.054416945204138756, + 0.036041950806975365, + 0.030583934858441353, + 0.02566608600318432, + 0.026124995201826096, + 0.07541617378592491, + 0.12866687029600143, + 0.0590828713029623, + 0.059959013015031815, + 0.03533298149704933, + 0.03133295103907585, + 0.13416609726846218, + 0.04579196684062481, + 0.044042011722922325, + 0.036499928683042526, + 0.0302919652312994, + 0.02550007775425911, + 0.024582957848906517, + 0.08375011384487152, + 0.035624951124191284, + 0.029207905754446983, + 0.026458874344825745, + 0.15041697770357132, + 0.04354189150035381, + 0.03870786167681217, + 0.16758311539888382, + 0.05012494511902332, + 0.03437488339841366, + 0.029749935492873192, + 0.02766679972410202, + 0.028125010430812836, + 0.06600003689527512, + 0.03537512384355068, + 0.028458889573812485, + 0.027165981009602547, + 0.02574990503489971, + 0.1272088848054409, + 0.10904110968112946, + 0.041458988562226295, + 0.060416990891098976, + 0.12116599828004837, + 0.038041966035962105, + 0.03045797348022461, + 0.04416704177856445, + 0.031916890293359756, + 0.0274579506367445, + 0.02674991264939308, + 0.026208115741610527, + 0.02587493509054184, + 0.02545793540775776, + 0.025250017642974854, + 0.024665845558047295, + 0.025625107809901237, + 0.025082845240831375, + 0.027250032871961594, + 0.026124995201826096, + 0.024750130251049995, + 0.055165961384773254, + 0.03304099664092064, + 0.028458191081881523, + 0.09229197166860104, + 0.030959025025367737, + 0.04591699689626694, + 0.030957860872149467, + 0.02729194238781929, + 0.02645794302225113, + 0.02529192715883255, + 0.10712491348385811, + 0.05179201252758503, + 0.03479095175862312, + 0.1787911169230938, + 0.12283306568861008, + 0.04829186946153641, + 0.03270898014307022, + 0.02833292819559574, + 0.04537519998848438, + 0.047667184844613075, + 0.03787502646446228, + 0.045584049075841904, + 0.058125006034970284, + 0.04195910878479481, + 0.06641610525548458, + 0.030584167689085007, + 0.02774992026388645, + 0.08654198609292507, + 0.0387909822165966, + 0.0827498733997345, + 0.031333183869719505, + 0.038874801248311996, + 0.033207936212420464, + 0.030042137950658798, + 0.02650008536875248, + 0.02687494270503521, + 0.025583896785974503, + 0.14283298514783382, + 0.07708393968641758, + 0.17529213801026344, + 0.0474581029266119, + 0.04833284765481949, + 0.06220792420208454, + 0.04175002686679363, + 0.05133310332894325, + 0.07454212754964828, + 0.0639171339571476, + 0.03995816223323345, + 0.03708386793732643, + 0.04833401180803776, + 0.03437488339841366, + 0.052625080570578575, + 0.07445807568728924, + 0.03533298149704933, + 0.0541249755769968, + 0.03516697324812412, + 0.03704102709889412, + 0.03787502646446228, + 0.04995916970074177, + 0.11212495155632496 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904475, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.343125693471393e-13, + 4.581057755359552e-14, + 9.531326228784208e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.21869597258184706, + "maximum_relative_lift_m": 0.22325491400202918, + "minimum_final_relative_lift_m": 0.21668316370552446, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.2148169140052359, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "84b4e97ceec2793b8936a5af41097ddd74e79a52d83961dfd6308d6900fb9af4" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-easy-block-mounted.model.json", + "motion": "trials/grasp-fresh-02-light-easy-block-mounted.motion.json" + }, + "export_seconds": 0.8673414580989629 + }, + { + "id": "grasp-fresh-02-light-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.33697687508538365, + "real_time_factor": 19.58591371686018, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000001137, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 8e-06, + 8e-06, + 8e-06 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.8077077045259594, + "peak_object_origin_rise_m": 0.24738252594594423, + "peak_lowest_surface_z_m": 0.24433689898179245, + "final_object_position_m": [ + 0.44542896389403125, + -0.07428399671814662, + 0.2312793603788921 + ], + "final_lowest_surface_z_m": 0.22715837993251287, + "closure_observation": { + "finger_normal_forces_n": [ + 0.26309687706545676, + 0.5178340721480839 + ], + "world_support_n": 0.7901802887625577, + "actuator_force_n": -0.7799426256974338, + "jaw_opening_m": 0.039683484005422015 + }, + "policy_compute_p50_ms": 0.02350006252527237, + "policy_compute_p95_ms": 0.03385817399248482, + "policy_compute_max_ms": 0.07679080590605736, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718904475, + "object_lowest_z_m": -0.0001077864536012628 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.26309687706545676, + 0.5178340721480839 + ], + "world_object_force_n": 0.7901802887625577, + "gripper_actuator_force_n": -0.7799426256974338, + "jaw_opening_m": 0.039683484005422015 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.42900033399073284, + -0.0709999347204693, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3384567911271006, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02229190431535244, + 0.029082875698804855, + 0.025082845240831375, + 0.025999965146183968, + 0.04783296026289463, + 0.031916890293359756, + 0.02674991264939308, + 0.02537504769861698, + 0.02395804040133953, + 0.023584114387631416, + 0.02287491224706173, + 0.022500054910779, + 0.022791791707277298, + 0.021999934688210487, + 0.022833002731204033, + 0.022292137145996094, + 0.02295803278684616, + 0.021832995116710663, + 0.022500054910779, + 0.023416941985487938, + 0.02750009298324585, + 0.06687501445412636, + 0.025124987587332726, + 0.024625100195407867, + 0.02304092049598694, + 0.023707980290055275, + 0.02291705459356308, + 0.02295803278684616, + 0.02208305522799492, + 0.022582942619919777, + 0.022209016606211662, + 0.022124964743852615, + 0.02158316783607006, + 0.021750107407569885, + 0.021666986867785454, + 0.02154102548956871, + 0.026833033189177513, + 0.022167107090353966, + 0.02491706982254982, + 0.021459069103002548, + 0.021875137463212013, + 0.021458137780427933, + 0.02195802517235279, + 0.025750137865543365, + 0.02170889638364315, + 0.021582935005426407, + 0.02233288250863552, + 0.021750107407569885, + 0.035041943192481995, + 0.026625115424394608, + 0.024707987904548645, + 0.02350006252527237, + 0.024250010028481483, + 0.024333130568265915, + 0.02308306284248829, + 0.024541979655623436, + 0.023791100829839706, + 0.02312520518898964, + 0.02437504008412361, + 0.024416949599981308, + 0.023707980290055275, + 0.023209024220705032, + 0.024290988221764565, + 0.02291705459356308, + 0.022416934370994568, + 0.02350006252527237, + 0.02245791256427765, + 0.022249994799494743, + 0.022707972675561905, + 0.033125048503279686, + 0.027084024623036385, + 0.025124987587332726, + 0.04954100586473942, + 0.02979184500873089, + 0.0249580480158329, + 0.02374988980591297, + 0.023374799638986588, + 0.02300017513334751, + 0.023709144443273544, + 0.02337503246963024, + 0.022417167201638222, + 0.02200016751885414, + 0.021709129214286804, + 0.02208305522799492, + 0.02174987457692623, + 0.021624844521284103, + 0.022042077034711838, + 0.022624852135777473, + 0.022082822397351265, + 0.02200016751885414, + 0.02183392643928528, + 0.02683396451175213, + 0.02445909194648266, + 0.023333122953772545, + 0.023792032152414322, + 0.023250002413988113, + 0.02345792017877102, + 0.022999942302703857, + 0.022707972675561905, + 0.022416003048419952, + 0.02237502485513687, + 0.022500054910779, + 0.022625084966421127, + 0.022416934370994568, + 0.02233404666185379, + 0.02233288250863552, + 0.02195802517235279, + 0.022083986550569534, + 0.022165942937135696, + 0.027333153411746025, + 0.024541979655623436, + 0.022999942302703857, + 0.02208305522799492, + 0.029124785214662552, + 0.024416949599981308, + 0.022750115022063255, + 0.022833002731204033, + 0.022041844204068184, + 0.022249994799494743, + 0.02208305522799492, + 0.023333122953772545, + 0.022207852452993393, + 0.02183392643928528, + 0.021666986867785454, + 0.02187490463256836, + 0.0213750172406435, + 0.022416934370994568, + 0.021083978936076164, + 0.0213750172406435, + 0.021541956812143326, + 0.02141715958714485, + 0.022041844204068184, + 0.021292129531502724, + 0.02191704697906971, + 0.021750107407569885, + 0.030499882996082306, + 0.025042099878191948, + 0.02429191954433918, + 0.022500054910779, + 0.02233288250863552, + 0.021834159269928932, + 0.022042077034711838, + 0.022124964743852615, + 0.026291003450751305, + 0.024167122319340706, + 0.026624882593750954, + 0.029957853257656097, + 0.02374988980591297, + 0.022875145077705383, + 0.022041145712137222, + 0.022249994799494743, + 0.039207981899380684, + 0.027667032554745674, + 0.025124987587332726, + 0.02437504008412361, + 0.02437504008412361, + 0.02308306284248829, + 0.023165950551629066, + 0.023166881874203682, + 0.02308306284248829, + 0.022999942302703857, + 0.02316618338227272, + 0.02604094333946705, + 0.022249994799494743, + 0.022416934370994568, + 0.030041905120015144, + 0.028583919629454613, + 0.025667017325758934, + 0.026458874344825745, + 0.02266606315970421, + 0.02350006252527237, + 0.02545909956097603, + 0.02308306284248829, + 0.022417167201638222, + 0.02187490463256836, + 0.022124964743852615, + 0.03024982288479805, + 0.02487492747604847, + 0.022999942302703857, + 0.023083994165062904, + 0.023417174816131592, + 0.0313750933855772, + 0.024583889171481133, + 0.023541972041130066, + 0.02337503246963024, + 0.02345792017877102, + 0.030374852940440178, + 0.02404092811048031, + 0.031665898859500885, + 0.02583395689725876, + 0.02466607838869095, + 0.02374988980591297, + 0.02300017513334751, + 0.02287491224706173, + 0.02308306284248829, + 0.02312520518898964, + 0.022958964109420776, + 0.02450007013976574, + 0.02291705459356308, + 0.022500054910779, + 0.022916821762919426, + 0.022833002731204033, + 0.02254103310406208, + 0.022416934370994568, + 0.029250048100948334, + 0.024582957848906517, + 0.024916138499975204, + 0.023667002096772194, + 0.022792024537920952, + 0.022833002731204033, + 0.022582942619919777, + 0.026958994567394257, + 0.02591707743704319, + 0.02441578544676304, + 0.0238749198615551, + 0.02345908433198929, + 0.022999942302703857, + 0.02354104071855545, + 0.05508307367563248, + 0.028667040169239044, + 0.024958979338407516, + 0.023541972041130066, + 0.02345792017877102, + 0.02333289012312889, + 0.02237502485513687, + 0.02229120582342148, + 0.022249994799494743, + 0.022416003048419952, + 0.03720889799296856, + 0.024166889488697052, + 0.022999942302703857, + 0.02295803278684616, + 0.027999980375170708, + 0.028499867767095566, + 0.026209047064185143, + 0.023999949917197227, + 0.026583904400467873, + 0.023624859750270844, + 0.023290980607271194, + 0.02604094333946705, + 0.024582957848906517, + 0.02291705459356308, + 0.07679080590605736, + 0.028959009796380997, + 0.029250048100948334, + 0.025124987587332726, + 0.035250093787908554, + 0.028749927878379822, + 0.023458851501345634, + 0.02391589805483818, + 0.023792032152414322, + 0.023165950551629066, + 0.032667070627212524, + 0.02666679210960865, + 0.029207905754446983, + 0.024750130251049995, + 0.024167122319340706, + 0.02391706220805645, + 0.023584114387631416, + 0.023124972358345985, + 0.02337503246963024, + 0.02374988980591297, + 0.024416949599981308, + 0.02283393405377865, + 0.02270890399813652, + 0.02300017513334751, + 0.02350006252527237, + 0.03900006413459778, + 0.024792039766907692, + 0.023916130885481834, + 0.023582950234413147, + 0.02291705459356308, + 0.0227498821914196, + 0.031250063329935074, + 0.02450007013976574, + 0.02350006252527237, + 0.02333289012312889, + 0.026582973077893257, + 0.023207860067486763, + 0.023041153326630592, + 0.02441578544676304, + 0.027999980375170708, + 0.02737506292760372, + 0.02295803278684616, + 0.025208108127117157, + 0.02470891922712326, + 0.023124972358345985, + 0.06487499922513962, + 0.03854185342788696, + 0.027333851903676987, + 0.02545793540775776, + 0.026665860787034035, + 0.024416018277406693, + 0.024124979972839355, + 0.02450007013976574, + 0.022958964109420776, + 0.02329191192984581, + 0.023250002413988113, + 0.052833929657936096, + 0.03445800393819809, + 0.025207875296473503, + 0.0238749198615551, + 0.02354104071855545, + 0.022875145077705383, + 0.02229190431535244, + 0.025625107809901237, + 0.03800005652010441, + 0.02650008536875248, + 0.02391706220805645, + 0.03195810131728649, + 0.025790883228182793, + 0.023124972358345985, + 0.023707980290055275, + 0.03233388997614384, + 0.02495921216905117, + 0.0613329466432333, + 0.02683280035853386, + 0.02408307045698166, + 0.023707980290055275, + 0.023625092580914497, + 0.02987496554851532, + 0.029999995604157448, + 0.02433406189084053, + 0.022999942302703857, + 0.02829195000231266, + 0.024209031835198402, + 0.02437504008412361, + 0.02287491224706173, + 0.04508392885327339, + 0.03033294342458248 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718904475, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 2.343125693471393e-13, + 4.581057755359552e-14, + 9.531326228784208e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.23138714682608114, + "maximum_relative_lift_m": 0.24738252594594423, + "minimum_final_relative_lift_m": 0.23138714682608114, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.22715837993251287, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "8311bf5b9ad96045e828430e763f72392f9ed9e4ba573ba2a90009a32c810104" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-easy-block-absent.model.json", + "motion": "trials/grasp-fresh-02-light-easy-block-absent.motion.json" + }, + "export_seconds": 0.8232225419487804 + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3272570420522243, + "real_time_factor": 20.167633242086982, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 1.525e-05, + 5.8e-05, + 5.525000000000001e-05 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 1.0465422908341022, + "peak_object_origin_rise_m": 0.22349164636668842, + "peak_lowest_surface_z_m": 0.22023784257247814, + "final_object_position_m": [ + 0.44398352017822074, + -0.07333963090219953, + 0.21899354080901995 + ], + "final_lowest_surface_z_m": 0.21779866364811884, + "closure_observation": { + "finger_normal_forces_n": [ + 0.43530801077208053, + 0.5358320243676746 + ], + "world_support_n": 0.8351667978415414, + "actuator_force_n": -0.9706806548370431, + "jaw_opening_m": 0.049360319443559286 + }, + "policy_compute_p50_ms": 0.023667002096772194, + "policy_compute_p95_ms": 0.0392204849049449, + "policy_compute_max_ms": 0.4367500077933073, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718910858, + "object_lowest_z_m": -0.00010778644870726092 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.43530801077208053, + 0.5358320243676746 + ], + "world_object_force_n": 0.8351667978415414, + "gripper_actuator_force_n": -0.9706806548370431, + "jaw_opening_m": 0.049360319443559286 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.32856962480582297, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022750115022063255, + 0.0285410787910223, + 0.024250010028481483, + 0.025999965146183968, + 0.025042099878191948, + 0.03158301115036011, + 0.026790890842676163, + 0.05129189230501652, + 0.03379187546670437, + 0.02750009298324585, + 0.02787495031952858, + 0.02766610123217106, + 0.02508307807147503, + 0.02470891922712326, + 0.02374988980591297, + 0.023417174816131592, + 0.02350006252527237, + 0.02304092049598694, + 0.023625092580914497, + 0.02308306284248829, + 0.026250025257468224, + 0.029833056032657623, + 0.026166904717683792, + 0.028125010430812836, + 0.024541979655623436, + 0.022750115022063255, + 0.023416010662913322, + 0.022833002731204033, + 0.02245791256427765, + 0.021958956494927406, + 0.02266606315970421, + 0.024124979972839355, + 0.02591591328382492, + 0.025250017642974854, + 0.02454104833304882, + 0.02308306284248829, + 0.024208100512623787, + 0.025042099878191948, + 0.022541964426636696, + 0.022333813831210136, + 0.023083994165062904, + 0.022707972675561905, + 0.02295803278684616, + 0.022290972992777824, + 0.03933301195502281, + 0.02845795825123787, + 0.025458866730332375, + 0.02487492747604847, + 0.027166912332177162, + 0.02391589805483818, + 0.023333122953772545, + 0.02354104071855545, + 0.02308306284248829, + 0.023207860067486763, + 0.02304092049598694, + 0.024833017960190773, + 0.02300017513334751, + 0.023791100829839706, + 0.036458950489759445, + 0.02845795825123787, + 0.025167129933834076, + 0.024209031835198402, + 0.02295919694006443, + 0.023999949917197227, + 0.024250010028481483, + 0.027041882276535034, + 0.022165942937135696, + 0.023999949917197227, + 0.021958956494927406, + 0.027708010748028755, + 0.03345799632370472, + 0.028708018362522125, + 0.028542010113596916, + 0.026209047064185143, + 0.02374988980591297, + 0.024541979655623436, + 0.02295803278684616, + 0.022709136828780174, + 0.022666994482278824, + 0.022417167201638222, + 0.022625084966421127, + 0.022458145394921303, + 0.02258317545056343, + 0.02170889638364315, + 0.046791043132543564, + 0.022292137145996094, + 0.022582942619919777, + 0.02229190431535244, + 0.02195802517235279, + 0.021832995116710663, + 0.022083986550569534, + 0.029041897505521774, + 0.025250017642974854, + 0.023916130885481834, + 0.023416941985487938, + 0.02337503246963024, + 0.02291589044034481, + 0.02308306284248829, + 0.022417167201638222, + 0.023250002413988113, + 0.0227498821914196, + 0.021999934688210487, + 0.02158316783607006, + 0.021875137463212013, + 0.03087497316300869, + 0.06749993190169334, + 0.028916168957948685, + 0.028708018362522125, + 0.025625107809901237, + 0.024250010028481483, + 0.02354104071855545, + 0.029416987672448158, + 0.025166897103190422, + 0.02366607077419758, + 0.027084024623036385, + 0.022999942302703857, + 0.023166881874203682, + 0.032624928280711174, + 0.025290995836257935, + 0.0238749198615551, + 0.024625100195407867, + 0.023999949917197227, + 0.023250002413988113, + 0.023209024220705032, + 0.023209024220705032, + 0.023209024220705032, + 0.06508408114314079, + 0.033708056434988976, + 0.025582965463399887, + 0.02395804040133953, + 0.02887495793402195, + 0.02445792779326439, + 0.02337503246963024, + 0.022667227312922478, + 0.022582942619919777, + 0.025290995836257935, + 0.1104581169784069, + 0.03187498077750206, + 0.026792054995894432, + 0.024624867364764214, + 0.023209024220705032, + 0.023667002096772194, + 0.023416010662913322, + 0.023124972358345985, + 0.02774992026388645, + 0.02270820550620556, + 0.028916867449879646, + 0.05979207344353199, + 0.025166897103190422, + 0.023041153326630592, + 0.02345792017877102, + 0.02287491224706173, + 0.02391706220805645, + 0.02529192715883255, + 0.023124972358345985, + 0.022500054910779, + 0.022374792024493217, + 0.022167107090353966, + 0.024541979655623436, + 0.036207959055900574, + 0.027166912332177162, + 0.024875160306692123, + 0.024374807253479958, + 0.029125018045306206, + 0.028792070224881172, + 0.060374848544597626, + 0.039082951843738556, + 0.03229198046028614, + 0.07333303801715374, + 0.03045797348022461, + 0.030499882996082306, + 0.02595805563032627, + 0.023667002096772194, + 0.02433406189084053, + 0.032041920349001884, + 0.0325001310557127, + 0.033708056434988976, + 0.02454104833304882, + 0.025458168238401413, + 0.023624859750270844, + 0.024292152374982834, + 0.02691592089831829, + 0.024208100512623787, + 0.023916829377412796, + 0.02337503246963024, + 0.022541964426636696, + 0.022707972675561905, + 0.02237502485513687, + 0.02266606315970421, + 0.0535410363227129, + 0.023042084649205208, + 0.022417167201638222, + 0.05874992348253727, + 0.030084047466516495, + 0.024707987904548645, + 0.024124979972839355, + 0.023667002096772194, + 0.023250002413988113, + 0.022833002731204033, + 0.022582942619919777, + 0.02308306284248829, + 0.02237502485513687, + 0.022083986550569534, + 0.02233404666185379, + 0.0227498821914196, + 0.021999934688210487, + 0.022416003048419952, + 0.022666994482278824, + 0.02229190431535244, + 0.022999942302703857, + 0.06250012665987015, + 0.02933409996330738, + 0.025250017642974854, + 0.024250010028481483, + 0.023584114387631416, + 0.023582950234413147, + 0.024624867364764214, + 0.024582957848906517, + 0.022666994482278824, + 0.02254103310406208, + 0.022624852135777473, + 0.02233404666185379, + 0.02245907671749592, + 0.022500054910779, + 0.021916115656495094, + 0.026082852855324745, + 0.025167129933834076, + 0.02229190431535244, + 0.022041145712137222, + 0.02208305522799492, + 0.02187490463256836, + 0.043416162952780724, + 0.02245791256427765, + 0.022208085283637047, + 0.02504093572497368, + 0.02166605554521084, + 0.02491706982254982, + 0.02195802517235279, + 0.02150004729628563, + 0.021999934688210487, + 0.02150004729628563, + 0.022165942937135696, + 0.02187490463256836, + 0.02333289012312889, + 0.021624844521284103, + 0.021707965061068535, + 0.02150004729628563, + 0.02929195761680603, + 0.024582957848906517, + 0.024250010028481483, + 0.027792062610387802, + 0.024042092263698578, + 0.05429214797914028, + 0.022541964426636696, + 0.025792047381401062, + 0.02195918932557106, + 0.03545801155269146, + 0.02429191954433918, + 0.023875152692198753, + 0.023584114387631416, + 0.023707980290055275, + 0.022875145077705383, + 0.022208085283637047, + 0.02308306284248829, + 0.025250017642974854, + 0.02866680733859539, + 0.027583912014961243, + 0.0235831830650568, + 0.02295803278684616, + 0.022625084966421127, + 0.02295803278684616, + 0.022624852135777473, + 0.022666994482278824, + 0.4367500077933073, + 0.023667002096772194, + 0.024791806936264038, + 0.023625092580914497, + 0.022541964426636696, + 0.022249994799494743, + 0.022083986550569534, + 0.023416941985487938, + 0.02287491224706173, + 0.031000003218650818, + 0.025250017642974854, + 0.026458874344825745, + 0.03066612407565117, + 0.0253340695053339, + 0.02329191192984581, + 0.022583873942494392, + 0.022834166884422302, + 0.022208085283637047, + 0.021707965061068535, + 0.02245907671749592, + 0.025124987587332726, + 0.04716683179140091, + 0.023041153326630592, + 0.02991710789501667, + 0.025124987587332726, + 0.023875152692198753, + 0.027250032871961594, + 0.023583881556987762, + 0.023124972358345985, + 0.022458843886852264, + 0.022583873942494392, + 0.02287491224706173, + 0.022916821762919426, + 0.024792039766907692, + 0.023875152692198753, + 0.022208085283637047, + 0.02345908433198929, + 0.03141607157886028, + 0.03133411519229412, + 0.024292152374982834, + 0.023584114387631416, + 0.02374988980591297, + 0.054666073992848396, + 0.02395804040133953, + 0.02291589044034481, + 0.022416934370994568, + 0.02295803278684616, + 0.029499875381588936, + 0.026541994884610176, + 0.02383394166827202, + 0.023667002096772194, + 0.023584114387631416, + 0.025458866730332375, + 0.022833002731204033, + 0.02291705459356308, + 0.02337503246963024, + 0.022750115022063255 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718910858, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 0.0, + 2.66869859544272e-14, + 9.531326247010324e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.21910132725620907, + "maximum_relative_lift_m": 0.22349164636668842, + "minimum_final_relative_lift_m": 0.21696118658897, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.21539539820116874, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "715817442f06e6e207fac67e1b54689dd200d09c69eba017c66389cbfe2eac84" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-simplified-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-02-light-simplified-shoe-mounted.motion.json" + }, + "export_seconds": 0.8183259160723537 + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3518846249207854, + "real_time_factor": 18.756147704621238, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000001137, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.03, + "object_inertia_kg_m2": [ + 1.525e-05, + 5.8e-05, + 5.525000000000001e-05 + ], + "object_weight_n": 0.2943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 0.9939764526613429, + "peak_object_origin_rise_m": 0.24910205354339407, + "peak_lowest_surface_z_m": 0.24083780475215244, + "final_object_position_m": [ + 0.4562580008510017, + -0.07436631837716227, + 0.23253303395641683 + ], + "final_lowest_surface_z_m": 0.2294474252843387, + "closure_observation": { + "finger_normal_forces_n": [ + 0.48806767415837615, + 0.486618176227241 + ], + "world_support_n": 0.0, + "actuator_force_n": -0.9758126598433315, + "jaw_opening_m": 0.04952245233507971 + }, + "policy_compute_p50_ms": 0.023124972358345985, + "policy_compute_p95_ms": 0.03246056148782373, + "policy_compute_max_ms": 0.07562502287328243, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718910858, + "object_lowest_z_m": -0.00010778644870726092 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.48806767415837615, + 0.486618176227241 + ], + "world_object_force_n": 0.0, + "gripper_actuator_force_n": -0.9758126598433315, + "jaw_opening_m": 0.04952245233507971 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.4289999970734492, + -0.07100031807308266, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3535077078267932, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.023165950551629066, + 0.027207890525460243, + 0.024041859433054924, + 0.02516619861125946, + 0.023792032152414322, + 0.022582942619919777, + 0.023165950551629066, + 0.023290980607271194, + 0.023041153326630592, + 0.022500054910779, + 0.022750115022063255, + 0.02445792779326439, + 0.02229190431535244, + 0.022082822397351265, + 0.022416934370994568, + 0.021666986867785454, + 0.022165942937135696, + 0.022082822397351265, + 0.023208092898130417, + 0.022792024537920952, + 0.024084001779556274, + 0.07562502287328243, + 0.023667002096772194, + 0.04716706462204456, + 0.031250063329935074, + 0.02624979242682457, + 0.02483394928276539, + 0.02437504008412361, + 0.023124972358345985, + 0.022416934370994568, + 0.02266606315970421, + 0.02270890399813652, + 0.02229190431535244, + 0.021999934688210487, + 0.024916138499975204, + 0.022083986550569534, + 0.031708041206002235, + 0.025833025574684143, + 0.023750122636556625, + 0.02570892684161663, + 0.022499822080135345, + 0.022042077034711838, + 0.02191704697906971, + 0.022249994799494743, + 0.02195802517235279, + 0.023124972358345985, + 0.021707965061068535, + 0.021666986867785454, + 0.02654106356203556, + 0.05129189230501652, + 0.031750183552503586, + 0.028999987989664078, + 0.025082845240831375, + 0.029750168323516846, + 0.024750130251049995, + 0.024084001779556274, + 0.026416033506393433, + 0.023667002096772194, + 0.023416941985487938, + 0.022625084966421127, + 0.02287491224706173, + 0.023083994165062904, + 0.0227498821914196, + 0.023208092898130417, + 0.023042084649205208, + 0.02333289012312889, + 0.02291705459356308, + 0.022584106773138046, + 0.022666994482278824, + 0.023250002413988113, + 0.022249994799494743, + 0.02195802517235279, + 0.021875137463212013, + 0.02187490463256836, + 0.02191588282585144, + 0.02195802517235279, + 0.021834159269928932, + 0.021832995116710663, + 0.021875137463212013, + 0.022124964743852615, + 0.024999957531690598, + 0.024707987904548645, + 0.02191704697906971, + 0.02150004729628563, + 0.027084024623036385, + 0.021415995433926582, + 0.025290995836257935, + 0.02504093572497368, + 0.021709129214286804, + 0.022167107090353966, + 0.02395804040133953, + 0.022416003048419952, + 0.022165942937135696, + 0.022333813831210136, + 0.021750107407569885, + 0.021582935005426407, + 0.02150004729628563, + 0.02154218964278698, + 0.021582935005426407, + 0.021666986867785454, + 0.0213750172406435, + 0.0213750172406435, + 0.021582935005426407, + 0.02270890399813652, + 0.025124987587332726, + 0.0213750172406435, + 0.02129189670085907, + 0.024707987904548645, + 0.021333107724785805, + 0.0349581241607666, + 0.02574990503489971, + 0.023667002096772194, + 0.022290972992777824, + 0.02291705459356308, + 0.022666994482278824, + 0.022707972675561905, + 0.03395881503820419, + 0.024541979655623436, + 0.023625092580914497, + 0.022792024537920952, + 0.02333289012312889, + 0.05075009539723396, + 0.02554222010076046, + 0.023292144760489464, + 0.02395804040133953, + 0.02291589044034481, + 0.02258317545056343, + 0.0227498821914196, + 0.022041844204068184, + 0.022124964743852615, + 0.022791093215346336, + 0.02329191192984581, + 0.02345792017877102, + 0.026082852855324745, + 0.025750137865543365, + 0.029582995921373367, + 0.022500054910779, + 0.02237502485513687, + 0.022625084966421127, + 0.02237502485513687, + 0.022208085283637047, + 0.022500054910779, + 0.03195810131728649, + 0.027125002816319466, + 0.025707995519042015, + 0.023208092898130417, + 0.022833002731204033, + 0.022625084966421127, + 0.0227498821914196, + 0.030374852940440178, + 0.02370891161262989, + 0.02833292819559574, + 0.024042092263698578, + 0.02987496554851532, + 0.024999957531690598, + 0.02333289012312889, + 0.022750115022063255, + 0.022416003048419952, + 0.02237502485513687, + 0.022209016606211662, + 0.02174987457692623, + 0.02150004729628563, + 0.021875137463212013, + 0.024958979338407516, + 0.021790852770209312, + 0.02150004729628563, + 0.021541956812143326, + 0.022541964426636696, + 0.026875175535678864, + 0.023665837943553925, + 0.02333405427634716, + 0.022290972992777824, + 0.022416003048419952, + 0.025374814867973328, + 0.02287491224706173, + 0.023167114704847336, + 0.022624852135777473, + 0.021958956494927406, + 0.021875137463212013, + 0.025750137865543365, + 0.024167122319340706, + 0.02329191192984581, + 0.023165950551629066, + 0.04349998198449612, + 0.025583896785974503, + 0.02233404666185379, + 0.022166874259710312, + 0.022249994799494743, + 0.021999934688210487, + 0.022209016606211662, + 0.029583927243947983, + 0.023416010662913322, + 0.022707972675561905, + 0.02254103310406208, + 0.027041882276535034, + 0.023916829377412796, + 0.02483394928276539, + 0.026167137548327446, + 0.022958964109420776, + 0.022792024537920952, + 0.02237502485513687, + 0.031166942790150642, + 0.026208115741610527, + 0.02445792779326439, + 0.02329191192984581, + 0.022999942302703857, + 0.022707972675561905, + 0.022750115022063255, + 0.022042077034711838, + 0.022707972675561905, + 0.025582965463399887, + 0.024167122319340706, + 0.023042084649205208, + 0.022666994482278824, + 0.022500054910779, + 0.02204091288149357, + 0.04233303479850292, + 0.02595805563032627, + 0.026499852538108826, + 0.03108312375843525, + 0.03220816142857075, + 0.027625123038887978, + 0.024667009711265564, + 0.031125033274292946, + 0.024999957531690598, + 0.023416010662913322, + 0.02337503246963024, + 0.023166881874203682, + 0.03458396531641483, + 0.0253340695053339, + 0.0410410575568676, + 0.027209054678678513, + 0.04829093813896179, + 0.03679189831018448, + 0.03129197284579277, + 0.02795807085931301, + 0.02729194238781929, + 0.022999942302703857, + 0.02266606315970421, + 0.02237502485513687, + 0.0227498821914196, + 0.022458145394921303, + 0.0300002284348011, + 0.025624874979257584, + 0.03983289934694767, + 0.028667040169239044, + 0.024333130568265915, + 0.02687494270503521, + 0.023250002413988113, + 0.03174995072185993, + 0.022707972675561905, + 0.026124995201826096, + 0.022583873942494392, + 0.02837507054209709, + 0.024374807253479958, + 0.02491590566933155, + 0.02550007775425911, + 0.024707987904548645, + 0.022417167201638222, + 0.02345792017877102, + 0.022082822397351265, + 0.02237502485513687, + 0.032667070627212524, + 0.023582950234413147, + 0.022875145077705383, + 0.022041145712137222, + 0.03733299672603607, + 0.03629201091825962, + 0.02450007013976574, + 0.024124979972839355, + 0.022666994482278824, + 0.021832995116710663, + 0.02195802517235279, + 0.024791806936264038, + 0.02170889638364315, + 0.02208305522799492, + 0.021792016923427582, + 0.021792016923427582, + 0.02416619099676609, + 0.027542002499103546, + 0.024208100512623787, + 0.026208115741610527, + 0.022417167201638222, + 0.02320879139006138, + 0.02508307807147503, + 0.023416941985487938, + 0.03045797348022461, + 0.034291064366698265, + 0.025999965146183968, + 0.023792032152414322, + 0.02904096618294716, + 0.02504093572497368, + 0.023124972358345985, + 0.023166881874203682, + 0.022541964426636696, + 0.03150012344121933, + 0.02233288250863552, + 0.022374792024493217, + 0.022042077034711838, + 0.022082822397351265, + 0.023209024220705032, + 0.021834159269928932, + 0.021999934688210487, + 0.028582988306879997, + 0.025707995519042015, + 0.022583873942494392, + 0.022540800273418427, + 0.02291705459356308, + 0.022083986550569534, + 0.02237502485513687, + 0.031291041523218155, + 0.02508307807147503, + 0.02354220487177372, + 0.023124972358345985, + 0.023124972358345985, + 0.02245791256427765, + 0.02287491224706173, + 0.022582942619919777, + 0.022582942619919777, + 0.022416934370994568, + 0.022209016606211662, + 0.022416934370994568, + 0.023290980607271194, + 0.02208305522799492, + 0.021666986867785454, + 0.023208092898130417, + 0.026374822482466698, + 0.023709144443273544, + 0.025499844923615456, + 0.023124972358345985 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718910858, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 0.0, + 2.66869859544272e-14, + 9.531326247010324e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.23264082040360595, + "maximum_relative_lift_m": 0.24910205354339407, + "minimum_final_relative_lift_m": 0.23264082040360595, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.2294474252843387, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "3edccf6675e946f09ae4d22e29e8c122f6fe462aaa7c62a7fd7011fe092f1360" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-simplified-shoe-absent.model.json", + "motion": "trials/grasp-fresh-02-light-simplified-shoe-absent.motion.json" + }, + "export_seconds": 0.8265237500891089 + }, + { + "id": "grasp-fresh-02-light-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3494917501229793, + "real_time_factor": 18.884565938043128, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.030000000000000002, + "object_inertia_kg_m2": [ + 0.0001626885804904764, + 0.00016069610068592213, + 3.3768618823601193e-05 + ], + "object_weight_n": 0.29430000000000006, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 6.431124669906195, + "peak_object_origin_rise_m": 0.17544878892156981, + "peak_lowest_surface_z_m": 0.052266548274005786, + "final_object_position_m": [ + 0.3535227373470714, + -0.07338820697127396, + 0.17015150201607818 + ], + "final_lowest_surface_z_m": 0.045730855029913864, + "closure_observation": { + "finger_normal_forces_n": [ + 2.5198290583238316, + 2.753987349701366 + ], + "world_support_n": 2.3087211372287895, + "actuator_force_n": -1.4362738204511178, + "jaw_opening_m": 0.07242486709838902 + }, + "policy_compute_p50_ms": 0.023624859750270844, + "policy_compute_p95_ms": 0.03720460226759315, + "policy_compute_max_ms": 4.200750030577183, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712209, + "object_lowest_z_m": -0.00011690829053421191 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 2.5198290583238316, + 2.753987349701366 + ], + "world_object_force_n": 2.3087211372287895, + "gripper_actuator_force_n": -1.4362738204511178, + "jaw_opening_m": 0.07242486709838902 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3510992501396686, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02150004729628563, + 0.028959009796380997, + 0.024667009711265564, + 0.024374807253479958, + 0.02391589805483818, + 0.02304092049598694, + 0.022416003048419952, + 0.022875145077705383, + 0.024667009711265564, + 0.03616604954004288, + 0.02287491224706173, + 0.02237502485513687, + 0.02208305522799492, + 0.021707965061068535, + 0.021624844521284103, + 0.02158316783607006, + 0.022582942619919777, + 0.025250017642974854, + 0.021916814148426056, + 0.021707965061068535, + 0.035041943192481995, + 0.028250040486454964, + 0.025250017642974854, + 0.02395804040133953, + 0.022999942302703857, + 0.02374988980591297, + 0.04624994471669197, + 0.031125033274292946, + 0.02650008536875248, + 0.02491706982254982, + 0.024165958166122437, + 0.02441578544676304, + 0.03433297388255596, + 0.02437504008412361, + 0.026208115741610527, + 0.026957830414175987, + 0.02270890399813652, + 0.022624852135777473, + 0.022458145394921303, + 0.022124964743852615, + 0.021916814148426056, + 0.022124964743852615, + 0.025624874979257584, + 0.04108319990336895, + 0.028875190764665604, + 0.025416957214474678, + 0.023999949917197227, + 0.0238749198615551, + 0.02333405427634716, + 0.023999949917197227, + 0.02354104071855545, + 0.02329191192984581, + 0.029542017728090286, + 0.024208100512623787, + 0.023208092898130417, + 0.02433289773762226, + 0.023250002413988113, + 0.02245791256427765, + 0.022958964109420776, + 0.02245907671749592, + 0.023124972358345985, + 0.022042077034711838, + 0.026499852538108826, + 0.025207875296473503, + 0.023582950234413147, + 0.022707972675561905, + 0.023416010662913322, + 0.02266606315970421, + 0.02195802517235279, + 0.0227498821914196, + 0.022541964426636696, + 0.021916814148426056, + 0.02174987457692623, + 0.02208305522799492, + 0.021958956494927406, + 0.0213750172406435, + 0.0210409052670002, + 0.0213750172406435, + 0.02450007013976574, + 0.021665822714567184, + 0.03145798109471798, + 0.036416808143258095, + 0.027916859835386276, + 0.02529192715883255, + 0.05474989302456379, + 0.025707995519042015, + 0.02687494270503521, + 0.023584114387631416, + 0.023165950551629066, + 0.025583896785974503, + 0.027292175218462944, + 0.02212519757449627, + 0.021832995116710663, + 0.021875137463212013, + 0.021832995116710663, + 0.021666986867785454, + 0.02308306284248829, + 0.02395804040133953, + 0.026791822165250778, + 0.02400018274784088, + 0.023584114387631416, + 0.023041851818561554, + 0.024792039766907692, + 0.02308306284248829, + 0.022833002731204033, + 0.052541960030794144, + 0.022416934370994568, + 0.03754207864403725, + 0.028125010430812836, + 0.028582988306879997, + 0.0302919652312994, + 0.023999949917197227, + 0.02433406189084053, + 0.02883397974073887, + 0.024916836991906166, + 0.023833010345697403, + 0.02391706220805645, + 0.023292144760489464, + 0.022707972675561905, + 0.022792024537920952, + 0.023499829694628716, + 0.024790875613689423, + 0.024042092263698578, + 0.03437511622905731, + 0.026916852220892906, + 0.032708048820495605, + 0.06654206663370132, + 0.024791806936264038, + 0.030125025659799576, + 0.024999957531690598, + 0.02687494270503521, + 0.023999949917197227, + 0.023042084649205208, + 0.029416987672448158, + 0.025624874979257584, + 0.024124979972839355, + 0.023792032152414322, + 0.023584114387631416, + 0.023667002096772194, + 0.023042084649205208, + 0.028165988624095917, + 0.025208108127117157, + 0.026207882910966873, + 0.02391706220805645, + 0.024250010028481483, + 0.02329191192984581, + 0.023875152692198753, + 0.061125028878450394, + 0.024625100195407867, + 0.029207905754446983, + 0.026416964828968048, + 0.023416941985487938, + 0.026625115424394608, + 0.03679213114082813, + 0.0260830856859684, + 0.024416949599981308, + 0.026416964828968048, + 0.023250002413988113, + 0.022625084966421127, + 0.023540807887911797, + 0.023207860067486763, + 0.022707972675561905, + 0.024250010028481483, + 0.023624859750270844, + 0.024082837626338005, + 0.023624859750270844, + 0.02345792017877102, + 0.023333122953772545, + 0.07337494753301144, + 0.025667017325758934, + 0.02404092811048031, + 0.023209024220705032, + 0.022458843886852264, + 0.02291589044034481, + 0.027042115107178688, + 0.03341701813042164, + 0.026625115424394608, + 0.024916138499975204, + 0.024833017960190773, + 0.02433289773762226, + 0.0249580480158329, + 0.024124979972839355, + 0.02391706220805645, + 0.023124972358345985, + 0.022792024537920952, + 0.023041851818561554, + 0.023290980607271194, + 0.026082852855324745, + 0.023416941985487938, + 0.4081660881638527, + 0.02733292058110237, + 0.02791709266602993, + 0.02437504008412361, + 0.023792032152414322, + 0.023416941985487938, + 0.023082830011844635, + 0.022417167201638222, + 0.025082845240831375, + 0.023041153326630592, + 0.02291589044034481, + 0.025624874979257584, + 0.022416934370994568, + 0.022625084966421127, + 0.023625092580914497, + 0.02254103310406208, + 0.022707972675561905, + 0.030833063647150993, + 0.02533290535211563, + 0.024416949599981308, + 0.024250010028481483, + 4.200750030577183, + 0.049625057727098465, + 0.03666686825454235, + 0.025833025574684143, + 0.024042092263698578, + 0.026665860787034035, + 0.02933293581008911, + 0.025541987270116806, + 0.025207875296473503, + 0.024625100195407867, + 0.02354104071855545, + 0.02337503246963024, + 0.02295803278684616, + 0.022582942619919777, + 0.022666994482278824, + 0.023165950551629066, + 0.023124972358345985, + 0.023292144760489464, + 0.02345792017877102, + 0.02354104071855545, + 0.023250002413988113, + 0.02333289012312889, + 0.02583279274404049, + 0.0341248232871294, + 0.025999965146183968, + 0.024250010028481483, + 0.024250010028481483, + 0.023541972041130066, + 0.023041153326630592, + 0.023792032152414322, + 0.0389590859413147, + 0.033250078558921814, + 0.02491706982254982, + 0.023625092580914497, + 0.02312520518898964, + 0.02354104071855545, + 0.022750115022063255, + 0.022833002731204033, + 0.022292137145996094, + 0.022249994799494743, + 0.022582942619919777, + 0.022166874259710312, + 0.04712492227554321, + 0.0227498821914196, + 0.023250002413988113, + 0.022833002731204033, + 0.02291705459356308, + 0.023417174816131592, + 0.03516697324812412, + 0.022999942302703857, + 0.02258317545056343, + 0.02270890399813652, + 0.02245791256427765, + 0.022292137145996094, + 0.02191588282585144, + 0.03787502646446228, + 0.026957830414175987, + 0.028082868084311485, + 0.02437504008412361, + 0.023750122636556625, + 0.02374988980591297, + 0.023792032152414322, + 0.023333122953772545, + 0.05137501284480095, + 0.02383277751505375, + 0.0238749198615551, + 0.023875152692198753, + 0.02350006252527237, + 0.02245791256427765, + 0.022999942302703857, + 0.02333405427634716, + 0.022541964426636696, + 0.023042084649205208, + 0.022541964426636696, + 0.022541964426636696, + 0.034167198464274406, + 0.024999957531690598, + 0.024499837309122086, + 0.023165950551629066, + 0.02350006252527237, + 0.023582950234413147, + 0.023374799638986588, + 0.022957799956202507, + 0.02291705459356308, + 0.04862481728196144, + 0.022583873942494392, + 0.02258317545056343, + 0.021999934688210487, + 0.02233404666185379, + 0.022750115022063255, + 0.030250055715441704, + 0.025250017642974854, + 0.024667009711265564, + 0.02412521280348301, + 0.023333122953772545, + 0.02708309330046177, + 0.023417174816131592, + 0.022249994799494743, + 0.022208085283637047, + 0.022292137145996094, + 0.022500054910779, + 0.022791791707277298, + 0.027750153094530106, + 0.02545793540775776, + 0.024124979972839355, + 0.049083027988672256, + 0.02291705459356308, + 0.022541964426636696, + 0.023166881874203682, + 0.02237502485513687, + 0.022416934370994568, + 0.022999942302703857, + 0.02237502485513687, + 0.022249994799494743, + 0.022417167201638222, + 0.022958964109420776, + 0.022416934370994568, + 0.022249994799494743, + 0.02191588282585144, + 0.03154110163450241 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712209, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249862152951096e-11, + 9.536006010897114e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.1702592718771153, + "maximum_relative_lift_m": 0.17544878892156981, + "minimum_final_relative_lift_m": 0.1679346786515677, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.04336347942978, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "90e4a0e3c5bb8623301bbafe54a28feb798f71e184bf3b62ee515ce97e0240e4" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-current-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-02-light-current-shoe-mounted.motion.json" + }, + "export_seconds": 0.8318221250083297 + }, + { + "id": "grasp-fresh-02-light-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": true, + "metrics": { + "outcome": "completed", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.44948074989952147, + "real_time_factor": 14.683609924284594, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": true, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.030000000000000002, + "object_inertia_kg_m2": [ + 0.0001626885804904764, + 0.00016069610068592213, + 3.3768618823601193e-05 + ], + "object_weight_n": 0.29430000000000006, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 6.716029215961283, + "peak_object_origin_rise_m": 0.18606679304732765, + "peak_lowest_surface_z_m": 0.060392064023909536, + "final_object_position_m": [ + 0.33843867949365336, + -0.07600385241106983, + 0.17849405056824397 + ], + "final_lowest_surface_z_m": 0.04641855777339529, + "closure_observation": { + "finger_normal_forces_n": [ + 3.0526137152187545, + 3.6634155007425284 + ], + "world_support_n": 4.827517727105476, + "actuator_force_n": -1.4396199713609614, + "jaw_opening_m": 0.07252001331117273 + }, + "policy_compute_p50_ms": 0.026812427677214146, + "policy_compute_p95_ms": 0.07871662965044382, + "policy_compute_max_ms": 0.23033400066196918, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712209, + "object_lowest_z_m": -0.00011690829053421191 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 3.0526137152187545, + 3.6634155007425284 + ], + "world_object_force_n": 4.827517727105476, + "gripper_actuator_force_n": -1.4396199713609614, + "jaw_opening_m": 0.07252001331117273 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": true, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.4520463750232011, + "controller_reported_success": true, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.02450007013976574, + 0.11250004172325134, + 0.041041988879442215, + 0.03854208625853062, + 0.031000003218650818, + 0.16566598787903786, + 0.045250169932842255, + 0.02950010821223259, + 0.02683396451175213, + 0.02583395689725876, + 0.024582957848906517, + 0.03441702574491501, + 0.028292182832956314, + 0.02583395689725876, + 0.024833017960190773, + 0.023833010345697403, + 0.04124990664422512, + 0.0299159437417984, + 0.026624882593750954, + 0.024875160306692123, + 0.026750145480036736, + 0.026957830414175987, + 0.027167145162820816, + 0.11529098264873028, + 0.056167133152484894, + 0.0380838755518198, + 0.045082997530698776, + 0.031125033274292946, + 0.025791814550757408, + 0.024292152374982834, + 0.023667002096772194, + 0.04024989902973175, + 0.14812499284744263, + 0.07954193279147148, + 0.033542048186063766, + 0.03691692836582661, + 0.028499867767095566, + 0.025833025574684143, + 0.03541703335940838, + 0.02737506292760372, + 0.02483394928276539, + 0.029416987672448158, + 0.025042099878191948, + 0.0341248232871294, + 0.024999957531690598, + 0.023833010345697403, + 0.023957807570695877, + 0.023999949917197227, + 0.03087497316300869, + 0.06074993871152401, + 0.07770792581140995, + 0.06841612048447132, + 0.04033301956951618, + 0.03841705620288849, + 0.0278339721262455, + 0.04004104994237423, + 0.02933409996330738, + 0.02683280035853386, + 0.026250025257468224, + 0.026042107492685318, + 0.03658398054540157, + 0.02650008536875248, + 0.024750130251049995, + 0.025041867047548294, + 0.027583912014961243, + 0.02537504769861698, + 0.1307919155806303, + 0.06670807488262653, + 0.13974984176456928, + 0.12820796109735966, + 0.13683387078344822, + 0.07112487219274044, + 0.05625002086162567, + 0.046833185479044914, + 0.23033400066196918, + 0.044250162318348885, + 0.028708018362522125, + 0.026833033189177513, + 0.024999957531690598, + 0.03241701051592827, + 0.05474989302456379, + 0.036999816074967384, + 0.028833048418164253, + 0.035207951441407204, + 0.027959002181887627, + 0.05929195322096348, + 0.044999876990914345, + 0.03079185262322426, + 0.027416972443461418, + 0.05874992348253727, + 0.025166897103190422, + 0.024292152374982834, + 0.023833010345697403, + 0.03612483851611614, + 0.028624897822737694, + 0.026250025257468224, + 0.043665990233421326, + 0.1852919813245535, + 0.028582988306879997, + 0.024833017960190773, + 0.025624874979257584, + 0.02454104833304882, + 0.031624920666217804, + 0.03579095937311649, + 0.028792070224881172, + 0.03266683779656887, + 0.025707995519042015, + 0.02941582351922989, + 0.03633415326476097, + 0.03604101948440075, + 0.02787495031952858, + 0.02750009298324585, + 0.03033294342458248, + 0.051958952099084854, + 0.03904104232788086, + 0.03300001844763756, + 0.02795807085931301, + 0.02691592089831829, + 0.07166690193116665, + 0.033624935895204544, + 0.03404100425541401, + 0.027250032871961594, + 0.049208989366889, + 0.04712492227554321, + 0.039291102439165115, + 0.031082890927791595, + 0.024958979338407516, + 0.025124987587332726, + 0.02429191954433918, + 0.03133295103907585, + 0.026250025257468224, + 0.03695813938975334, + 0.030542025342583656, + 0.026792054995894432, + 0.025374814867973328, + 0.025207875296473503, + 0.025707995519042015, + 0.026167137548327446, + 0.025791116058826447, + 0.03183400258421898, + 0.028250040486454964, + 0.04175002686679363, + 0.030250055715441704, + 0.033624935895204544, + 0.029624905437231064, + 0.04254095256328583, + 0.03154180012643337, + 0.024792039766907692, + 0.024582957848906517, + 0.03495789133012295, + 0.2087918110191822, + 0.05829217843711376, + 0.03995909355580807, + 0.030791154131293297, + 0.027042115107178688, + 0.02591707743704319, + 0.025625107809901237, + 0.026624882593750954, + 0.025124987587332726, + 0.027582980692386627, + 0.044625019654631615, + 0.03341701813042164, + 0.02845795825123787, + 0.028167152777314186, + 0.034333206713199615, + 0.02683396451175213, + 0.026708003133535385, + 0.025833025574684143, + 0.025458168238401413, + 0.04041590727865696, + 0.10712514631450176, + 0.03916607238352299, + 0.027416972443461418, + 0.026042107492685318, + 0.024999957531690598, + 0.02595805563032627, + 0.02508307807147503, + 0.024416949599981308, + 0.024667009711265564, + 0.024999957531690598, + 0.025208108127117157, + 0.025042099878191948, + 0.025958986952900887, + 0.024709152057766914, + 0.024833017960190773, + 0.037125078961253166, + 0.027416972443461418, + 0.026792054995894432, + 0.02670893445611, + 0.027125002816319466, + 0.02991710789501667, + 0.04287483170628548, + 0.030041905120015144, + 0.026540830731391907, + 0.025584129616618156, + 0.02508307807147503, + 0.02437504008412361, + 0.02500019036233425, + 0.02383394166827202, + 0.02391706220805645, + 0.023625092580914497, + 0.02408307045698166, + 0.024582957848906517, + 0.024041859433054924, + 0.025124987587332726, + 0.02466607838869095, + 0.025417190045118332, + 0.025833025574684143, + 0.0325001310557127, + 0.03741704858839512, + 0.027416972443461418, + 0.026999972760677338, + 0.026624882593750954, + 0.1517909113317728, + 0.03574998117983341, + 0.02637505531311035, + 0.024292152374982834, + 0.023290980607271194, + 0.02350006252527237, + 0.02408307045698166, + 0.023707980290055275, + 0.023041851818561554, + 0.022750115022063255, + 0.02550007775425911, + 0.025042099878191948, + 0.025290995836257935, + 0.025290995836257935, + 0.025582965463399887, + 0.02458319067955017, + 0.02491706982254982, + 0.02537504769861698, + 0.02437504008412361, + 0.02487492747604847, + 0.023999949917197227, + 0.03954209387302399, + 0.02691592089831829, + 0.026499852538108826, + 0.0260830856859684, + 0.025458168238401413, + 0.025124987587332726, + 0.024541979655623436, + 0.02637505531311035, + 0.025583896785974503, + 0.024583889171481133, + 0.024583889171481133, + 0.024208100512623787, + 0.024165958166122437, + 0.026708003133535385, + 0.02408307045698166, + 0.02433289773762226, + 0.024207867681980133, + 0.024167122319340706, + 0.023958971723914146, + 0.02395804040133953, + 0.024709152057766914, + 0.02433289773762226, + 0.02637505531311035, + 0.025582965463399887, + 0.02529192715883255, + 0.026250025257468224, + 0.025167129933834076, + 0.036708079278469086, + 0.02787495031952858, + 0.027209054678678513, + 0.02595805563032627, + 0.025667017325758934, + 0.026458175852894783, + 0.02600019797682762, + 0.029250048100948334, + 0.026499852538108826, + 0.03704102709889412, + 0.033250078558921814, + 0.02787495031952858, + 0.026416964828968048, + 0.026332912966609, + 0.025999965146183968, + 0.026124995201826096, + 0.04054210148751736, + 0.031207920983433723, + 0.035499921068549156, + 0.028082868084311485, + 0.03395904786884785, + 0.029999995604157448, + 0.028208130970597267, + 0.02729194238781929, + 0.027416972443461418, + 0.08604093454778194, + 0.029999995604157448, + 0.027625123038887978, + 0.026792054995894432, + 0.025625107809901237, + 0.026541994884610176, + 0.0302919652312994, + 0.027624890208244324, + 0.026416964828968048, + 0.03158301115036011, + 0.029416987672448158, + 0.025667017325758934, + 0.025458866730332375, + 0.024165958166122437, + 0.02445792779326439, + 0.023792032152414322, + 0.02470891922712326, + 0.023999949917197227, + 0.023750122636556625, + 0.02454104833304882, + 0.02691708505153656, + 0.04312489181756973, + 0.02695806324481964, + 0.025750137865543365, + 0.025166897103190422, + 0.02537504769861698, + 0.024416949599981308, + 0.02470891922712326, + 0.02491590566933155, + 0.0940829049795866, + 0.034708064049482346, + 0.027250032871961594, + 0.026124995201826096, + 0.024999957531690598, + 0.024791806936264038, + 0.025084009394049644, + 0.024167122319340706, + 0.025790883228182793, + 0.026124995201826096, + 0.025541987270116806, + 0.025165965780615807, + 0.025792047381401062, + 0.059416983276605606, + 0.13091601431369781 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": true, + "strict_retention_pass": true, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712209, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249862152951096e-11, + 9.536006010897114e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 250, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 0.17860182042928108, + "maximum_relative_lift_m": 0.18606679304732765, + "minimum_final_relative_lift_m": 0.17860182042928108, + "failed_criteria": [], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 0, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 0, + "relative_lift_failed_ticks": 0, + "minimum_final_collision_surface_z_m": 0.04641855777339529, + "controller_reported_success": true, + "controller_claim_agrees": true, + "compiled_model_sha256": "e7da140d5535bd511307b8e48b9aba8953e80eafc90f9e674ed66ff7019835f1" + }, + "scored_outcome": "completed", + "replay": { + "model": "trials/grasp-fresh-02-light-current-shoe-absent.model.json", + "motion": "trials/grasp-fresh-02-light-current-shoe-absent.motion.json" + }, + "export_seconds": 0.8755235408898443 + }, + { + "id": "grasp-fresh-02-reference-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3285765000618994, + "real_time_factor": 20.08664648493165, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 8e-05, + 8e-05, + 8e-05 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 1.1675245646492023, + "peak_object_origin_rise_m": 5.6585745675785585e-05, + "peak_lowest_surface_z_m": -0.00010775542014190842, + "final_object_position_m": [ + 0.42901294961928776, + -0.07095259195704043, + -0.00010775542021616728 + ], + "final_lowest_surface_z_m": -0.00010775542133764637, + "closure_observation": { + "finger_normal_forces_n": [ + 0.4160775428190705, + 0.37319557322242364 + ], + "world_support_n": 3.286964058252209, + "actuator_force_n": -0.7847193337394375, + "jaw_opening_m": 0.04000226402115033 + }, + "policy_compute_p50_ms": 0.025395536795258522, + "policy_compute_p95_ms": 0.045541615691035986, + "policy_compute_max_ms": 0.383125152438879, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718905797, + "object_lowest_z_m": -0.00010778645416296626 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.4160775428190705, + 0.37319557322242364 + ], + "world_object_force_n": 3.286964058252209, + "gripper_actuator_force_n": -0.7847193337394375, + "jaw_opening_m": 0.04000226402115033 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.33004412497393787, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.024499837309122086, + 0.030750175938010216, + 0.0535410363227129, + 0.03170897252857685, + 0.026624882593750954, + 0.025665853172540665, + 0.025167129933834076, + 0.028582988306879997, + 0.044082989916205406, + 0.02941582351922989, + 0.026416033506393433, + 0.02483394928276539, + 0.02445792779326439, + 0.02400018274784088, + 0.024209031835198402, + 0.023166881874203682, + 0.023082830011844635, + 0.024042092263698578, + 0.03495905548334122, + 0.02566608600318432, + 0.030041905120015144, + 0.05533290095627308, + 0.025834189727902412, + 0.02450007013976574, + 0.02329191192984581, + 0.022666994482278824, + 0.023667002096772194, + 0.02374988980591297, + 0.025166897103190422, + 0.02600019797682762, + 0.029750168323516846, + 0.03454205580055714, + 0.04095793701708317, + 0.029374845325946808, + 0.026667024940252304, + 0.032291049137711525, + 0.028582988306879997, + 0.025582965463399887, + 0.025667017325758934, + 0.025499844923615456, + 0.02391706220805645, + 0.02474989742040634, + 0.024750130251049995, + 0.024207867681980133, + 0.024041859433054924, + 0.023958971723914146, + 0.02429191954433918, + 0.02450007013976574, + 0.024582957848906517, + 0.023707980290055275, + 0.02437504008412361, + 0.024041859433054924, + 0.02408307045698166, + 0.024084001779556274, + 0.024333130568265915, + 0.02404092811048031, + 0.049625057727098465, + 0.028833048418164253, + 0.026124995201826096, + 0.026416964828968048, + 0.03695813938975334, + 0.029625138267874718, + 0.02491706982254982, + 0.025707995519042015, + 0.03454089164733887, + 0.02941582351922989, + 0.026042107492685318, + 0.025250017642974854, + 0.03174995072185993, + 0.029708025977015495, + 0.0338749960064888, + 0.025290995836257935, + 0.024957815185189247, + 0.02474989742040634, + 0.02537504769861698, + 0.024499837309122086, + 0.04333304241299629, + 0.030833063647150993, + 0.027292175218462944, + 0.026084017008543015, + 0.03066682256758213, + 0.026417197659611702, + 0.035624951124191284, + 0.027374830096960068, + 0.06670807488262653, + 0.04154187627136707, + 0.0289171002805233, + 0.02624979242682457, + 0.02537504769861698, + 0.025416025891900063, + 0.024750130251049995, + 0.024250010028481483, + 0.024499837309122086, + 0.026541994884610176, + 0.02350006252527237, + 0.024792039766907692, + 0.031291041523218155, + 0.026165973395109177, + 0.02500019036233425, + 0.024084001779556274, + 0.02687494270503521, + 0.023957807570695877, + 0.023875152692198753, + 0.023625092580914497, + 0.023625092580914497, + 0.05187490023672581, + 0.023667002096772194, + 0.0239592045545578, + 0.024250010028481483, + 0.026124995201826096, + 0.027584144845604897, + 0.029333168640732765, + 0.03158394247293472, + 0.041457824409008026, + 0.027042115107178688, + 0.02550007775425911, + 0.02487492747604847, + 0.02508307807147503, + 0.02437504008412361, + 0.025333138182759285, + 0.034667085856199265, + 0.02800021320581436, + 0.025875167921185493, + 0.025582965463399887, + 0.025124987587332726, + 0.031291041523218155, + 0.383125152438879, + 0.027667032554745674, + 0.02550007775425911, + 0.02445909194648266, + 0.02383394166827202, + 0.02404092811048031, + 0.023709144443273544, + 0.023709144443273544, + 0.02350006252527237, + 0.023833010345697403, + 0.023875152692198753, + 0.023999949917197227, + 0.024167122319340706, + 0.024292152374982834, + 0.025290995836257935, + 0.024416018277406693, + 0.02470891922712326, + 0.024625100195407867, + 0.02687494270503521, + 0.025165965780615807, + 0.027125002816319466, + 0.06487499922513962, + 0.03304099664092064, + 0.03254180774092674, + 0.04554097540676594, + 0.03104214556515217, + 0.026791822165250778, + 0.025792047381401062, + 0.024958979338407516, + 0.025209039449691772, + 0.024958979338407516, + 0.024499837309122086, + 0.024833017960190773, + 0.025082845240831375, + 0.02454221248626709, + 0.024499837309122086, + 0.02437504008412361, + 0.02445792779326439, + 0.024541979655623436, + 0.024667009711265564, + 0.025166897103190422, + 0.04737498238682747, + 0.07675006054341793, + 0.03050011582672596, + 0.026875175535678864, + 0.036125071346759796, + 0.03733299672603607, + 0.029374845325946808, + 0.0278339721262455, + 0.026583904400467873, + 0.025540823116898537, + 0.025833025574684143, + 0.025833025574684143, + 0.02554105594754219, + 0.027250032871961594, + 0.02500019036233425, + 0.02545793540775776, + 0.02487492747604847, + 0.02591707743704319, + 0.025957822799682617, + 0.024958979338407516, + 0.025124987587332726, + 0.024791806936264038, + 0.063000014051795, + 0.024458859115839005, + 0.04291604273021221, + 0.031125033274292946, + 0.028624897822737694, + 0.02774992026388645, + 0.026333145797252655, + 0.02750009298324585, + 0.026582973077893257, + 0.025416025891900063, + 0.025042099878191948, + 0.024792039766907692, + 0.02437504008412361, + 0.02537504769861698, + 0.025041168555617332, + 0.024499837309122086, + 0.02474989742040634, + 0.024790875613689423, + 0.02474989742040634, + 0.02491706982254982, + 0.024958979338407516, + 0.06029102951288223, + 0.0372081995010376, + 0.027374830096960068, + 0.026250025257468224, + 0.02487492747604847, + 0.02504093572497368, + 0.024624867364764214, + 0.024541979655623436, + 0.031125033274292946, + 0.030207913368940353, + 0.04554213955998421, + 0.037665944546461105, + 0.02750009298324585, + 0.027165981009602547, + 0.027125002816319466, + 0.025583896785974503, + 0.02550007775425911, + 0.025416025891900063, + 0.02529192715883255, + 0.024957815185189247, + 0.024875160306692123, + 0.05629216320812702, + 0.026042107492685318, + 0.024833017960190773, + 0.02408307045698166, + 0.024582957848906517, + 0.023999949917197227, + 0.024667009711265564, + 0.024707987904548645, + 0.024208100512623787, + 0.02483278512954712, + 0.024750130251049995, + 0.024582957848906517, + 0.024790875613689423, + 0.025041867047548294, + 0.025916844606399536, + 0.024082837626338005, + 0.025624874979257584, + 0.025041867047548294, + 0.025292159989476204, + 0.02412521280348301, + 0.024290988221764565, + 0.0633331947028637, + 0.027333851903676987, + 0.028417212888598442, + 0.025458866730332375, + 0.025207875296473503, + 0.025082845240831375, + 0.024667009711265564, + 0.024750130251049995, + 0.02437504008412361, + 0.024791108444333076, + 0.02408307045698166, + 0.039999838918447495, + 0.029792077839374542, + 0.027082860469818115, + 0.02591591328382492, + 0.028540845960378647, + 0.0260830856859684, + 0.0247082207351923, + 0.02587493509054184, + 0.025166897103190422, + 0.02483394928276539, + 0.048999907448887825, + 0.02566608600318432, + 0.024833017960190773, + 0.024624867364764214, + 0.026624882593750954, + 0.025416025891900063, + 0.02433289773762226, + 0.026624882593750954, + 0.02550007775425911, + 0.024750130251049995, + 0.024999957531690598, + 0.029207905754446983, + 0.02695806324481964, + 0.025707995519042015, + 0.02566608600318432, + 0.025416957214474678, + 0.02550007775425911, + 0.025250017642974854, + 0.026209047064185143, + 0.02474989742040634, + 0.02529192715883255, + 0.050582922995090485, + 0.02574990503489971, + 0.025124987587332726, + 0.024416018277406693, + 0.0247082207351923, + 0.024541979655623436, + 0.024709152057766914, + 0.02450007013976574, + 0.02533290535211563, + 0.025124987587332726, + 0.040667131543159485, + 0.030166935175657272, + 0.028125010430812836, + 0.027250032871961594, + 0.027250032871961594, + 0.03233412280678749, + 0.024665845558047295, + 0.0249580480158329, + 0.02774992026388645, + 0.02474989742040634, + 0.023999949917197227, + 0.047165900468826294, + 0.024207867681980133, + 0.03337510861456394, + 0.0313750933855772, + 0.02641580067574978, + 0.025541987270116806, + 0.025707995519042015, + 0.024791108444333076, + 0.025124987587332726, + 0.02500019036233425, + 0.02533290535211563, + 0.024833017960190773, + 0.027833040803670883, + 0.02470891922712326, + 0.027916161343455315 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718905797, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 1.8918200339612667e-13, + 1.1540768340978502e-13, + 9.531326232153908e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697289069094e-08, + "maximum_relative_lift_m": 5.6585745675785585e-05, + "minimum_final_relative_lift_m": 3.1026972882030874e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542168068447, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "320cdae5b49f6460856a2a9deee090d05966017bf75651a3f372952ab05ce6c3" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-easy-block-mounted.model.json", + "motion": "trials/grasp-fresh-02-reference-easy-block-mounted.motion.json" + }, + "export_seconds": 0.8245186249259859 + }, + { + "id": "grasp-fresh-02-reference-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.31201016693376005, + "real_time_factor": 21.15315685017623, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000001137, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 8e-05, + 8e-05, + 8e-05 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 1.0972497760029851, + "peak_object_origin_rise_m": 5.7595335705810596e-05, + "peak_lowest_surface_z_m": -9.104077755932652e-05, + "final_object_position_m": [ + 0.42905042854069997, + -0.07093914959522944, + -0.00010775542021615045 + ], + "final_lowest_surface_z_m": -0.00010775542167390864, + "closure_observation": { + "finger_normal_forces_n": [ + 0.5951707549069207, + 0.18881670703688846 + ], + "world_support_n": 2.912400327527096, + "actuator_force_n": -0.7878694131773433, + "jaw_opening_m": 0.04006047310046802 + }, + "policy_compute_p50_ms": 0.023770378902554512, + "policy_compute_p95_ms": 0.03562927013263106, + "policy_compute_max_ms": 0.09525008499622345, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.04, + 0.04, + 0.04 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718905797, + "object_lowest_z_m": -0.00010778645416296626 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.5951707549069207, + 0.18881670703688846 + ], + "world_object_force_n": 2.912400327527096, + "gripper_actuator_force_n": -0.7878694131773433, + "jaw_opening_m": 0.04006047310046802 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.4289997154267975, + -0.0710001735370607, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3135516250040382, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.023082830011844635, + 0.03774999640882015, + 0.029542017728090286, + 0.029333168640732765, + 0.029333168640732765, + 0.02829195000231266, + 0.02550007775425911, + 0.023541972041130066, + 0.024292152374982834, + 0.05904189310967922, + 0.03595906309783459, + 0.028208130970597267, + 0.026332912966609, + 0.026124995201826096, + 0.025082845240831375, + 0.0249580480158329, + 0.02383394166827202, + 0.023250002413988113, + 0.024541979655623436, + 0.023999949917197227, + 0.02687494270503521, + 0.0916249118745327, + 0.025292159989476204, + 0.024124979972839355, + 0.023999949917197227, + 0.023624859750270844, + 0.023250002413988113, + 0.023290980607271194, + 0.023541972041130066, + 0.04841713234782219, + 0.028416048735380173, + 0.053958967328071594, + 0.03454205580055714, + 0.03174995072185993, + 0.03900006413459778, + 0.028542010113596916, + 0.026541994884610176, + 0.026124995201826096, + 0.03245798870921135, + 0.02645794302225113, + 0.024707987904548645, + 0.024082837626338005, + 0.023625092580914497, + 0.08570798672735691, + 0.030374852940440178, + 0.026291003450751305, + 0.02508307807147503, + 0.024792039766907692, + 0.023667002096772194, + 0.023250002413988113, + 0.022999942302703857, + 0.023165950551629066, + 0.023124972358345985, + 0.02487492747604847, + 0.022707972675561905, + 0.022208085283637047, + 0.022833002731204033, + 0.022416003048419952, + 0.023124972358345985, + 0.022333115339279175, + 0.023250002413988113, + 0.023333122953772545, + 0.022625084966421127, + 0.02237502485513687, + 0.09525008499622345, + 0.03391597419977188, + 0.026416033506393433, + 0.024250010028481483, + 0.024792039766907692, + 0.02987496554851532, + 0.026124995201826096, + 0.024582957848906517, + 0.02450007013976574, + 0.024541979655623436, + 0.026624882593750954, + 0.031000003218650818, + 0.026667024940252304, + 0.024167122319340706, + 0.02383394166827202, + 0.023416941985487938, + 0.02308306284248829, + 0.023916829377412796, + 0.024167122319340706, + 0.02391589805483818, + 0.02374988980591297, + 0.02400018274784088, + 0.02354104071855545, + 0.025042099878191948, + 0.024042092263698578, + 0.023290980607271194, + 0.0227498821914196, + 0.0227498821914196, + 0.023166881874203682, + 0.02270890399813652, + 0.022625084966421127, + 0.022707972675561905, + 0.022540800273418427, + 0.02350006252527237, + 0.02374988980591297, + 0.0238749198615551, + 0.023625092580914497, + 0.023999949917197227, + 0.032916897907853127, + 0.02304092049598694, + 0.023292144760489464, + 0.023082830011844635, + 0.022792024537920952, + 0.0238749198615551, + 0.02304092049598694, + 0.05208305083215237, + 0.03066612407565117, + 0.027625123038887978, + 0.025292159989476204, + 0.02474989742040634, + 0.02429191954433918, + 0.023999949917197227, + 0.023999949917197227, + 0.024208100512623787, + 0.024750130251049995, + 0.024084001779556274, + 0.024958979338407516, + 0.024916836991906166, + 0.02408307045698166, + 0.023667002096772194, + 0.023582950234413147, + 0.023124972358345985, + 0.022999942302703857, + 0.02308306284248829, + 0.0227498821914196, + 0.023167114704847336, + 0.022999942302703857, + 0.02774992026388645, + 0.08733314462006092, + 0.03458303399384022, + 0.027708010748028755, + 0.026250025257468224, + 0.024416949599981308, + 0.02595805563032627, + 0.025124987587332726, + 0.024499837309122086, + 0.0249580480158329, + 0.03558304160833359, + 0.026583904400467873, + 0.03820820711553097, + 0.028458889573812485, + 0.03233295865356922, + 0.026624882593750954, + 0.02441578544676304, + 0.02429191954433918, + 0.03195810131728649, + 0.025791116058826447, + 0.025165965780615807, + 0.024582957848906517, + 0.026124995201826096, + 0.024292152374982834, + 0.023791100829839706, + 0.023250002413988113, + 0.02374988980591297, + 0.023875152692198753, + 0.023999949917197227, + 0.024166889488697052, + 0.02395804040133953, + 0.023707980290055275, + 0.024750130251049995, + 0.041084131225943565, + 0.030584167689085007, + 0.029499875381588936, + 0.02545793540775776, + 0.02550007775425911, + 0.024250010028481483, + 0.03770878538489342, + 0.028499867767095566, + 0.035667093470692635, + 0.026250025257468224, + 0.024333130568265915, + 0.029582995921373367, + 0.02437504008412361, + 0.024541979655623436, + 0.023290980607271194, + 0.023875152692198753, + 0.025165965780615807, + 0.024209031835198402, + 0.023583881556987762, + 0.026665860787034035, + 0.02374988980591297, + 0.033667078241705894, + 0.02633407711982727, + 0.024124979972839355, + 0.0238749198615551, + 0.023250002413988113, + 0.023290980607271194, + 0.02287491224706173, + 0.0227498821914196, + 0.023333122953772545, + 0.03587501123547554, + 0.02487492747604847, + 0.026708003133535385, + 0.02391706220805645, + 0.023790867999196053, + 0.023250002413988113, + 0.022625084966421127, + 0.033041927963495255, + 0.026541994884610176, + 0.02408307045698166, + 0.023333122953772545, + 0.02287491224706173, + 0.022999942302703857, + 0.022540800273418427, + 0.022416934370994568, + 0.022500054910779, + 0.02212519757449627, + 0.02254103310406208, + 0.022916821762919426, + 0.02233404666185379, + 0.02237502485513687, + 0.021999934688210487, + 0.02233404666185379, + 0.02170819789171219, + 0.022292137145996094, + 0.06333296187222004, + 0.02587493509054184, + 0.02295803278684616, + 0.03429199568927288, + 0.025957822799682617, + 0.027042115107178688, + 0.023541972041130066, + 0.02508307807147503, + 0.022416934370994568, + 0.02237502485513687, + 0.02229190431535244, + 0.022209016606211662, + 0.022124964743852615, + 0.021624844521284103, + 0.021792016923427582, + 0.022624852135777473, + 0.022042077034711838, + 0.021999934688210487, + 0.021750107407569885, + 0.02245907671749592, + 0.021750107407569885, + 0.02129189670085907, + 0.02400018274784088, + 0.022499822080135345, + 0.02350006252527237, + 0.02837507054209709, + 0.02458319067955017, + 0.023208092898130417, + 0.022999942302703857, + 0.022916123270988464, + 0.022707972675561905, + 0.022791093215346336, + 0.026582973077893257, + 0.022416934370994568, + 0.022957799956202507, + 0.02237502485513687, + 0.030791154131293297, + 0.02487492747604847, + 0.023582950234413147, + 0.023541972041130066, + 0.023707980290055275, + 0.022792024537920952, + 0.022999942302703857, + 0.02266606315970421, + 0.023042084649205208, + 0.02287491224706173, + 0.02233288250863552, + 0.028499867767095566, + 0.027291011065244675, + 0.022750115022063255, + 0.022208085283637047, + 0.022416003048419952, + 0.024792039766907692, + 0.021584099158644676, + 0.021832995116710663, + 0.02154102548956871, + 0.02204091288149357, + 0.021666986867785454, + 0.021666986867785454, + 0.022041844204068184, + 0.022833002731204033, + 0.023790867999196053, + 0.0235831830650568, + 0.026209047064185143, + 0.022500054910779, + 0.022500054910779, + 0.022707972675561905, + 0.022292137145996094, + 0.022207852452993393, + 0.028416048735380173, + 0.02441578544676304, + 0.02308306284248829, + 0.023416941985487938, + 0.023541972041130066, + 0.023582950234413147, + 0.02345792017877102, + 0.022999942302703857, + 0.022500054910779, + 0.022208085283637047, + 0.02254219725728035, + 0.021916814148426056, + 0.022124964743852615, + 0.022041844204068184, + 0.025250017642974854, + 0.022792024537920952, + 0.02212519757449627, + 0.02191588282585144, + 0.022082822397351265, + 0.022124964743852615, + 0.02729077823460102, + 0.022333115339279175, + 0.029959017410874367, + 0.02487492747604847, + 0.023625092580914497, + 0.022999942302703857, + 0.022958964109420776, + 0.022208085283637047, + 0.022707972675561905, + 0.025290995836257935, + 0.02350006252527237, + 0.02295803278684616, + 0.02245791256427765, + 0.022290972992777824, + 0.021791085600852966, + 0.023541972041130066, + 0.02283393405377865, + 0.02266606315970421, + 0.02437504008412361, + 0.02254219725728035, + 0.021792016923427582, + 0.022625084966421127 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718905797, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 1.8918200339612667e-13, + 1.1540768340978502e-13, + 9.531326232153908e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697290752318e-08, + "maximum_relative_lift_m": 5.7595335705810596e-05, + "minimum_final_relative_lift_m": 3.102697289571893e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542188381365, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "dbf415121ba7b68b23dc6994c082309c51c25e21804ea0e9af189738150c6101" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-easy-block-absent.model.json", + "motion": "trials/grasp-fresh-02-reference-easy-block-absent.motion.json" + }, + "export_seconds": 0.8267283749300987 + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3214844160247594, + "real_time_factor": 20.529766517488643, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 0.0001525, + 0.00058, + 0.0005525 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 1.6763418491361248, + "peak_object_origin_rise_m": 0.00011782924925020427, + "peak_lowest_surface_z_m": -1.7674188129888913e-05, + "final_object_position_m": [ + 0.4290335452624149, + -0.0708643181845651, + -0.00010775542021616345 + ], + "final_lowest_surface_z_m": -0.00010775542091850943, + "closure_observation": { + "finger_normal_forces_n": [ + 0.47847520726643533, + 0.5073379939617388 + ], + "world_support_n": 3.358541579121619, + "actuator_force_n": -0.9856786923014955, + "jaw_opening_m": 0.05014511460977162 + }, + "policy_compute_p50_ms": 0.024541979655623436, + "policy_compute_p95_ms": 0.044614344369620106, + "policy_compute_max_ms": 0.5272920243442059, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718910804, + "object_lowest_z_m": -0.0001077864479618329 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.47847520726643533, + 0.5073379939617388 + ], + "world_object_force_n": 3.358541579121619, + "gripper_actuator_force_n": -0.9856786923014955, + "jaw_opening_m": 0.05014511460977162 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3229922908358276, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.021792016923427582, + 0.027042115107178688, + 0.029916875064373016, + 0.0488748773932457, + 0.036207959055900574, + 0.02729194238781929, + 0.025750137865543365, + 0.024166889488697052, + 0.02337503246963024, + 0.028540845960378647, + 0.024166889488697052, + 0.022416003048419952, + 0.023250002413988113, + 0.022916123270988464, + 0.022249994799494743, + 0.022499822080135345, + 0.04545808769762516, + 0.03150012344121933, + 0.026875175535678864, + 0.025207875296473503, + 0.02720882184803486, + 0.026624882593750954, + 0.029165996238589287, + 0.02391706220805645, + 0.02791709266602993, + 0.02433289773762226, + 0.023707980290055275, + 0.032667070627212524, + 0.0316668301820755, + 0.023916829377412796, + 0.02300017513334751, + 0.02329191192984581, + 0.02470891922712326, + 0.022249994799494743, + 0.022916123270988464, + 0.022625084966421127, + 0.02229190431535244, + 0.02245791256427765, + 0.024667009711265564, + 0.022790860384702682, + 0.03587501123547554, + 0.02574990503489971, + 0.027207890525460243, + 0.023541972041130066, + 0.024374807253479958, + 0.02245791256427765, + 0.022584106773138046, + 0.021999934688210487, + 0.02195802517235279, + 0.02245791256427765, + 0.022166874259710312, + 0.02208305522799492, + 0.02174987457692623, + 0.021791085600852966, + 0.021582935005426407, + 0.02233288250863552, + 0.02208305522799492, + 0.022042077034711838, + 0.022750115022063255, + 0.022333115339279175, + 0.02208305522799492, + 0.02245791256427765, + 0.022833002731204033, + 0.023292144760489464, + 0.02295803278684616, + 0.021999934688210487, + 0.02150004729628563, + 0.021666986867785454, + 0.02208305522799492, + 0.02174987457692623, + 0.021582935005426407, + 0.021707965061068535, + 0.03179209306836128, + 0.02674991264939308, + 0.024625100195407867, + 0.024042092263698578, + 0.025250017642974854, + 0.024166889488697052, + 0.0238749198615551, + 0.02400018274784088, + 0.02550007775425911, + 0.04645809531211853, + 0.027209054678678513, + 0.025290995836257935, + 0.07083313539624214, + 0.038499943912029266, + 0.04158308729529381, + 0.027416972443461418, + 0.023417174816131592, + 0.022958964109420776, + 0.02300017513334751, + 0.022584106773138046, + 0.022958964109420776, + 0.02291705459356308, + 0.02266606315970421, + 0.02883397974073887, + 0.03050011582672596, + 0.02554105594754219, + 0.0238749198615551, + 0.0238749198615551, + 0.023458851501345634, + 0.027542002499103546, + 0.02424977719783783, + 0.022792024537920952, + 0.049208989366889, + 0.0828341580927372, + 0.041041988879442215, + 0.031291041523218155, + 0.024582957848906517, + 0.02558319829404354, + 0.025667017325758934, + 0.024250010028481483, + 0.029499875381588936, + 0.02674991264939308, + 0.02333289012312889, + 0.024541979655623436, + 0.02366607077419758, + 0.023667002096772194, + 0.02395804040133953, + 0.023541972041130066, + 0.03437488339841366, + 0.028042122721672058, + 0.023625092580914497, + 0.025999965146183968, + 0.022875145077705383, + 0.023042084649205208, + 0.057499855756759644, + 0.023792032152414322, + 0.022500054910779, + 0.040499959141016006, + 0.028833048418164253, + 0.0249580480158329, + 0.024165958166122437, + 0.023250002413988113, + 0.027667032554745674, + 0.030166003853082657, + 0.025084009394049644, + 0.02445792779326439, + 0.02337503246963024, + 0.022833002731204033, + 0.03616698086261749, + 0.024625100195407867, + 0.022916821762919426, + 0.02300017513334751, + 0.022833002731204033, + 0.0374580267816782, + 0.02933293581008911, + 0.06737490184605122, + 0.02574990503489971, + 0.024667009711265564, + 0.02970779314637184, + 0.032125040888786316, + 0.0274579506367445, + 0.028667040169239044, + 0.02895807847380638, + 0.026207882910966873, + 0.025958986952900887, + 0.025374814867973328, + 0.024541979655623436, + 0.027209054678678513, + 0.07479195483028889, + 0.03700004890561104, + 0.028292182832956314, + 0.026082852855324745, + 0.02737506292760372, + 0.02291705459356308, + 0.023582950234413147, + 0.022707972675561905, + 0.05837506614625454, + 0.025166897103190422, + 0.0352498609572649, + 0.027916859835386276, + 0.031916890293359756, + 0.026250025257468224, + 0.02808310091495514, + 0.024250010028481483, + 0.041207997128367424, + 0.03279210068285465, + 0.02650008536875248, + 0.025208108127117157, + 0.02508307807147503, + 0.024207867681980133, + 0.028082868084311485, + 0.024790875613689423, + 0.027167145162820816, + 0.024582957848906517, + 0.02487492747604847, + 0.023833010345697403, + 0.023209024220705032, + 0.05483301356434822, + 0.0260830856859684, + 0.02295803278684616, + 0.022582942619919777, + 0.022167107090353966, + 0.022500054910779, + 0.022041844204068184, + 0.022458145394921303, + 0.022833002731204033, + 0.023791100829839706, + 0.028125010430812836, + 0.022500054910779, + 0.022290972992777824, + 0.02258317545056343, + 0.032708048820495605, + 0.026041176170110703, + 0.03304099664092064, + 0.023958971723914146, + 0.02329191192984581, + 0.022707972675561905, + 0.02270890399813652, + 0.059957848861813545, + 0.02350006252527237, + 0.02287491224706173, + 0.022792024537920952, + 0.022165942937135696, + 0.022042077034711838, + 0.021916814148426056, + 0.021999934688210487, + 0.02191704697906971, + 0.022083986550569534, + 0.02233288250863552, + 0.02158316783607006, + 0.022167107090353966, + 0.021666986867785454, + 0.021625077351927757, + 0.02145790494978428, + 0.021666986867785454, + 0.02154102548956871, + 0.0238749198615551, + 0.022083986550569534, + 0.021583866328001022, + 0.04358310252428055, + 0.0227498821914196, + 0.022209016606211662, + 0.032667070627212524, + 0.025416957214474678, + 0.056791817769408226, + 0.02545793540775776, + 0.026165973395109177, + 0.023333122953772545, + 0.02287491224706173, + 0.0238749198615551, + 0.022165942937135696, + 0.022541964426636696, + 0.022124964743852615, + 0.022042077034711838, + 0.02300017513334751, + 0.022500054910779, + 0.021832995116710663, + 0.027624890208244324, + 0.02200016751885414, + 0.021458137780427933, + 0.04645809531211853, + 0.02200016751885414, + 0.02133403904736042, + 0.02174987457692623, + 0.021541956812143326, + 0.02208305522799492, + 0.021792016923427582, + 0.02145790494978428, + 0.022124964743852615, + 0.024374807253479958, + 0.02245791256427765, + 0.026417197659611702, + 0.026582973077893257, + 0.023541972041130066, + 0.023166881874203682, + 0.02350006252527237, + 0.02554105594754219, + 0.025958986952900887, + 0.025124987587332726, + 0.0260830856859684, + 0.02637505531311035, + 0.059582991525530815, + 0.029416056349873543, + 0.02654106356203556, + 0.028542010113596916, + 0.02595805563032627, + 0.029084039852023125, + 0.026250025257468224, + 0.027416972443461418, + 0.02837507054209709, + 0.04187505692243576, + 0.028833048418164253, + 0.02687494270503521, + 0.02587493509054184, + 0.025250017642974854, + 0.025041867047548294, + 0.025207875296473503, + 0.025250017642974854, + 0.02500019036233425, + 0.02474989742040634, + 0.02529192715883255, + 0.02445792779326439, + 0.5272920243442059, + 0.02887495793402195, + 0.024750130251049995, + 0.0249580480158329, + 0.024207867681980133, + 0.02474989742040634, + 0.024582957848906517, + 0.04095793701708317, + 0.029792077839374542, + 0.03529200330376625, + 0.03174995072185993, + 0.028166919946670532, + 0.027166912332177162, + 0.026166904717683792, + 0.02591707743704319, + 0.025958986952900887, + 0.02537504769861698, + 0.02491706982254982, + 0.025165965780615807, + 0.027291011065244675, + 0.024250010028481483, + 0.049584079533815384, + 0.024958979338407516, + 0.025124987587332726, + 0.024667009711265564, + 0.024665845558047295, + 0.024416949599981308, + 0.02383394166827202, + 0.02437504008412361, + 0.024124979972839355, + 0.024584122002124786, + 0.02454104833304882, + 0.024957815185189247, + 0.024208100512623787, + 0.025665853172540665, + 0.02391589805483818 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718910804, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 0.0, + 1.341982081015658e-14, + 9.531326246908816e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.102697294458934e-08, + "maximum_relative_lift_m": 0.00011782924925020427, + "minimum_final_relative_lift_m": 3.1026972942949484e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542133561675, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "b1fe82c98110f624d9203e45f37e50890ac8a26afd1ed17adc86bf56b6b021e0" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-simplified-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-02-reference-simplified-shoe-mounted.motion.json" + }, + "export_seconds": 0.837696542032063 + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.29459920804947615, + "real_time_factor": 22.403318880921994, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000001137, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.3, + "object_inertia_kg_m2": [ + 0.0001525, + 0.00058, + 0.0005525 + ], + "object_weight_n": 2.943, + "object_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 1.7134448623449652, + "peak_object_origin_rise_m": 0.0002438377181039415, + "peak_lowest_surface_z_m": -5.3389688737959934e-05, + "final_object_position_m": [ + 0.42905615085233445, + -0.07107185080722071, + -0.00010775542021617018 + ], + "final_lowest_surface_z_m": -0.00010775542108063668, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7114507361494824, + 0.27624809856439403 + ], + "world_support_n": 2.883347261598204, + "actuator_force_n": -0.9910128516186524, + "jaw_opening_m": 0.050184403754873194 + }, + "policy_compute_p50_ms": 0.023417058400809765, + "policy_compute_p95_ms": 0.03545626532286406, + "policy_compute_max_ms": 0.07770792581140995, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.14, + 0.05, + 0.06 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010778644718910804, + "object_lowest_z_m": -0.0001077864479618329 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ], + "shape_specific_x_offset_m": 0.0, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 0.7114507361494824, + 0.27624809856439403 + ], + "world_object_force_n": 2.883347261598204, + "gripper_actuator_force_n": -0.9910128516186524, + "jaw_opening_m": 0.050184403754873194 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.428999997865345, + -0.07100016059368475, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.2962544590700418, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.022541964426636696, + 0.029999995604157448, + 0.06983289495110512, + 0.05283299833536148, + 0.03345799632370472, + 0.028209062293171883, + 0.025999965146183968, + 0.025082845240831375, + 0.024041859433054924, + 0.023416941985487938, + 0.023584114387631416, + 0.024165958166122437, + 0.02291705459356308, + 0.02337503246963024, + 0.022624852135777473, + 0.023417174816131592, + 0.023250002413988113, + 0.022875145077705383, + 0.023250002413988113, + 0.023042084649205208, + 0.026332912966609, + 0.07770792581140995, + 0.024875160306692123, + 0.02345792017877102, + 0.049625057727098465, + 0.028624897822737694, + 0.023166881874203682, + 0.022290972992777824, + 0.023208092898130417, + 0.022500054910779, + 0.022124964743852615, + 0.02291589044034481, + 0.022625084966421127, + 0.023042084649205208, + 0.022416934370994568, + 0.021875137463212013, + 0.022207852452993393, + 0.021750107407569885, + 0.022625084966421127, + 0.038499943912029266, + 0.029624905437231064, + 0.026333145797252655, + 0.026625115424394608, + 0.026333145797252655, + 0.02391706220805645, + 0.024166889488697052, + 0.02487492747604847, + 0.024124979972839355, + 0.023582950234413147, + 0.023416941985487938, + 0.023292144760489464, + 0.02291589044034481, + 0.023583881556987762, + 0.022791093215346336, + 0.022790860384702682, + 0.022999942302703857, + 0.022792024537920952, + 0.023290980607271194, + 0.02291705459356308, + 0.022582942619919777, + 0.02237502485513687, + 0.023208092898130417, + 0.022833002731204033, + 0.02266606315970421, + 0.02245791256427765, + 0.024416018277406693, + 0.035624951124191284, + 0.02554105594754219, + 0.024667009711265564, + 0.024167122319340706, + 0.023625092580914497, + 0.023416941985487938, + 0.023250002413988113, + 0.023416010662913322, + 0.034708064049482346, + 0.025999965146183968, + 0.0227498821914196, + 0.023250002413988113, + 0.023208092898130417, + 0.022707972675561905, + 0.02233404666185379, + 0.0227498821914196, + 0.02183392643928528, + 0.02208305522799492, + 0.02245791256427765, + 0.022083986550569534, + 0.022207852452993393, + 0.028790906071662903, + 0.024582957848906517, + 0.02291705459356308, + 0.02295803278684616, + 0.02245907671749592, + 0.022249994799494743, + 0.02220878377556801, + 0.022333115339279175, + 0.022124964743852615, + 0.02229190431535244, + 0.02191704697906971, + 0.022292137145996094, + 0.022500054910779, + 0.02266606315970421, + 0.022582942619919777, + 0.04541710950434208, + 0.025250017642974854, + 0.022499822080135345, + 0.022124964743852615, + 0.02170889638364315, + 0.02150004729628563, + 0.021750107407569885, + 0.05041598342359066, + 0.024416018277406693, + 0.02633407711982727, + 0.039125094190239906, + 0.02887495793402195, + 0.026208115741610527, + 0.025582965463399887, + 0.02450007013976574, + 0.02370891161262989, + 0.02374988980591297, + 0.02345792017877102, + 0.02437504008412361, + 0.02404092811048031, + 0.02333289012312889, + 0.022792024537920952, + 0.022666994482278824, + 0.022582942619919777, + 0.02329191192984581, + 0.023374799638986588, + 0.02337503246963024, + 0.02291705459356308, + 0.024875160306692123, + 0.02883397974073887, + 0.025957822799682617, + 0.023584114387631416, + 0.02312520518898964, + 0.025875167921185493, + 0.02174987457692623, + 0.02212519757449627, + 0.021832995116710663, + 0.021583866328001022, + 0.021999934688210487, + 0.022333813831210136, + 0.022083986550569534, + 0.022290972992777824, + 0.02783280797302723, + 0.022999942302703857, + 0.022458145394921303, + 0.0253340695053339, + 0.022417167201638222, + 0.022541964426636696, + 0.022124964743852615, + 0.02183392643928528, + 0.022083986550569534, + 0.026624882593750954, + 0.04133302718400955, + 0.028208130970597267, + 0.025458866730332375, + 0.02508307807147503, + 0.0327499583363533, + 0.02708309330046177, + 0.025791116058826447, + 0.032041920349001884, + 0.025667017325758934, + 0.024499837309122086, + 0.024290988221764565, + 0.026166904717683792, + 0.026791123673319817, + 0.02329191192984581, + 0.023374799638986588, + 0.023624859750270844, + 0.02300017513334751, + 0.023458153009414673, + 0.03366614691913128, + 0.028624897822737694, + 0.026958994567394257, + 0.03816699609160423, + 0.02666609361767769, + 0.024667009711265564, + 0.023124972358345985, + 0.02691708505153656, + 0.024250010028481483, + 0.02337503246963024, + 0.023541972041130066, + 0.022666994482278824, + 0.02666679210960865, + 0.023458153009414673, + 0.03279210068285465, + 0.02587493509054184, + 0.024625100195407867, + 0.024707987904548645, + 0.0238749198615551, + 0.0260830856859684, + 0.04008319228887558, + 0.026250025257468224, + 0.02654106356203556, + 0.025707995519042015, + 0.04012486897408962, + 0.027792062610387802, + 0.026041874662041664, + 0.0363329891115427, + 0.02908380702137947, + 0.024999957531690598, + 0.024707987904548645, + 0.024333130568265915, + 0.02391706220805645, + 0.023792032152414322, + 0.0235831830650568, + 0.023124972358345985, + 0.026541994884610176, + 0.02266606315970421, + 0.023833010345697403, + 0.024333130568265915, + 0.02345908433198929, + 0.023041851818561554, + 0.023041851818561554, + 0.024042092263698578, + 0.02350006252527237, + 0.02295803278684616, + 0.02304092049598694, + 0.03041699528694153, + 0.02666609361767769, + 0.02245907671749592, + 0.022500054910779, + 0.021958956494927406, + 0.022165942937135696, + 0.021499814465641975, + 0.02183392643928528, + 0.03787502646446228, + 0.030916882678866386, + 0.02791709266602993, + 0.027041882276535034, + 0.02629193477332592, + 0.02591707743704319, + 0.028749927878379822, + 0.023416941985487938, + 0.02329191192984581, + 0.022833002731204033, + 0.022999942302703857, + 0.024499837309122086, + 0.022666994482278824, + 0.02295919694006443, + 0.023792032152414322, + 0.02595805563032627, + 0.02537504769861698, + 0.02350006252527237, + 0.022707972675561905, + 0.02254219725728035, + 0.025292159989476204, + 0.022999942302703857, + 0.022750115022063255, + 0.022958964109420776, + 0.02391706220805645, + 0.023625092580914497, + 0.023333122953772545, + 0.022875145077705383, + 0.0527920201420784, + 0.030584167689085007, + 0.026416033506393433, + 0.02491706982254982, + 0.023792032152414322, + 0.02333289012312889, + 0.05550007335841656, + 0.029667047783732414, + 0.029250048100948334, + 0.024541979655623436, + 0.02454104833304882, + 0.024250010028481483, + 0.023208092898130417, + 0.023333122953772545, + 0.025999965146183968, + 0.022416934370994568, + 0.0227498821914196, + 0.02287491224706173, + 0.02254103310406208, + 0.023124972358345985, + 0.023290980607271194, + 0.022584106773138046, + 0.02333289012312889, + 0.022500054910779, + 0.022416934370994568, + 0.023625092580914497, + 0.02304092049598694, + 0.02245791256427765, + 0.022416003048419952, + 0.023209024220705032, + 0.026250025257468224, + 0.023333122953772545, + 0.022583873942494392, + 0.02208305522799492, + 0.02237502485513687, + 0.022082822397351265, + 0.022875145077705383, + 0.02458319067955017, + 0.02266606315970421, + 0.022500054910779, + 0.022416934370994568, + 0.022249994799494743, + 0.035250093787908554, + 0.027082860469818115, + 0.028041889891028404, + 0.024208100512623787, + 0.023458851501345634, + 0.023290980607271194, + 0.023582950234413147, + 0.02291705459356308, + 0.022792024537920952, + 0.0227498821914196, + 0.03183283843100071, + 0.02604094333946705, + 0.025208108127117157, + 0.024124979972839355, + 0.02350006252527237, + 0.024165958166122437, + 0.02374988980591297, + 0.023374799638986588, + 0.023458851501345634, + 0.023667002096772194, + 0.02337503246963024, + 0.023208092898130417, + 0.02300017513334751, + 0.023416010662913322, + 0.02300017513334751, + 0.022666994482278824, + 0.025958986952900887, + 0.022500054910779, + 0.025250017642974854, + 0.022707972675561905, + 0.02266606315970421, + 0.024084001779556274, + 0.02350006252527237 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010778644718910804, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 0.0, + 1.341982081015658e-14, + 9.531326246908816e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.1026972937853734e-08, + "maximum_relative_lift_m": 0.0002438377181039415, + "minimum_final_relative_lift_m": 3.1026972935075466e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00010775542133814597, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "a739d6d4207f52b1c13b4df6e3e4913e6b5690f93eef6212b9995273e73141e8" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-simplified-shoe-absent.model.json", + "motion": "trials/grasp-fresh-02-reference-simplified-shoe-absent.motion.json" + }, + "export_seconds": 0.8369824578985572 + }, + { + "id": "grasp-fresh-02-reference-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.36047433293424547, + "real_time_factor": 18.309209275111993, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.30000000000000004, + "object_inertia_kg_m2": [ + 0.0016268858049047633, + 0.0016069610068592207, + 0.0003376861882360116 + ], + "object_weight_n": 2.9430000000000005, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "mounted", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 10.690750743364418, + "peak_object_origin_rise_m": 0.047245923381017726, + "peak_lowest_surface_z_m": 6.384801882501623e-05, + "final_object_position_m": [ + 0.40329606173653954, + -0.0716907836701662, + -0.00010773877981787277 + ], + "final_lowest_surface_z_m": -0.0001168812290218875, + "closure_observation": { + "finger_normal_forces_n": [ + 5.412257418849861, + 5.210080566449552 + ], + "world_support_n": 12.494959287515666, + "actuator_force_n": -1.4739889926966565, + "jaw_opening_m": 0.07398688878161085 + }, + "policy_compute_p50_ms": 0.023833010345697403, + "policy_compute_p95_ms": 0.049625057727098465, + "policy_compute_max_ms": 0.4417498130351305, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "mounted", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712213, + "object_lowest_z_m": -0.00011690829053421191 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 5.412257418849861, + 5.210080566449552 + ], + "world_object_force_n": 12.494959287515666, + "gripper_actuator_force_n": -1.4739889926966565, + "jaw_opening_m": 0.07398688878161085 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3618808339815587, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.021709129214286804, + 0.048208050429821014, + 0.033542048186063766, + 0.030125025659799576, + 0.0264591071754694, + 0.054040923714637756, + 0.03441702574491501, + 0.028624897822737694, + 0.03254087641835213, + 0.024416949599981308, + 0.02795807085931301, + 0.025082845240831375, + 0.028582988306879997, + 0.023250002413988113, + 0.022958964109420776, + 0.034667085856199265, + 0.027167145162820816, + 0.025208108127117157, + 0.02337503246963024, + 0.032499898225069046, + 0.03337510861456394, + 0.027250032871961594, + 0.02437504008412361, + 0.023750122636556625, + 0.02491706982254982, + 0.0227498821914196, + 0.022999942302703857, + 0.023124972358345985, + 0.02291705459356308, + 0.022625084966421127, + 0.022999942302703857, + 0.024208100512623787, + 0.049625057727098465, + 0.033542048186063766, + 0.0285410787910223, + 0.026082852855324745, + 0.026208115741610527, + 0.02545909956097603, + 0.029582995921373367, + 0.02583279274404049, + 0.023999949917197227, + 0.02350006252527237, + 0.022999942302703857, + 0.022750115022063255, + 0.022500054910779, + 0.03333296626806259, + 0.026875175535678864, + 0.024584122002124786, + 0.02391706220805645, + 0.024250010028481483, + 0.023958971723914146, + 0.024583889171481133, + 0.023167114704847336, + 0.023333122953772545, + 0.025750137865543365, + 0.022792024537920952, + 0.02237502485513687, + 0.022416934370994568, + 0.02254103310406208, + 0.022208085283637047, + 0.02208305522799492, + 0.021584099158644676, + 0.021709129214286804, + 0.023208092898130417, + 0.02237502485513687, + 0.025541987270116806, + 0.024834182113409042, + 0.023541972041130066, + 0.023499829694628716, + 0.022249994799494743, + 0.022833002731204033, + 0.022249994799494743, + 0.02166605554521084, + 0.021792016923427582, + 0.021916814148426056, + 0.02708309330046177, + 0.03183307126164436, + 0.028959009796380997, + 0.029833056032657623, + 0.023290980607271194, + 0.023333122953772545, + 0.023625092580914497, + 0.023541972041130066, + 0.035833101719617844, + 0.056416960433125496, + 0.025541987270116806, + 0.024082837626338005, + 0.024333130568265915, + 0.024166889488697052, + 0.023541972041130066, + 0.02370891161262989, + 0.023958971723914146, + 0.023166881874203682, + 0.023083994165062904, + 0.022541964426636696, + 0.023458153009414673, + 0.0238749198615551, + 0.02300017513334751, + 0.02637505531311035, + 0.026042107492685318, + 0.025999965146183968, + 0.022833002731204033, + 0.026624882593750954, + 0.02366607077419758, + 0.0325001310557127, + 0.06612483412027359, + 0.02374988980591297, + 0.02291705459356308, + 0.02287491224706173, + 0.023208092898130417, + 0.023207860067486763, + 0.022541964426636696, + 0.022500054910779, + 0.022207852452993393, + 0.022333115339279175, + 0.02191704697906971, + 0.022165942937135696, + 0.021750107407569885, + 0.03295904025435448, + 0.02870894968509674, + 0.025458168238401413, + 0.023250002413988113, + 0.026582973077893257, + 0.023124972358345985, + 0.022582942619919777, + 0.022707972675561905, + 0.05945796146988869, + 0.02237502485513687, + 0.022582942619919777, + 0.02237502485513687, + 0.0253340695053339, + 0.022290972992777824, + 0.032667070627212524, + 0.025207875296473503, + 0.023124972358345985, + 0.022583873942494392, + 0.022417167201638222, + 0.02333289012312889, + 0.02254103310406208, + 0.02212519757449627, + 0.022499822080135345, + 0.02204091288149357, + 0.021832995116710663, + 0.02954108640551567, + 0.0296661164611578, + 0.023541972041130066, + 0.023833010345697403, + 0.06083305925130844, + 0.02408307045698166, + 0.023333122953772545, + 0.022417167201638222, + 0.029416987672448158, + 0.02529192715883255, + 0.02333289012312889, + 0.022957799956202507, + 0.02237502485513687, + 0.022875145077705383, + 0.02208305522799492, + 0.023082830011844635, + 0.022249994799494743, + 0.022333115339279175, + 0.022041145712137222, + 0.025958986952900887, + 0.023416010662913322, + 0.023624859750270844, + 0.023250002413988113, + 0.022999942302703857, + 0.07449998520314693, + 0.06912508979439735, + 0.02491706982254982, + 0.02391706220805645, + 0.02270890399813652, + 0.022750115022063255, + 0.02291589044034481, + 0.022666994482278824, + 0.0289171002805233, + 0.02950010821223259, + 0.024209031835198402, + 0.02374988980591297, + 0.023209024220705032, + 0.02370821312069893, + 0.023165950551629066, + 0.023124972358345985, + 0.026250025257468224, + 0.02237502485513687, + 0.021792016923427582, + 0.02258317545056343, + 0.02200016751885414, + 0.02270890399813652, + 0.04833401180803776, + 0.023166881874203682, + 0.024541979655623436, + 0.0669590663164854, + 0.03766687586903572, + 0.02591707743704319, + 0.025582965463399887, + 0.02429191954433918, + 0.02291705459356308, + 0.03300001844763756, + 0.023792032152414322, + 0.022625084966421127, + 0.027540838345885277, + 0.02304092049598694, + 0.025541987270116806, + 0.02295803278684616, + 0.027084024623036385, + 0.024999957531690598, + 0.023707980290055275, + 0.023624859750270844, + 0.023165950551629066, + 0.4417498130351305, + 0.023707980290055275, + 0.023833010345697403, + 0.02345792017877102, + 0.03408314660191536, + 0.03841589204967022, + 0.03408384509384632, + 0.03162515349686146, + 0.0289171002805233, + 0.027374830096960068, + 0.05508307367563248, + 0.0391670037060976, + 0.03695813938975334, + 0.026957830414175987, + 0.024250010028481483, + 0.02508307807147503, + 0.023833010345697403, + 0.024290988221764565, + 0.023458153009414673, + 0.029374845325946808, + 0.025625107809901237, + 0.05825003609061241, + 0.02587493509054184, + 0.02429191954433918, + 0.02645794302225113, + 0.0380838755518198, + 0.030667055398225784, + 0.02550007775425911, + 0.02508307807147503, + 0.023709144443273544, + 0.023707980290055275, + 0.023834174498915672, + 0.02450007013976574, + 0.02895807847380638, + 0.024707987904548645, + 0.023458153009414673, + 0.02470891922712326, + 0.022750115022063255, + 0.02374988980591297, + 0.0227498821914196, + 0.02245907671749592, + 0.022083986550569534, + 0.05091610364615917, + 0.023082830011844635, + 0.023041851818561554, + 0.022499822080135345, + 0.023792032152414322, + 0.023083994165062904, + 0.02308306284248829, + 0.022999942302703857, + 0.02295803278684616, + 0.022416934370994568, + 0.022750115022063255, + 0.02287491224706173, + 0.02329191192984581, + 0.03154180012643337, + 0.026458175852894783, + 0.024582957848906517, + 0.02491706982254982, + 0.022958964109420776, + 0.02295803278684616, + 0.027708010748028755, + 0.03774999640882015, + 0.0612910371273756, + 0.024957815185189247, + 0.024584122002124786, + 0.023665837943553925, + 0.023750122636556625, + 0.023416941985487938, + 0.023750122636556625, + 0.02474989742040634, + 0.024374807253479958, + 0.023667002096772194, + 0.023833010345697403, + 0.02474989742040634, + 0.02312520518898964, + 0.02695806324481964, + 0.04674983210861683, + 0.03170780837535858, + 0.03491598181426525, + 0.02750009298324585, + 0.05150004290044308, + 0.06683403626084328, + 0.03433297388255596, + 0.061499886214733124, + 0.027833040803670883, + 0.040582846850156784, + 0.03979098983108997, + 0.044582877308130264, + 0.03791693598031998, + 0.0285410787910223, + 0.035874778404831886, + 0.02695806324481964, + 0.025208108127117157, + 0.024416949599981308, + 0.02774992026388645, + 0.022790860384702682, + 0.02270890399813652, + 0.022499822080135345, + 0.032207928597927094, + 0.023583881556987762, + 0.022625084966421127, + 0.022707972675561905, + 0.0227498821914196, + 0.022625084966421127, + 0.049625057727098465, + 0.02329191192984581, + 0.04058401100337505, + 0.029416987672448158, + 0.027250032871961594, + 0.024042092263698578, + 0.02258317545056343, + 0.022833002731204033, + 0.022124964743852615, + 0.025416957214474678, + 0.022416003048419952, + 0.02208305522799492, + 0.023209024220705032, + 0.024417182430624962, + 0.03712484613060951 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712213, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249862152951096e-11, + 9.536006010896436e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.1081219249357354e-08, + "maximum_relative_lift_m": 0.047245923381017726, + "minimum_final_relative_lift_m": 3.108121356664719e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688122905101003, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "64bd03ebee73d4e0de9279002f88c18ca9777c7b7eef29f4f1623f5bea4ffdf4" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-current-shoe-mounted.model.json", + "motion": "trials/grasp-fresh-02-reference-current-shoe-mounted.motion.json" + }, + "export_seconds": 0.8339941250160336 + }, + { + "id": "grasp-fresh-02-reference-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + }, + "valid": true, + "success": false, + "metrics": { + "outcome": "lift_not_retained", + "simulation_seconds": 6.599999999999495, + "wall_seconds": 0.3282708751503378, + "real_time_factor": 20.10534744203823, + "native_steps": 3300, + "physics_timestep_s": 0.002, + "policy_interval_s": 0.02, + "solver_warnings": 0, + "max_joint_command_delta_rad": 0.0030000000000000027, + "object_external_force_used": false, + "object_equality_constraints": 0, + "retained_lift_success": false, + "grasp_attempted": true, + "settled_reference_available": true, + "object_mass_kg": 0.30000000000000004, + "object_inertia_kg_m2": [ + 0.0016268858049047633, + 0.0016069610068592207, + 0.0003376861882360116 + ], + "object_weight_n": 2.9430000000000005, + "object_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ], + "tool_condition": "absent", + "gripper_kp_n_per_m": 40.0, + "gripper_kv_n_s_per_m": 5.0, + "gripper_actuator_forcerange_n": [ + -10.0, + 10.0 + ], + "gripper_control_range_m": [ + 0.0, + 0.035 + ], + "nominal_jaw_travel_m": 0.07, + "jaw_span_scope": "joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture", + "close_gripper": true, + "peak_contact_force_n": 10.815318775227968, + "peak_object_origin_rise_m": 0.002644837573463385, + "peak_lowest_surface_z_m": 1.7536732304593988e-06, + "final_object_position_m": [ + 0.42964057047045917, + -0.07228487416544806, + -0.00010773877981986812 + ], + "final_lowest_surface_z_m": -0.00011688122897455903, + "closure_observation": { + "finger_normal_forces_n": [ + 5.396845574972049, + 5.41847320025592 + ], + "world_support_n": 11.791883336454235, + "actuator_force_n": -1.456451205580864, + "jaw_opening_m": 0.07323032004820021 + }, + "policy_compute_p50_ms": 0.02270890399813652, + "policy_compute_p95_ms": 0.028814084362238646, + "policy_compute_max_ms": 0.08458388037979603, + "timing_scope": "CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export", + "controller_scope": "fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions", + "comparison_scope": "direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval", + "retention_criterion": "final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N", + "clearance_scope": "analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check", + "force_scope": "MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration" + }, + "events": [ + { + "t": 0.0, + "type": "assumptions", + "message": "assumptions", + "tool_condition": "absent", + "tool_changes_during_episode": false, + "privileged_observations": true, + "object_attachment": false, + "gripper_gains_unchanged": true, + "direct_pickup": true, + "close_gripper": true, + "shape_dimensions_m": [ + 0.28, + 0.1, + 0.087 + ] + }, + { + "t": 0.0, + "type": "phase", + "message": "settle", + "name": "settle", + "target": [ + 0.36, + -0.06, + 0.27 + ] + }, + { + "t": 0.4, + "type": "settled_reference", + "message": "settled reference", + "object_z_m": -0.00010776986103712213, + "object_lowest_z_m": -0.00011690829053421191 + }, + { + "t": 0.4, + "type": "grasp_target", + "message": "grasp target", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ], + "shape_specific_x_offset_m": -0.085, + "scope": "authored geometry-specific pose; identical across tool conditions" + }, + { + "t": 0.4, + "type": "phase", + "message": "approach", + "name": "approach", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 2.4, + "type": "phase", + "message": "close", + "name": "close", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.055 + ] + }, + { + "t": 3.6, + "type": "closure_check", + "message": "closure check", + "finger_normal_forces_n": [ + 5.396845574972049, + 5.41847320025592 + ], + "world_object_force_n": 11.791883336454235, + "gripper_actuator_force_n": -1.456451205580864, + "jaw_opening_m": 0.07323032004820021 + }, + { + "t": 3.6, + "type": "phase", + "message": "lift", + "name": "lift", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 5.6, + "type": "phase", + "message": "retention hold", + "name": "retention_hold", + "target": [ + 0.34399997725404863, + -0.07100005186998261, + 0.28 + ] + }, + { + "t": 6.6, + "type": "lift_check", + "message": "lift check", + "retained": false, + "settled_reference_available": true + } + ], + "errors": [], + "wall_seconds": 0.3297649580053985, + "controller_reported_success": false, + "native_trace_columns": [ + "t_s", + "tool_object_force_n", + "object_robot_force_n", + "left_finger_force_n", + "right_finger_force_n", + "object_x_m", + "object_y_m", + "object_z_m", + "world_object_force_n", + "tcp_x_m", + "tcp_y_m", + "tcp_z_m", + "object_lowest_z_m", + "gripper_actuator_force_n", + "jaw_opening_m" + ], + "control_compute_ms": [ + 0.023417174816131592, + 0.028166919946670532, + 0.030125025659799576, + 0.027333153411746025, + 0.025165965780615807, + 0.024042092263698578, + 0.023875152692198753, + 0.023541972041130066, + 0.023624859750270844, + 0.02308306284248829, + 0.023707980290055275, + 0.02291589044034481, + 0.024791108444333076, + 0.022792024537920952, + 0.022209016606211662, + 0.022207852452993393, + 0.02187490463256836, + 0.021790852770209312, + 0.021709129214286804, + 0.022041844204068184, + 0.03337487578392029, + 0.08458388037979603, + 0.026875175535678864, + 0.024250010028481483, + 0.024209031835198402, + 0.02337503246963024, + 0.023541972041130066, + 0.02287491224706173, + 0.023999949917197227, + 0.027499860152602196, + 0.023667002096772194, + 0.022999942302703857, + 0.022166874259710312, + 0.02287491224706173, + 0.022500054910779, + 0.022500054910779, + 0.023124972358345985, + 0.022625084966421127, + 0.021666986867785454, + 0.03333296626806259, + 0.025667017325758934, + 0.02454104833304882, + 0.023250002413988113, + 0.024499837309122086, + 0.023167114704847336, + 0.022582942619919777, + 0.022249994799494743, + 0.022167107090353966, + 0.021666986867785454, + 0.022249994799494743, + 0.02237502485513687, + 0.022249994799494743, + 0.028833048418164253, + 0.024374807253479958, + 0.022999942302703857, + 0.02345792017877102, + 0.022500054910779, + 0.022583873942494392, + 0.02374988980591297, + 0.023250002413988113, + 0.02191588282585144, + 0.022249994799494743, + 0.02208305522799492, + 0.021958956494927406, + 0.021792016923427582, + 0.05187490023672581, + 0.026166904717683792, + 0.023667002096772194, + 0.022750115022063255, + 0.02933293581008911, + 0.025250017642974854, + 0.023665837943553925, + 0.02345908433198929, + 0.022792024537920952, + 0.023625092580914497, + 0.02295803278684616, + 0.022500054910779, + 0.02258317545056343, + 0.021791085600852966, + 0.021792016923427582, + 0.02395804040133953, + 0.022999942302703857, + 0.0253340695053339, + 0.023458153009414673, + 0.022582942619919777, + 0.022167107090353966, + 0.04800013266503811, + 0.022166874259710312, + 0.028667040169239044, + 0.023875152692198753, + 0.02329191192984581, + 0.022999942302703857, + 0.022458145394921303, + 0.022416003048419952, + 0.022166874259710312, + 0.022500054910779, + 0.021707965061068535, + 0.021750107407569885, + 0.021582935005426407, + 0.02170889638364315, + 0.021666986867785454, + 0.021875137463212013, + 0.022292137145996094, + 0.022042077034711838, + 0.022666994482278824, + 0.02687494270503521, + 0.023792032152414322, + 0.022958964109420776, + 0.02337503246963024, + 0.022833002731204033, + 0.02254103310406208, + 0.027582980692386627, + 0.022625084966421127, + 0.02245791256427765, + 0.022625084966421127, + 0.023166881874203682, + 0.022875145077705383, + 0.022458145394921303, + 0.022541964426636696, + 0.028790906071662903, + 0.025499844923615456, + 0.024207867681980133, + 0.023750122636556625, + 0.023333122953772545, + 0.022625084966421127, + 0.02266606315970421, + 0.023041851818561554, + 0.022416934370994568, + 0.021875137463212013, + 0.02266606315970421, + 0.023041851818561554, + 0.022249994799494743, + 0.021999934688210487, + 0.029125018045306206, + 0.024209031835198402, + 0.023416941985487938, + 0.022875145077705383, + 0.02295803278684616, + 0.022083986550569534, + 0.02237502485513687, + 0.022208085283637047, + 0.021792016923427582, + 0.021792016923427582, + 0.02154102548956871, + 0.021416926756501198, + 0.02254103310406208, + 0.021999934688210487, + 0.021999934688210487, + 0.021875137463212013, + 0.025582965463399887, + 0.022792024537920952, + 0.022791093215346336, + 0.024250010028481483, + 0.022167107090353966, + 0.021582935005426407, + 0.021916814148426056, + 0.024792039766907692, + 0.021707965061068535, + 0.02187490463256836, + 0.022790860384702682, + 0.02245791256427765, + 0.023458851501345634, + 0.02729194238781929, + 0.02174987457692623, + 0.026875175535678864, + 0.023999949917197227, + 0.023165950551629066, + 0.022875145077705383, + 0.022417167201638222, + 0.022625084966421127, + 0.021832995116710663, + 0.02233404666185379, + 0.022124964743852615, + 0.022792024537920952, + 0.022916123270988464, + 0.02300017513334751, + 0.022165942937135696, + 0.02233404666185379, + 0.022541964426636696, + 0.03454205580055714, + 0.02729194238781929, + 0.02450007013976574, + 0.023667002096772194, + 0.023582950234413147, + 0.02708309330046177, + 0.022500054910779, + 0.02291705459356308, + 0.021582935005426407, + 0.021916115656495094, + 0.02487492747604847, + 0.021792016923427582, + 0.021541956812143326, + 0.021416926756501198, + 0.03183307126164436, + 0.025416025891900063, + 0.02429191954433918, + 0.02370891161262989, + 0.02345908433198929, + 0.022499822080135345, + 0.022500054910779, + 0.022999942302703857, + 0.022958964109420776, + 0.023124972358345985, + 0.02266606315970421, + 0.02637505531311035, + 0.022582942619919777, + 0.023083994165062904, + 0.024333130568265915, + 0.023624859750270844, + 0.023624859750270844, + 0.02270890399813652, + 0.023624859750270844, + 0.022833002731204033, + 0.022082822397351265, + 0.022083986550569534, + 0.021999934688210487, + 0.022167107090353966, + 0.025124987587332726, + 0.022249994799494743, + 0.021999934688210487, + 0.02150004729628563, + 0.021582935005426407, + 0.022042077034711838, + 0.021791085600852966, + 0.021707965061068535, + 0.032125040888786316, + 0.025124987587332726, + 0.024292152374982834, + 0.02337503246963024, + 0.023333122953772545, + 0.02291705459356308, + 0.026708003133535385, + 0.023667002096772194, + 0.022500054910779, + 0.022624852135777473, + 0.025541987270116806, + 0.025167129933834076, + 0.0313750933855772, + 0.02433289773762226, + 0.023124972358345985, + 0.024250010028481483, + 0.026833033189177513, + 0.023042084649205208, + 0.022417167201638222, + 0.029458198696374893, + 0.025041867047548294, + 0.024165958166122437, + 0.02354104071855545, + 0.02350006252527237, + 0.02287491224706173, + 0.022500054910779, + 0.0227498821914196, + 0.022458145394921303, + 0.022458843886852264, + 0.02233288250863552, + 0.021999934688210487, + 0.022416003048419952, + 0.02200016751885414, + 0.021625077351927757, + 0.02350006252527237, + 0.021958956494927406, + 0.02191704697906971, + 0.022666994482278824, + 0.0227498821914196, + 0.02866610884666443, + 0.022792024537920952, + 0.02187490463256836, + 0.02195802517235279, + 0.02537504769861698, + 0.024333130568265915, + 0.022624852135777473, + 0.026999972760677338, + 0.022250227630138397, + 0.022750115022063255, + 0.02254103310406208, + 0.022499822080135345, + 0.021707965061068535, + 0.021791085600852966, + 0.02154102548956871, + 0.02374988980591297, + 0.022666994482278824, + 0.021791784092783928, + 0.021625077351927757, + 0.030291033908724785, + 0.02504093572497368, + 0.023625092580914497, + 0.023540807887911797, + 0.02254103310406208, + 0.02237502485513687, + 0.022541964426636696, + 0.022500054910779, + 0.022042077034711838, + 0.02245791256427765, + 0.02191588282585144, + 0.0213750172406435, + 0.02208305522799492, + 0.025624874979257584, + 0.022165942937135696, + 0.022209016606211662, + 0.021582935005426407, + 0.0302919652312994, + 0.025541987270116806, + 0.023584114387631416, + 0.022249994799494743, + 0.021832995116710663, + 0.021832995116710663, + 0.022166874259710312, + 0.0213750172406435, + 0.022083986550569534, + 0.027957838028669357, + 0.021792016923427582, + 0.021208077669143677, + 0.02154102548956871, + 0.021957792341709137, + 0.021124957129359245, + 0.021333806216716766, + 0.02116616815328598, + 0.021165935322642326, + 0.021124957129359245, + 0.021167099475860596, + 0.021167099475860596, + 0.021209008991718292, + 0.022416934370994568, + 0.02150004729628563, + 0.021459069103002548, + 0.03241701051592827, + 0.025207875296473503, + 0.023625092580914497, + 0.025208108127117157, + 0.02270890399813652 + ], + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "independent_score": { + "schema": "dvidia.graspability-score/v3", + "valid": true, + "task_success": false, + "strict_retention_pass": false, + "reference": { + "t_s": 0.4, + "object_z_m": -0.00010776986103712213, + "source": "Recorded native row; event scalar coordinates are not trusted.", + "window_ticks": 50, + "window_duration_s": 0.1, + "axis_position_ranges_m": [ + 5.1348925111938115e-12, + 1.1249862152951096e-11, + 9.536006010896436e-07 + ], + "world_supported": true, + "robot_clear": true, + "position_stable": true, + "at_declared_initial_time": true, + "valid": true + }, + "final_window_complete": true, + "final_window_ticks": 250, + "required_final_window_s": 0.5, + "final_window_start_exclusive_s": 6.1, + "final_window_end_s": 6.6, + "strict_passing_ticks": 0, + "relative_lift_min_m": 0.035, + "terminal_relative_lift_m": 3.108121725400523e-08, + "maximum_relative_lift_m": 0.002644837573463385, + "minimum_final_relative_lift_m": 3.1081213436935954e-08, + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "task_scope": "Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.", + "height_scope": "Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.", + "support_scope": "Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.", + "world_supported_ticks": 250, + "tool_supported_ticks": 0, + "other_robot_supported_ticks": 0, + "bilateral_contact_missing_ticks": 250, + "relative_lift_failed_ticks": 250, + "minimum_final_collision_surface_z_m": -0.00011688122905487153, + "controller_reported_success": false, + "controller_claim_agrees": true, + "compiled_model_sha256": "eef23a9aab93aac2a3c4aeccf5f5ff2ca07f57666d133302072cf1be1fe5f5b2" + }, + "scored_outcome": "lift_not_retained", + "replay": { + "model": "trials/grasp-fresh-02-reference-current-shoe-absent.model.json", + "motion": "trials/grasp-fresh-02-reference-current-shoe-absent.motion.json" + }, + "export_seconds": 0.8176449171733111 + } + ], + "groups": [ + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.8524755409453064 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7190215003211051 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6634467490948737 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6968085840344429 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6847902501467615 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.9523207088932395 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6063288331497461 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6478457078337669 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7174647499341518 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6380515417549759 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.5986854590009898 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6270182910375297 + } + ], + "paired_comparisons": [ + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "easy-block", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-easy-block-mounted", + "absent_id": "grasp-fresh-01-light-easy-block-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": true, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-simplified-shoe-mounted", + "absent_id": "grasp-fresh-01-light-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": true, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-current-shoe-mounted", + "absent_id": "grasp-fresh-01-light-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "easy-block", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-easy-block-mounted", + "absent_id": "grasp-fresh-01-reference-easy-block-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "absent_id": "grasp-fresh-01-reference-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-current-shoe-mounted", + "absent_id": "grasp-fresh-01-reference-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "easy-block", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-easy-block-mounted", + "absent_id": "grasp-fresh-02-light-easy-block-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-simplified-shoe-mounted", + "absent_id": "grasp-fresh-02-light-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-current-shoe-mounted", + "absent_id": "grasp-fresh-02-light-current-shoe-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "easy-block", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-easy-block-mounted", + "absent_id": "grasp-fresh-02-reference-easy-block-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "absent_id": "grasp-fresh-02-reference-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-current-shoe-mounted", + "absent_id": "grasp-fresh-02-reference-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + } + ], + "timing_scope": "Native wall time includes model setup and recording. Export and independent auditing are separate. Rendering, downloads and hardware sensing/actuation are excluded.", + "success_scope": "Every result is independently rescored from dense native traces; author-reported completion cannot override it.", + "robot_fingerprint_scope": "Compiled robot joints, actuator settings and coupling; excludes tool and object inertia. Full model hashes are condition-specific." +} diff --git a/benchmarks/shoe-graspability-20261014/browser-qa.json b/benchmarks/shoe-graspability-20261014/browser-qa.json new file mode 100644 index 0000000..cb2334d --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/browser-qa.json @@ -0,0 +1,28 @@ +{ + "schema": "dvidia.graspability-browser-qa/v1", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "local_url": "http://127.0.0.1:8323/", + "recorded_replays_loaded": 24, + "replays_scrubbed_to_final_frame": 24, + "displayed_retained_lifts": 8, + "console_errors_or_warnings": 0, + "development_replays_loaded": 12, + "development_actual_css_viewports_checked": [ + 2370, + 722, + 444 + ], + "horizontal_overflow_observed": false, + "controls_checked": [ + "shape", + "mass", + "paired layout", + "tool presence", + "phase seek", + "playback", + "collision geometry", + "camera views" + ], + "scope": "Local browser QA of recorded native poses, not a real-time simulator or hardware test.", + "frozen_desktop_css_width": 2370 +} diff --git a/benchmarks/shoe-graspability-20261014/frozen-audit.json b/benchmarks/shoe-graspability-20261014/frozen-audit.json new file mode 100644 index 0000000..03eee63 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/frozen-audit.json @@ -0,0 +1,1209 @@ +{ + "schema": "dvidia.graspability-independent-audit/v3", + "scope": "Recomputed all recorded scores and compiled all declared models; no native simulation steps or controller tuning.", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "protocol_sha256": "27a4d1dfc4fe49b96311d8e5fea7f0d1897526a37aed824ba8405939c169d3f5", + "benchmark_sha256": "b17a057e8f9aebe8335b2ef7ee683f38bd1a1ebd284f551254c9c2625604b7a7", + "integrity_sha256": "329284b83d15364b61113fafe5daf05f163f0d62ecc66ebb145ce28ee229e935", + "fixture_sha256": "c33ef6991379fda77d6084931d2b4b3665830ffa448f9ea403a65d2c37b757a3", + "native_steps_executed_by_audit": 0, + "compiled_models_verified": 24, + "attempts_verified": 24, + "valid_attempts": 24, + "files_verified": 106, + "implementation_files_bound_to_frozen_commit": 15, + "robot_link_mass_inertia_unchanged": true, + "robot_actuator_sha256": "f648770aa6b4014b37288e14ca66a18fb0d272a227290ba654967743de714a26", + "groups": [ + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.8524755409453064 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7190215003211051 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6634467490948737 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6968085840344429 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6847902501467615 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.9523207088932395 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6063288331497461 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6478457078337669 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 2, + "outcomes": { + "completed": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.7174647499341518 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 1, + "outcomes": { + "lift_not_retained": 1, + "completed": 1 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6380515417549759 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.5986854590009898 + }, + { + "task": "in-reach-graspability", + "policy": "shared-v03", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "attempts": 2, + "valid": 2, + "successes": 0, + "outcomes": { + "lift_not_retained": 2 + }, + "simulation_seconds": 13.19999999999899, + "wall_seconds": 0.6270182910375297 + } + ], + "paired_comparisons": [ + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "easy-block", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-easy-block-mounted", + "absent_id": "grasp-fresh-01-light-easy-block-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": true, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-simplified-shoe-mounted", + "absent_id": "grasp-fresh-01-light-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": true, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-light", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-01-light-current-shoe-mounted", + "absent_id": "grasp-fresh-01-light-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "easy-block", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-easy-block-mounted", + "absent_id": "grasp-fresh-01-reference-easy-block-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "absent_id": "grasp-fresh-01-reference-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-01-reference", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-01-reference-current-shoe-mounted", + "absent_id": "grasp-fresh-01-reference-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "easy-block", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-easy-block-mounted", + "absent_id": "grasp-fresh-02-light-easy-block-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-simplified-shoe-mounted", + "absent_id": "grasp-fresh-02-light-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-light", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "mounted_id": "grasp-fresh-02-light-current-shoe-mounted", + "absent_id": "grasp-fresh-02-light-current-shoe-absent", + "valid_pair": true, + "mounted_success": true, + "absent_success": true, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "easy-block", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-easy-block-mounted", + "absent_id": "grasp-fresh-02-reference-easy-block-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "absent_id": "grasp-fresh-02-reference-simplified-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + }, + { + "task": "in-reach-graspability", + "case_id": "grasp-fresh-02-reference", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "mounted_id": "grasp-fresh-02-reference-current-shoe-mounted", + "absent_id": "grasp-fresh-02-reference-current-shoe-absent", + "valid_pair": true, + "mounted_success": false, + "absent_success": false, + "same_robot_actuators": true, + "absent_gain": false, + "absent_loss": false, + "comparison_scope": "Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ." + } + ], + "timing": { + "simulated_seconds": 158.39999999998787, + "native_wall_seconds": 8.40425791614689, + "simulated_to_native_wall_ratio": 18.84758911261611, + "audit_export_wall_seconds": 20.031671040458605, + "scope": "Native wall time includes model setup and recording. Export and independent auditing are separate. Rendering, downloads and hardware sensing/actuation are excluded." + }, + "load_context": { + "lightweight_control_weight_n": 0.2943, + "reference_load_weight_n": 2.943, + "gripper_position_gain_n_per_m": 40.0, + "scope": "Assumed model loads and pinned simulator gain. Contact normals can include table pressure; signed actuator force is not directly measured pinch capacity. These runs do not identify physical PiPER payload or isolate a calibrated friction limit." + }, + "rows": [ + { + "id": "grasp-fresh-01-light-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": true, + "compiled_model_sha256": "5e64effef1ba5138ca4cd60945d7dc131a0632b1c2f5368bc065cfb142d2d726", + "failed_criteria": [], + "terminal_relative_lift_m": 0.21802545516888996, + "minimum_final_collision_surface_z_m": 0.21464964456186214, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.7880999779589581, + "closure_observation": { + "finger_normal_forces_n": [ + 0.28184588866069815, + 0.4869884424647821 + ], + "world_support_n": 0.6251021748231735, + "actuator_force_n": -0.7664057786486548, + "jaw_opening_m": 0.03911216478233269 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.5897014169022441, + "audit_export_seconds": 0.8939502080902457 + }, + { + "id": "grasp-fresh-01-light-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "c2d0428151ddbaa295910a8b3e95ff1d467ba358be8ffdd1f3f5048e30e7861c", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 0.020000030997091998, + "minimum_final_collision_surface_z_m": -0.0024934956013727035, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.8279041188406606, + "closure_observation": { + "finger_normal_forces_n": [ + 0.3532047294984325, + 0.4214003719210142 + ], + "world_support_n": 0.14952881417797267, + "actuator_force_n": -0.7766044644516528, + "jaw_opening_m": 0.03953216930701619 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.34633345901966095, + "audit_export_seconds": 0.820534290978685 + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "f2408e79a9e2459c09822b6064db1ef317ca279658afce546e66736cd0d9dba8", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 0.025000031025949207, + "minimum_final_collision_surface_z_m": -0.00010775542138802621, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.5771891853422535, + "closure_observation": { + "finger_normal_forces_n": [ + 2.181246683420468, + 0.6982000057287798 + ], + "world_support_n": 2.822790769797666, + "actuator_force_n": -1.5771891853422535, + "jaw_opening_m": 0.06613460694307906 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.30948191694915295, + "audit_export_seconds": 0.8235835419036448 + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": true, + "compiled_model_sha256": "4f7a5f983a189d5e4389da1ff055ca21738bebc5c67ee32245edadf6add9c7f7", + "failed_criteria": [], + "terminal_relative_lift_m": 0.22535013233192, + "minimum_final_collision_surface_z_m": 0.22135270204112892, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.001816051771072, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7150370043911345, + 0.2735518401223763 + ], + "world_support_n": 0.8313709486476036, + "actuator_force_n": -0.9828011633925535, + "jaw_opening_m": 0.04985183410610135 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3639570421073586, + "audit_export_seconds": 0.8256862498819828 + }, + { + "id": "grasp-fresh-01-light-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "04161d214e9256699fa7125d19eced18c6a7649a6c14cbb0ed1767c4f327643d", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.108125435084992e-08, + "minimum_final_collision_surface_z_m": -0.00011688123077504067, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.7023603196120416, + "closure_observation": { + "finger_normal_forces_n": [ + 1.4813111117073152, + 1.7760371084831708 + ], + "world_support_n": 1.1893551845912984, + "actuator_force_n": -1.4176914120569473, + "jaw_opening_m": 0.07149098842555507 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.36792225018143654, + "audit_export_seconds": 0.8437092087697238 + }, + { + "id": "grasp-fresh-01-light-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "83db413b0d8ec5d33b3d97f5d49c527632dd236e9a00f60cf8c6e95314fc015a", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.1081217808655954e-08, + "minimum_final_collision_surface_z_m": -0.00011688123048427153, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.4776671906316092, + "closure_observation": { + "finger_normal_forces_n": [ + 2.811163056299122, + 4.104499196722824 + ], + "world_support_n": 4.551042121185688, + "actuator_force_n": -1.4408008908405283, + "jaw_opening_m": 0.07276860764323631 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.4004291659221053, + "audit_export_seconds": 0.8242422500625253 + }, + { + "id": "grasp-fresh-01-reference-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "ce77503d7836700a62cb5cd69e289083232109860641abc4b796098b978c26ac", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697288636768e-08, + "minimum_final_collision_surface_z_m": -0.00010775542145679065, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.9833137309880983, + "closure_observation": { + "finger_normal_forces_n": [ + 0.8788628523458197, + 0.0 + ], + "world_support_n": 3.210922343726204, + "actuator_force_n": -0.8753068271240442, + "jaw_opening_m": 0.04472779187781091 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.31780158285982907, + "audit_export_seconds": 0.8518624589778483 + }, + { + "id": "grasp-fresh-01-reference-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "618332b4f9457031001000a9328726db95fdc259c85b88205db1ea82ab3aa0e1", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.1026972882938894e-08, + "minimum_final_collision_surface_z_m": -0.00010775542148576053, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.9253050995666772, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7712900809001034, + 0.0 + ], + "world_support_n": 2.856785080667112, + "actuator_force_n": -0.774946553024335, + "jaw_opening_m": 0.040118776898121836 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.29277720814570785, + "audit_export_seconds": 0.8148556668311357 + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "aeda49bfec0f8d0947e300d779d7d3e0e4272752da9a15bceba9097ceb2ee63d", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697287509198e-08, + "minimum_final_collision_surface_z_m": -0.00010775542134360688, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.8760694684669582, + "closure_observation": { + "finger_normal_forces_n": [ + 12.412945317891948, + 0.8705084463956954 + ], + "world_support_n": 15.525592773834294, + "actuator_force_n": -0.8546718463703092, + "jaw_opening_m": 0.04402333420237038 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3040260002017021, + "audit_export_seconds": 0.814579457975924 + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "7f103065c3e07e56fbd566d24ad8b87eb430b735a0ad7431a0702f2a7a1989e8", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697287133793e-08, + "minimum_final_collision_surface_z_m": -0.0001077554213460355, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.9333913516308172, + "closure_observation": { + "finger_normal_forces_n": [ + 0.5594404431328802, + 8.978427857789352 + ], + "world_support_n": 12.023937508006973, + "actuator_force_n": -0.8908087715567158, + "jaw_opening_m": 0.04539729729715703 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.302430999930948, + "audit_export_seconds": 0.8340604170225561 + }, + { + "id": "grasp-fresh-01-reference-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "4a1d7158d95c7d5297b1f93a1708008babaa68153e706d749a53f63e7197c43c", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.108121765240887e-08, + "minimum_final_collision_surface_z_m": -0.00011688122904813386, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.4964972707428446, + "closure_observation": { + "finger_normal_forces_n": [ + 4.938496785349013, + 4.74407224790012 + ], + "world_support_n": 10.015226769501323, + "actuator_force_n": -1.4738441474233412, + "jaw_opening_m": 0.07382207279840552 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3349277500528842, + "audit_export_seconds": 0.8197355410084128 + }, + { + "id": "grasp-fresh-01-reference-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-01", + "friction": 0.54, + "valid": true, + "success": false, + "compiled_model_sha256": "1a0b217513b99117c339d1e4b02510e66641b1885a49920bd5e3dc554882555d", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.1081220291614454e-08, + "minimum_final_collision_surface_z_m": -0.00011688122904759436, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.5172542186044038, + "closure_observation": { + "finger_normal_forces_n": [ + 4.98931887691069, + 6.2452308349337065 + ], + "world_support_n": 11.092837992502036, + "actuator_force_n": -1.467075747738918, + "jaw_opening_m": 0.07404834899617901 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.33368179108947515, + "audit_export_seconds": 0.8445473748724908 + }, + { + "id": "grasp-fresh-02-light-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "84b4e97ceec2793b8936a5af41097ddd74e79a52d83961dfd6308d6900fb9af4", + "failed_criteria": [], + "terminal_relative_lift_m": 0.21869597258184706, + "minimum_final_collision_surface_z_m": 0.2148169140052359, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.7880926450262563, + "closure_observation": { + "finger_normal_forces_n": [ + 0.39256927758119997, + 0.38758928659454467 + ], + "world_support_n": 0.833967034778164, + "actuator_force_n": -0.7726042269082146, + "jaw_opening_m": 0.03939168279702773 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3626192919909954, + "audit_export_seconds": 0.8673414580989629 + }, + { + "id": "grasp-fresh-02-light-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "8311bf5b9ad96045e828430e763f72392f9ed9e4ba573ba2a90009a32c810104", + "failed_criteria": [], + "terminal_relative_lift_m": 0.23138714682608114, + "minimum_final_collision_surface_z_m": 0.22715837993251287, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.7868692421549802, + "closure_observation": { + "finger_normal_forces_n": [ + 0.26309687706545676, + 0.5178340721480839 + ], + "world_support_n": 0.7901802887625577, + "actuator_force_n": -0.7799426256974338, + "jaw_opening_m": 0.039683484005422015 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3384567911271006, + "audit_export_seconds": 0.8232225419487804 + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "715817442f06e6e207fac67e1b54689dd200d09c69eba017c66389cbfe2eac84", + "failed_criteria": [], + "terminal_relative_lift_m": 0.21910132725620907, + "minimum_final_collision_surface_z_m": 0.21539539820116874, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.993520169502267, + "closure_observation": { + "finger_normal_forces_n": [ + 0.43530801077208053, + 0.5358320243676746 + ], + "world_support_n": 0.8351667978415414, + "actuator_force_n": -0.9706806548370431, + "jaw_opening_m": 0.049360319443559286 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.32856962480582297, + "audit_export_seconds": 0.8183259160723537 + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "3edccf6675e946f09ae4d22e29e8c122f6fe462aaa7c62a7fd7011fe092f1360", + "failed_criteria": [], + "terminal_relative_lift_m": 0.23264082040360595, + "minimum_final_collision_surface_z_m": 0.2294474252843387, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.9834552067676077, + "closure_observation": { + "finger_normal_forces_n": [ + 0.48806767415837615, + 0.486618176227241 + ], + "world_support_n": 0.0, + "actuator_force_n": -0.9758126598433315, + "jaw_opening_m": 0.04952245233507971 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3535077078267932, + "audit_export_seconds": 0.8265237500891089 + }, + { + "id": "grasp-fresh-02-light-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "90e4a0e3c5bb8623301bbafe54a28feb798f71e184bf3b62ee515ce97e0240e4", + "failed_criteria": [], + "terminal_relative_lift_m": 0.1702592718771153, + "minimum_final_collision_surface_z_m": 0.04336347942978, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.4596521542174017, + "closure_observation": { + "finger_normal_forces_n": [ + 2.5198290583238316, + 2.753987349701366 + ], + "world_support_n": 2.3087211372287895, + "actuator_force_n": -1.4362738204511178, + "jaw_opening_m": 0.07242486709838902 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3510992501396686, + "audit_export_seconds": 0.8318221250083297 + }, + { + "id": "grasp-fresh-02-light-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": true, + "compiled_model_sha256": "e7da140d5535bd511307b8e48b9aba8953e80eafc90f9e674ed66ff7019835f1", + "failed_criteria": [], + "terminal_relative_lift_m": 0.17860182042928108, + "minimum_final_collision_surface_z_m": 0.04641855777339529, + "final_bilateral_missing_ticks": 0, + "final_world_supported_ticks": 0, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.4596483925282682, + "closure_observation": { + "finger_normal_forces_n": [ + 3.0526137152187545, + 3.6634155007425284 + ], + "world_support_n": 4.827517727105476, + "actuator_force_n": -1.4396199713609614, + "jaw_opening_m": 0.07252001331117273 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.4520463750232011, + "audit_export_seconds": 0.8755235408898443 + }, + { + "id": "grasp-fresh-02-reference-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "320cdae5b49f6460856a2a9deee090d05966017bf75651a3f372952ab05ce6c3", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697289069094e-08, + "minimum_final_collision_surface_z_m": -0.00010775542168068447, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.8593155783566627, + "closure_observation": { + "finger_normal_forces_n": [ + 0.4160775428190705, + 0.37319557322242364 + ], + "world_support_n": 3.286964058252209, + "actuator_force_n": -0.7847193337394375, + "jaw_opening_m": 0.04000226402115033 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.33004412497393787, + "audit_export_seconds": 0.8245186249259859 + }, + { + "id": "grasp-fresh-02-reference-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "dbf415121ba7b68b23dc6994c082309c51c25e21804ea0e9af189738150c6101", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697290752318e-08, + "minimum_final_collision_surface_z_m": -0.00010775542188381365, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 0.8569754817845138, + "closure_observation": { + "finger_normal_forces_n": [ + 0.5951707549069207, + 0.18881670703688846 + ], + "world_support_n": 2.912400327527096, + "actuator_force_n": -0.7878694131773433, + "jaw_opening_m": 0.04006047310046802 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3135516250040382, + "audit_export_seconds": 0.8267283749300987 + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "b1fe82c98110f624d9203e45f37e50890ac8a26afd1ed17adc86bf56b6b021e0", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.102697294458934e-08, + "minimum_final_collision_surface_z_m": -0.00010775542133561675, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.135354825282992, + "closure_observation": { + "finger_normal_forces_n": [ + 0.47847520726643533, + 0.5073379939617388 + ], + "world_support_n": 3.358541579121619, + "actuator_force_n": -0.9856786923014955, + "jaw_opening_m": 0.05014511460977162 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3229922908358276, + "audit_export_seconds": 0.837696542032063 + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "a739d6d4207f52b1c13b4df6e3e4913e6b5690f93eef6212b9995273e73141e8", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.1026972937853734e-08, + "minimum_final_collision_surface_z_m": -0.00010775542133814597, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.124338066798712, + "closure_observation": { + "finger_normal_forces_n": [ + 0.7114507361494824, + 0.27624809856439403 + ], + "world_support_n": 2.883347261598204, + "actuator_force_n": -0.9910128516186524, + "jaw_opening_m": 0.050184403754873194 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.2962544590700418, + "audit_export_seconds": 0.8369824578985572 + }, + { + "id": "grasp-fresh-02-reference-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "64bd03ebee73d4e0de9279002f88c18ca9777c7b7eef29f4f1623f5bea4ffdf4", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.1081219249357354e-08, + "minimum_final_collision_surface_z_m": -0.00011688122905101003, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.507930979389687, + "closure_observation": { + "finger_normal_forces_n": [ + 5.412257418849861, + 5.210080566449552 + ], + "world_support_n": 12.494959287515666, + "actuator_force_n": -1.4739889926966565, + "jaw_opening_m": 0.07398688878161085 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3618808339815587, + "audit_export_seconds": 0.8339941250160336 + }, + { + "id": "grasp-fresh-02-reference-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "replicate_id": "grasp-fresh-layout-02", + "friction": 0.91, + "valid": true, + "success": false, + "compiled_model_sha256": "eef23a9aab93aac2a3c4aeccf5f5ff2ca07f57666d133302072cf1be1fe5f5b2", + "failed_criteria": [ + "world_support", + "bilateral_contact", + "relative_lift" + ], + "terminal_relative_lift_m": 3.108121725400523e-08, + "minimum_final_collision_surface_z_m": -0.00011688122905487153, + "final_bilateral_missing_ticks": 250, + "final_world_supported_ticks": 250, + "final_tool_supported_ticks": 0, + "final_other_robot_supported_ticks": 0, + "max_abs_native_gripper_actuator_force_n": 1.5045021954886133, + "closure_observation": { + "finger_normal_forces_n": [ + 5.396845574972049, + 5.41847320025592 + ], + "world_support_n": 11.791883336454235, + "actuator_force_n": -1.456451205580864, + "jaw_opening_m": 0.07323032004820021 + }, + "simulation_seconds": 6.599999999999495, + "native_wall_seconds": 0.3297649580053985, + "audit_export_seconds": 0.8176449171733111 + } + ], + "audit_wall_seconds": 4.675478833029047 +} diff --git a/benchmarks/shoe-graspability-20261014/integrity.json b/benchmarks/shoe-graspability-20261014/integrity.json new file mode 100644 index 0000000..19aad62 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/integrity.json @@ -0,0 +1,430 @@ +{ + "schema": "dvidia.prerequisite-integrity/v1", + "scope": "Artifact consistency, not authenticity or physical validation.", + "files": { + "LICENSE": { + "bytes": 1076, + "sha256": "ab47d245880a661fdca3c6a4cb91671031302deee50d64f8d2d6df86832962e1" + }, + "README.md": { + "bytes": 1512, + "sha256": "4ab80769f4473239fcc70c11797468a3958bb8785b5a60c6b0d3b7fe5182dd66" + }, + "assets/geometry-2e9a97f9a4c776895f0f.bin.gz": { + "bytes": 3574720, + "sha256": "51365a5a661d8062e28c66abc6bdb843ee410811f84b49d62c5878c265b3631f" + }, + "assets/motion-064d5222e75819baf681.bin.gz": { + "bytes": 57082, + "sha256": "0a030cf8ac95f8203566934ce96ceab864913d194b9b8d349b317c6568ac06a7" + }, + "assets/motion-1becb9f9a15087a948db.bin.gz": { + "bytes": 70990, + "sha256": "7cd82344f7f0425f4a43c58b040ec7bcceb88256de825112b5040d29c0674670" + }, + "assets/motion-1dd85beaa620ffb8c81d.bin.gz": { + "bytes": 70640, + "sha256": "775ccee0a12e493babe403a141c468d39970d09bce9170265268d23a1986e549" + }, + "assets/motion-1ef54a2b3c4e5f01bc1f.bin.gz": { + "bytes": 68241, + "sha256": "7026c1579efd68200147cf665f9c16994433cf83d9c6fed02f2bb961bb32677b" + }, + "assets/motion-2ed2e969a4f3225aaa49.bin.gz": { + "bytes": 56531, + "sha256": "e9aace121eeb751496a62a9a449eccb9abe3c3baf41053414deda928e34f8e91" + }, + "assets/motion-3275638913a6bfe498e4.bin.gz": { + "bytes": 57135, + "sha256": "7fd18f6e343c5a84d496a938d93d14b6b4f9c39cf6d9e7dd28bf947740224cc0" + }, + "assets/motion-34f961e637938a2efe4c.bin.gz": { + "bytes": 68625, + "sha256": "35bbb1ef9308e5a3f1fcb9e5e202a3d144e456bffc4269cbb187afddffc8a2a1" + }, + "assets/motion-4738ddf9c963344c2f71.bin.gz": { + "bytes": 59909, + "sha256": "b1f9ef90db03d641f899dacd6f1c2cfe2dc60543da553e0175761ef050c7ffb3" + }, + "assets/motion-4d9d77500e182b73d085.bin.gz": { + "bytes": 59422, + "sha256": "7616444f205acd0ca447a803723390a21ea6396c625b5fd97c93cc362d84deaa" + }, + "assets/motion-5df26ee3076c5569902c.bin.gz": { + "bytes": 70794, + "sha256": "ba034ce8fdec3c839fada3074c8ca26ee534c182bc848533f70a0893125a45d3" + }, + "assets/motion-69a410a45d559e753c31.bin.gz": { + "bytes": 68625, + "sha256": "1e4067841475e2c8c45c37dce92b2162bff9b0d6472af934d72adf65ed5b9681" + }, + "assets/motion-6aaa87da8843ad432a27.bin.gz": { + "bytes": 68708, + "sha256": "367a98e1523c07abf6fd8fb4881866c6d82732776757f50d866ae13722a135a2" + }, + "assets/motion-794b764085e519887cff.bin.gz": { + "bytes": 68233, + "sha256": "b0f05d1d2033cab86a8e6d072807a60dd8ade25c0a04251609f49b5eca083403" + }, + "assets/motion-8f275e62f1134207247e.bin.gz": { + "bytes": 70953, + "sha256": "ea9ad70797c8e4092d64d742f91341a35f4748dd4a1225cf2d660752a235efaf" + }, + "assets/motion-920a55e1fa327af00e58.bin.gz": { + "bytes": 68084, + "sha256": "d0520e509f9dca595e01dcd0df2f546e50b20d9b591fc9e41f50138a9dc96b3d" + }, + "assets/motion-944003865caabaf5ec11.bin.gz": { + "bytes": 57072, + "sha256": "cd9ed1aeaea76394111c4d81885715a53cd8d7a9c440681df7cd0a2dca577a13" + }, + "assets/motion-a8413eef85238b7eb3bf.bin.gz": { + "bytes": 59124, + "sha256": "e73759584bd1dfe6c94b560b268263cbf57cf1cb03f937ee34e3701bea0cac3b" + }, + "assets/motion-afe80e751c316ab065b0.bin.gz": { + "bytes": 57193, + "sha256": "0b4a57e2b85fb79a3141b6246dde828b127be0f24d0c4bfcf1e99aa60e119f10" + }, + "assets/motion-bf0bcb98d88b89e1adf7.bin.gz": { + "bytes": 59438, + "sha256": "2e9b257129dc2e6780f263e9d0bca59854b9f1b84648fe29dfebf3a8d8819003" + }, + "assets/motion-d37b02cd405c48e453b7.bin.gz": { + "bytes": 59527, + "sha256": "a5d967a87b4e51295c2f762ec0a9dedbf28cfcae52db67735fa8ce0bfee5a388" + }, + "assets/motion-e3f84f8b317780fd3cad.bin.gz": { + "bytes": 68421, + "sha256": "ec07ac0fedcd73af008b8bc14844ceb358dad9f2df978ad31174f4acd9a495da" + }, + "assets/motion-ef24cd06e060eca2e33f.bin.gz": { + "bytes": 70379, + "sha256": "5740c99def852bb56fc0ac25f87f10a05967783cfcff9f8138e5ce6280b168d9" + }, + "assets/motion-f811ae81f18df0a2e2e8.bin.gz": { + "bytes": 56226, + "sha256": "8aadc21691ab1c94973400a8f76a9369f18169edcba6d2457677f9ee49073a5b" + }, + "assets/motion-fcf96d42cf84e7c11d8a.bin.gz": { + "bytes": 58736, + "sha256": "f3429e781c98d9e5f3b7eef179bb271e236a0a1f021cb1f06a2bd39c87467eb1" + }, + "benchmark.json": { + "bytes": 481035, + "sha256": "b17a057e8f9aebe8335b2ef7ee683f38bd1a1ebd284f551254c9c2625604b7a7" + }, + "graspability_lab.bundle.js": { + "bytes": 528355, + "sha256": "0f8fc4eec45a9da5ff1b4c8bc18b89457273065cab13728b267374eef6aa610d" + }, + "index.html": { + "bytes": 72711, + "sha256": "259c497a5ec94cfdfe2cfaab51ea1715211aba5c6d2d5e85fd77104d72439c09" + }, + "licenses/agilex_piper/LICENSE": { + "bytes": 1065, + "sha256": "e32d78fd3761052ab0b2bb42fef8a7a9ad3f298d315d305333c349d2aff1f134" + }, + "licenses/agilex_piper/README.md": { + "bytes": 1681, + "sha256": "ab0d218758ec6c298417407962f49179e369236e8f316dbaa7671756d6f8eb77" + }, + "protocol.json": { + "bytes": 16936, + "sha256": "27a4d1dfc4fe49b96311d8e5fea7f0d1897526a37aed824ba8405939c169d3f5" + }, + "reference_replay.third-party.txt": { + "bytes": 1199, + "sha256": "ea4da6cf7a8a54649702f0eb8d057c8ced12f8fed2329c5e96d92a3316922813" + }, + "trials/grasp-fresh-01-light-current-shoe-absent.json": { + "bytes": 1219893, + "sha256": "6e9feb18eb0a20b62d1acc95b106c934b078dbba570f83a40105efdfa9437f6a" + }, + "trials/grasp-fresh-01-light-current-shoe-absent.model.json": { + "bytes": 82368, + "sha256": "1f8c3d4aa42b1e126cdc9d3829ad5b7ef67b8af8be550a041b39eb837aa5e489" + }, + "trials/grasp-fresh-01-light-current-shoe-absent.motion.json": { + "bytes": 778020, + "sha256": "cd658287d8f0a47602de175eeffc642423519c254bc5a0c12f4433075b34b3c9" + }, + "trials/grasp-fresh-01-light-current-shoe-mounted.json": { + "bytes": 1224276, + "sha256": "c2502ea27c695231cffd920481fc1ca0ebfe326b20f78193457d9eb462edc5f3" + }, + "trials/grasp-fresh-01-light-current-shoe-mounted.model.json": { + "bytes": 84000, + "sha256": "70ffa9979550a52b42da9e7e03be794a0aef85b6c9a21e8330e49fe76ddeabe3" + }, + "trials/grasp-fresh-01-light-current-shoe-mounted.motion.json": { + "bytes": 777010, + "sha256": "ea79ce68d76a1eb0ba35f580351e4b9d388a20bf5058d07420eb27d5486c38da" + }, + "trials/grasp-fresh-01-light-easy-block-absent.json": { + "bytes": 1199894, + "sha256": "ea397ff441017d2175047d5adbe038ffe8091be06962b3371d33f9369292d51e" + }, + "trials/grasp-fresh-01-light-easy-block-absent.model.json": { + "bytes": 81276, + "sha256": "e5434621f5ee349a25b7bbe1e1347a6abaad93e5717763877999e10d6e6d23c8" + }, + "trials/grasp-fresh-01-light-easy-block-absent.motion.json": { + "bytes": 774214, + "sha256": "8f3de845d8925da9207669a82d67691e7cf13f262803e57beccbe7e97fd3dcf9" + }, + "trials/grasp-fresh-01-light-easy-block-mounted.json": { + "bytes": 1214943, + "sha256": "294b1cd7790d1eb6d4ac3a5e6ba9071a32ff33aebebec592f5c30e56dcc77c2d" + }, + "trials/grasp-fresh-01-light-easy-block-mounted.model.json": { + "bytes": 82907, + "sha256": "e5f54557658c303f59f94e0fa56eb28e23abf1b38afb31f0a03d2327c767dfd2" + }, + "trials/grasp-fresh-01-light-easy-block-mounted.motion.json": { + "bytes": 776551, + "sha256": "7e6f957912fd3daadee6ef1bdcf09b493db07bd2b1c892d6412d429e1f639523" + }, + "trials/grasp-fresh-01-light-simplified-shoe-absent.json": { + "bytes": 1220538, + "sha256": "a726e5c749e90a2d11f30a1aff3ed77ebac1c3317d6199423b15587978d3c9ea" + }, + "trials/grasp-fresh-01-light-simplified-shoe-absent.model.json": { + "bytes": 81277, + "sha256": "ce5789cbb47d3a12ce91903d93e3238693211912b471e3f79d0f34782901bb3e" + }, + "trials/grasp-fresh-01-light-simplified-shoe-absent.motion.json": { + "bytes": 776443, + "sha256": "ef74e929135d9ab737fbd7554bd5cacc63d905b29a854fbf5b551c1fb0f504f2" + }, + "trials/grasp-fresh-01-light-simplified-shoe-mounted.json": { + "bytes": 1188921, + "sha256": "43ab757e7465107176929aa0848de2a3c92572ab8a032493e5a9dc9fd3753d45" + }, + "trials/grasp-fresh-01-light-simplified-shoe-mounted.model.json": { + "bytes": 82908, + "sha256": "393bd245289ecb504bad7e59a2c8dbe3febf66ac0d1347ad1c72252d769a789c" + }, + "trials/grasp-fresh-01-light-simplified-shoe-mounted.motion.json": { + "bytes": 775784, + "sha256": "f92de7b44a00811ebfd642e6bbff7264e75c391ec74282060d8486c6816b0ccd" + }, + "trials/grasp-fresh-01-reference-current-shoe-absent.json": { + "bytes": 1203863, + "sha256": "498f410a3bff6b3e727f6c4677bc480544c09b6112b40e473bcf4b08c3b2cd9a" + }, + "trials/grasp-fresh-01-reference-current-shoe-absent.model.json": { + "bytes": 82368, + "sha256": "68764d0a6353e0d254edf11091fc30b46dc3779a94e5bced218e4f9a68fa827b" + }, + "trials/grasp-fresh-01-reference-current-shoe-absent.motion.json": { + "bytes": 779898, + "sha256": "6f31c605b685c3e5cd835dd2aed02723c987e935fe368fb2f6ecc53557983b2e" + }, + "trials/grasp-fresh-01-reference-current-shoe-mounted.json": { + "bytes": 1199511, + "sha256": "a79f19567e5b8ce51457973170675989d2b530cc08e99dd0b24d2d02ac6cafe5" + }, + "trials/grasp-fresh-01-reference-current-shoe-mounted.model.json": { + "bytes": 84000, + "sha256": "0b139e461da41b8c82b12acccdb424edd9edc593a9d630999ab8165586ce8aab" + }, + "trials/grasp-fresh-01-reference-current-shoe-mounted.motion.json": { + "bytes": 779070, + "sha256": "d79aa915e471227fc9159d15a76ce712e08a2eb7fcf6744f7d4645e2dbf1cfdf" + }, + "trials/grasp-fresh-01-reference-easy-block-absent.json": { + "bytes": 1181318, + "sha256": "94e567d6f67f1d8194f295b595aab14789ba7430d18339004a0ab3ef65af4ea7" + }, + "trials/grasp-fresh-01-reference-easy-block-absent.model.json": { + "bytes": 81276, + "sha256": "a924a3399becfe78bb0478a032824aff68d22fc2ede19aec9cf3dffbdf6b871b" + }, + "trials/grasp-fresh-01-reference-easy-block-absent.motion.json": { + "bytes": 778039, + "sha256": "0ac93624138d389841061f01f73f68ce6d12ca67c54766e4ba4f0729266c557a" + }, + "trials/grasp-fresh-01-reference-easy-block-mounted.json": { + "bytes": 1181301, + "sha256": "1d04e6475ad24276de0e69cd91dcb85b36110c77762e3b644e35e8cded38bff5" + }, + "trials/grasp-fresh-01-reference-easy-block-mounted.model.json": { + "bytes": 82907, + "sha256": "cdfca093c6cc8f4aff42a98c61b2277a40ba0cd4389b74b223be1c5161a0eac5" + }, + "trials/grasp-fresh-01-reference-easy-block-mounted.motion.json": { + "bytes": 778762, + "sha256": "aee2b30ece59a9f2f2f7e41d6fdfd96e256d0a029a347a8e124c5a50d9ad1950" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-absent.json": { + "bytes": 1187037, + "sha256": "02edb719f965189777b81091af39daffa5f33c3bc5768826406062dc932fa5c6" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-absent.model.json": { + "bytes": 81277, + "sha256": "732cdd59fc044be585569e7757aa00b81e55108d8259a5bf6b145264546963e1" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-absent.motion.json": { + "bytes": 779835, + "sha256": "6f6560d76ac3ebfc9fe91789eb9d05f6879e1cdfc691ecab2909b6a837f30d58" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-mounted.json": { + "bytes": 1198412, + "sha256": "0887f88cb300efcedb61d9b561c6d465200438ac8e4736d8d7cb63cc2cbdd5b2" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-mounted.model.json": { + "bytes": 82908, + "sha256": "13b184ab14a887be65bcbb181d0b35cd60146e974a764fd27c49865e9fbc8bf2" + }, + "trials/grasp-fresh-01-reference-simplified-shoe-mounted.motion.json": { + "bytes": 780273, + "sha256": "6e7c4a852ad40523d0ef8e68fc024faa482a514074c3e61ec6763574397c0f5c" + }, + "trials/grasp-fresh-02-light-current-shoe-absent.json": { + "bytes": 1226074, + "sha256": "6972a7bc87caeeb4d19fd3c8e82b4dd25da2375aaf3bf39f28ea6232948af7bd" + }, + "trials/grasp-fresh-02-light-current-shoe-absent.model.json": { + "bytes": 82368, + "sha256": "306b0eb5731b7db00d10c6d03a5c55b12d65daa4075a143c7c16467f15241c64" + }, + "trials/grasp-fresh-02-light-current-shoe-absent.motion.json": { + "bytes": 777374, + "sha256": "8e470e42f8c868d4fedd0320f4b9de98a282cad76f7f4818e72e0dd8a38bc08a" + }, + "trials/grasp-fresh-02-light-current-shoe-mounted.json": { + "bytes": 1227686, + "sha256": "98ff8b95b09d7f450cdd5c82f843513aa33249e2224d8f64ba5aa8feefe07844" + }, + "trials/grasp-fresh-02-light-current-shoe-mounted.model.json": { + "bytes": 84000, + "sha256": "2f8e2fd82e654b3a5e1efe2ebecbf91a9ba719577eb7108731cee5094c3295da" + }, + "trials/grasp-fresh-02-light-current-shoe-mounted.motion.json": { + "bytes": 778917, + "sha256": "1bfcf0a77e3c746bd706fd3b058119f9a39201595504803fbbc514ddcb5585ba" + }, + "trials/grasp-fresh-02-light-easy-block-absent.json": { + "bytes": 1212825, + "sha256": "5317c0f7a72a23139dac770ea7cd6ddb49965c4cd4e62be1098ea3b22d3e36d3" + }, + "trials/grasp-fresh-02-light-easy-block-absent.model.json": { + "bytes": 81276, + "sha256": "7214990f2fcf7fac723c2ad951bb487bf04c6db5d2c44d336bd4f0b7a86b8e11" + }, + "trials/grasp-fresh-02-light-easy-block-absent.motion.json": { + "bytes": 774684, + "sha256": "e5ddfc989c31542767bfea5d2f0784d051184d7b043903cc1974ce3a8b5221d2" + }, + "trials/grasp-fresh-02-light-easy-block-mounted.json": { + "bytes": 1212464, + "sha256": "7143f4d6279dbf591c9b6056cd700d138595bf744166407289258105ab222b5f" + }, + "trials/grasp-fresh-02-light-easy-block-mounted.model.json": { + "bytes": 82907, + "sha256": "31ff43a10b246ff21fb695707c0c52332d5fbd6d3c02e09787c396aee62669c9" + }, + "trials/grasp-fresh-02-light-easy-block-mounted.motion.json": { + "bytes": 775122, + "sha256": "553c4767f1f123bdda64587c8e46fd9bc0c32be7289a067e4b5a7430f935e549" + }, + "trials/grasp-fresh-02-light-simplified-shoe-absent.json": { + "bytes": 1207980, + "sha256": "03eed7a65f4d28e44b7aa9478d60b10f57fab10b6dac3e7036fed4e063f8f172" + }, + "trials/grasp-fresh-02-light-simplified-shoe-absent.model.json": { + "bytes": 81277, + "sha256": "a5c98b0d674fc7d719b74a184f860db248a49b143a9d68cbc3f73cec86f1e5eb" + }, + "trials/grasp-fresh-02-light-simplified-shoe-absent.motion.json": { + "bytes": 774084, + "sha256": "ce07ca409d211049749f191b75e993a9e1d4d98307a79a947359407c6ed98052" + }, + "trials/grasp-fresh-02-light-simplified-shoe-mounted.json": { + "bytes": 1214980, + "sha256": "159ddacc651dbe5fc8e84aae26099f51fc1e2c2b0322427bc216264ad0655875" + }, + "trials/grasp-fresh-02-light-simplified-shoe-mounted.model.json": { + "bytes": 82908, + "sha256": "2294692044db771df086bcbd6bd50e971e8e6295ad0ad4cad6784f34454b8015" + }, + "trials/grasp-fresh-02-light-simplified-shoe-mounted.motion.json": { + "bytes": 775854, + "sha256": "b146e1462c81b44766d16d23fb5aab46f099da384c2663671b0afac77f820fbc" + }, + "trials/grasp-fresh-02-reference-current-shoe-absent.json": { + "bytes": 1203109, + "sha256": "9fc9c2f44e6dade44d20e7846912022e6b1e29abf2e80d9e1021aa0703eb1531" + }, + "trials/grasp-fresh-02-reference-current-shoe-absent.model.json": { + "bytes": 82368, + "sha256": "aa47014178c2718b423a7ffa2f0efb7f6daa623f77490e925d1284383fdc9754" + }, + "trials/grasp-fresh-02-reference-current-shoe-absent.motion.json": { + "bytes": 781347, + "sha256": "17d950c68ec25e2cc76276693cefd93bb8c158dc37bce2f1da9cb6df0cc757e0" + }, + "trials/grasp-fresh-02-reference-current-shoe-mounted.json": { + "bytes": 1210501, + "sha256": "ed1948ecea8cd2e5f3b41e7a635dab604ae751bc1d7c2ace710771843c190940" + }, + "trials/grasp-fresh-02-reference-current-shoe-mounted.model.json": { + "bytes": 84000, + "sha256": "20ed185307da2cb36e5d6df0e15a06ebfd9e8210211832da70d91d35d182bd5e" + }, + "trials/grasp-fresh-02-reference-current-shoe-mounted.motion.json": { + "bytes": 782179, + "sha256": "62fd1b514e74d8d3ddd694b651e0505bf4946d038ddbe0609c1f5bfac0def4a4" + }, + "trials/grasp-fresh-02-reference-easy-block-absent.json": { + "bytes": 1180057, + "sha256": "33735940b643cd1287b80a6ebfc292ac6ef0ed5061418ff5cd7827e4b7acde85" + }, + "trials/grasp-fresh-02-reference-easy-block-absent.model.json": { + "bytes": 81276, + "sha256": "ebf2037d85f3328bceb7c036615e7747c350448c07477b1c384d8b7ecac9bcd5" + }, + "trials/grasp-fresh-02-reference-easy-block-absent.motion.json": { + "bytes": 778744, + "sha256": "79414f438512895f89dafff4c281e25cc3b94b7c0059649a7f3813971b4a7245" + }, + "trials/grasp-fresh-02-reference-easy-block-mounted.json": { + "bytes": 1183733, + "sha256": "c7dd28ccf599f39ea20df11b836085fd4610893c07318e6f4d8163818aa035eb" + }, + "trials/grasp-fresh-02-reference-easy-block-mounted.model.json": { + "bytes": 82907, + "sha256": "ee7289e5e62ad71da37e3ac1c4e720485d52da4cdd03fefd708aabf49f1c7eb1" + }, + "trials/grasp-fresh-02-reference-easy-block-mounted.motion.json": { + "bytes": 779824, + "sha256": "6cf4edb24a941ba9fdd24090f2a2535c41119e4e1c281abd158c62c830a57d23" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-absent.json": { + "bytes": 1187168, + "sha256": "76788cf3db0c93fbac96c842d0fc40bc6457204abcd3b6c1c48c8434e2a49cb8" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-absent.model.json": { + "bytes": 81277, + "sha256": "cfbf3824b55a338bb5af1774bf99ded9939a5ad5fd696b85150c61adc094b6f9" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-absent.motion.json": { + "bytes": 776871, + "sha256": "efa2b6439a7924225811bc809d0cdc5e6f1471c83e9f596a8e52c5fcf2df2901" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-mounted.json": { + "bytes": 1189416, + "sha256": "3822ac9e69c258271ff9dafb482c30c8f44a4f01622dd36569f1eb8ededcc372" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-mounted.model.json": { + "bytes": 82908, + "sha256": "8286129fa5fe5f6e384d9abf883065007c10a64b24f83bb8d0e8d5c5c4580551" + }, + "trials/grasp-fresh-02-reference-simplified-shoe-mounted.motion.json": { + "bytes": 777910, + "sha256": "f32e97b3d27ec2f66abd39963e3af099f2006408264029276db72f3d1f1901a8" + } + } +} diff --git a/benchmarks/shoe-graspability-20261014/jaw-limit-audit.json b/benchmarks/shoe-graspability-20261014/jaw-limit-audit.json new file mode 100644 index 0000000..3e1a36a --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/jaw-limit-audit.json @@ -0,0 +1,813 @@ +{ + "schema": "dvidia.graspability-jaw-limit-diagnostic/v3", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "benchmark_sha256": "b17a057e8f9aebe8335b2ef7ee683f38bd1a1ebd284f551254c9c2625604b7a7", + "scope": "Post-freeze diagnostic on recorded data only. Native jaw-span observations are every2ms; individual joint-position observations are sampled every20ms. No rescoring, controller tuning or simulation steps.", + "native_steps_executed_by_audit": 0, + "nominal_slide_coordinate_span_m": 0.07, + "pinned_robot_joint_ranges_rad_m": [ + [ + -2.618, + 2.618 + ], + [ + 0.0, + 3.14 + ], + [ + -2.697, + 0.0 + ], + [ + -1.832, + 1.832 + ], + [ + -1.22, + 1.22 + ], + [ + -3.14, + 3.14 + ], + [ + 0.0, + 0.035 + ], + [ + -0.035, + 0.0 + ] + ], + "interpretation": "MuJoCo joint limits are compliant constraints, while actuator command limits bound issued targets. Recorded jaw coordinates can exceed nominal travel under contact. Existing retention criteria did not include a joint-limit tolerance, so scores stay unchanged. Observed overtravel does not establish real hardware aperture or prove that the same lift works with hard travel stops.", + "rows": [ + { + "id": "grasp-fresh-01-light-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07000031536744251, + "minimum_final_native_jaw_span_m": 0.03952489958246806, + "maximum_final_native_jaw_span_m": 0.03952506123032771, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.000502971053248702, + 0.0, + 2.7290363609211443e-07, + 4.268525652134647e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.000502971053248702, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-light-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000098608228439, + "minimum_final_native_jaw_span_m": 1.0960107490090686e-05, + "maximum_final_native_jaw_span_m": 0.0008682448084138219, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 6.425857883990416e-08, + 1.8977403089120992e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07309435525177865, + "minimum_final_native_jaw_span_m": 3.822971751787736e-07, + "maximum_final_native_jaw_span_m": 1.02236741069683e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0002951569125253517, + 0.0, + 0.0018175488785626623, + 0.0012613639341217606 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0002951569125253517, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07167573425498851, + "minimum_final_native_jaw_span_m": 0.04954728903600125, + "maximum_final_native_jaw_span_m": 0.049547569233624064, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0009737405573645719, + 0.0006894177937458862 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-light-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07371885411856491, + "minimum_final_native_jaw_span_m": 1.2055189136034936e-06, + "maximum_final_native_jaw_span_m": 2.238323446059601e-05, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0019927414110966837, + 0.0017233319976545716 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-light-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.0733126015894416, + "minimum_final_native_jaw_span_m": 2.067776178011127e-06, + "maximum_final_native_jaw_span_m": 5.952877340832642e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0016456276235031417, + 0.001916618322038266 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000031536746332, + "minimum_final_native_jaw_span_m": 4.519293225887012e-07, + "maximum_final_native_jaw_span_m": 6.489144814951081e-07, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.000155903956310377, + 0.0, + 2.7290363609211443e-07, + 4.2679783417709505e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.000155903956310377, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000098609436832, + "minimum_final_native_jaw_span_m": 1.3068203865345205e-06, + "maximum_final_native_jaw_span_m": 3.784184751125389e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 4.585832882826491e-06, + 9.303513160068773e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000031536742504, + "minimum_final_native_jaw_span_m": 4.7496257039299747e-07, + "maximum_final_native_jaw_span_m": 9.251995924442034e-07, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.00034184302552242585, + 0.0, + 2.7290363609211443e-07, + 4.268054710120095e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.00034184302552242585, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000098607818911, + "minimum_final_native_jaw_span_m": 1.2863121976489953e-06, + "maximum_final_native_jaw_span_m": 3.689352473038013e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 4.411782305461316e-06, + 7.911999269689118e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07413629899305804, + "minimum_final_native_jaw_span_m": 7.61909265280046e-07, + "maximum_final_native_jaw_span_m": 1.4011056759751867e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0019176029505835052, + 0.002258981700334513 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-01-reference-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.0747350448089489, + "minimum_final_native_jaw_span_m": 1.8171016323768343e-06, + "maximum_final_native_jaw_span_m": 3.831574145306089e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0021961832907661655, + 0.002734766184612644 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07000031222672297, + "minimum_final_native_jaw_span_m": 0.03952464384394409, + "maximum_final_native_jaw_span_m": 0.03952469771344107, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0005401876792692217, + 0.0, + 2.7290363609211443e-07, + 3.845045421606297e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0005401876792692217, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07000006105566822, + "minimum_final_native_jaw_span_m": 0.03963242082591525, + "maximum_final_native_jaw_span_m": 0.03963301844156459, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 9.718557605065126e-07 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07000031222675154, + "minimum_final_native_jaw_span_m": 0.04954851057560533, + "maximum_final_native_jaw_span_m": 0.04954862072874213, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.00054107446970586, + 0.0, + 2.7290363609211443e-07, + 3.844934537561295e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.00054107446970586, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.0700000610816222, + "minimum_final_native_jaw_span_m": 0.049761845049206416, + "maximum_final_native_jaw_span_m": 0.04976194934690764, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 9.715845907046217e-07 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07302317594064106, + "minimum_final_native_jaw_span_m": 0.0710033968143379, + "maximum_final_native_jaw_span_m": 0.07113497703881623, + "final_native_ticks_above_nominal_span": 250, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0015698021623711395, + 0.0015497599255372072 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.000316299022193052, + 0.0008135609131939142 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-light-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.03, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": true, + "maximum_native_jaw_span_m": 0.07305273948918366, + "minimum_final_native_jaw_span_m": 0.07159656335558073, + "maximum_final_native_jaw_span_m": 0.07176825758391142, + "final_native_ticks_above_nominal_span": 250, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0014332830051812934, + 0.0018402779914071382 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.00063973854159078, + 0.0011216011503534795 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-easy-block-mounted", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.0700003122267453, + "minimum_final_native_jaw_span_m": 1.3431052107333992e-07, + "maximum_final_native_jaw_span_m": 4.861604139213501e-07, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0004808866306467152, + 0.0, + 2.7290363609211443e-07, + 3.845068327137935e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0004808866306467152, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-easy-block-absent", + "object_shape": "easy-block", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000006106850842, + "minimum_final_native_jaw_span_m": 6.504989448831019e-07, + "maximum_final_native_jaw_span_m": 2.91500126399e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.2172333959038073e-06, + 3.892037345559073e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000031222674133, + "minimum_final_native_jaw_span_m": 1.3172827310772566e-07, + "maximum_final_native_jaw_span_m": 4.878433927999401e-07, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0004810022226793276, + 0.0, + 2.7290363609211443e-07, + 3.845072213293221e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0004810022226793276, + 0.0, + 1.91560281738322e-09, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-absent", + "object_shape": "simplified-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07000006106983972, + "minimum_final_native_jaw_span_m": 6.504301715783141e-07, + "maximum_final_native_jaw_span_m": 2.914642086707572e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.210569084659949e-06, + 3.893082110420206e-06 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-current-shoe-mounted", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "mounted", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.07467470626024744, + "minimum_final_native_jaw_span_m": 3.1077251705801375e-09, + "maximum_final_native_jaw_span_m": 4.659117022794678e-07, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0021663027631598844, + 0.0025982853264115285 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 6.400739648128823e-10, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + }, + { + "id": "grasp-fresh-02-reference-current-shoe-absent", + "object_shape": "current-shoe", + "mass_kg": 0.3, + "tool_condition": "absent", + "retention_success_under_frozen_criteria": false, + "maximum_native_jaw_span_m": 0.0741437021802293, + "minimum_final_native_jaw_span_m": 8.403481367804005e-07, + "maximum_final_native_jaw_span_m": 1.152589122524326e-06, + "final_native_ticks_above_nominal_span": 0, + "max_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0017915528751921359, + 0.002416009946424512 + ], + "max_final_joint_limit_violation_on_20ms_frames_rad_m": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "issued_commands_within_declared_control_limits_on_all_exported_frames": true + } + ] +} diff --git a/benchmarks/shoe-graspability-20261014/protocol.json b/benchmarks/shoe-graspability-20261014/protocol.json new file mode 100644 index 0000000..ab26f25 --- /dev/null +++ b/benchmarks/shoe-graspability-20261014/protocol.json @@ -0,0 +1,454 @@ +{ + "schema": "dvidia.graspability/v3", + "split": "heldout", + "fixture_sha256": "c33ef6991379fda77d6084931d2b4b3665830ffa448f9ea403a65d2c37b757a3", + "cohort": "fresh-layout-factorial-v03", + "attempts": [ + { + "id": "grasp-fresh-01-light-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-light-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-light-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-light-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-light-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-01-reference-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-light-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-easy-block-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-easy-block-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "easy-block", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-simplified-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "simplified-shoe", + "tool_condition": "absent", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-current-shoe-mounted", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "mounted", + "split": "heldout" + } + }, + { + "id": "grasp-fresh-02-reference-current-shoe-absent", + "task": "in-reach-graspability", + "policy": "shared-v03", + "case": { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91, + "object_shape": "current-shoe", + "tool_condition": "absent", + "split": "heldout" + } + } + ], + "criteria": { + "native_dt_s": 0.002, + "policy_dt_s": 0.02, + "initial_settle_s": 0.4, + "reference_window_s": 0.1, + "reference_axis_range_max_m": 0.001, + "reference_scope": "At the fixed 0.4 s native timestamp, the previous 50 ticks must each show world normal force >0.01 N and aggregate robot/tool normal force <0.01 N, with range <=1 mm on each position axis. The reference height is read from the native trace, never trusted from an event coordinate.", + "final_retention_s": 0.5, + "final_retention_ticks": 250, + "relative_origin_lift_min_m": 0.035, + "finger_force_min_n": 0.01, + "support_force_max_n": 0.01, + "height_scope": "Object body-origin rise >=35 mm from the verified settled reference, on every final native tick. Actual lowest collision-surface height is an additional diagnostic and does not replace the fixed criterion.", + "support_scope": "Both finger normal forces >0.01 N; world, tool and other-robot normal forces each <0.01 N during the final 500 ms. Synthetic evidence thresholds, not calibrated hardware limits.", + "abort_scope": "All planned attempts remain in the denominator. A recorded physical abort, short run or unsettled initialization cannot pass. Corrupt or incomplete native evidence is invalid and also cannot pass. No outcome-dependent exclusion or private retry." + }, + "design": "Direct in-reach pickup, crossing three object shapes, two explicit loads, two tool states and two fresh layout/friction replicates: 24 confirmation attempts. A single fixed authored controller uses a declared geometry-aware grasp-position rule. Layout and friction vary jointly between the two deterministic replicates; these are not random population samples or confidence-interval estimates. Development uses one separate known layout crossed with the same two loads, three shapes and two tool states.", + "comparison": "Within each layout and load, object mass, friction, spawn position, robot actuators and control settings are matched across all six shape/tool cells. Load pairs share the same layout and friction. Changing shape necessarily changes contact geometry and inertia; removing the mounted rake changes wrist mass/inertia as well as clearance. Tool absence is a morphology ablation, not successful tool detachment. Report shape \u00d7 load \u00d7 tool results separately; never present easy-object lifts as shoe-skill success.", + "cohort_access": "The independent evaluator seals the fresh parameter cases before the final controller is frozen. Controller tuning may use development only. Do not inspect or execute fresh cases until a source freeze is recorded. After the first evaluation these cases are known regressions; rerunning them does not create new confirmation evidence.", + "scope": "Authored direct-pickup diagnostic with privileged native observations, assumed rigid-object contact properties and pinned simulation actuators. No retrieval, learned policy, tool acquisition, deformable shoe, physical grip-capacity measurement or hardware-transfer claim. Frozen v02 retrieval results remain separate regressions and are not pooled into this study.", + "source_commit": "73057dc259c6a19344906f4a43a283553e17ade0", + "implementation_sha256": { + "graspability.py": "735239a7071cbfd3258d09f260bb2bd82b7a0a4577013cae594bfb8542ea03ee", + "graspability_protocol.py": "6df01c6b7441859573052510d2b7e95d207d93f9a02a383771a9174bfb6b43e5", + "graspability_protocol_v03.json": "c33ef6991379fda77d6084931d2b4b3665830ffa448f9ea403a65d2c37b757a3", + "graspability_benchmark.py": "47687b0a214140d16cb29611b7f933945398cf4ba82064dfa58b30cbef4f2308", + "workstation.py": "2a6aa6686b5b273efcfb21156952df8ceca88d991674cd17df92f2dccc11b701", + "asset_library.py": "12520ca13b7806004be37a0d7e0d1e023c90410c1eba899296fdcd5b28fdc7f7", + "asset_catalog.json": "592f363389a96fef7f9223737aa72a2f1a74f400238924bf6790ec5bfd3302b7", + "robot_profiles.py": "fb90782a6a9979e282182118ae0e3e29d00f101255cc57378dd3f692672bb13d", + "robot_profiles.lock.json": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe", + "prerequisite_benchmark.py": "c78efb24263300c56f50413aa65333e4fbf1b99403aa816de9bf4cb5656a3811", + "asset_preview.py": "12f4806162504a3c8773b10b516d6b7abb05f670a1f5817be144ea98fc1d25d8", + "reference_sim.py": "c1201d22eb13dd07a236ee63cc4ba68e129f6067e8db61ed41af2d820eb5e3b8", + "graspability_lab.html": "259c497a5ec94cfdfe2cfaab51ea1715211aba5c6d2d5e85fd77104d72439c09", + "graspability_lab.js": "fd177706cb5222076fecd7ae66238c1e1523c0a262d84bcad411ef9bacc11d3f", + "graspability_lab.bundle.js": "0f8fc4eec45a9da5ff1b4c8bc18b89457273065cab13728b267374eef6aa610d" + } +} diff --git a/docs/roadmap.md b/docs/roadmap.md index e37b524..3490a3e 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,6 +1,6 @@ # Execution map: footage to installable skills -Working map, updated 12 October 2026. This is the team's sequence of builds and evidence +Working map, updated 14 October 2026. This is the team's sequence of builds and evidence gates. A completed software component does not establish robot competence. ## The product loop @@ -34,6 +34,22 @@ matched table-disabled controls. Next: reachable shoe grasps on one selected arm, measured shoe/pad contact, then shoe placement and orientation scoring. Scene-loading compatibility does not imply that every arm can lift every shoe. +The [graspability diagnostic v0.3](shoe-graspability.md) now isolates direct pickup +across shape, explicit load and mounted-tool conditions. Its fresh 300 g controls +all fail, including the small block. The immediate simulation priorities are: + +1. Measure grip force versus aperture/command on a named physical gripper and + fit the drive and pad-contact model; do not substitute its force cap for + actual force delivered. +2. Add a shoe with a hollow collar and accessible rim, then measured compliance. + Keep the current solid rigid proxy as a regression control. +3. Compare geometry-aware grasp candidates on new frozen layouts, using the + same independent settled-reference and unsupported-retention checks. +4. Only then rejoin retrieval, test lift and recovery into the full shoe task. + +The current study is a diagnostic improvement, not a learned skill or an +end-to-end success-rate improvement over the earlier retrieval benchmark. + The [hardware reference foundation](hardware-reference.md) now separates the authored box arm from a pinned UR5e/coupled-gripper assembly. Its mechanical inventory, CPU timestep comparisons and paired replay scorer make the next diff --git a/docs/shoe-graspability.md b/docs/shoe-graspability.md new file mode 100644 index 0000000..5a9ea03 --- /dev/null +++ b/docs/shoe-graspability.md @@ -0,0 +1,83 @@ +# Shoe graspability v0.3 + +The earlier shoe experiment combined retrieval, wrist-tool clearance and pickup. +This diagnostic puts the object directly within reach and varies three explicit +factors: rigid shape, object load and whether the rake is mounted at episode start. +It asks what this particular simulated hand can hold before adding more recovery. + +## Run the study + +```sh +git clone https://github.com/Dvidia-Inference/dvidia-training.git +cd dvidia-training +python -m venv .venv +# Activate .venv using your shell. +python -m pip install '.[arm]' +dvidia-robot-sim fetch piper --output robot-assets +dvidia-graspability-benchmark --assets robot-assets --output results --split development +python -m http.server 8000 --directory results +``` + +Use the source commit recorded in a published receipt to reproduce that version. +The `heldout` split is a sealed evaluation cohort; once inspected or used to tune a +controller, it becomes regression data. Published fresh results are one execution +of the frozen implementation, not a collection of the best reruns. + +The native simulation uses MuJoCo 3.15.0 on CPU, a 2 ms physics timestep and a +20 ms controller interval. No discrete GPU or inference server is required. +Install dependencies and pinned arm assets once; runs and the self-hosted replay +can then work offline. Replay requires WebGL2. Minimum RAM and cross-machine +throughput have not been established. Reported wall time includes native model +initialization, controller and trace collection, and excludes rendering/export. + +## Controls and evidence + +| Factor | Conditions | +| --- | --- | +| Shape | 40 × 40 × 40 mm block; 140 × 50 × 60 mm narrow shoe proxy; existing compound shoe proxy | +| Mass | 30 g lightweight control; 300 g reference load | +| Wrist tool | Rake mounted; rake absent from episode start | +| Fresh replication | Two paired layout/friction settings per load, 24 attempts total | + +Every shape uses an authored, fixed grasp offset; the pose is the same with and +without the tool. Joint drives, force caps and controller rates stay unchanged. +Removing the rake changes both clearance and wrist inertia. Changing shape also +changes inertia and contact geometry. The study cannot isolate those effects +further, nor does it test tool removal, retrieval, learned grasp selection or a +trained shoe skill. + +An independent scorer checks every native 2 ms sample. At 0.4 s it verifies a +settled reference: world support, no robot contact and at most 1 mm axis drift +over the previous 100 ms. The final 500 ms must maintain at least 35 mm rise from +that reference, contact on both fingers, and no world, rake or other robot support. +The exact lowest collision-surface height is reported separately. Invalid traces +are distinct from valid physical failures. Full traces, visual/collision geometry, +source hashes, actuator fingerprint, all successes and all failures are retained. + +## What the model leaves out + +The full shoe is a **rigid, solid proxy**. Its 100 mm sole and 94 mm upper are wider +than the pinned gripper's nominal 70 mm slide-coordinate span. That does not prove +all grasps impossible: the controller targets a narrower region. However, a hollow +collar, flexible upper, heel tab and laces are absent, so several real grasping +strategies cannot be evaluated here. + +The pinned gripper is a coupled position drive with gain 40 N/m and an actuator +force cap of ±10 N. A cap is not a command to apply that force. For example, a +30 mm position error contributes about 1.2 N before damping and transmission +coupling. See the [MuJoCo position-actuator definition](https://mujoco.readthedocs.io/en/3.3.1/XMLreference.html#actuator-position). +The viewer reports actual simulated drive force and finger contact forces +separately; neither is a validated measurement of physical PiPER hardware. + +The fresh trace audit also found soft joint-limit overtravel: both successful +30 g full-shoe cases used a slide-coordinate span above 70 mm throughout the +final half-second (71.003–71.135 mm mounted; 71.597–71.768 mm absent). Issued +commands stayed within their limits. The frozen score did not include hard-stop +qualification, so those scores remain unchanged and are explicitly limited to +this model. Physical aperture and hard-stop behavior still need validation. + +The next fidelity work is to measure the actual gripper's force-versus-command +response, fit a named hardware profile, and add shoe geometry with a real collar +and measured material behavior. Keep this diagnostic as a regression test when +those calibrated models are introduced. More retries cannot substitute for +checking those physical assumptions. diff --git a/publishing/huggingface/publish_prerequisites.py b/publishing/huggingface/publish_prerequisites.py index e8a12ac..92f5424 100644 --- a/publishing/huggingface/publish_prerequisites.py +++ b/publishing/huggingface/publish_prerequisites.py @@ -8,6 +8,7 @@ import argparse from hashlib import sha1, sha256 +import importlib.util import json from pathlib import Path, PurePosixPath import re @@ -23,6 +24,8 @@ 'commit_message': 'Publish two native skill-prerequisite simulations and complete benchmark evidence'}, 'prerequisites/v02': {'schema': 'dvidia.continuous-shoe-grip/v2', 'provenance_key': 'continuous_shoe_grip', 'commit_message': 'Publish continuous shoe grip comparison and complete benchmark evidence'}, + 'prerequisites/v03': {'schema': 'dvidia.graspability/v3', 'provenance_key': 'shoe_graspability', + 'commit_message': 'Publish shoe graspability diagnostics and complete benchmark evidence'}, } ROOT_FILES = {'index.html', 'README.md', 'provenance.json'} SHA = re.compile(r'[a-f0-9]{40}') @@ -120,6 +123,17 @@ def inventory(root): return payload +def graspability_scorer(): + """Load the repository's independent stdlib scorer, never uploaded code.""" + path = Path(__file__).resolve().parents[2] / 'src/dvidia_training/graspability_protocol.py' + spec = importlib.util.spec_from_file_location('_dvidia_publication_graspability_score', path) + if spec is None or spec.loader is None: + raise PublicationError('Independent graspability scorer is unavailable.') + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module.score_result + + def check_export(root, source_commit=None, namespace=NAMESPACE): config = release_config(namespace) payload = inventory(root) @@ -143,6 +157,7 @@ def check_export(root, source_commit=None, namespace=NAMESPACE): if (type(planned) is not list or type(measured) is not list or not 1 <= len(planned) <= 100 or len(measured) != len(planned) or len({row['id'] for row in planned}) != len(planned)): raise PublicationError('Every planned attempt must occur exactly once.') + score_graspability = graspability_scorer() if namespace == 'prerequisites/v03' else None for expected, actual in zip(planned, measured): if (any(actual.get(name) != expected.get(name) for name in ('id', 'task', 'policy', 'case')) or type(actual.get('valid')) is not bool or type(actual.get('success')) is not bool @@ -153,10 +168,12 @@ def check_export(root, source_commit=None, namespace=NAMESPACE): if type(receipt) is not dict: raise PublicationError('Complete attempt receipts must match the benchmark.') trace = receipt.pop('native_trace', None) - if namespace == 'prerequisites/v02' and actual['valid']: + if namespace in ('prerequisites/v02', 'prerequisites/v03') and actual['valid']: columns = actual.get('native_trace_columns') score = actual.get('independent_score') - if (type(score) is not dict or score.get('schema') != 'dvidia.continuous-shoe-grip-score/v2' + score_schema = ('dvidia.graspability-score/v3' if namespace == 'prerequisites/v03' + else 'dvidia.continuous-shoe-grip-score/v2') + if (type(score) is not dict or score.get('schema') != score_schema or score.get('valid') is not True or type(score.get('task_success')) is not bool or score['task_success'] != actual['success'] or re.fullmatch(r'[a-f0-9]{64}', score.get('compiled_model_sha256', '') or '') is None @@ -164,14 +181,54 @@ def check_export(root, source_commit=None, namespace=NAMESPACE): or type(columns) is not list or not columns or any(type(row) is not list or len(row) != len(columns) for row in trace)): raise PublicationError('Valid grip attempts require an independent score and complete native trace columns.') + if namespace == 'prerequisites/v03': + required_columns = {'t_s', 'tool_object_force_n', 'object_robot_force_n', + 'left_finger_force_n', 'right_finger_force_n', 'object_x_m', + 'object_y_m', 'object_z_m', 'world_object_force_n'} + reference = score.get('reference') + if (not required_columns <= set(columns) or len(set(columns)) != len(columns) + or re.fullmatch(r'[a-f0-9]{64}', actual.get('robot_actuator_sha256', '') or '') is None + or type(score.get('strict_retention_pass')) is not bool + or type(score.get('final_window_complete')) is not bool + or type(score.get('final_window_ticks')) is not int + or score.get('relative_lift_min_m') != .035 + or score.get('required_final_window_s') != .5 + or actual.get('policy') != 'shared-v03' + or actual.get('task') != 'in-reach-graspability' + or actual['case'].get('object_shape') not in ('easy-block', 'simplified-shoe', 'current-shoe') + or actual['case'].get('tool_condition') not in ('mounted', 'absent')): + raise PublicationError('Graspability attempts require the declared direct-lift evidence and shared policy.') + if actual['success'] and (score['strict_retention_pass'] is not True + or score['final_window_complete'] is not True or score['final_window_ticks'] != 250 + or type(reference) is not dict or reference.get('valid') is not True + or reference.get('window_ticks') != 50 + or type(reference.get('t_s')) not in (int, float) or abs(reference['t_s'] - .4) > 1e-8 + or any(reference.get(k) is not True for k in ( + 'world_supported', 'robot_clear', 'position_stable', 'at_declared_initial_time'))): + raise PublicationError('A successful graspability attempt needs an initial settled reference and full retention window.') if trace is not None: if (type(trace) is not list or len(trace) > 100000 or any(type(row) is not list or not 1 <= len(row) <= 64 or any(type(value) not in (int, float) for value in row) for row in trace) or any(b[0] <= a[0] for a, b in zip(trace, trace[1:]))): raise PublicationError('Native trace must contain bounded numeric observations in time order.') + if namespace == 'prerequisites/v03' and actual['valid']: + times = [row[columns.index('t_s')] for row in trace] + if (min(abs(times[0]), abs(times[0] - .002)) > 1e-8 + or any(abs(b - a - .002) > 1e-8 for a, b in zip(times, times[1:]))): + raise PublicationError('Graspability evidence must retain every native 2 ms observation.') + try: + independently_derived = score_graspability({**actual, 'native_trace': trace}) + except (ValueError, TypeError, KeyError, IndexError) as exc: + raise PublicationError('Graspability trace cannot independently establish its declared evidence.') from exc + if any(score.get(name) != value for name, value in independently_derived.items()): + raise PublicationError('Graspability score differs from independently recomputed native evidence.') if receipt != actual: raise PublicationError('Complete attempt receipts must match the benchmark.') + if namespace == 'prerequisites/v03': + fingerprints = {row['robot_actuator_sha256'] for row in measured if row['valid']} + if len(fingerprints) > 1: + raise PublicationError('Graspability contrasts must retain one shared robot actuator fingerprint.') return payload @@ -273,6 +330,27 @@ def updated_roots(parent, source_commit, seal, namespace=NAMESPACE): 'Policies use privileged simulator observations; contact is synthetic and hardware transfer remains open.\n\n' f'[Pinned source](https://github.com/Dvidia-Inference/dvidia-training/tree/{source_commit}) · ' '[Research](https://research.dvidia.org/papers/continuous-shoe-grip-v02/)\n').encode() + if namespace == 'prerequisites/v03': + index = parent['index.html'].decode() + marker = '
' + if index.count(marker) != 1: + raise PublicationError('Expected one prior continuous-grip section in the existing landing page.') + card = ('

' + 'Give the gripper a fair test.

Compare a small block, a simplified shoe and the current ' + 'shoe across light and heavy loads, with the rake mounted or absent. One shared authored ' + 'policy and independent retention checks expose how the setup affects the lift. ' + 'Recorded native physics; rigid synthetic objects; no physical robot qualification.

' + 'Explore the graspability comparison →
') + index = index.replace(marker, card + marker) + readme = parent['README.md'] + ('\n\n## Shoe graspability v0.3\n\n' + '[Explore the graspability comparison](prerequisites/v03/index.html). Recorded native ' + 'MuJoCo trials isolate shape, load and mounted-tool condition with one shared policy. ' + 'The absent-tool condition starts without the rake; it does not demonstrate autonomous ' + 'tool removal or a complete retrieval task. Every planned attempt and independent ' + 'retention score remains visible. Run the Python benchmark locally for fresh physics. ' + 'Objects are rigid, contact is synthetic and observations are privileged simulator state.\n\n' + f'[Pinned source](https://github.com/Dvidia-Inference/dvidia-training/tree/{source_commit}) · ' + '[Research](https://research.dvidia.org/papers/shoe-graspability-v03/)\n').encode() provenance = json.loads(parent['provenance.json']) key = config['provenance_key'] if key in provenance: diff --git a/publishing/huggingface/test_publish_prerequisites.py b/publishing/huggingface/test_publish_prerequisites.py index 750dbf1..a287c1b 100644 --- a/publishing/huggingface/test_publish_prerequisites.py +++ b/publishing/huggingface/test_publish_prerequisites.py @@ -228,7 +228,7 @@ def test_v02_requires_its_schema_and_matching_parent_target(self): with self.assertRaisesRegex(publisher.PublicationError, 'Source, protocol'): publisher.check_export(self.export, 'b' * 40, 'prerequisites/v01') with self.assertRaisesRegex(publisher.PublicationError, 'Unsupported explicit'): - publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v99') def test_v02_rejects_missing_independent_score_or_trace_on_valid_attempt(self): self.prepare_v02() @@ -281,6 +281,138 @@ def test_v02_refuses_an_existing_version_even_when_export_is_valid(self): with self.assertRaisesRegex(publisher.PublicationError, 'must be new'): publisher.stage(self.export, self.parent, self.root / 'staged', 'b' * 40, 'prerequisites/v02') + def prepare_v03(self): + self.prepare_v02() + release = publisher.stage(self.export, self.parent, self.root / 'v02-release', 'b' * 40, 'prerequisites/v02') + _, prior_payload = publisher.check(release['plan']) + self.tree.update({name: {'blob': publisher.git_blob(raw), 'size': len(raw), 'lfs_sha256': None} + for name, raw in prior_payload.items()}) + for name in publisher.ROOT_FILES: + self.original[name] = prior_payload[name] + (self.parent / name).write_bytes(prior_payload[name]) + self.save_snapshot() + snapshot = json.loads((self.parent / 'snapshot.json').read_bytes()) + snapshot['namespace'] = 'prerequisites/v03' + (self.parent / 'snapshot.json').write_bytes(publisher.encoded(snapshot)) + protocol = json.loads(self.release['protocol.json']) + protocol['schema'] = 'dvidia.graspability/v3' + expected = protocol['attempts'][0] + expected.update(task='in-reach-graspability', policy='shared-v03', + case={'id': 'one', 'object_shape': 'easy-block', 'tool_condition': 'mounted'}) + self.release['protocol.json'] = publisher.encoded(protocol) + measured = {**expected, 'valid': True, 'success': False, 'robot_actuator_sha256': 'e' * 64, + 'metrics': {'native_steps': 450, 'simulation_seconds': .9}, + 'events': [{'type': 'settled_reference', 't': .4}], + 'native_trace_columns': ['t_s', 'tool_object_force_n', 'object_robot_force_n', + 'left_finger_force_n', 'right_finger_force_n', 'object_x_m', 'object_y_m', + 'object_z_m', 'world_object_force_n']} + trace = [[i * .002, 0., 0., 0., 0., .4, -.1, .001, .3] for i in range(451)] + measured['independent_score'] = {**publisher.graspability_scorer()({**measured, 'native_trace': trace}), + 'compiled_model_sha256': 'd' * 64} + benchmark = json.loads(self.release['benchmark.json']) + benchmark.update(schema=protocol['schema'], attempts=[measured]) + benchmark['source']['protocol_sha256'] = publisher.record(self.release['protocol.json'])['sha256'] + self.release['benchmark.json'] = publisher.encoded(benchmark) + self.release['trials/hinge-one.json'] = publisher.encoded({**measured, 'native_trace': trace}) + self.save_release() + return prior_payload + + def update_v03_row(self, change): + benchmark = json.loads(self.release['benchmark.json']) + receipt = json.loads(self.release['trials/hinge-one.json']) + change(benchmark['attempts'][0]) + trace = receipt['native_trace'] + self.release['benchmark.json'] = publisher.encoded(benchmark) + self.release['trials/hinge-one.json'] = publisher.encoded({**benchmark['attempts'][0], 'native_trace': trace}) + self.save_release() + + def test_v03_is_additive_and_does_not_describe_tool_removal_or_retrieval_as_completed(self): + old = self.prepare_v03() + result = publisher.stage(self.export, self.parent, self.root / 'staged', 'b' * 40, 'prerequisites/v03') + plan, payload = publisher.check(result['plan']) + self.assertEqual(set(payload) & set(self.tree), publisher.ROOT_FILES) + before, after = json.loads(old['provenance.json']), json.loads(payload['provenance.json']) + for key, value in before.items(): + self.assertEqual(after[key], value) + self.assertEqual(after['shoe_graspability']['path'], 'prerequisites/v03') + for version in ('v01', 'v02', 'v03'): + self.assertIn(f'prerequisites/{version}/index.html'.encode(), payload['index.html']) + self.assertIn(old['README.md'], payload['README.md']) + self.assertIn(b'does not demonstrate autonomous tool removal', payload['README.md']) + self.assertEqual(plan['namespace'], 'prerequisites/v03') + + def test_v03_rejects_missing_force_columns_and_non_dense_native_trace(self): + self.prepare_v03() + receipt = json.loads(self.release['trials/hinge-one.json']) + receipt['native_trace'][1][0] = .003 + self.release['trials/hinge-one.json'] = publisher.encoded(receipt) + self.save_release() + with self.assertRaisesRegex(publisher.PublicationError, 'every native 2 ms'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + receipt['native_trace'][1][0] = .002 + self.release['trials/hinge-one.json'] = publisher.encoded(receipt) + self.update_v03_row(lambda r: r['native_trace_columns'].__setitem__(8, 'unmeasured_world_force')) + with self.assertRaisesRegex(publisher.PublicationError, 'direct-lift evidence'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + + def test_v03_success_cannot_omit_initial_reference_or_retention(self): + self.prepare_v03() + self.update_v03_row(lambda r: (r.update(success=True), r['independent_score'].update(task_success=True))) + with self.assertRaisesRegex(publisher.PublicationError, 'initial settled reference'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + + def test_v03_rejects_v02_score_and_resealed_tool_condition_change(self): + self.prepare_v03() + self.update_v03_row(lambda r: r['independent_score'].update(schema='dvidia.continuous-shoe-grip-score/v2')) + with self.assertRaisesRegex(publisher.PublicationError, 'independent score'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + self.update_v03_row(lambda r: (r['independent_score'].update(schema='dvidia.graspability-score/v3'), + r['case'].update(tool_condition='absent'))) + with self.assertRaisesRegex(publisher.PublicationError, 'differ from the frozen protocol'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + + def test_v03_rejects_changed_actuator_fingerprint_across_matched_scenes(self): + self.prepare_v03() + protocol = json.loads(self.release['protocol.json']) + benchmark = json.loads(self.release['benchmark.json']) + second = json.loads(self.release['trials/hinge-one.json']) + second['id'] = 'hinge-two' + second['robot_actuator_sha256'] = 'f' * 64 + second['case']['tool_condition'] = 'absent' + protocol['attempts'].append({k: second[k] for k in ('id', 'task', 'policy', 'case')}) + benchmark['attempts'].append({k: v for k, v in second.items() if k != 'native_trace'}) + self.release['protocol.json'] = publisher.encoded(protocol) + benchmark['source']['protocol_sha256'] = publisher.record(self.release['protocol.json'])['sha256'] + self.release['benchmark.json'] = publisher.encoded(benchmark) + self.release['trials/hinge-two.json'] = publisher.encoded(second) + self.save_release() + with self.assertRaisesRegex(publisher.PublicationError, 'shared robot actuator fingerprint'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + + def test_v03_rejects_resealed_truncated_tail_and_force_or_reference_forgery(self): + self.prepare_v03() + original = self.release['trials/hinge-one.json'] + for mutation in ('tail', 'force', 'reference'): + with self.subTest(mutation=mutation): + receipt = json.loads(original) + if mutation == 'tail': + receipt['native_trace'].pop() + elif mutation == 'force': + receipt['native_trace'][-1][8] = 0. + else: + receipt['native_trace'][200][7] += .002 + self.release['trials/hinge-one.json'] = publisher.encoded(receipt) + self.save_release() + with self.assertRaisesRegex(publisher.PublicationError, 'independent'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + + def test_v03_rejects_forged_success_even_with_plausible_reference_and_window(self): + self.prepare_v03() + self.update_v03_row(lambda r: (r.update(success=True), r['independent_score'].update( + task_success=True, strict_retention_pass=True, strict_passing_ticks=250))) + with self.assertRaisesRegex(publisher.PublicationError, 'independently recomputed'): + publisher.check_export(self.export, 'b' * 40, 'prerequisites/v03') + if __name__ == '__main__': unittest.main() diff --git a/pyproject.toml b/pyproject.toml index 921d704..7e2264e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ dvidia-workstation = "dvidia_training.workstation:main" dvidia-workstation-benchmark = "dvidia_training.workstation_benchmark:main" dvidia-prerequisites = "dvidia_training.prerequisite_benchmark:main" dvidia-grip-benchmark = "dvidia_training.grip_benchmark:main" +dvidia-graspability-benchmark = "dvidia_training.graspability_benchmark:main" [tool.setuptools.packages.find] where = ["src"] diff --git a/src/dvidia_training/graspability.py b/src/dvidia_training/graspability.py new file mode 100644 index 0000000..98eee2c --- /dev/null +++ b/src/dvidia_training/graspability.py @@ -0,0 +1,231 @@ +"""Direct graspability controls with unchanged pinned PiPER mechanics. + +Three declared rigid object geometries, explicit mass loads, and a mounted-rake +versus tool-free morphology ablation. This does not detach a tool, discover a +grasp, learn from footage, or calibrate hardware. Every object stays a free body. +""" +from __future__ import annotations + +from copy import deepcopy +import math +import time + +from . import workstation as ws, reference_sim as sim + +TASK = 'in-reach-graspability' +SHAPES = ('easy-block', 'simplified-shoe', 'current-shoe') +TOOLS = ('mounted', 'absent') +TRACE_COLUMNS = ['t_s', 'tool_object_force_n', 'object_robot_force_n', + 'left_finger_force_n', 'right_finger_force_n', 'object_x_m', 'object_y_m', + 'object_z_m', 'world_object_force_n', 'tcp_x_m', 'tcp_y_m', 'tcp_z_m', + 'object_lowest_z_m', 'gripper_actuator_force_n', 'jaw_opening_m'] +# Dimensions are intentionally different controls, not replicas of one shoe. +SHAPE_DIMENSIONS = {'easy-block': [.04, .04, .04], + 'simplified-shoe': [.14, .05, .06], 'current-shoe': [.28, .10, .087]} +SHAPE_OFFSETS = {'easy-block': 0., 'simplified-shoe': 0., 'current-shoe': -.085} +TIMING = {'settle': .4, 'approach': 2., 'close': 1.2, 'lift': 2., 'retention_hold': 1.} + + +def cases(split='development'): + """Known development controls only; fresh evaluation is owned independently.""" + if split != 'development': + raise ValueError('Only development cases are owned by the simulator') + return [dict(id=f'dev-{shape}-{int(mass*1000)}g', split=split, + object_shape=shape, mass=mass, friction=.6, object_x=.40, object_y=-.10, + yaw_rad=0., load_band='light-control' if mass==.03 else 'shoe-load') + for shape in SHAPES for mass in (.03, .30)] + + +def validate_case(case, tool='mounted'): + if tool not in TOOLS: + raise ValueError('Tool condition must be mounted or absent') + if not isinstance(case, dict) or not isinstance(case.get('id'), str) or not case['id']: + raise ValueError('Expected a named graspability case') + if case.get('object_shape') not in SHAPES: + raise ValueError('Unknown rigid object shape') + limits = {'mass': (.01, .6), 'friction': (.1, 1.5), + 'object_x': (.36, .46), 'object_y': (-.16, -.04), 'yaw_rad': (-.15, .15)} + for key, (low, high) in limits.items(): + value=case.get(key, 0. if key=='yaw_rad' else None) + if type(value) not in (int, float) or not math.isfinite(value) or not low<=value<=high: + raise ValueError('Invalid graspability case parameter: '+key) + + +def _add_rake(spec, mj): + # Identical geometry/material/masses to tool_reach.build_model's fixed rake. + quat=list(ws.ORIENTATION);quat[1:]=[-q for q in quat[1:]] + tool=spec.body('link6').add_body(name='reach_rake', pos=[0,0,.12003], quat=quat) + tool.add_geom(name='reach_rake_mount',type=mj.mjtGeom.mjGEOM_BOX, + pos=[-.03,0,.06],size=[.03,.009,.009],mass=.01, + rgba=[.18,.27,.27,1],contype=1,conaffinity=1) + tool.add_geom(name='reach_rake_shaft',type=mj.mjtGeom.mjGEOM_BOX, + pos=[.175,0,.060],size=[.175,.009,.009],mass=.08, + rgba=[.72,.46,.20,1],contype=1,conaffinity=1,condim=4,friction=[.7,.005,.0001]) + tool.add_geom(name='reach_rake_paddle',type=mj.mjtGeom.mjGEOM_BOX, + pos=[.35,0,.005],size=[.010,.035,.055],mass=.035, + rgba=[.18,.27,.27,1],contype=1,conaffinity=1,condim=4,friction=[.7,.005,.0001]) + + +def build_model(assets, case, tool='mounted'): + """Compile a declared condition; no geometry or physics edits during flight.""" + validate_case(case, tool) + mj,_=sim._native_imports() + spec=ws._spec(assets) + body=spec.body(ws.SHOE) + body.pos=[case['object_x'],case['object_y'],.012] + yaw=case.get('yaw_rad',0.) + body.quat=[math.cos(yaw/2),0,0,math.sin(yaw/2)] + if case['object_shape']!='current-shoe': + for geom in list(body.geoms): + spec.delete(geom) + size=[v/2 for v in SHAPE_DIMENSIONS[case['object_shape']]] + body.add_geom(name=ws.SHOE+'_proxy', type=mj.mjtGeom.mjGEOM_BOX, + pos=[0,0,size[2]],size=size,mass=case['mass'], + rgba=[.22,.40,.50,1],contype=1,conaffinity=1,condim=4,priority=1, + friction=[case['friction'],.005,.0001],solref=[.02,1],solimp=[.9,.95,.001,.5,2]) + else: + for geom in body.geoms: + geom.mass*=case['mass']/.30 + geom.friction=[case['friction'],.005,.0001] + if tool=='mounted': + _add_rake(spec,mj) + return mj.MjModel.from_xml_string(spec.to_xml(),assets=spec.assets) + + +def object_lowest_z(model, data, object_id): + """Exact lowest world-z of the collidable box/ellipsoid primitives.""" + mj,np=sim._native_imports() + values=[] + start=int(model.body_geomadr[object_id]);count=int(model.body_geomnum[object_id]) + for geom in range(start,start+count): + if not (model.geom_contype[geom] or model.geom_conaffinity[geom]): + continue + z_axis=data.geom_xmat[geom].reshape(3,3)[2] + size=model.geom_size[geom] + if model.geom_type[geom]==mj.mjtGeom.mjGEOM_BOX: + radius=float(np.abs(z_axis)@size) + elif model.geom_type[geom]==mj.mjtGeom.mjGEOM_ELLIPSOID: + radius=float(np.linalg.norm(z_axis*size)) + else: + raise ValueError('Unsupported object collision geometry for clearance') + values.append(float(data.geom_xpos[geom,2])-radius) + if not values: + raise ValueError('Object has no collision geometry') + return min(values) + + +def run_case(assets, case, tool='mounted', record=True, *, close_gripper=True): + """Run one fixed direct-lift trajectory, logging all 2 ms native samples.""" + validate_case(case,tool) + if type(close_gripper) is not bool: + raise ValueError('close_gripper must be boolean') + mj,np=sim._native_imports();wall=time.perf_counter() + model=build_model(assets,case,tool);data=ws.initialize(model) + tcp,obj=ws._ids(model) + rake=mj.mj_name2id(model,mj.mjtObj.mjOBJ_BODY,'reach_rake') + fingers=[mj.mj_name2id(model,mj.mjtObj.mjOBJ_BODY,n) for n in ('link7','link8')] + phase='settle';target=np.asarray(ws.HOME_TARGET);jaw=.035;desired=data.ctrl.copy() + steps=0;trace=[];frames=[];events=[];compute=[];max_delta=0.;closed=None + bounds_lo=[v[0] for v in ws.BOUNDS];bounds_hi=[v[1] for v in ws.BOUNDS] + def event(kind,**values): + events.append(dict(t=round(float(data.time),6),type=kind, + message=str(values.get('reason',values.get('name',kind))).replace('_',' '),**values)) + def tick(): + nonlocal steps,desired,max_delta + if steps%10==0: + start=time.perf_counter();desired=ws.controller_action(model,data,target.tolist(),jaw) + compute.append((time.perf_counter()-start)*1000) + old=data.ctrl.copy() + data.ctrl[:6]+=np.clip(desired[:6]-data.ctrl[:6],-.003,.003) + data.ctrl[6]+=float(np.clip(desired[6]-data.ctrl[6],-.0001,.0001)) + max_delta=max(max_delta,float(np.max(np.abs(data.ctrl[:6]-old[:6])))) + mj.mj_step(model,data);mj.mj_forward(model,data);steps+=1 + if not all(np.isfinite(v).all() for v in (data.qpos,data.qvel,data.qacc)) or any(w.number for w in data.warning): + raise RuntimeError('Invalid native graspability state') + forces=[0.,0.,0.,0.,0.] # rake, all robot, left, right, world + for i in range(data.ncon): + contact=data.contact[i];a=int(model.geom_bodyid[contact.geom1]);b=int(model.geom_bodyid[contact.geom2]) + if obj not in (a,b):continue + other=b if a==obj else a;wrench=np.zeros(6) + mj.mj_contactForce(model,data,i,wrench);normal=max(0.,float(wrench[0])) + forces[4 if other==0 else 1]+=normal + if other==rake and rake>=0:forces[0]+=normal + if other in fingers:forces[2+fingers.index(other)]+=normal + t=round(float(data.time),6);position=data.xpos[obj].tolist();actual_tcp=data.site_xpos[tcp].tolist() + lowest=object_lowest_z(model,data,obj) + trace.append([t,*forces[:4],*position,forces[4],*actual_tcp,lowest, + float(data.actuator_force[6]),float(data.qpos[6]-data.qpos[7])]) + if record and steps%10==0: + frames.append(dict(t=t,body_poses=np.column_stack((data.xpos,data.xquat)).tolist(), + phase=phase,target=target.tolist(),object_position=position,shoe_position=position, + tcp_position=actual_tcp,qpos_rad_m=data.qpos.tolist(),qvel_rad_m_s=data.qvel.tolist(), + issued_ctrl=data.ctrl.tolist(),requested_joint_target=desired.tolist(), + finger_normal_forces_n=forces[2:4],tool_object_force_n=forces[0], + world_object_force_n=forces[4],other_robot_force_n=max(0.,forces[1]-sum(forces[2:4])-forces[0]), + object_lowest_z_m=lowest,gripper_actuator_force_n=float(data.actuator_force[6]), + jaw_opening_m=float(data.qpos[6]-data.qpos[7]),jaw_qpos_m=data.qpos[6:8].tolist())) + def motion(name,end,seconds,opening=.035): + nonlocal phase,target,jaw + phase=name;jaw=opening;start=np.clip(data.site_xpos[tcp],bounds_lo,bounds_hi) + end=np.asarray(end);n=round(seconds/.002) + event('phase',name=name,target=end.tolist()) + for i in range(n): + u=(i+1)/n;u=u*u*(3-2*u) + target=np.clip(start*(1-u)+end*u,bounds_lo,bounds_hi);tick() + event('assumptions',tool_condition=tool,tool_changes_during_episode=False, + privileged_observations=True,object_attachment=False,gripper_gains_unchanged=True, + direct_pickup=True,close_gripper=close_gripper,shape_dimensions_m=SHAPE_DIMENSIONS[case['object_shape']]) + motion('settle',ws.HOME_TARGET,TIMING['settle']) + tail=np.asarray(trace[-50:]) + settled=bool(len(tail)==50 and np.all(tail[:,8]>.01) and np.all(tail[:,2]<.01) + and np.all(np.ptp(tail[:,5:8],axis=0)<=.001)) + reference=float(data.xpos[obj,2]) + if settled: + event('settled_reference',object_z_m=reference,object_lowest_z_m=trace[-1][12]) + aim=[float(data.xpos[obj,0])+SHAPE_OFFSETS[case['object_shape']],float(data.xpos[obj,1]),.055] + event('grasp_target',target=aim,shape_specific_x_offset_m=SHAPE_OFFSETS[case['object_shape']], + scope='authored geometry-specific pose; identical across tool conditions') + motion('approach',aim,TIMING['approach']) + closure_target=0. if close_gripper else .035 + motion('close',aim,TIMING['close'],closure_target) + closed=trace[-1] + event('closure_check',finger_normal_forces_n=closed[3:5],world_object_force_n=closed[8], + gripper_actuator_force_n=closed[13],jaw_opening_m=closed[14]) + motion('lift',[aim[0],aim[1],.28],TIMING['lift'],closure_target) + motion('retention_hold',[aim[0],aim[1],.28],TIMING['retention_hold'],closure_target) + tail=trace[-250:] + success=bool(settled and len(tail)==250 and all(r[7]-reference>=.035 and min(r[3:5])>.01 + and r[1]<.01 and r[8]<.01 and r[2]-sum(r[3:5])-r[1]<.01 for r in tail)) + event('lift_check',retained=success,settled_reference_available=settled) + duration=float(data.time);native_wall=time.perf_counter()-wall + metrics=dict(outcome='completed' if success else 'lift_not_retained' if settled else 'settling_failed', + simulation_seconds=duration,wall_seconds=native_wall,real_time_factor=duration/native_wall, + native_steps=steps,physics_timestep_s=.002,policy_interval_s=.02, + solver_warnings=sum(int(w.number) for w in data.warning),max_joint_command_delta_rad=max_delta, + object_external_force_used=bool(np.any(data.xfrc_applied) or np.any(data.qfrc_applied)), + object_equality_constraints=int(sum(obj in (int(model.eq_obj1id[i]),int(model.eq_obj2id[i])) for i in range(model.neq) if int(model.eq_type[i]) in (0,1))), + retained_lift_success=success,grasp_attempted=settled,settled_reference_available=settled, + object_mass_kg=float(model.body_mass[obj]),object_inertia_kg_m2=model.body_inertia[obj].tolist(),object_weight_n=float(model.body_mass[obj]*abs(model.opt.gravity[2])), + object_dimensions_m=SHAPE_DIMENSIONS[case['object_shape']],tool_condition=tool, + gripper_kp_n_per_m=float(model.actuator_gainprm[6,0]), + gripper_kv_n_s_per_m=float(-model.actuator_biasprm[6,2]), + gripper_actuator_forcerange_n=model.actuator_forcerange[6].tolist(), + gripper_control_range_m=model.actuator_ctrlrange[6].tolist(), + nominal_jaw_travel_m=.070,jaw_span_scope='joint7 minus joint8 slidecoordinates; nominal parallelfinger span, not a hardware measured aperture',close_gripper=close_gripper,peak_contact_force_n=max(r[2] for r in trace), + peak_object_origin_rise_m=max(r[7]-reference for r in trace if r[0]>=TIMING['settle']), + peak_lowest_surface_z_m=max(r[12] for r in trace if r[0]>=TIMING['settle']), + final_object_position_m=data.xpos[obj].tolist(), + final_lowest_surface_z_m=trace[-1][12], + closure_observation=None if closed is None else dict(finger_normal_forces_n=closed[3:5], + world_support_n=closed[8],actuator_force_n=closed[13],jaw_opening_m=closed[14]), + policy_compute_p50_ms=float(np.percentile(compute,50)),policy_compute_p95_ms=float(np.percentile(compute,95)), + policy_compute_max_ms=max(compute), + timing_scope='CPU native model initialization, control, stepping, trace collection; excludes browser rendering and export', + controller_scope='fixed authored shape-specific pickup with pinned150degree orientation; same trajectory and drive settings across tool conditions', + comparison_scope='direct pickup morphology and load controls; tool absent from episode start, no tool dropping or retrieval', + retention_criterion='final500ms:origin rises at least35mm above settledreference,both finger normalforces>.01N,world/rake/nonfinger robot forceeach<.01N', + clearance_scope='analytic minimumworldz of collisionprimitives; reported separately, not substitute for allworldsupport check', + force_scope='MuJoCo native normalforces and actuatorforce; simulation parameters are not hardware calibration') + return dict(task=TASK,case=deepcopy(case),policy='shared-v03',tool=tool,tool_condition=tool,success=success,valid=True, + metrics=metrics,events=events,frames=frames,model=model,native_trace=trace, + native_trace_columns=TRACE_COLUMNS.copy(),control_compute_ms=compute) diff --git a/src/dvidia_training/graspability_benchmark.py b/src/dvidia_training/graspability_benchmark.py new file mode 100644 index 0000000..6c26d69 --- /dev/null +++ b/src/dvidia_training/graspability_benchmark.py @@ -0,0 +1,207 @@ +"""Reproduce direct-grasp shape, load and mounted-tool controls on CPU.""" +from __future__ import annotations + +import argparse +from hashlib import sha256 +import json +from pathlib import Path +import platform +import re +import time + +from . import prerequisite_benchmark as evidence +from . import asset_preview, reference_replay, reference_sim as sim + +SCHEMA = 'dvidia.graspability/v3' +SCOPE = ('Authored direct in-reach pickup with pinned PiPER drives, rigid object proxies and ' + 'privileged native observations. Shape, explicit load and mounted-tool conditions are ' + 'diagnostic controls. No learned skill, tool detachment, retrieval or hardware qualification.') + + +def implementation_hashes(): + root=Path(__file__).parent + files=('graspability.py','graspability_protocol.py','graspability_protocol_v03.json', + 'graspability_benchmark.py','workstation.py','asset_library.py','asset_catalog.json', + 'robot_profiles.py','robot_profiles.lock.json','prerequisite_benchmark.py','asset_preview.py', + 'reference_sim.py','graspability_lab.html','graspability_lab.js','graspability_lab.bundle.js') + return {name:sha256((root/name).read_bytes()).hexdigest() for name in files} + + +def protocol(split='development'): + from . import graspability_protocol + return graspability_protocol.protocol(split) + + +def robot_actuator_fingerprint(model): + """Hash the robot joint/drive contract, excluding object/tool morphology. + + The pinned PiPER has eight robot joint coordinates and seven actuator inputs. + Body inertia is intentionally outside this fingerprint: adding the rake + changes physical loading. Full compiled model hashes identify each condition. + """ + mj,_=sim._native_imports() + names=[mj.mj_id2name(model,mj.mjtObj.mjOBJ_JOINT,i) for i in range(8)] + if model.nu!=7 or names!=['joint'+str(i) for i in range(1,9)]: + raise ValueError('Expected pinned eight-coordinate/seven-input PiPER') + fields={name:getattr(model,name).tolist() for name in ( + 'actuator_gainprm','actuator_biasprm','actuator_ctrlrange','actuator_forcerange', + 'actuator_gear','actuator_trnid','actuator_trntype','actuator_dyntype', + 'actuator_gaintype','actuator_biastype','actuator_ctrllimited','actuator_forcelimited', + 'actuator_dynprm','eq_type','eq_obj1id','eq_obj2id','eq_data','eq_solref','eq_solimp')} + fields.update({name:getattr(model,name)[:8].tolist() for name in ( + 'jnt_type','jnt_axis','jnt_pos','jnt_range','jnt_limited','jnt_stiffness', + 'jnt_solref','jnt_solimp','dof_damping','dof_frictionloss','dof_armature')}) + fields.update(schema='dvidia.piper-joint-actuator-fingerprint/v1',joint_names=names, + gravity=model.opt.gravity.tolist(),timestep=float(model.opt.timestep)) + return sha256(evidence.encode(fields)).hexdigest() + + +def summarize(records): + keys=sorted({(r['case']['object_shape'],r['case']['mass'],r['case']['tool_condition']) for r in records}) + groups=[] + for shape,mass,tool in keys: + rows=[r for r in records if (r['case']['object_shape'],r['case']['mass'],r['case']['tool_condition'])==(shape,mass,tool)] + outcomes={} + for row in rows: + outcome=row.get('scored_outcome','failed') if row['valid'] else 'invalid_attempt' + outcomes[outcome]=outcomes.get(outcome,0)+1 + groups.append(dict(task='in-reach-graspability',policy='shared-v03',object_shape=shape,mass_kg=mass, + tool_condition=tool,attempts=len(rows),valid=sum(r['valid'] for r in rows), + successes=sum(r['success'] and r['valid'] for r in rows),outcomes=outcomes, + simulation_seconds=sum(r['metrics'].get('simulation_seconds',0.) for r in rows), + wall_seconds=sum(r['wall_seconds'] for r in rows))) + return groups + + +def paired_comparisons(records): + def key(row): + return evidence.encode({k:v for k,v in row['case'].items() if k!='tool_condition'}) + absent={key(r):r for r in records if r['case']['tool_condition']=='absent'} + mounted=[r for r in records if r['case']['tool_condition']=='mounted'] + if len(absent)!=len(mounted) or len(records)!=2*len(mounted): + raise ValueError('Each declared object/load case requires one matched tool pair') + pairs=[] + seen=set() + for a in mounted: + identity=key(a) + if identity not in absent or identity in seen: + raise ValueError('Missing or duplicated tool-condition pair') + seen.add(identity);b=absent[identity] + fingerprint=a.get('robot_actuator_sha256') + same=bool(fingerprint and fingerprint==b.get('robot_actuator_sha256')) + valid=bool(a['valid'] and b['valid'] and same) + pairs.append(dict(task='in-reach-graspability',case_id=a['case']['id'],object_shape=a['case']['object_shape'], + mass_kg=a['case']['mass'],mounted_id=a['id'],absent_id=b['id'],valid_pair=valid, + mounted_success=a['success'],absent_success=b['success'],same_robot_actuators=same, + absent_gain=bool(valid and not a['success'] and b['success']), + absent_loss=bool(valid and a['success'] and not b['success']), + comparison_scope='Same declared object, load, pose and controller. Tool is present or absent from reset; its collision geometry and loading differ.')) + return pairs + + +def runtime_files(): + root=Path(__file__).parent + return {'index.html':(root/'graspability_lab.html').read_bytes(), + 'graspability_lab.bundle.js':(root/'graspability_lab.bundle.js').read_bytes(), + 'reference_replay.third-party.txt':(root/'reference_replay.third-party.txt').read_bytes()} + + +def benchmark(assets,output,*,split='development',source_commit=None): + from . import graspability,graspability_protocol + destination=Path(output) + if destination.exists() or destination.is_symlink(): + raise ValueError('Benchmark output must be a fresh directory') + if source_commit is not None and re.fullmatch(r'[a-f0-9]{40}',source_commit) is None: + raise ValueError('Source commit must be a full Git SHA') + plan=protocol(split) + attempts=plan['attempts'] + ids=[row.get('id') for row in attempts] + if not 1<=len(attempts)<=100 or any(not isinstance(v,str) or not re.fullmatch(r'[a-z0-9_-]{1,160}',v) for v in ids) or len(set(ids))!=len(ids): + raise ValueError('Protocol attempts require distinct bounded portable IDs') + plan.update(schema=SCHEMA,source_commit=source_commit,implementation_sha256=implementation_hashes()) + runtime=runtime_files();mj,np=sim._native_imports() + provenance,notices=asset_preview._licenses('piper',assets) + destination.mkdir(parents=True) + evidence._write(destination,'protocol.json',evidence.encode(plan)) + source=dict(commit=source_commit,protocol_sha256=sha256(evidence.encode(plan)).hexdigest(), + mujoco=mj.__version__,numpy=np.__version__,robot_assets=provenance) + records=[] + for attempt in attempts: + start=time.perf_counter() + row=dict(id=attempt['id'],task=attempt['task'],policy=attempt['policy'],case=attempt['case'], + valid=False,success=False,metrics={},events=[],errors=[]) + try: + result=graspability.run_case(assets,attempt['case'],tool=attempt['case']['tool_condition'],record=True) + row['wall_seconds']=time.perf_counter()-start + if type(result['valid']) is not bool or type(result['success']) is not bool: + raise ValueError('Attempt validity and success must be explicit booleans') + row.update(valid=result['valid'],metrics=result['metrics'],events=result['events'], + controller_reported_success=result['success']) + for name in ('native_trace','native_trace_columns','control_compute_ms','warnings'): + if name in result:row[name]=result[name] + row['robot_actuator_sha256']=robot_actuator_fingerprint(result['model']) + score=graspability_protocol.audit_result(result) + score['compiled_model_sha256']=sim.model_digest(result['model']) + row['independent_score']=score + row['success']=bool(score['task_success'] and row['valid']) + outcome=row['metrics'].get('outcome','incomplete') + row['scored_outcome']='completed' if row['success'] else 'retention_rejected' if outcome=='completed' else outcome + row['replay']=evidence.export_trial(destination,attempt['id'],result,source) + evidence.encode(row) + except Exception as exc: + row.update(valid=False,success=False) + row['errors'].append(type(exc).__name__+': attempt, independent audit or export failed') + try:evidence.encode(row) + except (TypeError,ValueError): + row.update(metrics={},events=[]) + for name in ('native_trace','native_trace_columns','control_compute_ms','warnings','independent_score'): + row.pop(name,None) + row.setdefault('wall_seconds',time.perf_counter()-start) + row['export_seconds']=max(0.,time.perf_counter()-start-row['wall_seconds']) + evidence._write(destination,'trials/'+attempt['id']+'.json',evidence.encode(row)) + records.append({k:v for k,v in row.items() if k!='native_trace'}) + print(json.dumps(dict(attempt=row['id'],valid=row['valid'],success=row['success'], + outcome=row.get('scored_outcome','invalid_attempt') if row['valid'] else 'invalid_attempt',errors=row['errors'])),flush=True) + report=dict(schema=SCHEMA,scope=SCOPE,source=source,split=split, + host=dict(system=platform.system(),release=platform.release(),machine=platform.machine(),python=platform.python_version(),numpy=np.__version__,mujoco=mj.__version__, + compute='CPU native simulation; browser replay needs WebGL2. No GPU required for native benchmark.'), + learned_policy=False,hardware_validated=False,attempts=records,groups=summarize(records), + paired_comparisons=paired_comparisons(records), + timing_scope='Native wall time includes model setup and recording. Export and independent auditing are separate. Rendering, downloads and hardware sensing/actuation are excluded.', + success_scope='Every result is independently rescored from dense native traces; author-reported completion cannot override it.', + robot_fingerprint_scope='Compiled robot joints, actuator settings and coupling; excludes tool and object inertia. Full model hashes are condition-specific.') + evidence._write(destination,'benchmark.json',evidence.encode(report)) + for name,content in runtime.items():evidence._write(destination,name,content) + for name,content in notices.items():evidence._write(destination,name,content) + evidence._write(destination,'LICENSE',reference_replay.MIT_LICENSE.encode()) + evidence._write(destination,'README.md',('# DVIDIA graspability v0.3\n\n'+SCOPE+'\n\n' + 'Three rigid shapes, explicit 30 g and 300 g loads, and mounted versus absent rake conditions. ' + 'Tool-free means absent from reset: no in-flight detachment or retrieval is simulated. ' + 'A 30 g shoe-shaped control is not a physical shoe mass measurement.\n\n' + 'All attempts and dense contact traces are retained, including failures. The independent score ' + 'requires 500 ms continuous bilateral finger contact, object-origin rise >=35 mm from the initial ' + 'verified settled state, and no world, rake or non-finger robot support.\n\n' + 'Serve this folder using `python -m http.server 8000`. Browser visualization replays recorded poses; ' + 'fresh physics runs through Python.\n\n' + 'Reproduce from the exact source commit, install `.[arm]`, fetch assets using ' + '`dvidia-robot-sim fetch piper --output robot-assets`, then run ' + '`dvidia-graspability-benchmark --assets robot-assets --output fresh-results --split '+split+'`.\n\n' + 'Pinned model gains are not measured hardware calibration. Collision geometry is a rigid approximation. ' + 'CPU-only native benchmark; WebGL2 replay. Minimum RAM and real robot transfer are not established.\n\n' + 'DVIDIA code and original synthetic object primitives: MIT. Robot, Three.js and font notices retained. ' + 'No trademark rights are granted.\n').encode()) + evidence.seal(destination) + return report + + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument('--assets',required=True);parser.add_argument('--output',required=True) + parser.add_argument('--split',choices=('development','heldout'),default='development') + parser.add_argument('--source-commit');args=parser.parse_args() + report=benchmark(args.assets,args.output,split=args.split,source_commit=args.source_commit) + print(json.dumps({'groups':report['groups']})) + return 0 if all(row['valid'] for row in report['attempts']) else 1 + + +if __name__=='__main__':raise SystemExit(main()) diff --git a/src/dvidia_training/graspability_lab.bundle.js b/src/dvidia_training/graspability_lab.bundle.js new file mode 100644 index 0000000..248f21b --- /dev/null +++ b/src/dvidia_training/graspability_lab.bundle.js @@ -0,0 +1,3841 @@ +/* DVIDIA graspability experiments. MIT; bundled Three.js r180, MIT. See reference_replay.third-party.txt. */ +(()=>{var Hn={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Gn={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Al=0,so=1,Cl=2;var ro=1,Er=2,cn=3,Sn=0,Ie=1,Ye=2,En=0,ti=1,ao=2,oo=3,lo=4,Rl=5,Fn=100,Il=101,Pl=102,Dl=103,Ll=104,Ul=200,Nl=201,Fl=202,Ol=203,nr=204,ir=205,Bl=206,zl=207,kl=208,Vl=209,Hl=210,Gl=211,Wl=212,Xl=213,ql=214,Tr=0,wr=1,Ar=2,ei=3,Cr=4,Rr=5,Ir=6,Pr=7,co=0,Yl=1,Zl=2,Tn=0,Jl=1,$l=2,Kl=3,Dr=4,jl=5,Ql=6,tc=7;var ho=300,si=301,ri=302,Lr=303,Ur=304,Ts=306,sr=1e3,Nn=1001,rr=1002,Xe=1003,ec=1004;var ws=1005;var en=1006,Nr=1007;var Wn=1008;var rn=1009,uo=1010,fo=1011,ki=1012,Fr=1013,Xn=1014,hn=1015,Vi=1016,Or=1017,Br=1018,Hi=1020,po=35902,mo=35899,go=1021,_o=1022,Ze=1023,Ci=1026,Gi=1027,xo=1028,zr=1029,yo=1030,kr=1031;var Vr=1033,As=33776,Cs=33777,Rs=33778,Is=33779,Hr=35840,Gr=35841,Wr=35842,Xr=35843,qr=36196,Yr=37492,Zr=37496,Jr=37808,$r=37809,Kr=37810,jr=37811,Qr=37812,ta=37813,ea=37814,na=37815,ia=37816,sa=37817,ra=37818,aa=37819,oa=37820,la=37821,ca=36492,ha=36494,ua=36495,da=36283,fa=36284,pa=36285,ma=36286;var ss=2300,ar=2301,er=2302,$a=2400,Ka=2401,ja=2402;var nc=3200,ic=3201;var vo=0,sc=1,wn="",Re="srgb",bn="srgb-linear",rs="linear",Yt="srgb";var Qn=7680;var Qa=519,rc=512,ac=513,oc=514,Mo=515,lc=516,cc=517,hc=518,uc=519,to=35044;var So="300 es",tn=2e3,as=2001;var on=class{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e)}hasEventListener(t,e){let n=this._listeners;return n===void 0?!1:n[t]!==void 0&&n[t].indexOf(e)!==-1}removeEventListener(t,e){let n=this._listeners;if(n===void 0)return;let s=n[t];if(s!==void 0){let r=s.indexOf(e);r!==-1&&s.splice(r,1)}}dispatchEvent(t){let e=this._listeners;if(e===void 0)return;let n=e[t.type];if(n!==void 0){t.target=this;let s=n.slice(0);for(let r=0,a=s.length;r>8&255]+ve[i>>16&255]+ve[i>>24&255]+"-"+ve[t&255]+ve[t>>8&255]+"-"+ve[t>>16&15|64]+ve[t>>24&255]+"-"+ve[e&63|128]+ve[e>>8&255]+"-"+ve[e>>16&255]+ve[e>>24&255]+ve[n&255]+ve[n>>8&255]+ve[n>>16&255]+ve[n>>24&255]).toLowerCase()}function Bt(i,t,e){return Math.max(t,Math.min(e,i))}function bo(i,t){return(i%t+t)%t}function ph(i,t,e,n,s){return n+(i-t)*(s-n)/(e-t)}function mh(i,t,e){return i!==t?(e-i)/(t-i):0}function is(i,t,e){return(1-e)*i+e*t}function gh(i,t,e,n){return is(i,t,1-Math.exp(-e*n))}function _h(i,t=1){return t-Math.abs(bo(i,t*2)-t)}function xh(i,t,e){return i<=t?0:i>=e?1:(i=(i-t)/(e-t),i*i*(3-2*i))}function yh(i,t,e){return i<=t?0:i>=e?1:(i=(i-t)/(e-t),i*i*i*(i*(i*6-15)+10))}function vh(i,t){return i+Math.floor(Math.random()*(t-i+1))}function Mh(i,t){return i+Math.random()*(t-i)}function Sh(i){return i*(.5-Math.random())}function bh(i){i!==void 0&&(ol=i);let t=ol+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Eh(i){return i*ns}function Th(i){return i*Ri}function wh(i){return(i&i-1)===0&&i!==0}function Ah(i){return Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function Ch(i){return Math.pow(2,Math.floor(Math.log(i)/Math.LN2))}function Rh(i,t,e,n,s){let r=Math.cos,a=Math.sin,o=r(e/2),l=a(e/2),c=r((t+n)/2),h=a((t+n)/2),d=r((t-n)/2),f=a((t-n)/2),m=r((n-t)/2),_=a((n-t)/2);switch(s){case"XYX":i.set(o*h,l*d,l*f,o*c);break;case"YZY":i.set(l*f,o*h,l*d,o*c);break;case"ZXZ":i.set(l*d,l*f,o*h,o*c);break;case"XZX":i.set(o*h,l*_,l*m,o*c);break;case"YXY":i.set(l*m,o*h,l*_,o*c);break;case"ZYZ":i.set(l*_,l*m,o*h,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function wi(i,t){switch(t.constructor){case Float32Array:return i;case Uint32Array:return i/4294967295;case Uint16Array:return i/65535;case Uint8Array:return i/255;case Int32Array:return Math.max(i/2147483647,-1);case Int16Array:return Math.max(i/32767,-1);case Int8Array:return Math.max(i/127,-1);default:throw new Error("Invalid component type.")}}function Ce(i,t){switch(t.constructor){case Float32Array:return i;case Uint32Array:return Math.round(i*4294967295);case Uint16Array:return Math.round(i*65535);case Uint8Array:return Math.round(i*255);case Int32Array:return Math.round(i*2147483647);case Int16Array:return Math.round(i*32767);case Int8Array:return Math.round(i*127);default:throw new Error("Invalid component type.")}}var Eo={DEG2RAD:ns,RAD2DEG:Ri,generateUUID:Wi,clamp:Bt,euclideanModulo:bo,mapLinear:ph,inverseLerp:mh,lerp:is,damp:gh,pingpong:_h,smoothstep:xh,smootherstep:yh,randInt:vh,randFloat:Mh,randFloatSpread:Sh,seededRandom:bh,degToRad:Eh,radToDeg:Th,isPowerOfTwo:wh,ceilPowerOfTwo:Ah,floorPowerOfTwo:Ch,setQuaternionFromProperEuler:Rh,normalize:Ce,denormalize:wi},Pt=class i{constructor(t=0,e=0){i.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){let e=this.x,n=this.y,s=t.elements;return this.x=s[0]*e+s[3]*n+s[6],this.y=s[1]*e+s[4]*n+s[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Bt(this.x,t.x,e.x),this.y=Bt(this.y,t.y,e.y),this}clampScalar(t,e){return this.x=Bt(this.x,t,e),this.y=Bt(this.y,t,e),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Bt(n,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(Bt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){let n=Math.cos(e),s=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*n-a*s+t.x,this.y=r*s+a*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},qe=class{constructor(t=0,e=0,n=0,s=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=n,this._w=s}static slerpFlat(t,e,n,s,r,a,o){let l=n[s+0],c=n[s+1],h=n[s+2],d=n[s+3],f=r[a+0],m=r[a+1],_=r[a+2],M=r[a+3];if(o===0){t[e+0]=l,t[e+1]=c,t[e+2]=h,t[e+3]=d;return}if(o===1){t[e+0]=f,t[e+1]=m,t[e+2]=_,t[e+3]=M;return}if(d!==M||l!==f||c!==m||h!==_){let p=1-o,u=l*f+c*m+h*_+d*M,T=u>=0?1:-1,E=1-u*u;if(E>Number.EPSILON){let C=Math.sqrt(E),A=Math.atan2(C,u*T);p=Math.sin(p*A)/C,o=Math.sin(o*A)/C}let S=o*T;if(l=l*p+f*S,c=c*p+m*S,h=h*p+_*S,d=d*p+M*S,p===1-o){let C=1/Math.sqrt(l*l+c*c+h*h+d*d);l*=C,c*=C,h*=C,d*=C}}t[e]=l,t[e+1]=c,t[e+2]=h,t[e+3]=d}static multiplyQuaternionsFlat(t,e,n,s,r,a){let o=n[s],l=n[s+1],c=n[s+2],h=n[s+3],d=r[a],f=r[a+1],m=r[a+2],_=r[a+3];return t[e]=o*_+h*d+l*m-c*f,t[e+1]=l*_+h*f+c*d-o*m,t[e+2]=c*_+h*m+o*f-l*d,t[e+3]=h*_-o*d-l*f-c*m,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,s){return this._x=t,this._y=e,this._z=n,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){let n=t._x,s=t._y,r=t._z,a=t._order,o=Math.cos,l=Math.sin,c=o(n/2),h=o(s/2),d=o(r/2),f=l(n/2),m=l(s/2),_=l(r/2);switch(a){case"XYZ":this._x=f*h*d+c*m*_,this._y=c*m*d-f*h*_,this._z=c*h*_+f*m*d,this._w=c*h*d-f*m*_;break;case"YXZ":this._x=f*h*d+c*m*_,this._y=c*m*d-f*h*_,this._z=c*h*_-f*m*d,this._w=c*h*d+f*m*_;break;case"ZXY":this._x=f*h*d-c*m*_,this._y=c*m*d+f*h*_,this._z=c*h*_+f*m*d,this._w=c*h*d-f*m*_;break;case"ZYX":this._x=f*h*d-c*m*_,this._y=c*m*d+f*h*_,this._z=c*h*_-f*m*d,this._w=c*h*d+f*m*_;break;case"YZX":this._x=f*h*d+c*m*_,this._y=c*m*d+f*h*_,this._z=c*h*_-f*m*d,this._w=c*h*d-f*m*_;break;case"XZY":this._x=f*h*d-c*m*_,this._y=c*m*d-f*h*_,this._z=c*h*_+f*m*d,this._w=c*h*d+f*m*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){let n=e/2,s=Math.sin(n);return this._x=t.x*s,this._y=t.y*s,this._z=t.z*s,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){let e=t.elements,n=e[0],s=e[4],r=e[8],a=e[1],o=e[5],l=e[9],c=e[2],h=e[6],d=e[10],f=n+o+d;if(f>0){let m=.5/Math.sqrt(f+1);this._w=.25/m,this._x=(h-l)*m,this._y=(r-c)*m,this._z=(a-s)*m}else if(n>o&&n>d){let m=2*Math.sqrt(1+n-o-d);this._w=(h-l)/m,this._x=.25*m,this._y=(s+a)/m,this._z=(r+c)/m}else if(o>d){let m=2*Math.sqrt(1+o-n-d);this._w=(r-c)/m,this._x=(s+a)/m,this._y=.25*m,this._z=(l+h)/m}else{let m=2*Math.sqrt(1+d-n-o);this._w=(a-s)/m,this._x=(r+c)/m,this._y=(l+h)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<1e-8?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Bt(this.dot(t),-1,1)))}rotateTowards(t,e){let n=this.angleTo(t);if(n===0)return this;let s=Math.min(1,e/n);return this.slerp(t,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){let n=t._x,s=t._y,r=t._z,a=t._w,o=e._x,l=e._y,c=e._z,h=e._w;return this._x=n*h+a*o+s*c-r*l,this._y=s*h+a*l+r*o-n*c,this._z=r*h+a*c+n*l-s*o,this._w=a*h-n*o-s*l-r*c,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);let n=this._x,s=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+s*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=s,this._z=r,this;let l=1-o*o;if(l<=Number.EPSILON){let m=1-e;return this._w=m*a+e*this._w,this._x=m*n+e*this._x,this._y=m*s+e*this._y,this._z=m*r+e*this._z,this.normalize(),this}let c=Math.sqrt(l),h=Math.atan2(c,o),d=Math.sin((1-e)*h)/c,f=Math.sin(e*h)/c;return this._w=a*d+this._w*f,this._x=n*d+this._x*f,this._y=s*d+this._y*f,this._z=r*d+this._z*f,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){let t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),n=Math.random(),s=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(s*Math.sin(t),s*Math.cos(t),r*Math.sin(e),r*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},N=class i{constructor(t=0,e=0,n=0){i.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return n===void 0&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(ll.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(ll.setFromAxisAngle(t,e))}applyMatrix3(t){let e=this.x,n=this.y,s=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*s,this.y=r[1]*e+r[4]*n+r[7]*s,this.z=r[2]*e+r[5]*n+r[8]*s,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){let e=this.x,n=this.y,s=this.z,r=t.elements,a=1/(r[3]*e+r[7]*n+r[11]*s+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*s+r[12])*a,this.y=(r[1]*e+r[5]*n+r[9]*s+r[13])*a,this.z=(r[2]*e+r[6]*n+r[10]*s+r[14])*a,this}applyQuaternion(t){let e=this.x,n=this.y,s=this.z,r=t.x,a=t.y,o=t.z,l=t.w,c=2*(a*s-o*n),h=2*(o*e-r*s),d=2*(r*n-a*e);return this.x=e+l*c+a*d-o*h,this.y=n+l*h+o*c-r*d,this.z=s+l*d+r*h-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){let e=this.x,n=this.y,s=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*s,this.y=r[1]*e+r[5]*n+r[9]*s,this.z=r[2]*e+r[6]*n+r[10]*s,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Bt(this.x,t.x,e.x),this.y=Bt(this.y,t.y,e.y),this.z=Bt(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Bt(this.x,t,e),this.y=Bt(this.y,t,e),this.z=Bt(this.z,t,e),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Bt(n,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){let n=t.x,s=t.y,r=t.z,a=e.x,o=e.y,l=e.z;return this.x=s*l-r*o,this.y=r*a-n*l,this.z=n*o-s*a,this}projectOnVector(t){let e=t.lengthSq();if(e===0)return this.set(0,0,0);let n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Ca.copy(this).projectOnVector(t),this.sub(Ca)}reflect(t){return this.sub(Ca.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){let e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;let n=this.dot(t)/e;return Math.acos(Bt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let e=this.x-t.x,n=this.y-t.y,s=this.z-t.z;return e*e+n*n+s*s}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){let s=Math.sin(e)*t;return this.x=s*Math.sin(n),this.y=Math.cos(e)*t,this.z=s*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){let e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){let e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),s=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=s,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let t=Math.random()*Math.PI*2,e=Math.random()*2-1,n=Math.sqrt(1-e*e);return this.x=n*Math.cos(t),this.y=e,this.z=n*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},Ca=new N,ll=new qe,Ut=class i{constructor(t,e,n,s,r,a,o,l,c){i.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,n,s,r,a,o,l,c)}set(t,e,n,s,r,a,o,l,c){let h=this.elements;return h[0]=t,h[1]=s,h[2]=o,h[3]=e,h[4]=r,h[5]=l,h[6]=n,h[7]=a,h[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){let e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,s=e.elements,r=this.elements,a=n[0],o=n[3],l=n[6],c=n[1],h=n[4],d=n[7],f=n[2],m=n[5],_=n[8],M=s[0],p=s[3],u=s[6],T=s[1],E=s[4],S=s[7],C=s[2],A=s[5],P=s[8];return r[0]=a*M+o*T+l*C,r[3]=a*p+o*E+l*A,r[6]=a*u+o*S+l*P,r[1]=c*M+h*T+d*C,r[4]=c*p+h*E+d*A,r[7]=c*u+h*S+d*P,r[2]=f*M+m*T+_*C,r[5]=f*p+m*E+_*A,r[8]=f*u+m*S+_*P,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8];return e*a*h-e*o*c-n*r*h+n*o*l+s*r*c-s*a*l}invert(){let t=this.elements,e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8],d=h*a-o*c,f=o*l-h*r,m=c*r-a*l,_=e*d+n*f+s*m;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);let M=1/_;return t[0]=d*M,t[1]=(s*c-h*n)*M,t[2]=(o*n-s*a)*M,t[3]=f*M,t[4]=(h*e-s*l)*M,t[5]=(s*r-o*e)*M,t[6]=m*M,t[7]=(n*l-c*e)*M,t[8]=(a*e-n*r)*M,this}transpose(){let t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){let e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,s,r,a,o){let l=Math.cos(r),c=Math.sin(r);return this.set(n*l,n*c,-n*(l*a+c*o)+a+t,-s*c,s*l,-s*(-c*a+l*o)+o+e,0,0,1),this}scale(t,e){return this.premultiply(Ra.makeScale(t,e)),this}rotate(t){return this.premultiply(Ra.makeRotation(-t)),this}translate(t,e){return this.premultiply(Ra.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){let e=this.elements,n=t.elements;for(let s=0;s<9;s++)if(e[s]!==n[s])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return new this.constructor().fromArray(this.elements)}},Ra=new Ut;function To(i){for(let t=i.length-1;t>=0;--t)if(i[t]>=65535)return!0;return!1}function os(i){return document.createElementNS("http://www.w3.org/1999/xhtml",i)}function dc(){let i=os("canvas");return i.style.display="block",i}var cl={};function Ii(i){i in cl||(cl[i]=!0,console.warn(i))}function fc(i,t,e){return new Promise(function(n,s){function r(){switch(i.clientWaitSync(t,i.SYNC_FLUSH_COMMANDS_BIT,0)){case i.WAIT_FAILED:s();break;case i.TIMEOUT_EXPIRED:setTimeout(r,e);break;default:n()}}setTimeout(r,e)})}var hl=new Ut().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),ul=new Ut().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Ih(){let i={enabled:!0,workingColorSpace:bn,spaces:{},convert:function(s,r,a){return this.enabled===!1||r===a||!r||!a||(this.spaces[r].transfer===Yt&&(s.r=Mn(s.r),s.g=Mn(s.g),s.b=Mn(s.b)),this.spaces[r].primaries!==this.spaces[a].primaries&&(s.applyMatrix3(this.spaces[r].toXYZ),s.applyMatrix3(this.spaces[a].fromXYZ)),this.spaces[a].transfer===Yt&&(s.r=Ai(s.r),s.g=Ai(s.g),s.b=Ai(s.b))),s},workingToColorSpace:function(s,r){return this.convert(s,this.workingColorSpace,r)},colorSpaceToWorking:function(s,r){return this.convert(s,r,this.workingColorSpace)},getPrimaries:function(s){return this.spaces[s].primaries},getTransfer:function(s){return s===wn?rs:this.spaces[s].transfer},getToneMappingMode:function(s){return this.spaces[s].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(s,r=this.workingColorSpace){return s.fromArray(this.spaces[r].luminanceCoefficients)},define:function(s){Object.assign(this.spaces,s)},_getMatrix:function(s,r,a){return s.copy(this.spaces[r].toXYZ).multiply(this.spaces[a].fromXYZ)},_getDrawingBufferColorSpace:function(s){return this.spaces[s].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(s=this.workingColorSpace){return this.spaces[s].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(s,r){return Ii("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),i.workingToColorSpace(s,r)},toWorkingColorSpace:function(s,r){return Ii("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),i.colorSpaceToWorking(s,r)}},t=[.64,.33,.3,.6,.15,.06],e=[.2126,.7152,.0722],n=[.3127,.329];return i.define({[bn]:{primaries:t,whitePoint:n,transfer:rs,toXYZ:hl,fromXYZ:ul,luminanceCoefficients:e,workingColorSpaceConfig:{unpackColorSpace:Re},outputColorSpaceConfig:{drawingBufferColorSpace:Re}},[Re]:{primaries:t,whitePoint:n,transfer:Yt,toXYZ:hl,fromXYZ:ul,luminanceCoefficients:e,outputColorSpaceConfig:{drawingBufferColorSpace:Re}}}),i}var Gt=Ih();function Mn(i){return i<.04045?i*.0773993808:Math.pow(i*.9478672986+.0521327014,2.4)}function Ai(i){return i<.0031308?i*12.92:1.055*Math.pow(i,.41666)-.055}var pi,or=class{static getDataURL(t,e="image/png"){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let n;if(t instanceof HTMLCanvasElement)n=t;else{pi===void 0&&(pi=os("canvas")),pi.width=t.width,pi.height=t.height;let s=pi.getContext("2d");t instanceof ImageData?s.putImageData(t,0,0):s.drawImage(t,0,0,t.width,t.height),n=pi}return n.toDataURL(e)}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){let e=os("canvas");e.width=t.width,e.height=t.height;let n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);let s=n.getImageData(0,0,t.width,t.height),r=s.data;for(let a=0;a1),this.pmremVersion=0}get width(){return this.source.getSize(Pa).x}get height(){return this.source.getSize(Pa).y}get depth(){return this.source.getSize(Pa).z}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.isArrayTexture=t.isArrayTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}setValues(t){for(let e in t){let n=t[e];if(n===void 0){console.warn(`THREE.Texture.setValues(): parameter '${e}' has value of undefined.`);continue}let s=this[e];if(s===void 0){console.warn(`THREE.Texture.setValues(): property '${e}' does not exist.`);continue}s&&n&&s.isVector2&&n.isVector2||s&&n&&s.isVector3&&n.isVector3||s&&n&&s.isMatrix3&&n.isMatrix3?s.copy(n):this[e]=n}}toJSON(t){let e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let n={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==ho)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case sr:t.x=t.x-Math.floor(t.x);break;case Nn:t.x=t.x<0?0:1;break;case rr:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case sr:t.y=t.y-Math.floor(t.y);break;case Nn:t.y=t.y<0?0:1;break;case rr:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}};Be.DEFAULT_IMAGE=null;Be.DEFAULT_MAPPING=ho;Be.DEFAULT_ANISOTROPY=1;var le=class i{constructor(t=0,e=0,n=0,s=1){i.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=s}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,s){return this.x=t,this.y=e,this.z=n,this.w=s,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){let e=this.x,n=this.y,s=this.z,r=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*s+a[12]*r,this.y=a[1]*e+a[5]*n+a[9]*s+a[13]*r,this.z=a[2]*e+a[6]*n+a[10]*s+a[14]*r,this.w=a[3]*e+a[7]*n+a[11]*s+a[15]*r,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this.w/=t.w,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);let e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,s,r,l=t.elements,c=l[0],h=l[4],d=l[8],f=l[1],m=l[5],_=l[9],M=l[2],p=l[6],u=l[10];if(Math.abs(h-f)<.01&&Math.abs(d-M)<.01&&Math.abs(_-p)<.01){if(Math.abs(h+f)<.1&&Math.abs(d+M)<.1&&Math.abs(_+p)<.1&&Math.abs(c+m+u-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;let E=(c+1)/2,S=(m+1)/2,C=(u+1)/2,A=(h+f)/4,P=(d+M)/4,U=(_+p)/4;return E>S&&E>C?E<.01?(n=0,s=.707106781,r=.707106781):(n=Math.sqrt(E),s=A/n,r=P/n):S>C?S<.01?(n=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),n=A/s,r=U/s):C<.01?(n=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),n=P/r,s=U/r),this.set(n,s,r,e),this}let T=Math.sqrt((p-_)*(p-_)+(d-M)*(d-M)+(f-h)*(f-h));return Math.abs(T)<.001&&(T=1),this.x=(p-_)/T,this.y=(d-M)/T,this.z=(f-h)/T,this.w=Math.acos((c+m+u-1)/2),this}setFromMatrixPosition(t){let e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this.w=e[15],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Bt(this.x,t.x,e.x),this.y=Bt(this.y,t.y,e.y),this.z=Bt(this.z,t.z,e.z),this.w=Bt(this.w,t.w,e.w),this}clampScalar(t,e){return this.x=Bt(this.x,t,e),this.y=Bt(this.y,t,e),this.z=Bt(this.z,t,e),this.w=Bt(this.w,t,e),this}clampLength(t,e){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Bt(n,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}},lr=class extends on{constructor(t=1,e=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:en,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},n),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=n.depth,this.scissor=new le(0,0,t,e),this.scissorTest=!1,this.viewport=new le(0,0,t,e);let s={width:t,height:e,depth:n.depth},r=new Be(s);this.textures=[];let a=n.count;for(let o=0;o1;this.dispose()}this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.textures.length=0;for(let e=0,n=t.textures.length;e=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,Ke),Ke.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(ji),Bs.subVectors(this.max,ji),mi.subVectors(t.a,ji),gi.subVectors(t.b,ji),_i.subVectors(t.c,ji),Cn.subVectors(gi,mi),Rn.subVectors(_i,gi),Jn.subVectors(mi,_i);let e=[0,-Cn.z,Cn.y,0,-Rn.z,Rn.y,0,-Jn.z,Jn.y,Cn.z,0,-Cn.x,Rn.z,0,-Rn.x,Jn.z,0,-Jn.x,-Cn.y,Cn.x,0,-Rn.y,Rn.x,0,-Jn.y,Jn.x,0];return!Da(e,mi,gi,_i,Bs)||(e=[1,0,0,0,1,0,0,0,1],!Da(e,mi,gi,_i,Bs))?!1:(zs.crossVectors(Cn,Rn),e=[zs.x,zs.y,zs.z],Da(e,mi,gi,_i,Bs))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Ke).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(Ke).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(mn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),mn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),mn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),mn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),mn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),mn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),mn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),mn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(mn),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(t){return this.min.fromArray(t.min),this.max.fromArray(t.max),this}},mn=[new N,new N,new N,new N,new N,new N,new N,new N],Ke=new N,Os=new On,mi=new N,gi=new N,_i=new N,Cn=new N,Rn=new N,Jn=new N,ji=new N,Bs=new N,zs=new N,$n=new N;function Da(i,t,e,n,s){for(let r=0,a=i.length-3;r<=a;r+=3){$n.fromArray(i,r);let o=s.x*Math.abs($n.x)+s.y*Math.abs($n.y)+s.z*Math.abs($n.z),l=t.dot($n),c=e.dot($n),h=n.dot($n);if(Math.max(-Math.max(l,c,h),Math.min(l,c,h))>o)return!1}return!0}var Lh=new On,Qi=new N,La=new N,Di=class{constructor(t=new N,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){let n=this.center;e!==void 0?n.copy(e):Lh.setFromPoints(t).getCenter(n);let s=0;for(let r=0,a=t.length;rthis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Qi.subVectors(t,this.center);let e=Qi.lengthSq();if(e>this.radius*this.radius){let n=Math.sqrt(e),s=(n-this.radius)*.5;this.center.addScaledVector(Qi,s/n),this.radius+=s}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(La.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Qi.copy(t.center).add(La)),this.expandByPoint(Qi.copy(t.center).sub(La))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(t){return this.radius=t.radius,this.center.fromArray(t.center),this}},gn=new N,Ua=new N,ks=new N,In=new N,Na=new N,Vs=new N,Fa=new N,Li=class{constructor(t=new N,e=new N(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,gn)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);let n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){let e=gn.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(gn.copy(this.origin).addScaledVector(this.direction,e),gn.distanceToSquared(t))}distanceSqToSegment(t,e,n,s){Ua.copy(t).add(e).multiplyScalar(.5),ks.copy(e).sub(t).normalize(),In.copy(this.origin).sub(Ua);let r=t.distanceTo(e)*.5,a=-this.direction.dot(ks),o=In.dot(this.direction),l=-In.dot(ks),c=In.lengthSq(),h=Math.abs(1-a*a),d,f,m,_;if(h>0)if(d=a*l-o,f=a*o-l,_=r*h,d>=0)if(f>=-_)if(f<=_){let M=1/h;d*=M,f*=M,m=d*(d+a*f+2*o)+f*(a*d+f+2*l)+c}else f=r,d=Math.max(0,-(a*f+o)),m=-d*d+f*(f+2*l)+c;else f=-r,d=Math.max(0,-(a*f+o)),m=-d*d+f*(f+2*l)+c;else f<=-_?(d=Math.max(0,-(-a*r+o)),f=d>0?-r:Math.min(Math.max(-r,-l),r),m=-d*d+f*(f+2*l)+c):f<=_?(d=0,f=Math.min(Math.max(-r,-l),r),m=f*(f+2*l)+c):(d=Math.max(0,-(a*r+o)),f=d>0?r:Math.min(Math.max(-r,-l),r),m=-d*d+f*(f+2*l)+c);else f=a>0?-r:r,d=Math.max(0,-(a*f+o)),m=-d*d+f*(f+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,d),s&&s.copy(Ua).addScaledVector(ks,f),m}intersectSphere(t,e){gn.subVectors(t.center,this.origin);let n=gn.dot(this.direction),s=gn.dot(gn)-n*n,r=t.radius*t.radius;if(s>r)return null;let a=Math.sqrt(r-s),o=n-a,l=n+a;return l<0?null:o<0?this.at(l,e):this.at(o,e)}intersectsSphere(t){return t.radius<0?!1:this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){let e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){let n=this.distanceToPlane(t);return n===null?null:this.at(n,e)}intersectsPlane(t){let e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,s,r,a,o,l,c=1/this.direction.x,h=1/this.direction.y,d=1/this.direction.z,f=this.origin;return c>=0?(n=(t.min.x-f.x)*c,s=(t.max.x-f.x)*c):(n=(t.max.x-f.x)*c,s=(t.min.x-f.x)*c),h>=0?(r=(t.min.y-f.y)*h,a=(t.max.y-f.y)*h):(r=(t.max.y-f.y)*h,a=(t.min.y-f.y)*h),n>a||r>s||((r>n||isNaN(n))&&(n=r),(a=0?(o=(t.min.z-f.z)*d,l=(t.max.z-f.z)*d):(o=(t.max.z-f.z)*d,l=(t.min.z-f.z)*d),n>l||o>s)||((o>n||n!==n)&&(n=o),(l=0?n:s,e)}intersectsBox(t){return this.intersectBox(t,gn)!==null}intersectTriangle(t,e,n,s,r){Na.subVectors(e,t),Vs.subVectors(n,t),Fa.crossVectors(Na,Vs);let a=this.direction.dot(Fa),o;if(a>0){if(s)return null;o=1}else if(a<0)o=-1,a=-a;else return null;In.subVectors(this.origin,t);let l=o*this.direction.dot(Vs.crossVectors(In,Vs));if(l<0)return null;let c=o*this.direction.dot(Na.cross(In));if(c<0||l+c>a)return null;let h=-o*In.dot(Fa);return h<0?null:this.at(h/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},ue=class i{constructor(t,e,n,s,r,a,o,l,c,h,d,f,m,_,M,p){i.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,n,s,r,a,o,l,c,h,d,f,m,_,M,p)}set(t,e,n,s,r,a,o,l,c,h,d,f,m,_,M,p){let u=this.elements;return u[0]=t,u[4]=e,u[8]=n,u[12]=s,u[1]=r,u[5]=a,u[9]=o,u[13]=l,u[2]=c,u[6]=h,u[10]=d,u[14]=f,u[3]=m,u[7]=_,u[11]=M,u[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new i().fromArray(this.elements)}copy(t){let e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){let e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){let e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){let e=this.elements,n=t.elements,s=1/xi.setFromMatrixColumn(t,0).length(),r=1/xi.setFromMatrixColumn(t,1).length(),a=1/xi.setFromMatrixColumn(t,2).length();return e[0]=n[0]*s,e[1]=n[1]*s,e[2]=n[2]*s,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*a,e[9]=n[9]*a,e[10]=n[10]*a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){let e=this.elements,n=t.x,s=t.y,r=t.z,a=Math.cos(n),o=Math.sin(n),l=Math.cos(s),c=Math.sin(s),h=Math.cos(r),d=Math.sin(r);if(t.order==="XYZ"){let f=a*h,m=a*d,_=o*h,M=o*d;e[0]=l*h,e[4]=-l*d,e[8]=c,e[1]=m+_*c,e[5]=f-M*c,e[9]=-o*l,e[2]=M-f*c,e[6]=_+m*c,e[10]=a*l}else if(t.order==="YXZ"){let f=l*h,m=l*d,_=c*h,M=c*d;e[0]=f+M*o,e[4]=_*o-m,e[8]=a*c,e[1]=a*d,e[5]=a*h,e[9]=-o,e[2]=m*o-_,e[6]=M+f*o,e[10]=a*l}else if(t.order==="ZXY"){let f=l*h,m=l*d,_=c*h,M=c*d;e[0]=f-M*o,e[4]=-a*d,e[8]=_+m*o,e[1]=m+_*o,e[5]=a*h,e[9]=M-f*o,e[2]=-a*c,e[6]=o,e[10]=a*l}else if(t.order==="ZYX"){let f=a*h,m=a*d,_=o*h,M=o*d;e[0]=l*h,e[4]=_*c-m,e[8]=f*c+M,e[1]=l*d,e[5]=M*c+f,e[9]=m*c-_,e[2]=-c,e[6]=o*l,e[10]=a*l}else if(t.order==="YZX"){let f=a*l,m=a*c,_=o*l,M=o*c;e[0]=l*h,e[4]=M-f*d,e[8]=_*d+m,e[1]=d,e[5]=a*h,e[9]=-o*h,e[2]=-c*h,e[6]=m*d+_,e[10]=f-M*d}else if(t.order==="XZY"){let f=a*l,m=a*c,_=o*l,M=o*c;e[0]=l*h,e[4]=-d,e[8]=c*h,e[1]=f*d+M,e[5]=a*h,e[9]=m*d-_,e[2]=_*d-m,e[6]=o*h,e[10]=M*d+f}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Uh,t,Nh)}lookAt(t,e,n){let s=this.elements;return Fe.subVectors(t,e),Fe.lengthSq()===0&&(Fe.z=1),Fe.normalize(),Pn.crossVectors(n,Fe),Pn.lengthSq()===0&&(Math.abs(n.z)===1?Fe.x+=1e-4:Fe.z+=1e-4,Fe.normalize(),Pn.crossVectors(n,Fe)),Pn.normalize(),Hs.crossVectors(Fe,Pn),s[0]=Pn.x,s[4]=Hs.x,s[8]=Fe.x,s[1]=Pn.y,s[5]=Hs.y,s[9]=Fe.y,s[2]=Pn.z,s[6]=Hs.z,s[10]=Fe.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){let n=t.elements,s=e.elements,r=this.elements,a=n[0],o=n[4],l=n[8],c=n[12],h=n[1],d=n[5],f=n[9],m=n[13],_=n[2],M=n[6],p=n[10],u=n[14],T=n[3],E=n[7],S=n[11],C=n[15],A=s[0],P=s[4],U=s[8],v=s[12],y=s[1],R=s[5],F=s[9],k=s[13],H=s[2],q=s[6],W=s[10],et=s[14],V=s[3],at=s[7],ht=s[11],bt=s[15];return r[0]=a*A+o*y+l*H+c*V,r[4]=a*P+o*R+l*q+c*at,r[8]=a*U+o*F+l*W+c*ht,r[12]=a*v+o*k+l*et+c*bt,r[1]=h*A+d*y+f*H+m*V,r[5]=h*P+d*R+f*q+m*at,r[9]=h*U+d*F+f*W+m*ht,r[13]=h*v+d*k+f*et+m*bt,r[2]=_*A+M*y+p*H+u*V,r[6]=_*P+M*R+p*q+u*at,r[10]=_*U+M*F+p*W+u*ht,r[14]=_*v+M*k+p*et+u*bt,r[3]=T*A+E*y+S*H+C*V,r[7]=T*P+E*R+S*q+C*at,r[11]=T*U+E*F+S*W+C*ht,r[15]=T*v+E*k+S*et+C*bt,this}multiplyScalar(t){let e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){let t=this.elements,e=t[0],n=t[4],s=t[8],r=t[12],a=t[1],o=t[5],l=t[9],c=t[13],h=t[2],d=t[6],f=t[10],m=t[14],_=t[3],M=t[7],p=t[11],u=t[15];return _*(+r*l*d-s*c*d-r*o*f+n*c*f+s*o*m-n*l*m)+M*(+e*l*m-e*c*f+r*a*f-s*a*m+s*c*h-r*l*h)+p*(+e*c*d-e*o*m-r*a*d+n*a*m+r*o*h-n*c*h)+u*(-s*o*h-e*l*d+e*o*f+s*a*d-n*a*f+n*l*h)}transpose(){let t=this.elements,e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){let s=this.elements;return t.isVector3?(s[12]=t.x,s[13]=t.y,s[14]=t.z):(s[12]=t,s[13]=e,s[14]=n),this}invert(){let t=this.elements,e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8],d=t[9],f=t[10],m=t[11],_=t[12],M=t[13],p=t[14],u=t[15],T=d*p*c-M*f*c+M*l*m-o*p*m-d*l*u+o*f*u,E=_*f*c-h*p*c-_*l*m+a*p*m+h*l*u-a*f*u,S=h*M*c-_*d*c+_*o*m-a*M*m-h*o*u+a*d*u,C=_*d*l-h*M*l-_*o*f+a*M*f+h*o*p-a*d*p,A=e*T+n*E+s*S+r*C;if(A===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let P=1/A;return t[0]=T*P,t[1]=(M*f*r-d*p*r-M*s*m+n*p*m+d*s*u-n*f*u)*P,t[2]=(o*p*r-M*l*r+M*s*c-n*p*c-o*s*u+n*l*u)*P,t[3]=(d*l*r-o*f*r-d*s*c+n*f*c+o*s*m-n*l*m)*P,t[4]=E*P,t[5]=(h*p*r-_*f*r+_*s*m-e*p*m-h*s*u+e*f*u)*P,t[6]=(_*l*r-a*p*r-_*s*c+e*p*c+a*s*u-e*l*u)*P,t[7]=(a*f*r-h*l*r+h*s*c-e*f*c-a*s*m+e*l*m)*P,t[8]=S*P,t[9]=(_*d*r-h*M*r-_*n*m+e*M*m+h*n*u-e*d*u)*P,t[10]=(a*M*r-_*o*r+_*n*c-e*M*c-a*n*u+e*o*u)*P,t[11]=(h*o*r-a*d*r-h*n*c+e*d*c+a*n*m-e*o*m)*P,t[12]=C*P,t[13]=(h*M*s-_*d*s+_*n*f-e*M*f-h*n*p+e*d*p)*P,t[14]=(_*o*s-a*M*s-_*n*l+e*M*l+a*n*p-e*o*p)*P,t[15]=(a*d*s-h*o*s+h*n*l-e*d*l-a*n*f+e*o*f)*P,this}scale(t){let e=this.elements,n=t.x,s=t.y,r=t.z;return e[0]*=n,e[4]*=s,e[8]*=r,e[1]*=n,e[5]*=s,e[9]*=r,e[2]*=n,e[6]*=s,e[10]*=r,e[3]*=n,e[7]*=s,e[11]*=r,this}getMaxScaleOnAxis(){let t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],s=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,s))}makeTranslation(t,e,n){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){let e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){let e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){let n=Math.cos(e),s=Math.sin(e),r=1-n,a=t.x,o=t.y,l=t.z,c=r*a,h=r*o;return this.set(c*a+n,c*o-s*l,c*l+s*o,0,c*o+s*l,h*o+n,h*l-s*a,0,c*l-s*o,h*l+s*a,r*l*l+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,s,r,a){return this.set(1,n,r,0,t,1,a,0,e,s,1,0,0,0,0,1),this}compose(t,e,n){let s=this.elements,r=e._x,a=e._y,o=e._z,l=e._w,c=r+r,h=a+a,d=o+o,f=r*c,m=r*h,_=r*d,M=a*h,p=a*d,u=o*d,T=l*c,E=l*h,S=l*d,C=n.x,A=n.y,P=n.z;return s[0]=(1-(M+u))*C,s[1]=(m+S)*C,s[2]=(_-E)*C,s[3]=0,s[4]=(m-S)*A,s[5]=(1-(f+u))*A,s[6]=(p+T)*A,s[7]=0,s[8]=(_+E)*P,s[9]=(p-T)*P,s[10]=(1-(f+M))*P,s[11]=0,s[12]=t.x,s[13]=t.y,s[14]=t.z,s[15]=1,this}decompose(t,e,n){let s=this.elements,r=xi.set(s[0],s[1],s[2]).length(),a=xi.set(s[4],s[5],s[6]).length(),o=xi.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),t.x=s[12],t.y=s[13],t.z=s[14],je.copy(this);let c=1/r,h=1/a,d=1/o;return je.elements[0]*=c,je.elements[1]*=c,je.elements[2]*=c,je.elements[4]*=h,je.elements[5]*=h,je.elements[6]*=h,je.elements[8]*=d,je.elements[9]*=d,je.elements[10]*=d,e.setFromRotationMatrix(je),n.x=r,n.y=a,n.z=o,this}makePerspective(t,e,n,s,r,a,o=tn,l=!1){let c=this.elements,h=2*r/(e-t),d=2*r/(n-s),f=(e+t)/(e-t),m=(n+s)/(n-s),_,M;if(l)_=r/(a-r),M=a*r/(a-r);else if(o===tn)_=-(a+r)/(a-r),M=-2*a*r/(a-r);else if(o===as)_=-a/(a-r),M=-a*r/(a-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return c[0]=h,c[4]=0,c[8]=f,c[12]=0,c[1]=0,c[5]=d,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=_,c[14]=M,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,n,s,r,a,o=tn,l=!1){let c=this.elements,h=2/(e-t),d=2/(n-s),f=-(e+t)/(e-t),m=-(n+s)/(n-s),_,M;if(l)_=1/(a-r),M=a/(a-r);else if(o===tn)_=-2/(a-r),M=-(a+r)/(a-r);else if(o===as)_=-1/(a-r),M=-r/(a-r);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return c[0]=h,c[4]=0,c[8]=0,c[12]=f,c[1]=0,c[5]=d,c[9]=0,c[13]=m,c[2]=0,c[6]=0,c[10]=_,c[14]=M,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(t){let e=this.elements,n=t.elements;for(let s=0;s<16;s++)if(e[s]!==n[s])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){let n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}},xi=new N,je=new ue,Uh=new N(0,0,0),Nh=new N(1,1,1),Pn=new N,Hs=new N,Fe=new N,dl=new ue,fl=new qe,nn=class i{constructor(t=0,e=0,n=0,s=i.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=s}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,s=this._order){return this._x=t,this._y=e,this._z=n,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){let s=t.elements,r=s[0],a=s[4],o=s[8],l=s[1],c=s[5],h=s[9],d=s[2],f=s[6],m=s[10];switch(e){case"XYZ":this._y=Math.asin(Bt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-h,m),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(f,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Bt(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(o,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-d,r),this._z=0);break;case"ZXY":this._x=Math.asin(Bt(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-d,m),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Bt(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(f,m),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(Bt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-d,r)):(this._x=0,this._y=Math.atan2(o,m));break;case"XZY":this._z=Math.asin(-Bt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(f,c),this._y=Math.atan2(o,r)):(this._x=Math.atan2(-h,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,n===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return dl.makeRotationFromQuaternion(t),this.setFromRotationMatrix(dl,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return fl.setFromEuler(this),this.setFromQuaternion(fl,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};nn.DEFAULT_ORDER="XYZ";var cs=class{constructor(){this.mask=1}set(t){this.mask=(1<>>0}enable(t){this.mask|=1<1){for(let e=0;e1){for(let n=0;n0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.geometryInfo=this._geometryInfo.map(o=>({...o,boundingBox:o.boundingBox?o.boundingBox.toJSON():void 0,boundingSphere:o.boundingSphere?o.boundingSphere.toJSON():void 0})),s.instanceInfo=this._instanceInfo.map(o=>({...o})),s.availableInstanceIds=this._availableInstanceIds.slice(),s.availableGeometryIds=this._availableGeometryIds.slice(),s.nextIndexStart=this._nextIndexStart,s.nextVertexStart=this._nextVertexStart,s.geometryCount=this._geometryCount,s.maxInstanceCount=this._maxInstanceCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.matricesTexture=this._matricesTexture.toJSON(t),s.indirectTexture=this._indirectTexture.toJSON(t),this._colorsTexture!==null&&(s.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(s.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(s.boundingBox=this.boundingBox.toJSON()));function r(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(t)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(t.geometries,this.geometry);let o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){let l=o.shapes;if(Array.isArray(l))for(let c=0,h=l.length;c0){s.children=[];for(let o=0;o0){s.animations=[];for(let o=0;o0&&(n.geometries=o),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),h.length>0&&(n.images=h),d.length>0&&(n.shapes=d),f.length>0&&(n.skeletons=f),m.length>0&&(n.animations=m),_.length>0&&(n.nodes=_)}return n.object=s,n;function a(o){let l=[];for(let c in o){let h=o[c];delete h.metadata,l.push(h)}return l}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let n=0;n0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(t,e,n,s,r){Qe.subVectors(s,e),xn.subVectors(n,e),Ba.subVectors(t,e);let a=Qe.dot(Qe),o=Qe.dot(xn),l=Qe.dot(Ba),c=xn.dot(xn),h=xn.dot(Ba),d=a*c-o*o;if(d===0)return r.set(0,0,0),null;let f=1/d,m=(c*l-o*h)*f,_=(a*h-o*l)*f;return r.set(1-m-_,_,m)}static containsPoint(t,e,n,s){return this.getBarycoord(t,e,n,s,yn)===null?!1:yn.x>=0&&yn.y>=0&&yn.x+yn.y<=1}static getInterpolation(t,e,n,s,r,a,o,l){return this.getBarycoord(t,e,n,s,yn)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,yn.x),l.addScaledVector(a,yn.y),l.addScaledVector(o,yn.z),l)}static getInterpolatedAttribute(t,e,n,s,r,a){return Ha.setScalar(0),Ga.setScalar(0),Wa.setScalar(0),Ha.fromBufferAttribute(t,e),Ga.fromBufferAttribute(t,n),Wa.fromBufferAttribute(t,s),a.setScalar(0),a.addScaledVector(Ha,r.x),a.addScaledVector(Ga,r.y),a.addScaledVector(Wa,r.z),a}static isFrontFacing(t,e,n,s){return Qe.subVectors(n,e),xn.subVectors(t,e),Qe.cross(xn).dot(s)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,s){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[s]),this}setFromAttributeAndIndices(t,e,n,s){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,s),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Qe.subVectors(this.c,this.b),xn.subVectors(this.a,this.b),Qe.cross(xn).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return i.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return i.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,n,s,r){return i.getInterpolation(t,this.a,this.b,this.c,e,n,s,r)}containsPoint(t){return i.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return i.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){let n=this.a,s=this.b,r=this.c,a,o;Mi.subVectors(s,n),Si.subVectors(r,n),za.subVectors(t,n);let l=Mi.dot(za),c=Si.dot(za);if(l<=0&&c<=0)return e.copy(n);ka.subVectors(t,s);let h=Mi.dot(ka),d=Si.dot(ka);if(h>=0&&d<=h)return e.copy(s);let f=l*d-h*c;if(f<=0&&l>=0&&h<=0)return a=l/(l-h),e.copy(n).addScaledVector(Mi,a);Va.subVectors(t,r);let m=Mi.dot(Va),_=Si.dot(Va);if(_>=0&&m<=_)return e.copy(r);let M=m*c-l*_;if(M<=0&&c>=0&&_<=0)return o=c/(c-_),e.copy(n).addScaledVector(Si,o);let p=h*_-m*d;if(p<=0&&d-h>=0&&m-_>=0)return yl.subVectors(r,s),o=(d-h)/(d-h+(m-_)),e.copy(s).addScaledVector(yl,o);let u=1/(p+M+f);return a=M*u,o=f*u,e.copy(n).addScaledVector(Mi,a).addScaledVector(Si,o)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},pc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Dn={h:0,s:0,l:0},Ws={h:0,s:0,l:0};function Xa(i,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?i+(t-i)*6*e:e<1/2?t:e<2/3?i+(t-i)*6*(2/3-e):i}var zt=class{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,n)}set(t,e,n){if(e===void 0&&n===void 0){let s=t;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(t,e,n);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=Re){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Gt.colorSpaceToWorking(this,e),this}setRGB(t,e,n,s=Gt.workingColorSpace){return this.r=t,this.g=e,this.b=n,Gt.colorSpaceToWorking(this,s),this}setHSL(t,e,n,s=Gt.workingColorSpace){if(t=bo(t,1),e=Bt(e,0,1),n=Bt(n,0,1),e===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+e):n+e-n*e,a=2*n-r;this.r=Xa(a,r,t+1/3),this.g=Xa(a,r,t),this.b=Xa(a,r,t-1/3)}return Gt.colorSpaceToWorking(this,s),this}setStyle(t,e=Re){function n(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(t)){let r,a=s[1],o=s[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,e);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,e);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(t)){let r=s[1],a=r.length;if(a===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,e);if(a===6)return this.setHex(parseInt(r,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=Re){let n=pc[t.toLowerCase()];return n!==void 0?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Mn(t.r),this.g=Mn(t.g),this.b=Mn(t.b),this}copyLinearToSRGB(t){return this.r=Ai(t.r),this.g=Ai(t.g),this.b=Ai(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Re){return Gt.workingToColorSpace(Me.copy(this),t),Math.round(Bt(Me.r*255,0,255))*65536+Math.round(Bt(Me.g*255,0,255))*256+Math.round(Bt(Me.b*255,0,255))}getHexString(t=Re){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Gt.workingColorSpace){Gt.workingToColorSpace(Me.copy(this),e);let n=Me.r,s=Me.g,r=Me.b,a=Math.max(n,s,r),o=Math.min(n,s,r),l,c,h=(o+a)/2;if(o===a)l=0,c=0;else{let d=a-o;switch(c=h<=.5?d/(a+o):d/(2-a-o),a){case n:l=(s-r)/d+(s0!=t>0&&this.version++,this._alphaTest=t}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(let e in t){let n=t[e];if(n===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}let s=this[e];if(s===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(n):s&&s.isVector3&&n&&n.isVector3?s.copy(n):this[e]=n}}toJSON(t){let e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});let n={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(t).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(t).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==ti&&(n.blending=this.blending),this.side!==Sn&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==nr&&(n.blendSrc=this.blendSrc),this.blendDst!==ir&&(n.blendDst=this.blendDst),this.blendEquation!==Fn&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==ei&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Qa&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Qn&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Qn&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Qn&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function s(r){let a=[];for(let o in r){let l=r[o];delete l.metadata,a.push(l)}return a}if(e){let r=s(t.textures),a=s(t.images);r.length>0&&(n.textures=r),a.length>0&&(n.images=a)}return n}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;let e=t.clippingPlanes,n=null;if(e!==null){let s=e.length;n=new Array(s);for(let r=0;r!==s;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}},hs=class extends Bn{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new zt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new nn,this.combine=co,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}};var de=new N,Xs=new Pt,Vh=0,be=class{constructor(t,e,n=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Vh++}),this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=n,this.usage=to,this.updateRanges=[],this.gpuType=hn,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let s=0,r=this.itemSize;se.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),e.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new On);let t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new N(-1/0,-1/0,-1/0),new N(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,s=e.length;n0&&(t.userData=this.userData),this.parameters!==void 0){let l=this.parameters;for(let c in l)l[c]!==void 0&&(t[c]=l[c]);return t}t.data={attributes:{}};let e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});let n=this.attributes;for(let l in n){let c=n[l];t.data.attributes[l]=c.toJSON(t.data)}let s={},r=!1;for(let l in this.morphAttributes){let c=this.morphAttributes[l],h=[];for(let d=0,f=c.length;d0&&(s[l]=h,r=!0)}r&&(t.data.morphAttributes=s,t.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(t.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(t.data.boundingSphere=o.toJSON()),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let e={};this.name=t.name;let n=t.index;n!==null&&this.setIndex(n.clone());let s=t.attributes;for(let c in s){let h=s[c];this.setAttribute(c,h.clone(e))}let r=t.morphAttributes;for(let c in r){let h=[],d=r[c];for(let f=0,m=d.length;f0){let s=e[n[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,a=s.length;r(t.far-t.near)**2))&&(vl.copy(r).invert(),Kn.copy(t.ray).applyMatrix4(vl),!(n.boundingBox!==null&&Kn.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(t,e,Kn)))}_computeIntersections(t,e,n){let s,r=this.geometry,a=this.material,o=r.index,l=r.attributes.position,c=r.attributes.uv,h=r.attributes.uv1,d=r.attributes.normal,f=r.groups,m=r.drawRange;if(o!==null)if(Array.isArray(a))for(let _=0,M=f.length;_e.far?null:{distance:c,point:Ks.clone(),object:i}}function js(i,t,e,n,s,r,a,o,l,c){i.getVertexPosition(o,Ys),i.getVertexPosition(l,Zs),i.getVertexPosition(c,Js);let h=Gh(i,t,e,n,Ys,Zs,Js,Sl);if(h){let d=new N;Un.getBarycoord(Sl,Ys,Zs,Js,d),s&&(h.uv=Un.getInterpolatedAttribute(s,o,l,c,d,new Pt)),r&&(h.uv1=Un.getInterpolatedAttribute(r,o,l,c,d,new Pt)),a&&(h.normal=Un.getInterpolatedAttribute(a,o,l,c,d,new N),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));let f={a:o,b:l,c,normal:new N,materialIndex:0};Un.getNormal(Ys,Zs,Js,f.normal),h.face=f,h.barycoord=d}return h}var zn=class i extends ze{constructor(t=1,e=1,n=1,s=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:s,heightSegments:r,depthSegments:a};let o=this;s=Math.floor(s),r=Math.floor(r),a=Math.floor(a);let l=[],c=[],h=[],d=[],f=0,m=0;_("z","y","x",-1,-1,n,e,t,a,r,0),_("z","y","x",1,-1,n,e,-t,a,r,1),_("x","z","y",1,1,t,n,e,s,a,2),_("x","z","y",1,-1,t,n,-e,s,a,3),_("x","y","z",1,-1,t,e,n,s,r,4),_("x","y","z",-1,-1,t,e,-n,s,r,5),this.setIndex(l),this.setAttribute("position",new fe(c,3)),this.setAttribute("normal",new fe(h,3)),this.setAttribute("uv",new fe(d,2));function _(M,p,u,T,E,S,C,A,P,U,v){let y=S/P,R=C/U,F=S/2,k=C/2,H=A/2,q=P+1,W=U+1,et=0,V=0,at=new N;for(let ht=0;ht0?1:-1,h.push(at.x,at.y,at.z),d.push(kt/P),d.push(1-ht/U),et+=1}}for(let ht=0;ht0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e.lights=this.lights,e.clipping=this.clipping;let n={};for(let s in this.extensions)this.extensions[s]===!0&&(n[s]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}},fs=class extends Ee{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new ue,this.projectionMatrix=new ue,this.projectionMatrixInverse=new ue,this.coordinateSystem=tn,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}},Ln=new N,bl=new Pt,El=new Pt,Se=class extends fs{constructor(t=50,e=1,n=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=s,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){let e=.5*this.getFilmHeight()/t;this.fov=Ri*2*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){let t=Math.tan(ns*.5*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return Ri*2*Math.atan(Math.tan(ns*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,e,n){Ln.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),e.set(Ln.x,Ln.y).multiplyScalar(-t/Ln.z),Ln.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Ln.x,Ln.y).multiplyScalar(-t/Ln.z)}getViewSize(t,e){return this.getViewBounds(t,bl,El),e.subVectors(El,bl)}setViewOffset(t,e,n,s,r,a){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=s,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let t=this.near,e=t*Math.tan(ns*.5*this.fov)/this.zoom,n=2*e,s=this.aspect*n,r=-.5*s,a=this.view;if(this.view!==null&&this.view.enabled){let l=a.fullWidth,c=a.fullHeight;r+=a.offsetX*s/l,e-=a.offsetY*n/c,s*=a.width/l,n*=a.height/c}let o=this.filmOffset;o!==0&&(r+=t*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,e,e-n,t,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){let e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,this.view!==null&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}},Ei=-90,Ti=1,hr=class extends Ee{constructor(t,e,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let s=new Se(Ei,Ti,t,e);s.layers=this.layers,this.add(s);let r=new Se(Ei,Ti,t,e);r.layers=this.layers,this.add(r);let a=new Se(Ei,Ti,t,e);a.layers=this.layers,this.add(a);let o=new Se(Ei,Ti,t,e);o.layers=this.layers,this.add(o);let l=new Se(Ei,Ti,t,e);l.layers=this.layers,this.add(l);let c=new Se(Ei,Ti,t,e);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let t=this.coordinateSystem,e=this.children.concat(),[n,s,r,a,o,l]=e;for(let c of e)this.remove(c);if(t===tn)n.up.set(0,1,0),n.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(t===as)n.up.set(0,-1,0),n.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+t);for(let c of e)this.add(c),c.updateMatrixWorld()}update(t,e){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:s}=this;this.coordinateSystem!==t.coordinateSystem&&(this.coordinateSystem=t.coordinateSystem,this.updateCoordinateSystem());let[r,a,o,l,c,h]=this.children,d=t.getRenderTarget(),f=t.getActiveCubeFace(),m=t.getActiveMipmapLevel(),_=t.xr.enabled;t.xr.enabled=!1;let M=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0,s),t.render(e,r),t.setRenderTarget(n,1,s),t.render(e,a),t.setRenderTarget(n,2,s),t.render(e,o),t.setRenderTarget(n,3,s),t.render(e,l),t.setRenderTarget(n,4,s),t.render(e,c),n.texture.generateMipmaps=M,t.setRenderTarget(n,5,s),t.render(e,h),t.setRenderTarget(d,f,m),t.xr.enabled=_,n.texture.needsPMREMUpdate=!0}},ps=class extends Be{constructor(t=[],e=si,n,s,r,a,o,l,c,h){super(t,e,n,s,r,a,o,l,c,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}},ur=class extends ln{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;let n={width:t,height:t,depth:1},s=[n,n,n,n,n,n];this.texture=new ps(s),this._setTextureOptions(e),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.colorSpace=e.colorSpace,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},s=new zn(5,5,5),r=new sn({name:"CubemapFromEquirect",uniforms:ai(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:Ie,blending:En});r.uniforms.tEquirect.value=e;let a=new De(s,r),o=e.minFilter;return e.minFilter===Wn&&(e.minFilter=en),new hr(1,10,this).update(t,a),e.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(t,e=!0,n=!0,s=!0){let r=t.getRenderTarget();for(let a=0;a<6;a++)t.setRenderTarget(this,a),t.clear(e,n,s);t.setRenderTarget(r)}},vn=class extends Ee{constructor(){super(),this.isGroup=!0,this.type="Group"}},Yh={type:"move"},Ui=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new vn,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new vn,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new N,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new N),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new vn,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new N,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new N),this._grip}dispatchEvent(t){return this._targetRay!==null&&this._targetRay.dispatchEvent(t),this._grip!==null&&this._grip.dispatchEvent(t),this._hand!==null&&this._hand.dispatchEvent(t),this}connect(t){if(t&&t.hand){let e=this._hand;if(e)for(let n of t.hand.values())this._getHandJoint(e,n)}return this.dispatchEvent({type:"connected",data:t}),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(t,e,n){let s=null,r=null,a=null,o=this._targetRay,l=this._grip,c=this._hand;if(t&&e.session.visibilityState!=="visible-blurred"){if(c&&t.hand){a=!0;for(let M of t.hand.values()){let p=e.getJointPose(M,n),u=this._getHandJoint(c,M);p!==null&&(u.matrix.fromArray(p.transform.matrix),u.matrix.decompose(u.position,u.rotation,u.scale),u.matrixWorldNeedsUpdate=!0,u.jointRadius=p.radius),u.visible=p!==null}let h=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],f=h.position.distanceTo(d.position),m=.02,_=.005;c.inputState.pinching&&f>m+_?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!c.inputState.pinching&&f<=m-_&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else l!==null&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));o!==null&&(s=e.getPose(t.targetRaySpace,n),s===null&&r!==null&&(s=r),s!==null&&(o.matrix.fromArray(s.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,s.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(s.linearVelocity)):o.hasLinearVelocity=!1,s.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(s.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Yh)))}return o!==null&&(o.visible=s!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(t,e){if(t.joints[e.jointName]===void 0){let n=new vn;n.matrixAutoUpdate=!1,n.visible=!1,t.joints[e.jointName]=n,t.add(n)}return t.joints[e.jointName]}};var ms=class extends Ee{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new nn,this.environmentIntensity=1,this.environmentRotation=new nn,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,this.backgroundRotation.copy(t.backgroundRotation),this.environmentIntensity=t.environmentIntensity,this.environmentRotation.copy(t.environmentRotation),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){let e=super.toJSON(t);return this.fog!==null&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(e.object.backgroundIntensity=this.backgroundIntensity),e.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(e.object.environmentIntensity=this.environmentIntensity),e.object.environmentRotation=this.environmentRotation.toArray(),e}};var Za=new N,Zh=new N,Jh=new Ut,We=class{constructor(t=new N(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,s){return this.normal.set(t,e,n),this.constant=s,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){let s=Za.subVectors(n,e).cross(Zh.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(s,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){let t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){let n=t.delta(Za),s=this.normal.dot(n);if(s===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):null;let r=-(t.start.dot(this.normal)+this.constant)/s;return r<0||r>1?null:e.copy(t.start).addScaledVector(n,r)}intersectsLine(t){let e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){let n=e||Jh.getNormalMatrix(t),s=this.coplanarPoint(Za).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-s.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}},jn=new Di,$h=new Pt(.5,.5),Qs=new N,Ni=class{constructor(t=new We,e=new We,n=new We,s=new We,r=new We,a=new We){this.planes=[t,e,n,s,r,a]}set(t,e,n,s,r,a){let o=this.planes;return o[0].copy(t),o[1].copy(e),o[2].copy(n),o[3].copy(s),o[4].copy(r),o[5].copy(a),this}copy(t){let e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t,e=tn,n=!1){let s=this.planes,r=t.elements,a=r[0],o=r[1],l=r[2],c=r[3],h=r[4],d=r[5],f=r[6],m=r[7],_=r[8],M=r[9],p=r[10],u=r[11],T=r[12],E=r[13],S=r[14],C=r[15];if(s[0].setComponents(c-a,m-h,u-_,C-T).normalize(),s[1].setComponents(c+a,m+h,u+_,C+T).normalize(),s[2].setComponents(c+o,m+d,u+M,C+E).normalize(),s[3].setComponents(c-o,m-d,u-M,C-E).normalize(),n)s[4].setComponents(l,f,p,S).normalize(),s[5].setComponents(c-l,m-f,u-p,C-S).normalize();else if(s[4].setComponents(c-l,m-f,u-p,C-S).normalize(),e===tn)s[5].setComponents(c+l,m+f,u+p,C+S).normalize();else if(e===as)s[5].setComponents(l,f,p,S).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);return this}intersectsObject(t){if(t.boundingSphere!==void 0)t.boundingSphere===null&&t.computeBoundingSphere(),jn.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{let e=t.geometry;e.boundingSphere===null&&e.computeBoundingSphere(),jn.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(jn)}intersectsSprite(t){jn.center.set(0,0,0);let e=$h.distanceTo(t.center);return jn.radius=.7071067811865476+e,jn.applyMatrix4(t.matrixWorld),this.intersectsSphere(jn)}intersectsSphere(t){let e=this.planes,n=t.center,s=-t.radius;for(let r=0;r<6;r++)if(e[r].distanceToPoint(n)0?t.max.x:t.min.x,Qs.y=s.normal.y>0?t.max.y:t.min.y,Qs.z=s.normal.z>0?t.max.z:t.min.z,s.distanceToPoint(Qs)<0)return!1}return!0}containsPoint(t){let e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};var gs=class extends Be{constructor(t,e,n=Xn,s,r,a,o=Xe,l=Xe,c,h=Ci,d=1){if(h!==Ci&&h!==Gi)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");let f={width:t,height:e,depth:d};super(f,s,r,a,o,l,h,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(t){return super.copy(t),this.source=new Pi(Object.assign({},t.image)),this.compareFunction=t.compareFunction,this}toJSON(t){let e=super.toJSON(t);return this.compareFunction!==null&&(e.compareFunction=this.compareFunction),e}},_s=class extends Be{constructor(t=null){super(),this.sourceTexture=t,this.isExternalTexture=!0}copy(t){return super.copy(t),this.sourceTexture=t.sourceTexture,this}},xs=class i extends ze{constructor(t=1,e=1,n=4,s=8,r=1){super(),this.type="CapsuleGeometry",this.parameters={radius:t,height:e,capSegments:n,radialSegments:s,heightSegments:r},e=Math.max(0,e),n=Math.max(1,Math.floor(n)),s=Math.max(3,Math.floor(s)),r=Math.max(1,Math.floor(r));let a=[],o=[],l=[],c=[],h=e/2,d=Math.PI/2*t,f=e,m=2*d+f,_=n*2+r,M=s+1,p=new N,u=new N;for(let T=0;T<=_;T++){let E=0,S=0,C=0,A=0;if(T<=n){let v=T/n,y=v*Math.PI/2;S=-h-t*Math.cos(y),C=t*Math.sin(y),A=-t*Math.cos(y),E=v*d}else if(T<=n+r){let v=(T-n)/r;S=-h+v*e,C=t,A=0,E=d+v*f}else{let v=(T-n-r)/n,y=v*Math.PI/2;S=h+t*Math.sin(y),C=t*Math.cos(y),A=t*Math.sin(y),E=d+f+v*d}let P=Math.max(0,Math.min(1,E/m)),U=0;T===0?U=.5/s:T===_&&(U=-.5/s);for(let v=0;v<=s;v++){let y=v/s,R=y*Math.PI*2,F=Math.sin(R),k=Math.cos(R);u.x=-C*k,u.y=S,u.z=C*F,o.push(u.x,u.y,u.z),p.set(-C*k,A,C*F),p.normalize(),l.push(p.x,p.y,p.z),c.push(y+U,P)}if(T>0){let v=(T-1)*M;for(let y=0;y0&&E(!0),e>0&&E(!1)),this.setIndex(h),this.setAttribute("position",new fe(d,3)),this.setAttribute("normal",new fe(f,3)),this.setAttribute("uv",new fe(m,2));function T(){let S=new N,C=new N,A=0,P=(e-t)/n;for(let U=0;U<=r;U++){let v=[],y=U/r,R=y*(e-t)+t;for(let F=0;F<=s;F++){let k=F/s,H=k*l+o,q=Math.sin(H),W=Math.cos(H);C.x=R*q,C.y=-y*n+p,C.z=R*W,d.push(C.x,C.y,C.z),S.set(q,P,W).normalize(),f.push(S.x,S.y,S.z),m.push(k,1-y),v.push(_++)}M.push(v)}for(let U=0;U0||v!==0)&&(h.push(y,R,k),A+=3),(e>0||v!==r-1)&&(h.push(R,F,k),A+=3)}c.addGroup(u,A,0),u+=A}function E(S){let C=_,A=new Pt,P=new N,U=0,v=S===!0?t:e,y=S===!0?1:-1;for(let F=1;F<=s;F++)d.push(0,p*y,0),f.push(0,y,0),m.push(.5,.5),_++;let R=_;for(let F=0;F<=s;F++){let H=F/s*l+o,q=Math.cos(H),W=Math.sin(H);P.x=v*W,P.y=p*y,P.z=v*q,d.push(P.x,P.y,P.z),f.push(0,y,0),A.x=q*.5+.5,A.y=W*.5*y+.5,m.push(A.x,A.y),_++}for(let F=0;F0)&&m.push(E,S,A),(u!==n-1||l=r)){let o=e[1];t=r)break t}a=n,n=0;break e}break n}for(;n>>1;te;)--a;if(++a,r!==0||a!==s){r>=a&&(a=Math.max(a,1),r=a-1);let o=this.getValueSize();this.times=n.slice(r,a),this.values=this.values.slice(r*o,a*o)}return this}validate(){let t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);let n=this.times,s=this.values,r=n.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let a=null;for(let o=0;o!==r;o++){let l=n[o];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,l),t=!1;break}if(a!==null&&a>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,l,a),t=!1;break}a=l}if(s!==void 0&&Kh(s))for(let o=0,l=s.length;o!==l;++o){let c=s[o];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,o,c),t=!1;break}}return t}optimize(){let t=this.times.slice(),e=this.values.slice(),n=this.getValueSize(),s=this.getInterpolation()===er,r=t.length-1,a=1;for(let o=1;o0){t[a]=t[r];for(let o=r*n,l=a*n,c=0;c!==n;++c)e[l+c]=e[o+c];++a}return a!==t.length?(this.times=t.slice(0,a),this.values=e.slice(0,a*n)):(this.times=t,this.values=e),this}clone(){let t=this.times.slice(),e=this.values.slice(),n=this.constructor,s=new n(this.name,t,e);return s.createInterpolant=this.createInterpolant,s}};ke.prototype.ValueTypeName="";ke.prototype.TimeBufferType=Float32Array;ke.prototype.ValueBufferType=Float32Array;ke.prototype.DefaultInterpolation=ar;var kn=class extends ke{constructor(t,e,n){super(t,e,n)}};kn.prototype.ValueTypeName="bool";kn.prototype.ValueBufferType=Array;kn.prototype.DefaultInterpolation=ss;kn.prototype.InterpolantFactoryMethodLinear=void 0;kn.prototype.InterpolantFactoryMethodSmooth=void 0;var _r=class extends ke{constructor(t,e,n,s){super(t,e,n,s)}};_r.prototype.ValueTypeName="color";var xr=class extends ke{constructor(t,e,n,s){super(t,e,n,s)}};xr.prototype.ValueTypeName="number";var yr=class extends ii{constructor(t,e,n,s){super(t,e,n,s)}interpolate_(t,e,n,s){let r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,l=(n-e)/(s-e),c=t*o;for(let h=c+o;c!==h;c+=4)qe.slerpFlat(r,0,a,c-o,a,c,l);return r}},vs=class extends ke{constructor(t,e,n,s){super(t,e,n,s)}InterpolantFactoryMethodLinear(t){return new yr(this.times,this.values,this.getValueSize(),t)}};vs.prototype.ValueTypeName="quaternion";vs.prototype.InterpolantFactoryMethodSmooth=void 0;var Vn=class extends ke{constructor(t,e,n){super(t,e,n)}};Vn.prototype.ValueTypeName="string";Vn.prototype.ValueBufferType=Array;Vn.prototype.DefaultInterpolation=ss;Vn.prototype.InterpolantFactoryMethodLinear=void 0;Vn.prototype.InterpolantFactoryMethodSmooth=void 0;var vr=class extends ke{constructor(t,e,n,s){super(t,e,n,s)}};vr.prototype.ValueTypeName="vector";var Mr=class{constructor(t,e,n){let s=this,r=!1,a=0,o=0,l,c=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.abortController=new AbortController,this.itemStart=function(h){o++,r===!1&&s.onStart!==void 0&&s.onStart(h,a,o),r=!0},this.itemEnd=function(h){a++,s.onProgress!==void 0&&s.onProgress(h,a,o),a===o&&(r=!1,s.onLoad!==void 0&&s.onLoad())},this.itemError=function(h){s.onError!==void 0&&s.onError(h)},this.resolveURL=function(h){return l?l(h):h},this.setURLModifier=function(h){return l=h,this},this.addHandler=function(h,d){return c.push(h,d),this},this.removeHandler=function(h){let d=c.indexOf(h);return d!==-1&&c.splice(d,2),this},this.getHandler=function(h){for(let d=0,f=c.length;dm.start-_.start);let f=0;for(let m=1;m 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,Tu=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,wu=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,Au=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,Cu=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,Ru=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,Iu=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + varying vec3 vColor; +#endif`,Pu=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif +#ifdef USE_BATCHING_COLOR + vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); + vColor.xyz *= batchingColor.xyz; +#endif`,Du=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,Lu=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,Uu=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,Nu=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,Fu=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,Ou=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE + emissiveColor = sRGBTransferEOTF( emissiveColor ); + #endif + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,Bu=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,zu="gl_FragColor = linearToOutputTexel( gl_FragColor );",ku=`vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferEOTF( in vec4 value ) { + return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +}`,Vu=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,Hu=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,Gu=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,Wu=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,Xu=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,qu=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,Yu=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,Zu=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,Ju=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,$u=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,Ku=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,ju=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,Qu=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,td=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,ed=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,nd=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,id=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,sd=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,rd=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,ad=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,od=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,ld=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,cd=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,hd=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,ud=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,dd=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,fd=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + varying float vFragDepth; + varying float vIsPerspective; +#endif`,pd=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,md=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,gd=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,_d=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,xd=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,yd=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,vd=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,Md=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,Sd=`#if defined( USE_MORPHCOLORS ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,bd=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,Ed=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } +#endif`,Td=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,wd=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,Ad=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,Cd=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,Rd=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,Id=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,Pd=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,Dd=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,Ld=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,Ud=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,Nd=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,Fd=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Od=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; +const float Inv255 = 1. / 255.; +const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); +const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); +const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); +const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); +vec4 packDepthToRGBA( const in float v ) { + if( v <= 0.0 ) + return vec4( 0., 0., 0., 0. ); + if( v >= 1.0 ) + return vec4( 1., 1., 1., 1. ); + float vuf; + float af = modf( v * PackFactors.a, vuf ); + float bf = modf( vuf * ShiftRight8, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); +} +vec3 packDepthToRGB( const in float v ) { + if( v <= 0.0 ) + return vec3( 0., 0., 0. ); + if( v >= 1.0 ) + return vec3( 1., 1., 1. ); + float vuf; + float bf = modf( v * PackFactors.b, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec3( vuf * Inv255, gf * PackUpscale, bf ); +} +vec2 packDepthToRG( const in float v ) { + if( v <= 0.0 ) + return vec2( 0., 0. ); + if( v >= 1.0 ) + return vec2( 1., 1. ); + float vuf; + float gf = modf( v * 256., vuf ); + return vec2( vuf * Inv255, gf ); +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors4 ); +} +float unpackRGBToDepth( const in vec3 v ) { + return dot( v, UnpackFactors3 ); +} +float unpackRGToDepth( const in vec2 v ) { + return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; +} +vec4 pack2HalfToRGBA( const in vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( const in vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,Bd=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,zd=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,kd=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,Vd=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,Hd=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,Gd=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,Wd=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + float depth = unpackRGBAToDepth( texture2D( depths, uv ) ); + #ifdef USE_REVERSED_DEPTH_BUFFER + return step( depth, compare ); + #else + return step( compare, depth ); + #endif + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow( sampler2D shadow, vec2 uv, float compare ) { + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + #ifdef USE_REVERSED_DEPTH_BUFFER + float hard_shadow = step( distribution.x, compare ); + #else + float hard_shadow = step( compare, distribution.x ); + #endif + if ( hard_shadow != 1.0 ) { + float distance = compare - distribution.x; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } +#endif`,Xd=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,qd=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,Yd=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,Zd=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,Jd=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,$d=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,Kd=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,jd=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,Qd=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,tf=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,ef=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 CineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,nf=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,sf=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + #else + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,rf=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,af=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,of=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,lf=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`,cf=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,hf=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,uf=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,df=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,ff=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,pf=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,mf=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,gf=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + #ifdef USE_REVERSED_DEPTH_BUFFER + float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; + #else + float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; + #endif + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #elif DEPTH_PACKING == 3202 + gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); + #elif DEPTH_PACKING == 3203 + gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); + #endif +}`,_f=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,xf=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,yf=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,vf=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,Mf=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,Sf=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,bf=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,Ef=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,Tf=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,wf=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,Af=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,Cf=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,Rf=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,If=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,Pf=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,Df=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,Lf=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,Uf=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,Nf=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,Ff=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,Of=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,Bf=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,zf=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,kf=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,Vf=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix[ 3 ]; + vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,Hf=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,Ot={alphahash_fragment:cu,alphahash_pars_fragment:hu,alphamap_fragment:uu,alphamap_pars_fragment:du,alphatest_fragment:fu,alphatest_pars_fragment:pu,aomap_fragment:mu,aomap_pars_fragment:gu,batching_pars_vertex:_u,batching_vertex:xu,begin_vertex:yu,beginnormal_vertex:vu,bsdfs:Mu,iridescence_fragment:Su,bumpmap_pars_fragment:bu,clipping_planes_fragment:Eu,clipping_planes_pars_fragment:Tu,clipping_planes_pars_vertex:wu,clipping_planes_vertex:Au,color_fragment:Cu,color_pars_fragment:Ru,color_pars_vertex:Iu,color_vertex:Pu,common:Du,cube_uv_reflection_fragment:Lu,defaultnormal_vertex:Uu,displacementmap_pars_vertex:Nu,displacementmap_vertex:Fu,emissivemap_fragment:Ou,emissivemap_pars_fragment:Bu,colorspace_fragment:zu,colorspace_pars_fragment:ku,envmap_fragment:Vu,envmap_common_pars_fragment:Hu,envmap_pars_fragment:Gu,envmap_pars_vertex:Wu,envmap_physical_pars_fragment:ed,envmap_vertex:Xu,fog_vertex:qu,fog_pars_vertex:Yu,fog_fragment:Zu,fog_pars_fragment:Ju,gradientmap_pars_fragment:$u,lightmap_pars_fragment:Ku,lights_lambert_fragment:ju,lights_lambert_pars_fragment:Qu,lights_pars_begin:td,lights_toon_fragment:nd,lights_toon_pars_fragment:id,lights_phong_fragment:sd,lights_phong_pars_fragment:rd,lights_physical_fragment:ad,lights_physical_pars_fragment:od,lights_fragment_begin:ld,lights_fragment_maps:cd,lights_fragment_end:hd,logdepthbuf_fragment:ud,logdepthbuf_pars_fragment:dd,logdepthbuf_pars_vertex:fd,logdepthbuf_vertex:pd,map_fragment:md,map_pars_fragment:gd,map_particle_fragment:_d,map_particle_pars_fragment:xd,metalnessmap_fragment:yd,metalnessmap_pars_fragment:vd,morphinstance_vertex:Md,morphcolor_vertex:Sd,morphnormal_vertex:bd,morphtarget_pars_vertex:Ed,morphtarget_vertex:Td,normal_fragment_begin:wd,normal_fragment_maps:Ad,normal_pars_fragment:Cd,normal_pars_vertex:Rd,normal_vertex:Id,normalmap_pars_fragment:Pd,clearcoat_normal_fragment_begin:Dd,clearcoat_normal_fragment_maps:Ld,clearcoat_pars_fragment:Ud,iridescence_pars_fragment:Nd,opaque_fragment:Fd,packing:Od,premultiplied_alpha_fragment:Bd,project_vertex:zd,dithering_fragment:kd,dithering_pars_fragment:Vd,roughnessmap_fragment:Hd,roughnessmap_pars_fragment:Gd,shadowmap_pars_fragment:Wd,shadowmap_pars_vertex:Xd,shadowmap_vertex:qd,shadowmask_pars_fragment:Yd,skinbase_vertex:Zd,skinning_pars_vertex:Jd,skinning_vertex:$d,skinnormal_vertex:Kd,specularmap_fragment:jd,specularmap_pars_fragment:Qd,tonemapping_fragment:tf,tonemapping_pars_fragment:ef,transmission_fragment:nf,transmission_pars_fragment:sf,uv_pars_fragment:rf,uv_pars_vertex:af,uv_vertex:of,worldpos_vertex:lf,background_vert:cf,background_frag:hf,backgroundCube_vert:uf,backgroundCube_frag:df,cube_vert:ff,cube_frag:pf,depth_vert:mf,depth_frag:gf,distanceRGBA_vert:_f,distanceRGBA_frag:xf,equirect_vert:yf,equirect_frag:vf,linedashed_vert:Mf,linedashed_frag:Sf,meshbasic_vert:bf,meshbasic_frag:Ef,meshlambert_vert:Tf,meshlambert_frag:wf,meshmatcap_vert:Af,meshmatcap_frag:Cf,meshnormal_vert:Rf,meshnormal_frag:If,meshphong_vert:Pf,meshphong_frag:Df,meshphysical_vert:Lf,meshphysical_frag:Uf,meshtoon_vert:Nf,meshtoon_frag:Ff,points_vert:Of,points_frag:Bf,shadow_vert:zf,shadow_frag:kf,sprite_vert:Vf,sprite_frag:Hf},rt={common:{diffuse:{value:new zt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ut},alphaMap:{value:null},alphaMapTransform:{value:new Ut},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ut}},envmap:{envMap:{value:null},envMapRotation:{value:new Ut},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ut}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ut}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ut},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ut},normalScale:{value:new Pt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ut},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ut}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ut}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ut}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new zt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new zt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ut},alphaTest:{value:0},uvTransform:{value:new Ut}},sprite:{diffuse:{value:new zt(16777215)},opacity:{value:1},center:{value:new Pt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ut},alphaMap:{value:null},alphaMapTransform:{value:new Ut},alphaTest:{value:0}}},un={basic:{uniforms:Te([rt.common,rt.specularmap,rt.envmap,rt.aomap,rt.lightmap,rt.fog]),vertexShader:Ot.meshbasic_vert,fragmentShader:Ot.meshbasic_frag},lambert:{uniforms:Te([rt.common,rt.specularmap,rt.envmap,rt.aomap,rt.lightmap,rt.emissivemap,rt.bumpmap,rt.normalmap,rt.displacementmap,rt.fog,rt.lights,{emissive:{value:new zt(0)}}]),vertexShader:Ot.meshlambert_vert,fragmentShader:Ot.meshlambert_frag},phong:{uniforms:Te([rt.common,rt.specularmap,rt.envmap,rt.aomap,rt.lightmap,rt.emissivemap,rt.bumpmap,rt.normalmap,rt.displacementmap,rt.fog,rt.lights,{emissive:{value:new zt(0)},specular:{value:new zt(1118481)},shininess:{value:30}}]),vertexShader:Ot.meshphong_vert,fragmentShader:Ot.meshphong_frag},standard:{uniforms:Te([rt.common,rt.envmap,rt.aomap,rt.lightmap,rt.emissivemap,rt.bumpmap,rt.normalmap,rt.displacementmap,rt.roughnessmap,rt.metalnessmap,rt.fog,rt.lights,{emissive:{value:new zt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ot.meshphysical_vert,fragmentShader:Ot.meshphysical_frag},toon:{uniforms:Te([rt.common,rt.aomap,rt.lightmap,rt.emissivemap,rt.bumpmap,rt.normalmap,rt.displacementmap,rt.gradientmap,rt.fog,rt.lights,{emissive:{value:new zt(0)}}]),vertexShader:Ot.meshtoon_vert,fragmentShader:Ot.meshtoon_frag},matcap:{uniforms:Te([rt.common,rt.bumpmap,rt.normalmap,rt.displacementmap,rt.fog,{matcap:{value:null}}]),vertexShader:Ot.meshmatcap_vert,fragmentShader:Ot.meshmatcap_frag},points:{uniforms:Te([rt.points,rt.fog]),vertexShader:Ot.points_vert,fragmentShader:Ot.points_frag},dashed:{uniforms:Te([rt.common,rt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ot.linedashed_vert,fragmentShader:Ot.linedashed_frag},depth:{uniforms:Te([rt.common,rt.displacementmap]),vertexShader:Ot.depth_vert,fragmentShader:Ot.depth_frag},normal:{uniforms:Te([rt.common,rt.bumpmap,rt.normalmap,rt.displacementmap,{opacity:{value:1}}]),vertexShader:Ot.meshnormal_vert,fragmentShader:Ot.meshnormal_frag},sprite:{uniforms:Te([rt.sprite,rt.fog]),vertexShader:Ot.sprite_vert,fragmentShader:Ot.sprite_frag},background:{uniforms:{uvTransform:{value:new Ut},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Ot.background_vert,fragmentShader:Ot.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ut}},vertexShader:Ot.backgroundCube_vert,fragmentShader:Ot.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ot.cube_vert,fragmentShader:Ot.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ot.equirect_vert,fragmentShader:Ot.equirect_frag},distanceRGBA:{uniforms:Te([rt.common,rt.displacementmap,{referencePosition:{value:new N},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ot.distanceRGBA_vert,fragmentShader:Ot.distanceRGBA_frag},shadow:{uniforms:Te([rt.lights,rt.fog,{color:{value:new zt(0)},opacity:{value:1}}]),vertexShader:Ot.shadow_vert,fragmentShader:Ot.shadow_frag}};un.physical={uniforms:Te([un.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ut},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ut},clearcoatNormalScale:{value:new Pt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ut},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ut},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ut},sheen:{value:0},sheenColor:{value:new zt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ut},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ut},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ut},transmissionSamplerSize:{value:new Pt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ut},attenuationDistance:{value:0},attenuationColor:{value:new zt(0)},specularColor:{value:new zt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ut},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ut},anisotropyVector:{value:new Pt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ut}}]),vertexShader:Ot.meshphysical_vert,fragmentShader:Ot.meshphysical_frag};var ga={r:0,b:0,g:0},oi=new nn,Gf=new ue;function Wf(i,t,e,n,s,r,a){let o=new zt(0),l=r===!0?0:1,c,h,d=null,f=0,m=null;function _(E){let S=E.isScene===!0?E.background:null;return S&&S.isTexture&&(S=(E.backgroundBlurriness>0?e:t).get(S)),S}function M(E){let S=!1,C=_(E);C===null?u(o,l):C&&C.isColor&&(u(C,1),S=!0);let A=i.xr.getEnvironmentBlendMode();A==="additive"?n.buffers.color.setClear(0,0,0,1,a):A==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,a),(i.autoClear||S)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),i.clear(i.autoClearColor,i.autoClearDepth,i.autoClearStencil))}function p(E,S){let C=_(S);C&&(C.isCubeTexture||C.mapping===Ts)?(h===void 0&&(h=new De(new zn(1,1,1),new sn({name:"BackgroundCubeMaterial",uniforms:ai(un.backgroundCube.uniforms),vertexShader:un.backgroundCube.vertexShader,fragmentShader:un.backgroundCube.fragmentShader,side:Ie,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(A,P,U){this.matrixWorld.copyPosition(U.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(h)),oi.copy(S.backgroundRotation),oi.x*=-1,oi.y*=-1,oi.z*=-1,C.isCubeTexture&&C.isRenderTargetTexture===!1&&(oi.y*=-1,oi.z*=-1),h.material.uniforms.envMap.value=C,h.material.uniforms.flipEnvMap.value=C.isCubeTexture&&C.isRenderTargetTexture===!1?-1:1,h.material.uniforms.backgroundBlurriness.value=S.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=S.backgroundIntensity,h.material.uniforms.backgroundRotation.value.setFromMatrix4(Gf.makeRotationFromEuler(oi)),h.material.toneMapped=Gt.getTransfer(C.colorSpace)!==Yt,(d!==C||f!==C.version||m!==i.toneMapping)&&(h.material.needsUpdate=!0,d=C,f=C.version,m=i.toneMapping),h.layers.enableAll(),E.unshift(h,h.geometry,h.material,0,0,null)):C&&C.isTexture&&(c===void 0&&(c=new De(new ni(2,2),new sn({name:"BackgroundMaterial",uniforms:ai(un.background.uniforms),vertexShader:un.background.vertexShader,fragmentShader:un.background.fragmentShader,side:Sn,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(c)),c.material.uniforms.t2D.value=C,c.material.uniforms.backgroundIntensity.value=S.backgroundIntensity,c.material.toneMapped=Gt.getTransfer(C.colorSpace)!==Yt,C.matrixAutoUpdate===!0&&C.updateMatrix(),c.material.uniforms.uvTransform.value.copy(C.matrix),(d!==C||f!==C.version||m!==i.toneMapping)&&(c.material.needsUpdate=!0,d=C,f=C.version,m=i.toneMapping),c.layers.enableAll(),E.unshift(c,c.geometry,c.material,0,0,null))}function u(E,S){E.getRGB(ga,wo(i)),n.buffers.color.setClear(ga.r,ga.g,ga.b,S,a)}function T(){h!==void 0&&(h.geometry.dispose(),h.material.dispose(),h=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(E,S=1){o.set(E),l=S,u(o,l)},getClearAlpha:function(){return l},setClearAlpha:function(E){l=E,u(o,l)},render:M,addToRenderList:p,dispose:T}}function Xf(i,t){let e=i.getParameter(i.MAX_VERTEX_ATTRIBS),n={},s=f(null),r=s,a=!1;function o(y,R,F,k,H){let q=!1,W=d(k,F,R);r!==W&&(r=W,c(r.object)),q=m(y,k,F,H),q&&_(y,k,F,H),H!==null&&t.update(H,i.ELEMENT_ARRAY_BUFFER),(q||a)&&(a=!1,S(y,R,F,k),H!==null&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,t.get(H).buffer))}function l(){return i.createVertexArray()}function c(y){return i.bindVertexArray(y)}function h(y){return i.deleteVertexArray(y)}function d(y,R,F){let k=F.wireframe===!0,H=n[y.id];H===void 0&&(H={},n[y.id]=H);let q=H[R.id];q===void 0&&(q={},H[R.id]=q);let W=q[k];return W===void 0&&(W=f(l()),q[k]=W),W}function f(y){let R=[],F=[],k=[];for(let H=0;H=0){let ht=H[V],bt=q[V];if(bt===void 0&&(V==="instanceMatrix"&&y.instanceMatrix&&(bt=y.instanceMatrix),V==="instanceColor"&&y.instanceColor&&(bt=y.instanceColor)),ht===void 0||ht.attribute!==bt||bt&&ht.data!==bt.data)return!0;W++}return r.attributesNum!==W||r.index!==k}function _(y,R,F,k){let H={},q=R.attributes,W=0,et=F.getAttributes();for(let V in et)if(et[V].location>=0){let ht=q[V];ht===void 0&&(V==="instanceMatrix"&&y.instanceMatrix&&(ht=y.instanceMatrix),V==="instanceColor"&&y.instanceColor&&(ht=y.instanceColor));let bt={};bt.attribute=ht,ht&&ht.data&&(bt.data=ht.data),H[V]=bt,W++}r.attributes=H,r.attributesNum=W,r.index=k}function M(){let y=r.newAttributes;for(let R=0,F=y.length;R=0){let at=H[et];if(at===void 0&&(et==="instanceMatrix"&&y.instanceMatrix&&(at=y.instanceMatrix),et==="instanceColor"&&y.instanceColor&&(at=y.instanceColor)),at!==void 0){let ht=at.normalized,bt=at.itemSize,kt=t.get(at);if(kt===void 0)continue;let Kt=kt.buffer,ne=kt.type,Xt=kt.bytesPerElement,Y=ne===i.INT||ne===i.UNSIGNED_INT||at.gpuType===Fr;if(at.isInterleavedBufferAttribute){let $=at.data,ft=$.stride,It=at.offset;if($.isInstancedInterleavedBuffer){for(let St=0;St0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT).precision>0)return"highp";P="mediump"}return P==="mediump"&&i.getShaderPrecisionFormat(i.VERTEX_SHADER,i.MEDIUM_FLOAT).precision>0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=e.precision!==void 0?e.precision:"highp",h=l(c);h!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",h,"instead."),c=h);let d=e.logarithmicDepthBuffer===!0,f=e.reversedDepthBuffer===!0&&t.has("EXT_clip_control"),m=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),_=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),M=i.getParameter(i.MAX_TEXTURE_SIZE),p=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),u=i.getParameter(i.MAX_VERTEX_ATTRIBS),T=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),E=i.getParameter(i.MAX_VARYING_VECTORS),S=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),C=_>0,A=i.getParameter(i.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:l,textureFormatReadable:a,textureTypeReadable:o,precision:c,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:m,maxVertexTextures:_,maxTextureSize:M,maxCubemapSize:p,maxAttributes:u,maxVertexUniforms:T,maxVaryings:E,maxFragmentUniforms:S,vertexTextures:C,maxSamples:A}}function Zf(i){let t=this,e=null,n=0,s=!1,r=!1,a=new We,o=new Ut,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,f){let m=d.length!==0||f||n!==0||s;return s=f,n=d.length,m},this.beginShadows=function(){r=!0,h(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(d,f){e=h(d,f,0)},this.setState=function(d,f,m){let _=d.clippingPlanes,M=d.clipIntersection,p=d.clipShadows,u=i.get(d);if(!s||_===null||_.length===0||r&&!p)r?h(null):c();else{let T=r?0:n,E=T*4,S=u.clippingState||null;l.value=S,S=h(_,f,E,m);for(let C=0;C!==E;++C)S[C]=e[C];u.clippingState=S,this.numIntersection=M?this.numPlanes:0,this.numPlanes+=T}};function c(){l.value!==e&&(l.value=e,l.needsUpdate=n>0),t.numPlanes=n,t.numIntersection=0}function h(d,f,m,_){let M=d!==null?d.length:0,p=null;if(M!==0){if(p=l.value,_!==!0||p===null){let u=m+M*4,T=f.matrixWorldInverse;o.getNormalMatrix(T),(p===null||p.length0){let c=new ur(l.height);return c.fromEquirectangularTexture(i,a),t.set(a,c),a.addEventListener("dispose",s),e(c.texture,a.mapping)}else return null}}return a}function s(a){let o=a.target;o.removeEventListener("dispose",s);let l=t.get(o);l!==void 0&&(t.delete(o),l.dispose())}function r(){t=new WeakMap}return{get:n,dispose:r}}var qi=4,_c=[.125,.215,.35,.446,.526,.582],hi=20,Io=new bs,xc=new zt,Po=null,Do=0,Lo=0,Uo=!1,ci=(1+Math.sqrt(5))/2,Xi=1/ci,yc=[new N(-ci,Xi,0),new N(ci,Xi,0),new N(-Xi,0,ci),new N(Xi,0,ci),new N(0,ci,-Xi),new N(0,ci,Xi),new N(-1,1,-1),new N(1,1,-1),new N(-1,1,1),new N(1,1,1)],$f=new N,ya=class{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,s=100,r={}){let{size:a=256,position:o=$f}=r;Po=this._renderer.getRenderTarget(),Do=this._renderer.getActiveCubeFace(),Lo=this._renderer.getActiveMipmapLevel(),Uo=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);let l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(t,n,s,l,o),e>0&&this._blur(l,0,0,e),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Sc(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Mc(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let t=0;t2?C:0,C,C),d.setRenderTarget(s),u&&d.render(p,l),d.render(t,l)}p.geometry.dispose(),p.material.dispose(),d.toneMapping=m,d.autoClear=f,t.background=T}_textureToCubeUV(t,e){let n=this._renderer,s=t.mapping===si||t.mapping===ri;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=Sc()),this._cubemapMaterial.uniforms.flipEnvMap.value=t.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Mc());let r=s?this._cubemapMaterial:this._equirectMaterial,a=new De(this._lodPlanes[0],r),o=r.uniforms;o.envMap.value=t;let l=this._cubeSize;_a(e,0,0,3*l,2*l),n.setRenderTarget(e),n.render(a,Io)}_applyPMREM(t){let e=this._renderer,n=e.autoClear;e.autoClear=!1;let s=this._lodPlanes.length;for(let r=1;rhi&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${hi}`);let u=[],T=0;for(let P=0;PE-qi?s-E+qi:0),A=4*(this._cubeSize-S);_a(e,C,A,3*S,2*S),l.setRenderTarget(e),l.render(d,Io)}};function Kf(i){let t=[],e=[],n=[],s=i,r=i-qi+1+_c.length;for(let a=0;ai-qi?l=_c[a-i+qi-1]:a===0&&(l=0),n.push(l);let c=1/(o-2),h=-c,d=1+c,f=[h,h,d,h,d,d,h,h,d,d,h,d],m=6,_=6,M=3,p=2,u=1,T=new Float32Array(M*_*m),E=new Float32Array(p*_*m),S=new Float32Array(u*_*m);for(let A=0;A2?0:-1,v=[P,U,0,P+2/3,U,0,P+2/3,U+1,0,P,U,0,P+2/3,U+1,0,P,U+1,0];T.set(v,M*_*A),E.set(f,p*_*A);let y=[A,A,A,A,A,A];S.set(y,u*_*A)}let C=new ze;C.setAttribute("position",new be(T,M)),C.setAttribute("uv",new be(E,p)),C.setAttribute("faceIndex",new be(S,u)),t.push(C),s>qi&&s--}return{lodPlanes:t,sizeLods:e,sigmas:n}}function vc(i,t,e){let n=new ln(i,t,e);return n.texture.mapping=Ts,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function _a(i,t,e,n,s){i.viewport.set(t,e,n,s),i.scissor.set(t,e,n,s)}function jf(i,t,e){let n=new Float32Array(hi),s=new N(0,1,0);return new sn({name:"SphericalGaussianBlur",defines:{n:hi,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/e,CUBEUV_MAX_MIP:`${i}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:Wo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:En,depthTest:!1,depthWrite:!1})}function Mc(){return new sn({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Wo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:En,depthTest:!1,depthWrite:!1})}function Sc(){return new sn({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Wo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:En,depthTest:!1,depthWrite:!1})}function Wo(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function Qf(i){let t=new WeakMap,e=null;function n(o){if(o&&o.isTexture){let l=o.mapping,c=l===Lr||l===Ur,h=l===si||l===ri;if(c||h){let d=t.get(o),f=d!==void 0?d.texture.pmremVersion:0;if(o.isRenderTargetTexture&&o.pmremVersion!==f)return e===null&&(e=new ya(i)),d=c?e.fromEquirectangular(o,d):e.fromCubemap(o,d),d.texture.pmremVersion=o.pmremVersion,t.set(o,d),d.texture;if(d!==void 0)return d.texture;{let m=o.image;return c&&m&&m.height>0||h&&m&&s(m)?(e===null&&(e=new ya(i)),d=c?e.fromEquirectangular(o):e.fromCubemap(o),d.texture.pmremVersion=o.pmremVersion,t.set(o,d),o.addEventListener("dispose",r),d.texture):null}}}return o}function s(o){let l=0,c=6;for(let h=0;ht.maxTextureSize&&(C=Math.ceil(S/t.maxTextureSize),S=t.maxTextureSize);let A=new Float32Array(S*C*4*d),P=new ls(A,S,C,d);P.type=hn,P.needsUpdate=!0;let U=E*4;for(let y=0;y0)return i;let s=t*e,r=Ec[s];if(r===void 0&&(r=new Float32Array(s),Ec[s]=r),t!==0){n.toArray(r,0);for(let a=1,o=0;a!==t;++a)o+=e,i[a].toArray(r,o)}return r}function pe(i,t){if(i.length!==t.length)return!1;for(let e=0,n=i.length;e":" "} ${o}: ${e[a]}`)}return n.join(` +`)}var Pc=new Ut;function $p(i){Gt._getMatrix(Pc,Gt.workingColorSpace,i);let t=`mat3( ${Pc.elements.map(e=>e.toFixed(4))} )`;switch(Gt.getTransfer(i)){case rs:return[t,"LinearTransferOETF"];case Yt:return[t,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",i),[t,"LinearTransferOETF"]}}function Dc(i,t,e){let n=i.getShaderParameter(t,i.COMPILE_STATUS),r=(i.getShaderInfoLog(t)||"").trim();if(n&&r==="")return"";let a=/ERROR: 0:(\d+)/.exec(r);if(a){let o=parseInt(a[1]);return e.toUpperCase()+` + +`+r+` + +`+Jp(i.getShaderSource(t),o)}else return r}function Kp(i,t){let e=$p(t);return[`vec4 ${i}( vec4 value ) {`,` return ${e[1]}( vec4( value.rgb * ${e[0]}, value.a ) );`,"}"].join(` +`)}function jp(i,t){let e;switch(t){case Jl:e="Linear";break;case $l:e="Reinhard";break;case Kl:e="Cineon";break;case Dr:e="ACESFilmic";break;case Ql:e="AgX";break;case tc:e="Neutral";break;case jl:e="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),e="Linear"}return"vec3 "+i+"( vec3 color ) { return "+e+"ToneMapping( color ); }"}var xa=new N;function Qp(){Gt.getLuminanceCoefficients(xa);let i=xa.x.toFixed(4),t=xa.y.toFixed(4),e=xa.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${i}, ${t}, ${e} );`," return dot( weights, rgb );","}"].join(` +`)}function tm(i){return[i.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",i.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Ps).join(` +`)}function em(i){let t=[];for(let e in i){let n=i[e];n!==!1&&t.push("#define "+e+" "+n)}return t.join(` +`)}function nm(i,t){let e={},n=i.getProgramParameter(t,i.ACTIVE_ATTRIBUTES);for(let s=0;s/gm;function zo(i){return i.replace(im,rm)}var sm=new Map;function rm(i,t){let e=Ot[t];if(e===void 0){let n=sm.get(t);if(n!==void 0)e=Ot[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,n);else throw new Error("Can not resolve #include <"+t+">")}return zo(e)}var am=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Nc(i){return i.replace(am,om)}function om(i,t,e,n){let s="";for(let r=parseInt(t);r0&&(p+=` +`),u=["#define SHADER_TYPE "+e.shaderType,"#define SHADER_NAME "+e.shaderName,_].filter(Ps).join(` +`),u.length>0&&(u+=` +`)):(p=[Fc(e),"#define SHADER_TYPE "+e.shaderType,"#define SHADER_NAME "+e.shaderName,_,e.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",e.batching?"#define USE_BATCHING":"",e.batchingColor?"#define USE_BATCHING_COLOR":"",e.instancing?"#define USE_INSTANCING":"",e.instancingColor?"#define USE_INSTANCING_COLOR":"",e.instancingMorph?"#define USE_INSTANCING_MORPH":"",e.useFog&&e.fog?"#define USE_FOG":"",e.useFog&&e.fogExp2?"#define FOG_EXP2":"",e.map?"#define USE_MAP":"",e.envMap?"#define USE_ENVMAP":"",e.envMap?"#define "+h:"",e.lightMap?"#define USE_LIGHTMAP":"",e.aoMap?"#define USE_AOMAP":"",e.bumpMap?"#define USE_BUMPMAP":"",e.normalMap?"#define USE_NORMALMAP":"",e.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",e.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",e.displacementMap?"#define USE_DISPLACEMENTMAP":"",e.emissiveMap?"#define USE_EMISSIVEMAP":"",e.anisotropy?"#define USE_ANISOTROPY":"",e.anisotropyMap?"#define USE_ANISOTROPYMAP":"",e.clearcoatMap?"#define USE_CLEARCOATMAP":"",e.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",e.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",e.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",e.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",e.specularMap?"#define USE_SPECULARMAP":"",e.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",e.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",e.roughnessMap?"#define USE_ROUGHNESSMAP":"",e.metalnessMap?"#define USE_METALNESSMAP":"",e.alphaMap?"#define USE_ALPHAMAP":"",e.alphaHash?"#define USE_ALPHAHASH":"",e.transmission?"#define USE_TRANSMISSION":"",e.transmissionMap?"#define USE_TRANSMISSIONMAP":"",e.thicknessMap?"#define USE_THICKNESSMAP":"",e.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",e.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",e.mapUv?"#define MAP_UV "+e.mapUv:"",e.alphaMapUv?"#define ALPHAMAP_UV "+e.alphaMapUv:"",e.lightMapUv?"#define LIGHTMAP_UV "+e.lightMapUv:"",e.aoMapUv?"#define AOMAP_UV "+e.aoMapUv:"",e.emissiveMapUv?"#define EMISSIVEMAP_UV "+e.emissiveMapUv:"",e.bumpMapUv?"#define BUMPMAP_UV "+e.bumpMapUv:"",e.normalMapUv?"#define NORMALMAP_UV "+e.normalMapUv:"",e.displacementMapUv?"#define DISPLACEMENTMAP_UV "+e.displacementMapUv:"",e.metalnessMapUv?"#define METALNESSMAP_UV "+e.metalnessMapUv:"",e.roughnessMapUv?"#define ROUGHNESSMAP_UV "+e.roughnessMapUv:"",e.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+e.anisotropyMapUv:"",e.clearcoatMapUv?"#define CLEARCOATMAP_UV "+e.clearcoatMapUv:"",e.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+e.clearcoatNormalMapUv:"",e.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+e.clearcoatRoughnessMapUv:"",e.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+e.iridescenceMapUv:"",e.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+e.iridescenceThicknessMapUv:"",e.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+e.sheenColorMapUv:"",e.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+e.sheenRoughnessMapUv:"",e.specularMapUv?"#define SPECULARMAP_UV "+e.specularMapUv:"",e.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+e.specularColorMapUv:"",e.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+e.specularIntensityMapUv:"",e.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+e.transmissionMapUv:"",e.thicknessMapUv?"#define THICKNESSMAP_UV "+e.thicknessMapUv:"",e.vertexTangents&&e.flatShading===!1?"#define USE_TANGENT":"",e.vertexColors?"#define USE_COLOR":"",e.vertexAlphas?"#define USE_COLOR_ALPHA":"",e.vertexUv1s?"#define USE_UV1":"",e.vertexUv2s?"#define USE_UV2":"",e.vertexUv3s?"#define USE_UV3":"",e.pointsUvs?"#define USE_POINTS_UV":"",e.flatShading?"#define FLAT_SHADED":"",e.skinning?"#define USE_SKINNING":"",e.morphTargets?"#define USE_MORPHTARGETS":"",e.morphNormals&&e.flatShading===!1?"#define USE_MORPHNORMALS":"",e.morphColors?"#define USE_MORPHCOLORS":"",e.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+e.morphTextureStride:"",e.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+e.morphTargetsCount:"",e.doubleSided?"#define DOUBLE_SIDED":"",e.flipSided?"#define FLIP_SIDED":"",e.shadowMapEnabled?"#define USE_SHADOWMAP":"",e.shadowMapEnabled?"#define "+l:"",e.sizeAttenuation?"#define USE_SIZEATTENUATION":"",e.numLightProbes>0?"#define USE_LIGHT_PROBES":"",e.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",e.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(Ps).join(` +`),u=[Fc(e),"#define SHADER_TYPE "+e.shaderType,"#define SHADER_NAME "+e.shaderName,_,e.useFog&&e.fog?"#define USE_FOG":"",e.useFog&&e.fogExp2?"#define FOG_EXP2":"",e.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",e.map?"#define USE_MAP":"",e.matcap?"#define USE_MATCAP":"",e.envMap?"#define USE_ENVMAP":"",e.envMap?"#define "+c:"",e.envMap?"#define "+h:"",e.envMap?"#define "+d:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",e.lightMap?"#define USE_LIGHTMAP":"",e.aoMap?"#define USE_AOMAP":"",e.bumpMap?"#define USE_BUMPMAP":"",e.normalMap?"#define USE_NORMALMAP":"",e.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",e.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",e.emissiveMap?"#define USE_EMISSIVEMAP":"",e.anisotropy?"#define USE_ANISOTROPY":"",e.anisotropyMap?"#define USE_ANISOTROPYMAP":"",e.clearcoat?"#define USE_CLEARCOAT":"",e.clearcoatMap?"#define USE_CLEARCOATMAP":"",e.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",e.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",e.dispersion?"#define USE_DISPERSION":"",e.iridescence?"#define USE_IRIDESCENCE":"",e.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",e.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",e.specularMap?"#define USE_SPECULARMAP":"",e.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",e.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",e.roughnessMap?"#define USE_ROUGHNESSMAP":"",e.metalnessMap?"#define USE_METALNESSMAP":"",e.alphaMap?"#define USE_ALPHAMAP":"",e.alphaTest?"#define USE_ALPHATEST":"",e.alphaHash?"#define USE_ALPHAHASH":"",e.sheen?"#define USE_SHEEN":"",e.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",e.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",e.transmission?"#define USE_TRANSMISSION":"",e.transmissionMap?"#define USE_TRANSMISSIONMAP":"",e.thicknessMap?"#define USE_THICKNESSMAP":"",e.vertexTangents&&e.flatShading===!1?"#define USE_TANGENT":"",e.vertexColors||e.instancingColor||e.batchingColor?"#define USE_COLOR":"",e.vertexAlphas?"#define USE_COLOR_ALPHA":"",e.vertexUv1s?"#define USE_UV1":"",e.vertexUv2s?"#define USE_UV2":"",e.vertexUv3s?"#define USE_UV3":"",e.pointsUvs?"#define USE_POINTS_UV":"",e.gradientMap?"#define USE_GRADIENTMAP":"",e.flatShading?"#define FLAT_SHADED":"",e.doubleSided?"#define DOUBLE_SIDED":"",e.flipSided?"#define FLIP_SIDED":"",e.shadowMapEnabled?"#define USE_SHADOWMAP":"",e.shadowMapEnabled?"#define "+l:"",e.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",e.numLightProbes>0?"#define USE_LIGHT_PROBES":"",e.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",e.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",e.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",e.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",e.toneMapping!==Tn?"#define TONE_MAPPING":"",e.toneMapping!==Tn?Ot.tonemapping_pars_fragment:"",e.toneMapping!==Tn?jp("toneMapping",e.toneMapping):"",e.dithering?"#define DITHERING":"",e.opaque?"#define OPAQUE":"",Ot.colorspace_pars_fragment,Kp("linearToOutputTexel",e.outputColorSpace),Qp(),e.useDepthPacking?"#define DEPTH_PACKING "+e.depthPacking:"",` +`].filter(Ps).join(` +`)),a=zo(a),a=Lc(a,e),a=Uc(a,e),o=zo(o),o=Lc(o,e),o=Uc(o,e),a=Nc(a),o=Nc(o),e.isRawShaderMaterial!==!0&&(T=`#version 300 es +`,p=[m,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+p,u=["#define varying in",e.glslVersion===So?"":"layout(location = 0) out highp vec4 pc_fragColor;",e.glslVersion===So?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+u);let E=T+p+a,S=T+u+o,C=Ic(s,s.VERTEX_SHADER,E),A=Ic(s,s.FRAGMENT_SHADER,S);s.attachShader(M,C),s.attachShader(M,A),e.index0AttributeName!==void 0?s.bindAttribLocation(M,0,e.index0AttributeName):e.morphTargets===!0&&s.bindAttribLocation(M,0,"position"),s.linkProgram(M);function P(R){if(i.debug.checkShaderErrors){let F=s.getProgramInfoLog(M)||"",k=s.getShaderInfoLog(C)||"",H=s.getShaderInfoLog(A)||"",q=F.trim(),W=k.trim(),et=H.trim(),V=!0,at=!0;if(s.getProgramParameter(M,s.LINK_STATUS)===!1)if(V=!1,typeof i.debug.onShaderError=="function")i.debug.onShaderError(s,M,C,A);else{let ht=Dc(s,C,"vertex"),bt=Dc(s,A,"fragment");console.error("THREE.WebGLProgram: Shader Error "+s.getError()+" - VALIDATE_STATUS "+s.getProgramParameter(M,s.VALIDATE_STATUS)+` + +Material Name: `+R.name+` +Material Type: `+R.type+` + +Program Info Log: `+q+` +`+ht+` +`+bt)}else q!==""?console.warn("THREE.WebGLProgram: Program Info Log:",q):(W===""||et==="")&&(at=!1);at&&(R.diagnostics={runnable:V,programLog:q,vertexShader:{log:W,prefix:p},fragmentShader:{log:et,prefix:u}})}s.deleteShader(C),s.deleteShader(A),U=new Yi(s,M),v=nm(s,M)}let U;this.getUniforms=function(){return U===void 0&&P(this),U};let v;this.getAttributes=function(){return v===void 0&&P(this),v};let y=e.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return y===!1&&(y=s.getProgramParameter(M,Yp)),y},this.destroy=function(){n.releaseStatesOfProgram(this),s.deleteProgram(M),this.program=void 0},this.type=e.shaderType,this.name=e.shaderName,this.id=Zp++,this.cacheKey=t,this.usedTimes=1,this.program=M,this.vertexShader=C,this.fragmentShader=A,this}var pm=0,ko=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){let e=t.vertexShader,n=t.fragmentShader,s=this._getShaderStage(e),r=this._getShaderStage(n),a=this._getShaderCacheForMaterial(t);return a.has(s)===!1&&(a.add(s),s.usedTimes++),a.has(r)===!1&&(a.add(r),r.usedTimes++),this}remove(t){let e=this.materialCache.get(t);for(let n of e)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){let e=this.materialCache,n=e.get(t);return n===void 0&&(n=new Set,e.set(t,n)),n}_getShaderStage(t){let e=this.shaderCache,n=e.get(t);return n===void 0&&(n=new Vo(t),e.set(t,n)),n}},Vo=class{constructor(t){this.id=pm++,this.code=t,this.usedTimes=0}};function mm(i,t,e,n,s,r,a){let o=new cs,l=new ko,c=new Set,h=[],d=s.logarithmicDepthBuffer,f=s.vertexTextures,m=s.precision,_={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function M(v){return c.add(v),v===0?"uv":`uv${v}`}function p(v,y,R,F,k){let H=F.fog,q=k.geometry,W=v.isMeshStandardMaterial?F.environment:null,et=(v.isMeshStandardMaterial?e:t).get(v.envMap||W),V=et&&et.mapping===Ts?et.image.height:null,at=_[v.type];v.precision!==null&&(m=s.getMaxPrecision(v.precision),m!==v.precision&&console.warn("THREE.WebGLProgram.getParameters:",v.precision,"not supported, using",m,"instead."));let ht=q.morphAttributes.position||q.morphAttributes.normal||q.morphAttributes.color,bt=ht!==void 0?ht.length:0,kt=0;q.morphAttributes.position!==void 0&&(kt=1),q.morphAttributes.normal!==void 0&&(kt=2),q.morphAttributes.color!==void 0&&(kt=3);let Kt,ne,Xt,Y;if(at){let qt=un[at];Kt=qt.vertexShader,ne=qt.fragmentShader}else Kt=v.vertexShader,ne=v.fragmentShader,l.update(v),Xt=l.getVertexShaderID(v),Y=l.getFragmentShaderID(v);let $=i.getRenderTarget(),ft=i.state.buffers.depth.getReversed(),It=k.isInstancedMesh===!0,St=k.isBatchedMesh===!0,Ht=!!v.map,ye=!!v.matcap,w=!!et,ie=!!v.aoMap,Lt=!!v.lightMap,Ct=!!v.bumpMap,gt=!!v.normalMap,se=!!v.displacementMap,_t=!!v.emissiveMap,Ft=!!v.metalnessMap,_e=!!v.roughnessMap,he=v.anisotropy>0,b=v.clearcoat>0,g=v.dispersion>0,O=v.iridescence>0,X=v.sheen>0,J=v.transmission>0,G=he&&!!v.anisotropyMap,Mt=b&&!!v.clearcoatMap,nt=b&&!!v.clearcoatNormalMap,xt=b&&!!v.clearcoatRoughnessMap,yt=O&&!!v.iridescenceMap,Q=O&&!!v.iridescenceThicknessMap,ct=X&&!!v.sheenColorMap,At=X&&!!v.sheenRoughnessMap,vt=!!v.specularMap,ot=!!v.specularColorMap,Nt=!!v.specularIntensityMap,I=J&&!!v.transmissionMap,tt=J&&!!v.thicknessMap,it=!!v.gradientMap,dt=!!v.alphaMap,K=v.alphaTest>0,Z=!!v.alphaHash,mt=!!v.extensions,Dt=Tn;v.toneMapped&&($===null||$.isXRRenderTarget===!0)&&(Dt=i.toneMapping);let jt={shaderID:at,shaderType:v.type,shaderName:v.name,vertexShader:Kt,fragmentShader:ne,defines:v.defines,customVertexShaderID:Xt,customFragmentShaderID:Y,isRawShaderMaterial:v.isRawShaderMaterial===!0,glslVersion:v.glslVersion,precision:m,batching:St,batchingColor:St&&k._colorsTexture!==null,instancing:It,instancingColor:It&&k.instanceColor!==null,instancingMorph:It&&k.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:$===null?i.outputColorSpace:$.isXRRenderTarget===!0?$.texture.colorSpace:bn,alphaToCoverage:!!v.alphaToCoverage,map:Ht,matcap:ye,envMap:w,envMapMode:w&&et.mapping,envMapCubeUVHeight:V,aoMap:ie,lightMap:Lt,bumpMap:Ct,normalMap:gt,displacementMap:f&&se,emissiveMap:_t,normalMapObjectSpace:gt&&v.normalMapType===sc,normalMapTangentSpace:gt&&v.normalMapType===vo,metalnessMap:Ft,roughnessMap:_e,anisotropy:he,anisotropyMap:G,clearcoat:b,clearcoatMap:Mt,clearcoatNormalMap:nt,clearcoatRoughnessMap:xt,dispersion:g,iridescence:O,iridescenceMap:yt,iridescenceThicknessMap:Q,sheen:X,sheenColorMap:ct,sheenRoughnessMap:At,specularMap:vt,specularColorMap:ot,specularIntensityMap:Nt,transmission:J,transmissionMap:I,thicknessMap:tt,gradientMap:it,opaque:v.transparent===!1&&v.blending===ti&&v.alphaToCoverage===!1,alphaMap:dt,alphaTest:K,alphaHash:Z,combine:v.combine,mapUv:Ht&&M(v.map.channel),aoMapUv:ie&&M(v.aoMap.channel),lightMapUv:Lt&&M(v.lightMap.channel),bumpMapUv:Ct&&M(v.bumpMap.channel),normalMapUv:gt&&M(v.normalMap.channel),displacementMapUv:se&&M(v.displacementMap.channel),emissiveMapUv:_t&&M(v.emissiveMap.channel),metalnessMapUv:Ft&&M(v.metalnessMap.channel),roughnessMapUv:_e&&M(v.roughnessMap.channel),anisotropyMapUv:G&&M(v.anisotropyMap.channel),clearcoatMapUv:Mt&&M(v.clearcoatMap.channel),clearcoatNormalMapUv:nt&&M(v.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:xt&&M(v.clearcoatRoughnessMap.channel),iridescenceMapUv:yt&&M(v.iridescenceMap.channel),iridescenceThicknessMapUv:Q&&M(v.iridescenceThicknessMap.channel),sheenColorMapUv:ct&&M(v.sheenColorMap.channel),sheenRoughnessMapUv:At&&M(v.sheenRoughnessMap.channel),specularMapUv:vt&&M(v.specularMap.channel),specularColorMapUv:ot&&M(v.specularColorMap.channel),specularIntensityMapUv:Nt&&M(v.specularIntensityMap.channel),transmissionMapUv:I&&M(v.transmissionMap.channel),thicknessMapUv:tt&&M(v.thicknessMap.channel),alphaMapUv:dt&&M(v.alphaMap.channel),vertexTangents:!!q.attributes.tangent&&(gt||he),vertexColors:v.vertexColors,vertexAlphas:v.vertexColors===!0&&!!q.attributes.color&&q.attributes.color.itemSize===4,pointsUvs:k.isPoints===!0&&!!q.attributes.uv&&(Ht||dt),fog:!!H,useFog:v.fog===!0,fogExp2:!!H&&H.isFogExp2,flatShading:v.flatShading===!0&&v.wireframe===!1,sizeAttenuation:v.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:ft,skinning:k.isSkinnedMesh===!0,morphTargets:q.morphAttributes.position!==void 0,morphNormals:q.morphAttributes.normal!==void 0,morphColors:q.morphAttributes.color!==void 0,morphTargetsCount:bt,morphTextureStride:kt,numDirLights:y.directional.length,numPointLights:y.point.length,numSpotLights:y.spot.length,numSpotLightMaps:y.spotLightMap.length,numRectAreaLights:y.rectArea.length,numHemiLights:y.hemi.length,numDirLightShadows:y.directionalShadowMap.length,numPointLightShadows:y.pointShadowMap.length,numSpotLightShadows:y.spotShadowMap.length,numSpotLightShadowsWithMaps:y.numSpotLightShadowsWithMaps,numLightProbes:y.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:v.dithering,shadowMapEnabled:i.shadowMap.enabled&&R.length>0,shadowMapType:i.shadowMap.type,toneMapping:Dt,decodeVideoTexture:Ht&&v.map.isVideoTexture===!0&&Gt.getTransfer(v.map.colorSpace)===Yt,decodeVideoTextureEmissive:_t&&v.emissiveMap.isVideoTexture===!0&&Gt.getTransfer(v.emissiveMap.colorSpace)===Yt,premultipliedAlpha:v.premultipliedAlpha,doubleSided:v.side===Ye,flipSided:v.side===Ie,useDepthPacking:v.depthPacking>=0,depthPacking:v.depthPacking||0,index0AttributeName:v.index0AttributeName,extensionClipCullDistance:mt&&v.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(mt&&v.extensions.multiDraw===!0||St)&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:v.customProgramCacheKey()};return jt.vertexUv1s=c.has(1),jt.vertexUv2s=c.has(2),jt.vertexUv3s=c.has(3),c.clear(),jt}function u(v){let y=[];if(v.shaderID?y.push(v.shaderID):(y.push(v.customVertexShaderID),y.push(v.customFragmentShaderID)),v.defines!==void 0)for(let R in v.defines)y.push(R),y.push(v.defines[R]);return v.isRawShaderMaterial===!1&&(T(y,v),E(y,v),y.push(i.outputColorSpace)),y.push(v.customProgramCacheKey),y.join()}function T(v,y){v.push(y.precision),v.push(y.outputColorSpace),v.push(y.envMapMode),v.push(y.envMapCubeUVHeight),v.push(y.mapUv),v.push(y.alphaMapUv),v.push(y.lightMapUv),v.push(y.aoMapUv),v.push(y.bumpMapUv),v.push(y.normalMapUv),v.push(y.displacementMapUv),v.push(y.emissiveMapUv),v.push(y.metalnessMapUv),v.push(y.roughnessMapUv),v.push(y.anisotropyMapUv),v.push(y.clearcoatMapUv),v.push(y.clearcoatNormalMapUv),v.push(y.clearcoatRoughnessMapUv),v.push(y.iridescenceMapUv),v.push(y.iridescenceThicknessMapUv),v.push(y.sheenColorMapUv),v.push(y.sheenRoughnessMapUv),v.push(y.specularMapUv),v.push(y.specularColorMapUv),v.push(y.specularIntensityMapUv),v.push(y.transmissionMapUv),v.push(y.thicknessMapUv),v.push(y.combine),v.push(y.fogExp2),v.push(y.sizeAttenuation),v.push(y.morphTargetsCount),v.push(y.morphAttributeCount),v.push(y.numDirLights),v.push(y.numPointLights),v.push(y.numSpotLights),v.push(y.numSpotLightMaps),v.push(y.numHemiLights),v.push(y.numRectAreaLights),v.push(y.numDirLightShadows),v.push(y.numPointLightShadows),v.push(y.numSpotLightShadows),v.push(y.numSpotLightShadowsWithMaps),v.push(y.numLightProbes),v.push(y.shadowMapType),v.push(y.toneMapping),v.push(y.numClippingPlanes),v.push(y.numClipIntersection),v.push(y.depthPacking)}function E(v,y){o.disableAll(),y.supportsVertexTextures&&o.enable(0),y.instancing&&o.enable(1),y.instancingColor&&o.enable(2),y.instancingMorph&&o.enable(3),y.matcap&&o.enable(4),y.envMap&&o.enable(5),y.normalMapObjectSpace&&o.enable(6),y.normalMapTangentSpace&&o.enable(7),y.clearcoat&&o.enable(8),y.iridescence&&o.enable(9),y.alphaTest&&o.enable(10),y.vertexColors&&o.enable(11),y.vertexAlphas&&o.enable(12),y.vertexUv1s&&o.enable(13),y.vertexUv2s&&o.enable(14),y.vertexUv3s&&o.enable(15),y.vertexTangents&&o.enable(16),y.anisotropy&&o.enable(17),y.alphaHash&&o.enable(18),y.batching&&o.enable(19),y.dispersion&&o.enable(20),y.batchingColor&&o.enable(21),y.gradientMap&&o.enable(22),v.push(o.mask),o.disableAll(),y.fog&&o.enable(0),y.useFog&&o.enable(1),y.flatShading&&o.enable(2),y.logarithmicDepthBuffer&&o.enable(3),y.reversedDepthBuffer&&o.enable(4),y.skinning&&o.enable(5),y.morphTargets&&o.enable(6),y.morphNormals&&o.enable(7),y.morphColors&&o.enable(8),y.premultipliedAlpha&&o.enable(9),y.shadowMapEnabled&&o.enable(10),y.doubleSided&&o.enable(11),y.flipSided&&o.enable(12),y.useDepthPacking&&o.enable(13),y.dithering&&o.enable(14),y.transmission&&o.enable(15),y.sheen&&o.enable(16),y.opaque&&o.enable(17),y.pointsUvs&&o.enable(18),y.decodeVideoTexture&&o.enable(19),y.decodeVideoTextureEmissive&&o.enable(20),y.alphaToCoverage&&o.enable(21),v.push(o.mask)}function S(v){let y=_[v.type],R;if(y){let F=un[y];R=mc.clone(F.uniforms)}else R=v.uniforms;return R}function C(v,y){let R;for(let F=0,k=h.length;F0?n.push(u):m.transparent===!0?s.push(u):e.push(u)}function l(d,f,m,_,M,p){let u=a(d,f,m,_,M,p);m.transmission>0?n.unshift(u):m.transparent===!0?s.unshift(u):e.unshift(u)}function c(d,f){e.length>1&&e.sort(d||_m),n.length>1&&n.sort(f||Oc),s.length>1&&s.sort(f||Oc)}function h(){for(let d=t,f=i.length;d=r.length?(a=new Bc,r.push(a)):a=r[s],a}function e(){i=new WeakMap}return{get:t,dispose:e}}function ym(){let i={};return{get:function(t){if(i[t.id]!==void 0)return i[t.id];let e;switch(t.type){case"DirectionalLight":e={direction:new N,color:new zt};break;case"SpotLight":e={position:new N,direction:new N,color:new zt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":e={position:new N,color:new zt,distance:0,decay:0};break;case"HemisphereLight":e={direction:new N,skyColor:new zt,groundColor:new zt};break;case"RectAreaLight":e={color:new zt,position:new N,halfWidth:new N,halfHeight:new N};break}return i[t.id]=e,e}}}function vm(){let i={};return{get:function(t){if(i[t.id]!==void 0)return i[t.id];let e;switch(t.type){case"DirectionalLight":e={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Pt};break;case"SpotLight":e={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Pt};break;case"PointLight":e={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Pt,shadowCameraNear:1,shadowCameraFar:1e3};break}return i[t.id]=e,e}}}var Mm=0;function Sm(i,t){return(t.castShadow?2:0)-(i.castShadow?2:0)+(t.map?1:0)-(i.map?1:0)}function bm(i){let t=new ym,e=vm(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new N);let s=new N,r=new ue,a=new ue;function o(c){let h=0,d=0,f=0;for(let v=0;v<9;v++)n.probe[v].set(0,0,0);let m=0,_=0,M=0,p=0,u=0,T=0,E=0,S=0,C=0,A=0,P=0;c.sort(Sm);for(let v=0,y=c.length;v0&&(i.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=rt.LTC_FLOAT_1,n.rectAreaLTC2=rt.LTC_FLOAT_2):(n.rectAreaLTC1=rt.LTC_HALF_1,n.rectAreaLTC2=rt.LTC_HALF_2)),n.ambient[0]=h,n.ambient[1]=d,n.ambient[2]=f;let U=n.hash;(U.directionalLength!==m||U.pointLength!==_||U.spotLength!==M||U.rectAreaLength!==p||U.hemiLength!==u||U.numDirectionalShadows!==T||U.numPointShadows!==E||U.numSpotShadows!==S||U.numSpotMaps!==C||U.numLightProbes!==P)&&(n.directional.length=m,n.spot.length=M,n.rectArea.length=p,n.point.length=_,n.hemi.length=u,n.directionalShadow.length=T,n.directionalShadowMap.length=T,n.pointShadow.length=E,n.pointShadowMap.length=E,n.spotShadow.length=S,n.spotShadowMap.length=S,n.directionalShadowMatrix.length=T,n.pointShadowMatrix.length=E,n.spotLightMatrix.length=S+C-A,n.spotLightMap.length=C,n.numSpotLightShadowsWithMaps=A,n.numLightProbes=P,U.directionalLength=m,U.pointLength=_,U.spotLength=M,U.rectAreaLength=p,U.hemiLength=u,U.numDirectionalShadows=T,U.numPointShadows=E,U.numSpotShadows=S,U.numSpotMaps=C,U.numLightProbes=P,n.version=Mm++)}function l(c,h){let d=0,f=0,m=0,_=0,M=0,p=h.matrixWorldInverse;for(let u=0,T=c.length;u=a.length?(o=new zc(i),a.push(o)):o=a[r],o}function n(){t=new WeakMap}return{get:e,dispose:n}}var Tm=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,wm=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function Am(i,t,e){let n=new Ni,s=new Pt,r=new Pt,a=new le,o=new dr({depthPacking:ic}),l=new fr,c={},h=e.maxTextureSize,d={[Sn]:Ie,[Ie]:Sn,[Ye]:Ye},f=new sn({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Pt},radius:{value:4}},vertexShader:Tm,fragmentShader:wm}),m=f.clone();m.defines.HORIZONTAL_PASS=1;let _=new ze;_.setAttribute("position",new be(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let M=new De(_,f),p=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=ro;let u=this.type;this.render=function(A,P,U){if(p.enabled===!1||p.autoUpdate===!1&&p.needsUpdate===!1||A.length===0)return;let v=i.getRenderTarget(),y=i.getActiveCubeFace(),R=i.getActiveMipmapLevel(),F=i.state;F.setBlending(En),F.buffers.depth.getReversed()===!0?F.buffers.color.setClear(0,0,0,0):F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);let k=u!==cn&&this.type===cn,H=u===cn&&this.type!==cn;for(let q=0,W=A.length;qh||s.y>h)&&(s.x>h&&(r.x=Math.floor(h/at.x),s.x=r.x*at.x,V.mapSize.x=r.x),s.y>h&&(r.y=Math.floor(h/at.y),s.y=r.y*at.y,V.mapSize.y=r.y)),V.map===null||k===!0||H===!0){let bt=this.type!==cn?{minFilter:Xe,magFilter:Xe}:{};V.map!==null&&V.map.dispose(),V.map=new ln(s.x,s.y,bt),V.map.texture.name=et.name+".shadowMap",V.camera.updateProjectionMatrix()}i.setRenderTarget(V.map),i.clear();let ht=V.getViewportCount();for(let bt=0;bt0||P.map&&P.alphaTest>0||P.alphaToCoverage===!0){let F=y.uuid,k=P.uuid,H=c[F];H===void 0&&(H={},c[F]=H);let q=H[k];q===void 0&&(q=y.clone(),H[k]=q,P.addEventListener("dispose",C)),y=q}if(y.visible=P.visible,y.wireframe=P.wireframe,v===cn?y.side=P.shadowSide!==null?P.shadowSide:P.side:y.side=P.shadowSide!==null?P.shadowSide:d[P.side],y.alphaMap=P.alphaMap,y.alphaTest=P.alphaToCoverage===!0?.5:P.alphaTest,y.map=P.map,y.clipShadows=P.clipShadows,y.clippingPlanes=P.clippingPlanes,y.clipIntersection=P.clipIntersection,y.displacementMap=P.displacementMap,y.displacementScale=P.displacementScale,y.displacementBias=P.displacementBias,y.wireframeLinewidth=P.wireframeLinewidth,y.linewidth=P.linewidth,U.isPointLight===!0&&y.isMeshDistanceMaterial===!0){let F=i.properties.get(y);F.light=U}return y}function S(A,P,U,v,y){if(A.visible===!1)return;if(A.layers.test(P.layers)&&(A.isMesh||A.isLine||A.isPoints)&&(A.castShadow||A.receiveShadow&&y===cn)&&(!A.frustumCulled||n.intersectsObject(A))){A.modelViewMatrix.multiplyMatrices(U.matrixWorldInverse,A.matrixWorld);let k=t.update(A),H=A.material;if(Array.isArray(H)){let q=k.groups;for(let W=0,et=q.length;W=1):V.indexOf("OpenGL ES")!==-1&&(et=parseFloat(/^OpenGL ES (\d)/.exec(V)[1]),W=et>=2);let at=null,ht={},bt=i.getParameter(i.SCISSOR_BOX),kt=i.getParameter(i.VIEWPORT),Kt=new le().fromArray(bt),ne=new le().fromArray(kt);function Xt(I,tt,it,dt){let K=new Uint8Array(4),Z=i.createTexture();i.bindTexture(I,Z),i.texParameteri(I,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(I,i.TEXTURE_MAG_FILTER,i.NEAREST);for(let mt=0;mt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new Pt,h=new WeakMap,d,f=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function _(b,g){return m?new OffscreenCanvas(b,g):os("canvas")}function M(b,g,O){let X=1,J=he(b);if((J.width>O||J.height>O)&&(X=O/Math.max(J.width,J.height)),X<1)if(typeof HTMLImageElement<"u"&&b instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&b instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&b instanceof ImageBitmap||typeof VideoFrame<"u"&&b instanceof VideoFrame){let G=Math.floor(X*J.width),Mt=Math.floor(X*J.height);d===void 0&&(d=_(G,Mt));let nt=g?_(G,Mt):d;return nt.width=G,nt.height=Mt,nt.getContext("2d").drawImage(b,0,0,G,Mt),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+J.width+"x"+J.height+") to ("+G+"x"+Mt+")."),nt}else return"data"in b&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+J.width+"x"+J.height+")."),b;return b}function p(b){return b.generateMipmaps}function u(b){i.generateMipmap(b)}function T(b){return b.isWebGLCubeRenderTarget?i.TEXTURE_CUBE_MAP:b.isWebGL3DRenderTarget?i.TEXTURE_3D:b.isWebGLArrayRenderTarget||b.isCompressedArrayTexture?i.TEXTURE_2D_ARRAY:i.TEXTURE_2D}function E(b,g,O,X,J=!1){if(b!==null){if(i[b]!==void 0)return i[b];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+b+"'")}let G=g;if(g===i.RED&&(O===i.FLOAT&&(G=i.R32F),O===i.HALF_FLOAT&&(G=i.R16F),O===i.UNSIGNED_BYTE&&(G=i.R8)),g===i.RED_INTEGER&&(O===i.UNSIGNED_BYTE&&(G=i.R8UI),O===i.UNSIGNED_SHORT&&(G=i.R16UI),O===i.UNSIGNED_INT&&(G=i.R32UI),O===i.BYTE&&(G=i.R8I),O===i.SHORT&&(G=i.R16I),O===i.INT&&(G=i.R32I)),g===i.RG&&(O===i.FLOAT&&(G=i.RG32F),O===i.HALF_FLOAT&&(G=i.RG16F),O===i.UNSIGNED_BYTE&&(G=i.RG8)),g===i.RG_INTEGER&&(O===i.UNSIGNED_BYTE&&(G=i.RG8UI),O===i.UNSIGNED_SHORT&&(G=i.RG16UI),O===i.UNSIGNED_INT&&(G=i.RG32UI),O===i.BYTE&&(G=i.RG8I),O===i.SHORT&&(G=i.RG16I),O===i.INT&&(G=i.RG32I)),g===i.RGB_INTEGER&&(O===i.UNSIGNED_BYTE&&(G=i.RGB8UI),O===i.UNSIGNED_SHORT&&(G=i.RGB16UI),O===i.UNSIGNED_INT&&(G=i.RGB32UI),O===i.BYTE&&(G=i.RGB8I),O===i.SHORT&&(G=i.RGB16I),O===i.INT&&(G=i.RGB32I)),g===i.RGBA_INTEGER&&(O===i.UNSIGNED_BYTE&&(G=i.RGBA8UI),O===i.UNSIGNED_SHORT&&(G=i.RGBA16UI),O===i.UNSIGNED_INT&&(G=i.RGBA32UI),O===i.BYTE&&(G=i.RGBA8I),O===i.SHORT&&(G=i.RGBA16I),O===i.INT&&(G=i.RGBA32I)),g===i.RGB&&(O===i.UNSIGNED_INT_5_9_9_9_REV&&(G=i.RGB9_E5),O===i.UNSIGNED_INT_10F_11F_11F_REV&&(G=i.R11F_G11F_B10F)),g===i.RGBA){let Mt=J?rs:Gt.getTransfer(X);O===i.FLOAT&&(G=i.RGBA32F),O===i.HALF_FLOAT&&(G=i.RGBA16F),O===i.UNSIGNED_BYTE&&(G=Mt===Yt?i.SRGB8_ALPHA8:i.RGBA8),O===i.UNSIGNED_SHORT_4_4_4_4&&(G=i.RGBA4),O===i.UNSIGNED_SHORT_5_5_5_1&&(G=i.RGB5_A1)}return(G===i.R16F||G===i.R32F||G===i.RG16F||G===i.RG32F||G===i.RGBA16F||G===i.RGBA32F)&&t.get("EXT_color_buffer_float"),G}function S(b,g){let O;return b?g===null||g===Xn||g===Hi?O=i.DEPTH24_STENCIL8:g===hn?O=i.DEPTH32F_STENCIL8:g===ki&&(O=i.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):g===null||g===Xn||g===Hi?O=i.DEPTH_COMPONENT24:g===hn?O=i.DEPTH_COMPONENT32F:g===ki&&(O=i.DEPTH_COMPONENT16),O}function C(b,g){return p(b)===!0||b.isFramebufferTexture&&b.minFilter!==Xe&&b.minFilter!==en?Math.log2(Math.max(g.width,g.height))+1:b.mipmaps!==void 0&&b.mipmaps.length>0?b.mipmaps.length:b.isCompressedTexture&&Array.isArray(b.image)?g.mipmaps.length:1}function A(b){let g=b.target;g.removeEventListener("dispose",A),U(g),g.isVideoTexture&&h.delete(g)}function P(b){let g=b.target;g.removeEventListener("dispose",P),y(g)}function U(b){let g=n.get(b);if(g.__webglInit===void 0)return;let O=b.source,X=f.get(O);if(X){let J=X[g.__cacheKey];J.usedTimes--,J.usedTimes===0&&v(b),Object.keys(X).length===0&&f.delete(O)}n.remove(b)}function v(b){let g=n.get(b);i.deleteTexture(g.__webglTexture);let O=b.source,X=f.get(O);delete X[g.__cacheKey],a.memory.textures--}function y(b){let g=n.get(b);if(b.depthTexture&&(b.depthTexture.dispose(),n.remove(b.depthTexture)),b.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(g.__webglFramebuffer[X]))for(let J=0;J=s.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+b+" texture units while this GPU supports only "+s.maxTextures),R+=1,b}function H(b){let g=[];return g.push(b.wrapS),g.push(b.wrapT),g.push(b.wrapR||0),g.push(b.magFilter),g.push(b.minFilter),g.push(b.anisotropy),g.push(b.internalFormat),g.push(b.format),g.push(b.type),g.push(b.generateMipmaps),g.push(b.premultiplyAlpha),g.push(b.flipY),g.push(b.unpackAlignment),g.push(b.colorSpace),g.join()}function q(b,g){let O=n.get(b);if(b.isVideoTexture&&Ft(b),b.isRenderTargetTexture===!1&&b.isExternalTexture!==!0&&b.version>0&&O.__version!==b.version){let X=b.image;if(X===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(X.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Y(O,b,g);return}}else b.isExternalTexture&&(O.__webglTexture=b.sourceTexture?b.sourceTexture:null);e.bindTexture(i.TEXTURE_2D,O.__webglTexture,i.TEXTURE0+g)}function W(b,g){let O=n.get(b);if(b.isRenderTargetTexture===!1&&b.version>0&&O.__version!==b.version){Y(O,b,g);return}e.bindTexture(i.TEXTURE_2D_ARRAY,O.__webglTexture,i.TEXTURE0+g)}function et(b,g){let O=n.get(b);if(b.isRenderTargetTexture===!1&&b.version>0&&O.__version!==b.version){Y(O,b,g);return}e.bindTexture(i.TEXTURE_3D,O.__webglTexture,i.TEXTURE0+g)}function V(b,g){let O=n.get(b);if(b.version>0&&O.__version!==b.version){$(O,b,g);return}e.bindTexture(i.TEXTURE_CUBE_MAP,O.__webglTexture,i.TEXTURE0+g)}let at={[sr]:i.REPEAT,[Nn]:i.CLAMP_TO_EDGE,[rr]:i.MIRRORED_REPEAT},ht={[Xe]:i.NEAREST,[ec]:i.NEAREST_MIPMAP_NEAREST,[ws]:i.NEAREST_MIPMAP_LINEAR,[en]:i.LINEAR,[Nr]:i.LINEAR_MIPMAP_NEAREST,[Wn]:i.LINEAR_MIPMAP_LINEAR},bt={[rc]:i.NEVER,[uc]:i.ALWAYS,[ac]:i.LESS,[Mo]:i.LEQUAL,[oc]:i.EQUAL,[hc]:i.GEQUAL,[lc]:i.GREATER,[cc]:i.NOTEQUAL};function kt(b,g){if(g.type===hn&&t.has("OES_texture_float_linear")===!1&&(g.magFilter===en||g.magFilter===Nr||g.magFilter===ws||g.magFilter===Wn||g.minFilter===en||g.minFilter===Nr||g.minFilter===ws||g.minFilter===Wn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),i.texParameteri(b,i.TEXTURE_WRAP_S,at[g.wrapS]),i.texParameteri(b,i.TEXTURE_WRAP_T,at[g.wrapT]),(b===i.TEXTURE_3D||b===i.TEXTURE_2D_ARRAY)&&i.texParameteri(b,i.TEXTURE_WRAP_R,at[g.wrapR]),i.texParameteri(b,i.TEXTURE_MAG_FILTER,ht[g.magFilter]),i.texParameteri(b,i.TEXTURE_MIN_FILTER,ht[g.minFilter]),g.compareFunction&&(i.texParameteri(b,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE),i.texParameteri(b,i.TEXTURE_COMPARE_FUNC,bt[g.compareFunction])),t.has("EXT_texture_filter_anisotropic")===!0){if(g.magFilter===Xe||g.minFilter!==ws&&g.minFilter!==Wn||g.type===hn&&t.has("OES_texture_float_linear")===!1)return;if(g.anisotropy>1||n.get(g).__currentAnisotropy){let O=t.get("EXT_texture_filter_anisotropic");i.texParameterf(b,O.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(g.anisotropy,s.getMaxAnisotropy())),n.get(g).__currentAnisotropy=g.anisotropy}}}function Kt(b,g){let O=!1;b.__webglInit===void 0&&(b.__webglInit=!0,g.addEventListener("dispose",A));let X=g.source,J=f.get(X);J===void 0&&(J={},f.set(X,J));let G=H(g);if(G!==b.__cacheKey){J[G]===void 0&&(J[G]={texture:i.createTexture(),usedTimes:0},a.memory.textures++,O=!0),J[G].usedTimes++;let Mt=J[b.__cacheKey];Mt!==void 0&&(J[b.__cacheKey].usedTimes--,Mt.usedTimes===0&&v(g)),b.__cacheKey=G,b.__webglTexture=J[G].texture}return O}function ne(b,g,O){return Math.floor(Math.floor(b/O)/g)}function Xt(b,g,O,X){let G=b.updateRanges;if(G.length===0)e.texSubImage2D(i.TEXTURE_2D,0,0,0,g.width,g.height,O,X,g.data);else{G.sort((Q,ct)=>Q.start-ct.start);let Mt=0;for(let Q=1;Q0){I&&tt&&e.texStorage2D(i.TEXTURE_2D,dt,vt,Nt[0].width,Nt[0].height);for(let K=0,Z=Nt.length;K0){let mt=Ro(ot.width,ot.height,g.format,g.type);for(let Dt of g.layerUpdates){let jt=ot.data.subarray(Dt*mt/ot.data.BYTES_PER_ELEMENT,(Dt+1)*mt/ot.data.BYTES_PER_ELEMENT);e.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,K,0,0,Dt,ot.width,ot.height,1,ct,jt)}g.clearLayerUpdates()}else e.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,K,0,0,0,ot.width,ot.height,Q.depth,ct,ot.data)}else e.compressedTexImage3D(i.TEXTURE_2D_ARRAY,K,vt,ot.width,ot.height,Q.depth,0,ot.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else I?it&&e.texSubImage3D(i.TEXTURE_2D_ARRAY,K,0,0,0,ot.width,ot.height,Q.depth,ct,At,ot.data):e.texImage3D(i.TEXTURE_2D_ARRAY,K,vt,ot.width,ot.height,Q.depth,0,ct,At,ot.data)}else{I&&tt&&e.texStorage2D(i.TEXTURE_2D,dt,vt,Nt[0].width,Nt[0].height);for(let K=0,Z=Nt.length;K0){let K=Ro(Q.width,Q.height,g.format,g.type);for(let Z of g.layerUpdates){let mt=Q.data.subarray(Z*K/Q.data.BYTES_PER_ELEMENT,(Z+1)*K/Q.data.BYTES_PER_ELEMENT);e.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,Z,Q.width,Q.height,1,ct,At,mt)}g.clearLayerUpdates()}else e.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,0,Q.width,Q.height,Q.depth,ct,At,Q.data)}else e.texImage3D(i.TEXTURE_2D_ARRAY,0,vt,Q.width,Q.height,Q.depth,0,ct,At,Q.data);else if(g.isData3DTexture)I?(tt&&e.texStorage3D(i.TEXTURE_3D,dt,vt,Q.width,Q.height,Q.depth),it&&e.texSubImage3D(i.TEXTURE_3D,0,0,0,0,Q.width,Q.height,Q.depth,ct,At,Q.data)):e.texImage3D(i.TEXTURE_3D,0,vt,Q.width,Q.height,Q.depth,0,ct,At,Q.data);else if(g.isFramebufferTexture){if(tt)if(I)e.texStorage2D(i.TEXTURE_2D,dt,vt,Q.width,Q.height);else{let K=Q.width,Z=Q.height;for(let mt=0;mt>=1,Z>>=1}}else if(Nt.length>0){if(I&&tt){let K=he(Nt[0]);e.texStorage2D(i.TEXTURE_2D,dt,vt,K.width,K.height)}for(let K=0,Z=Nt.length;K0&&dt++;let Z=he(ct[0]);e.texStorage2D(i.TEXTURE_CUBE_MAP,dt,Nt,Z.width,Z.height)}for(let Z=0;Z<6;Z++)if(Q){I?it&&e.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+Z,0,0,0,ct[Z].width,ct[Z].height,vt,ot,ct[Z].data):e.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+Z,0,Nt,ct[Z].width,ct[Z].height,0,vt,ot,ct[Z].data);for(let mt=0;mt>G),At=Math.max(1,g.height>>G);J===i.TEXTURE_3D||J===i.TEXTURE_2D_ARRAY?e.texImage3D(J,G,xt,ct,At,g.depth,0,Mt,nt,null):e.texImage2D(J,G,xt,ct,At,0,Mt,nt,null)}e.bindFramebuffer(i.FRAMEBUFFER,b),_t(g)?o.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER,X,J,Q.__webglTexture,0,se(g)):(J===i.TEXTURE_2D||J>=i.TEXTURE_CUBE_MAP_POSITIVE_X&&J<=i.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&i.framebufferTexture2D(i.FRAMEBUFFER,X,J,Q.__webglTexture,G),e.bindFramebuffer(i.FRAMEBUFFER,null)}function It(b,g,O){if(i.bindRenderbuffer(i.RENDERBUFFER,b),g.depthBuffer){let X=g.depthTexture,J=X&&X.isDepthTexture?X.type:null,G=S(g.stencilBuffer,J),Mt=g.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,nt=se(g);_t(g)?o.renderbufferStorageMultisampleEXT(i.RENDERBUFFER,nt,G,g.width,g.height):O?i.renderbufferStorageMultisample(i.RENDERBUFFER,nt,G,g.width,g.height):i.renderbufferStorage(i.RENDERBUFFER,G,g.width,g.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,Mt,i.RENDERBUFFER,b)}else{let X=g.textures;for(let J=0;J{delete g.__boundDepthTexture,delete g.__depthDisposeCallback,X.removeEventListener("dispose",J)};X.addEventListener("dispose",J),g.__depthDisposeCallback=J}g.__boundDepthTexture=X}if(b.depthTexture&&!g.__autoAllocateDepthBuffer){if(O)throw new Error("target.depthTexture not supported in Cube render targets");let X=b.texture.mipmaps;X&&X.length>0?St(g.__webglFramebuffer[0],b):St(g.__webglFramebuffer,b)}else if(O){g.__webglDepthbuffer=[];for(let X=0;X<6;X++)if(e.bindFramebuffer(i.FRAMEBUFFER,g.__webglFramebuffer[X]),g.__webglDepthbuffer[X]===void 0)g.__webglDepthbuffer[X]=i.createRenderbuffer(),It(g.__webglDepthbuffer[X],b,!1);else{let J=b.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,G=g.__webglDepthbuffer[X];i.bindRenderbuffer(i.RENDERBUFFER,G),i.framebufferRenderbuffer(i.FRAMEBUFFER,J,i.RENDERBUFFER,G)}}else{let X=b.texture.mipmaps;if(X&&X.length>0?e.bindFramebuffer(i.FRAMEBUFFER,g.__webglFramebuffer[0]):e.bindFramebuffer(i.FRAMEBUFFER,g.__webglFramebuffer),g.__webglDepthbuffer===void 0)g.__webglDepthbuffer=i.createRenderbuffer(),It(g.__webglDepthbuffer,b,!1);else{let J=b.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,G=g.__webglDepthbuffer;i.bindRenderbuffer(i.RENDERBUFFER,G),i.framebufferRenderbuffer(i.FRAMEBUFFER,J,i.RENDERBUFFER,G)}}e.bindFramebuffer(i.FRAMEBUFFER,null)}function ye(b,g,O){let X=n.get(b);g!==void 0&&ft(X.__webglFramebuffer,b,b.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,0),O!==void 0&&Ht(b)}function w(b){let g=b.texture,O=n.get(b),X=n.get(g);b.addEventListener("dispose",P);let J=b.textures,G=b.isWebGLCubeRenderTarget===!0,Mt=J.length>1;if(Mt||(X.__webglTexture===void 0&&(X.__webglTexture=i.createTexture()),X.__version=g.version,a.memory.textures++),G){O.__webglFramebuffer=[];for(let nt=0;nt<6;nt++)if(g.mipmaps&&g.mipmaps.length>0){O.__webglFramebuffer[nt]=[];for(let xt=0;xt0){O.__webglFramebuffer=[];for(let nt=0;nt0&&_t(b)===!1){O.__webglMultisampledFramebuffer=i.createFramebuffer(),O.__webglColorRenderbuffer=[],e.bindFramebuffer(i.FRAMEBUFFER,O.__webglMultisampledFramebuffer);for(let nt=0;nt0)for(let xt=0;xt0)for(let xt=0;xt0){if(_t(b)===!1){let g=b.textures,O=b.width,X=b.height,J=i.COLOR_BUFFER_BIT,G=b.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,Mt=n.get(b),nt=g.length>1;if(nt)for(let yt=0;yt0?e.bindFramebuffer(i.DRAW_FRAMEBUFFER,Mt.__webglFramebuffer[0]):e.bindFramebuffer(i.DRAW_FRAMEBUFFER,Mt.__webglFramebuffer);for(let yt=0;yt0&&t.has("WEBGL_multisampled_render_to_texture")===!0&&g.__useRenderToTexture!==!1}function Ft(b){let g=a.render.frame;h.get(b)!==g&&(h.set(b,g),b.update())}function _e(b,g){let O=b.colorSpace,X=b.format,J=b.type;return b.isCompressedTexture===!0||b.isVideoTexture===!0||O!==bn&&O!==wn&&(Gt.getTransfer(O)===Yt?(X!==Ze||J!==rn)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",O)),g}function he(b){return typeof HTMLImageElement<"u"&&b instanceof HTMLImageElement?(c.width=b.naturalWidth||b.width,c.height=b.naturalHeight||b.height):typeof VideoFrame<"u"&&b instanceof VideoFrame?(c.width=b.displayWidth,c.height=b.displayHeight):(c.width=b.width,c.height=b.height),c}this.allocateTextureUnit=k,this.resetTextureUnits=F,this.setTexture2D=q,this.setTexture2DArray=W,this.setTexture3D=et,this.setTextureCube=V,this.rebindTextures=ye,this.setupRenderTarget=w,this.updateRenderTargetMipmap=ie,this.updateMultisampleRenderTarget=gt,this.setupDepthRenderbuffer=Ht,this.setupFrameBufferTexture=ft,this.useMultisampledRTT=_t}function Pm(i,t){function e(n,s=wn){let r,a=Gt.getTransfer(s);if(n===rn)return i.UNSIGNED_BYTE;if(n===Or)return i.UNSIGNED_SHORT_4_4_4_4;if(n===Br)return i.UNSIGNED_SHORT_5_5_5_1;if(n===po)return i.UNSIGNED_INT_5_9_9_9_REV;if(n===mo)return i.UNSIGNED_INT_10F_11F_11F_REV;if(n===uo)return i.BYTE;if(n===fo)return i.SHORT;if(n===ki)return i.UNSIGNED_SHORT;if(n===Fr)return i.INT;if(n===Xn)return i.UNSIGNED_INT;if(n===hn)return i.FLOAT;if(n===Vi)return i.HALF_FLOAT;if(n===go)return i.ALPHA;if(n===_o)return i.RGB;if(n===Ze)return i.RGBA;if(n===Ci)return i.DEPTH_COMPONENT;if(n===Gi)return i.DEPTH_STENCIL;if(n===xo)return i.RED;if(n===zr)return i.RED_INTEGER;if(n===yo)return i.RG;if(n===kr)return i.RG_INTEGER;if(n===Vr)return i.RGBA_INTEGER;if(n===As||n===Cs||n===Rs||n===Is)if(a===Yt)if(r=t.get("WEBGL_compressed_texture_s3tc_srgb"),r!==null){if(n===As)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Cs)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Rs)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Is)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(r=t.get("WEBGL_compressed_texture_s3tc"),r!==null){if(n===As)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Cs)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Rs)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Is)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Hr||n===Gr||n===Wr||n===Xr)if(r=t.get("WEBGL_compressed_texture_pvrtc"),r!==null){if(n===Hr)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Gr)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Wr)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Xr)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===qr||n===Yr||n===Zr)if(r=t.get("WEBGL_compressed_texture_etc"),r!==null){if(n===qr||n===Yr)return a===Yt?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===Zr)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===Jr||n===$r||n===Kr||n===jr||n===Qr||n===ta||n===ea||n===na||n===ia||n===sa||n===ra||n===aa||n===oa||n===la)if(r=t.get("WEBGL_compressed_texture_astc"),r!==null){if(n===Jr)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===$r)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Kr)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===jr)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Qr)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===ta)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===ea)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===na)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===ia)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===sa)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===ra)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===aa)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===oa)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===la)return a===Yt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===ca||n===ha||n===ua)if(r=t.get("EXT_texture_compression_bptc"),r!==null){if(n===ca)return a===Yt?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===ha)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===ua)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===da||n===fa||n===pa||n===ma)if(r=t.get("EXT_texture_compression_rgtc"),r!==null){if(n===da)return r.COMPRESSED_RED_RGTC1_EXT;if(n===fa)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===pa)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===ma)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===Hi?i.UNSIGNED_INT_24_8:i[n]!==void 0?i[n]:null}return{convert:e}}var Dm=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,Lm=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`,Ho=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,e){if(this.texture===null){let n=new _s(t.texture);(t.depthNear!==e.depthNear||t.depthFar!==e.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=n}}getMesh(t){if(this.texture!==null&&this.mesh===null){let e=t.cameras[0].viewport,n=new sn({vertexShader:Dm,fragmentShader:Lm,uniforms:{depthColor:{value:this.texture},depthWidth:{value:e.z},depthHeight:{value:e.w}}});this.mesh=new De(new ni(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Go=class extends on{constructor(t,e){super();let n=this,s=null,r=1,a=null,o="local-floor",l=1,c=null,h=null,d=null,f=null,m=null,_=null,M=typeof XRWebGLBinding<"u",p=new Ho,u={},T=e.getContextAttributes(),E=null,S=null,C=[],A=[],P=new Pt,U=null,v=new Se;v.viewport=new le;let y=new Se;y.viewport=new le;let R=[v,y],F=new br,k=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(Y){let $=C[Y];return $===void 0&&($=new Ui,C[Y]=$),$.getTargetRaySpace()},this.getControllerGrip=function(Y){let $=C[Y];return $===void 0&&($=new Ui,C[Y]=$),$.getGripSpace()},this.getHand=function(Y){let $=C[Y];return $===void 0&&($=new Ui,C[Y]=$),$.getHandSpace()};function q(Y){let $=A.indexOf(Y.inputSource);if($===-1)return;let ft=C[$];ft!==void 0&&(ft.update(Y.inputSource,Y.frame,c||a),ft.dispatchEvent({type:Y.type,data:Y.inputSource}))}function W(){s.removeEventListener("select",q),s.removeEventListener("selectstart",q),s.removeEventListener("selectend",q),s.removeEventListener("squeeze",q),s.removeEventListener("squeezestart",q),s.removeEventListener("squeezeend",q),s.removeEventListener("end",W),s.removeEventListener("inputsourceschange",et);for(let Y=0;Y=0&&(A[It]=null,C[It].disconnect(ft))}for(let $=0;$=A.length){A.push(ft),It=Ht;break}else if(A[Ht]===null){A[Ht]=ft,It=Ht;break}if(It===-1)break}let St=C[It];St&&St.connect(ft)}}let V=new N,at=new N;function ht(Y,$,ft){V.setFromMatrixPosition($.matrixWorld),at.setFromMatrixPosition(ft.matrixWorld);let It=V.distanceTo(at),St=$.projectionMatrix.elements,Ht=ft.projectionMatrix.elements,ye=St[14]/(St[10]-1),w=St[14]/(St[10]+1),ie=(St[9]+1)/St[5],Lt=(St[9]-1)/St[5],Ct=(St[8]-1)/St[0],gt=(Ht[8]+1)/Ht[0],se=ye*Ct,_t=ye*gt,Ft=It/(-Ct+gt),_e=Ft*-Ct;if($.matrixWorld.decompose(Y.position,Y.quaternion,Y.scale),Y.translateX(_e),Y.translateZ(Ft),Y.matrixWorld.compose(Y.position,Y.quaternion,Y.scale),Y.matrixWorldInverse.copy(Y.matrixWorld).invert(),St[10]===-1)Y.projectionMatrix.copy($.projectionMatrix),Y.projectionMatrixInverse.copy($.projectionMatrixInverse);else{let he=ye+Ft,b=w+Ft,g=se-_e,O=_t+(It-_e),X=ie*w/b*he,J=Lt*w/b*he;Y.projectionMatrix.makePerspective(g,O,X,J,he,b),Y.projectionMatrixInverse.copy(Y.projectionMatrix).invert()}}function bt(Y,$){$===null?Y.matrixWorld.copy(Y.matrix):Y.matrixWorld.multiplyMatrices($.matrixWorld,Y.matrix),Y.matrixWorldInverse.copy(Y.matrixWorld).invert()}this.updateCamera=function(Y){if(s===null)return;let $=Y.near,ft=Y.far;p.texture!==null&&(p.depthNear>0&&($=p.depthNear),p.depthFar>0&&(ft=p.depthFar)),F.near=y.near=v.near=$,F.far=y.far=v.far=ft,(k!==F.near||H!==F.far)&&(s.updateRenderState({depthNear:F.near,depthFar:F.far}),k=F.near,H=F.far),F.layers.mask=Y.layers.mask|6,v.layers.mask=F.layers.mask&3,y.layers.mask=F.layers.mask&5;let It=Y.parent,St=F.cameras;bt(F,It);for(let Ht=0;Ht0&&(p.alphaTest.value=u.alphaTest);let T=t.get(u),E=T.envMap,S=T.envMapRotation;E&&(p.envMap.value=E,li.copy(S),li.x*=-1,li.y*=-1,li.z*=-1,E.isCubeTexture&&E.isRenderTargetTexture===!1&&(li.y*=-1,li.z*=-1),p.envMapRotation.value.setFromMatrix4(Um.makeRotationFromEuler(li)),p.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=u.reflectivity,p.ior.value=u.ior,p.refractionRatio.value=u.refractionRatio),u.lightMap&&(p.lightMap.value=u.lightMap,p.lightMapIntensity.value=u.lightMapIntensity,e(u.lightMap,p.lightMapTransform)),u.aoMap&&(p.aoMap.value=u.aoMap,p.aoMapIntensity.value=u.aoMapIntensity,e(u.aoMap,p.aoMapTransform))}function a(p,u){p.diffuse.value.copy(u.color),p.opacity.value=u.opacity,u.map&&(p.map.value=u.map,e(u.map,p.mapTransform))}function o(p,u){p.dashSize.value=u.dashSize,p.totalSize.value=u.dashSize+u.gapSize,p.scale.value=u.scale}function l(p,u,T,E){p.diffuse.value.copy(u.color),p.opacity.value=u.opacity,p.size.value=u.size*T,p.scale.value=E*.5,u.map&&(p.map.value=u.map,e(u.map,p.uvTransform)),u.alphaMap&&(p.alphaMap.value=u.alphaMap,e(u.alphaMap,p.alphaMapTransform)),u.alphaTest>0&&(p.alphaTest.value=u.alphaTest)}function c(p,u){p.diffuse.value.copy(u.color),p.opacity.value=u.opacity,p.rotation.value=u.rotation,u.map&&(p.map.value=u.map,e(u.map,p.mapTransform)),u.alphaMap&&(p.alphaMap.value=u.alphaMap,e(u.alphaMap,p.alphaMapTransform)),u.alphaTest>0&&(p.alphaTest.value=u.alphaTest)}function h(p,u){p.specular.value.copy(u.specular),p.shininess.value=Math.max(u.shininess,1e-4)}function d(p,u){u.gradientMap&&(p.gradientMap.value=u.gradientMap)}function f(p,u){p.metalness.value=u.metalness,u.metalnessMap&&(p.metalnessMap.value=u.metalnessMap,e(u.metalnessMap,p.metalnessMapTransform)),p.roughness.value=u.roughness,u.roughnessMap&&(p.roughnessMap.value=u.roughnessMap,e(u.roughnessMap,p.roughnessMapTransform)),u.envMap&&(p.envMapIntensity.value=u.envMapIntensity)}function m(p,u,T){p.ior.value=u.ior,u.sheen>0&&(p.sheenColor.value.copy(u.sheenColor).multiplyScalar(u.sheen),p.sheenRoughness.value=u.sheenRoughness,u.sheenColorMap&&(p.sheenColorMap.value=u.sheenColorMap,e(u.sheenColorMap,p.sheenColorMapTransform)),u.sheenRoughnessMap&&(p.sheenRoughnessMap.value=u.sheenRoughnessMap,e(u.sheenRoughnessMap,p.sheenRoughnessMapTransform))),u.clearcoat>0&&(p.clearcoat.value=u.clearcoat,p.clearcoatRoughness.value=u.clearcoatRoughness,u.clearcoatMap&&(p.clearcoatMap.value=u.clearcoatMap,e(u.clearcoatMap,p.clearcoatMapTransform)),u.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=u.clearcoatRoughnessMap,e(u.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),u.clearcoatNormalMap&&(p.clearcoatNormalMap.value=u.clearcoatNormalMap,e(u.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(u.clearcoatNormalScale),u.side===Ie&&p.clearcoatNormalScale.value.negate())),u.dispersion>0&&(p.dispersion.value=u.dispersion),u.iridescence>0&&(p.iridescence.value=u.iridescence,p.iridescenceIOR.value=u.iridescenceIOR,p.iridescenceThicknessMinimum.value=u.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=u.iridescenceThicknessRange[1],u.iridescenceMap&&(p.iridescenceMap.value=u.iridescenceMap,e(u.iridescenceMap,p.iridescenceMapTransform)),u.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=u.iridescenceThicknessMap,e(u.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),u.transmission>0&&(p.transmission.value=u.transmission,p.transmissionSamplerMap.value=T.texture,p.transmissionSamplerSize.value.set(T.width,T.height),u.transmissionMap&&(p.transmissionMap.value=u.transmissionMap,e(u.transmissionMap,p.transmissionMapTransform)),p.thickness.value=u.thickness,u.thicknessMap&&(p.thicknessMap.value=u.thicknessMap,e(u.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=u.attenuationDistance,p.attenuationColor.value.copy(u.attenuationColor)),u.anisotropy>0&&(p.anisotropyVector.value.set(u.anisotropy*Math.cos(u.anisotropyRotation),u.anisotropy*Math.sin(u.anisotropyRotation)),u.anisotropyMap&&(p.anisotropyMap.value=u.anisotropyMap,e(u.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=u.specularIntensity,p.specularColor.value.copy(u.specularColor),u.specularColorMap&&(p.specularColorMap.value=u.specularColorMap,e(u.specularColorMap,p.specularColorMapTransform)),u.specularIntensityMap&&(p.specularIntensityMap.value=u.specularIntensityMap,e(u.specularIntensityMap,p.specularIntensityMapTransform))}function _(p,u){u.matcap&&(p.matcap.value=u.matcap)}function M(p,u){let T=t.get(u).light;p.referencePosition.value.setFromMatrixPosition(T.matrixWorld),p.nearDistance.value=T.shadow.camera.near,p.farDistance.value=T.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:s}}function Fm(i,t,e,n){let s={},r={},a=[],o=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function l(T,E){let S=E.program;n.uniformBlockBinding(T,S)}function c(T,E){let S=s[T.id];S===void 0&&(_(T),S=h(T),s[T.id]=S,T.addEventListener("dispose",p));let C=E.program;n.updateUBOMapping(T,C);let A=t.render.frame;r[T.id]!==A&&(f(T),r[T.id]=A)}function h(T){let E=d();T.__bindingPointIndex=E;let S=i.createBuffer(),C=T.__size,A=T.usage;return i.bindBuffer(i.UNIFORM_BUFFER,S),i.bufferData(i.UNIFORM_BUFFER,C,A),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,E,S),S}function d(){for(let T=0;T0&&(S+=C-A),T.__size=S,T.__cache={},this}function M(T){let E={boundary:0,storage:0};return typeof T=="number"||typeof T=="boolean"?(E.boundary=4,E.storage=4):T.isVector2?(E.boundary=8,E.storage=8):T.isVector3||T.isColor?(E.boundary=16,E.storage=12):T.isVector4?(E.boundary=16,E.storage=16):T.isMatrix3?(E.boundary=48,E.storage=48):T.isMatrix4?(E.boundary=64,E.storage=64):T.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",T),E}function p(T){let E=T.target;E.removeEventListener("dispose",p);let S=a.indexOf(E.__bindingPointIndex);a.splice(S,1),i.deleteBuffer(s[E.id]),delete s[E.id],delete r[E.id]}function u(){for(let T in s)i.deleteBuffer(s[T]);a=[],s={},r={}}return{bind:l,update:c,dispose:u}}var va=class{constructor(t={}){let{canvas:e=dc(),context:n=null,depth:s=!0,stencil:r=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:d=!1,reversedDepthBuffer:f=!1}=t;this.isWebGLRenderer=!0;let m;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");m=n.getContextAttributes().alpha}else m=a;let _=new Uint32Array(4),M=new Int32Array(4),p=null,u=null,T=[],E=[];this.domElement=e,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=Tn,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let S=this,C=!1;this._outputColorSpace=Re;let A=0,P=0,U=null,v=-1,y=null,R=new le,F=new le,k=null,H=new zt(0),q=0,W=e.width,et=e.height,V=1,at=null,ht=null,bt=new le(0,0,W,et),kt=new le(0,0,W,et),Kt=!1,ne=new Ni,Xt=!1,Y=!1,$=new ue,ft=new N,It=new le,St={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Ht=!1;function ye(){return U===null?V:1}let w=n;function ie(x,D){return e.getContext(x,D)}try{let x={alpha:!0,depth:s,stencil:r,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:h,failIfMajorPerformanceCaveat:d};if("setAttribute"in e&&e.setAttribute("data-engine",`three.js r${"180"}`),e.addEventListener("webglcontextlost",it,!1),e.addEventListener("webglcontextrestored",dt,!1),e.addEventListener("webglcontextcreationerror",K,!1),w===null){let D="webgl2";if(w=ie(D,x),w===null)throw ie(D)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(x){throw console.error("THREE.WebGLRenderer: "+x.message),x}let Lt,Ct,gt,se,_t,Ft,_e,he,b,g,O,X,J,G,Mt,nt,xt,yt,Q,ct,At,vt,ot,Nt;function I(){Lt=new tp(w),Lt.init(),vt=new Pm(w,Lt),Ct=new Yf(w,Lt,t,vt),gt=new Rm(w,Lt),Ct.reversedDepthBuffer&&f&>.buffers.depth.setReversed(!0),se=new ip(w),_t=new gm,Ft=new Im(w,Lt,gt,_t,Ct,vt,se),_e=new Jf(S),he=new Qf(S),b=new lu(w),ot=new Xf(w,b),g=new ep(w,b,se,ot),O=new rp(w,g,b,se),Q=new sp(w,Ct,Ft),nt=new Zf(_t),X=new mm(S,_e,he,Lt,Ct,ot,nt),J=new Nm(S,_t),G=new xm,Mt=new Em(Lt),yt=new Wf(S,_e,he,gt,O,m,l),xt=new Am(S,O,Ct),Nt=new Fm(w,se,Ct,gt),ct=new qf(w,Lt,se),At=new np(w,Lt,se),se.programs=X.programs,S.capabilities=Ct,S.extensions=Lt,S.properties=_t,S.renderLists=G,S.shadowMap=xt,S.state=gt,S.info=se}I();let tt=new Go(S,w);this.xr=tt,this.getContext=function(){return w},this.getContextAttributes=function(){return w.getContextAttributes()},this.forceContextLoss=function(){let x=Lt.get("WEBGL_lose_context");x&&x.loseContext()},this.forceContextRestore=function(){let x=Lt.get("WEBGL_lose_context");x&&x.restoreContext()},this.getPixelRatio=function(){return V},this.setPixelRatio=function(x){x!==void 0&&(V=x,this.setSize(W,et,!1))},this.getSize=function(x){return x.set(W,et)},this.setSize=function(x,D,B=!0){if(tt.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}W=x,et=D,e.width=Math.floor(x*V),e.height=Math.floor(D*V),B===!0&&(e.style.width=x+"px",e.style.height=D+"px"),this.setViewport(0,0,x,D)},this.getDrawingBufferSize=function(x){return x.set(W*V,et*V).floor()},this.setDrawingBufferSize=function(x,D,B){W=x,et=D,V=B,e.width=Math.floor(x*B),e.height=Math.floor(D*B),this.setViewport(0,0,x,D)},this.getCurrentViewport=function(x){return x.copy(R)},this.getViewport=function(x){return x.copy(bt)},this.setViewport=function(x,D,B,z){x.isVector4?bt.set(x.x,x.y,x.z,x.w):bt.set(x,D,B,z),gt.viewport(R.copy(bt).multiplyScalar(V).round())},this.getScissor=function(x){return x.copy(kt)},this.setScissor=function(x,D,B,z){x.isVector4?kt.set(x.x,x.y,x.z,x.w):kt.set(x,D,B,z),gt.scissor(F.copy(kt).multiplyScalar(V).round())},this.getScissorTest=function(){return Kt},this.setScissorTest=function(x){gt.setScissorTest(Kt=x)},this.setOpaqueSort=function(x){at=x},this.setTransparentSort=function(x){ht=x},this.getClearColor=function(x){return x.copy(yt.getClearColor())},this.setClearColor=function(){yt.setClearColor(...arguments)},this.getClearAlpha=function(){return yt.getClearAlpha()},this.setClearAlpha=function(){yt.setClearAlpha(...arguments)},this.clear=function(x=!0,D=!0,B=!0){let z=0;if(x){let L=!1;if(U!==null){let j=U.texture.format;L=j===Vr||j===kr||j===zr}if(L){let j=U.texture.type,lt=j===rn||j===Xn||j===ki||j===Hi||j===Or||j===Br,pt=yt.getClearColor(),ut=yt.getClearAlpha(),wt=pt.r,Rt=pt.g,Et=pt.b;lt?(_[0]=wt,_[1]=Rt,_[2]=Et,_[3]=ut,w.clearBufferuiv(w.COLOR,0,_)):(M[0]=wt,M[1]=Rt,M[2]=Et,M[3]=ut,w.clearBufferiv(w.COLOR,0,M))}else z|=w.COLOR_BUFFER_BIT}D&&(z|=w.DEPTH_BUFFER_BIT),B&&(z|=w.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),w.clear(z)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",it,!1),e.removeEventListener("webglcontextrestored",dt,!1),e.removeEventListener("webglcontextcreationerror",K,!1),yt.dispose(),G.dispose(),Mt.dispose(),_t.dispose(),_e.dispose(),he.dispose(),O.dispose(),ot.dispose(),Nt.dispose(),X.dispose(),tt.dispose(),tt.removeEventListener("sessionstart",an),tt.removeEventListener("sessionend",el),Yn.stop()};function it(x){x.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),C=!0}function dt(){console.log("THREE.WebGLRenderer: Context Restored."),C=!1;let x=se.autoReset,D=xt.enabled,B=xt.autoUpdate,z=xt.needsUpdate,L=xt.type;I(),se.autoReset=x,xt.enabled=D,xt.autoUpdate=B,xt.needsUpdate=z,xt.type=L}function K(x){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",x.statusMessage)}function Z(x){let D=x.target;D.removeEventListener("dispose",Z),mt(D)}function mt(x){Dt(x),_t.remove(x)}function Dt(x){let D=_t.get(x).programs;D!==void 0&&(D.forEach(function(B){X.releaseProgram(B)}),x.isShaderMaterial&&X.releaseShaderCache(x))}this.renderBufferDirect=function(x,D,B,z,L,j){D===null&&(D=St);let lt=L.isMesh&&L.matrixWorld.determinant()<0,pt=lh(x,D,B,z,L);gt.setMaterial(z,lt);let ut=B.index,wt=1;if(z.wireframe===!0){if(ut=g.getWireframeAttribute(B),ut===void 0)return;wt=2}let Rt=B.drawRange,Et=B.attributes.position,Vt=Rt.start*wt,Zt=(Rt.start+Rt.count)*wt;j!==null&&(Vt=Math.max(Vt,j.start*wt),Zt=Math.min(Zt,(j.start+j.count)*wt)),ut!==null?(Vt=Math.max(Vt,0),Zt=Math.min(Zt,ut.count)):Et!=null&&(Vt=Math.max(Vt,0),Zt=Math.min(Zt,Et.count));let ce=Zt-Vt;if(ce<0||ce===1/0)return;ot.setup(L,z,pt,B,ut);let te,$t=ct;if(ut!==null&&(te=b.get(ut),$t=At,$t.setIndex(te)),L.isMesh)z.wireframe===!0?(gt.setLineWidth(z.wireframeLinewidth*ye()),$t.setMode(w.LINES)):$t.setMode(w.TRIANGLES);else if(L.isLine){let Tt=z.linewidth;Tt===void 0&&(Tt=1),gt.setLineWidth(Tt*ye()),L.isLineSegments?$t.setMode(w.LINES):L.isLineLoop?$t.setMode(w.LINE_LOOP):$t.setMode(w.LINE_STRIP)}else L.isPoints?$t.setMode(w.POINTS):L.isSprite&&$t.setMode(w.TRIANGLES);if(L.isBatchedMesh)if(L._multiDrawInstances!==null)Ii("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),$t.renderMultiDrawInstances(L._multiDrawStarts,L._multiDrawCounts,L._multiDrawCount,L._multiDrawInstances);else if(Lt.get("WEBGL_multi_draw"))$t.renderMultiDraw(L._multiDrawStarts,L._multiDrawCounts,L._multiDrawCount);else{let Tt=L._multiDrawStarts,ae=L._multiDrawCounts,Wt=L._multiDrawCount,Ue=ut?b.get(ut).bytesPerElement:1,fi=_t.get(z).currentProgram.getUniforms();for(let Ne=0;Ne{function j(){if(z.forEach(function(lt){_t.get(lt).currentProgram.isReady()&&z.delete(lt)}),z.size===0){L(x);return}setTimeout(j,10)}Lt.get("KHR_parallel_shader_compile")!==null?j():setTimeout(j,10)})};let qt=null;function pn(x){qt&&qt(x)}function an(){Yn.stop()}function el(){Yn.start()}let Yn=new kc;Yn.setAnimationLoop(pn),typeof self<"u"&&Yn.setContext(self),this.setAnimationLoop=function(x){qt=x,tt.setAnimationLoop(x),x===null?Yn.stop():Yn.start()},tt.addEventListener("sessionstart",an),tt.addEventListener("sessionend",el),this.render=function(x,D){if(D!==void 0&&D.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(C===!0)return;if(x.matrixWorldAutoUpdate===!0&&x.updateMatrixWorld(),D.parent===null&&D.matrixWorldAutoUpdate===!0&&D.updateMatrixWorld(),tt.enabled===!0&&tt.isPresenting===!0&&(tt.cameraAutoUpdate===!0&&tt.updateCamera(D),D=tt.getCamera()),x.isScene===!0&&x.onBeforeRender(S,x,D,U),u=Mt.get(x,E.length),u.init(D),E.push(u),$.multiplyMatrices(D.projectionMatrix,D.matrixWorldInverse),ne.setFromProjectionMatrix($,tn,D.reversedDepth),Y=this.localClippingEnabled,Xt=nt.init(this.clippingPlanes,Y),p=G.get(x,T.length),p.init(),T.push(p),tt.enabled===!0&&tt.isPresenting===!0){let j=S.xr.getDepthSensingMesh();j!==null&&wa(j,D,-1/0,S.sortObjects)}wa(x,D,0,S.sortObjects),p.finish(),S.sortObjects===!0&&p.sort(at,ht),Ht=tt.enabled===!1||tt.isPresenting===!1||tt.hasDepthSensing()===!1,Ht&&yt.addToRenderList(p,x),this.info.render.frame++,Xt===!0&&nt.beginShadows();let B=u.state.shadowsArray;xt.render(B,x,D),Xt===!0&&nt.endShadows(),this.info.autoReset===!0&&this.info.reset();let z=p.opaque,L=p.transmissive;if(u.setupLights(),D.isArrayCamera){let j=D.cameras;if(L.length>0)for(let lt=0,pt=j.length;lt0&&il(z,L,x,D),Ht&&yt.render(x),nl(p,x,D);U!==null&&P===0&&(Ft.updateMultisampleRenderTarget(U),Ft.updateRenderTargetMipmap(U)),x.isScene===!0&&x.onAfterRender(S,x,D),ot.resetDefaultState(),v=-1,y=null,E.pop(),E.length>0?(u=E[E.length-1],Xt===!0&&nt.setGlobalState(S.clippingPlanes,u.state.camera)):u=null,T.pop(),T.length>0?p=T[T.length-1]:p=null};function wa(x,D,B,z){if(x.visible===!1)return;if(x.layers.test(D.layers)){if(x.isGroup)B=x.renderOrder;else if(x.isLOD)x.autoUpdate===!0&&x.update(D);else if(x.isLight)u.pushLight(x),x.castShadow&&u.pushShadow(x);else if(x.isSprite){if(!x.frustumCulled||ne.intersectsSprite(x)){z&&It.setFromMatrixPosition(x.matrixWorld).applyMatrix4($);let lt=O.update(x),pt=x.material;pt.visible&&p.push(x,lt,pt,B,It.z,null)}}else if((x.isMesh||x.isLine||x.isPoints)&&(!x.frustumCulled||ne.intersectsObject(x))){let lt=O.update(x),pt=x.material;if(z&&(x.boundingSphere!==void 0?(x.boundingSphere===null&&x.computeBoundingSphere(),It.copy(x.boundingSphere.center)):(lt.boundingSphere===null&<.computeBoundingSphere(),It.copy(lt.boundingSphere.center)),It.applyMatrix4(x.matrixWorld).applyMatrix4($)),Array.isArray(pt)){let ut=lt.groups;for(let wt=0,Rt=ut.length;wt0&&Ns(L,D,B),j.length>0&&Ns(j,D,B),lt.length>0&&Ns(lt,D,B),gt.buffers.depth.setTest(!0),gt.buffers.depth.setMask(!0),gt.buffers.color.setMask(!0),gt.setPolygonOffset(!1)}function il(x,D,B,z){if((B.isScene===!0?B.overrideMaterial:null)!==null)return;u.state.transmissionRenderTarget[z.id]===void 0&&(u.state.transmissionRenderTarget[z.id]=new ln(1,1,{generateMipmaps:!0,type:Lt.has("EXT_color_buffer_half_float")||Lt.has("EXT_color_buffer_float")?Vi:rn,minFilter:Wn,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Gt.workingColorSpace}));let j=u.state.transmissionRenderTarget[z.id],lt=z.viewport||R;j.setSize(lt.z*S.transmissionResolutionScale,lt.w*S.transmissionResolutionScale);let pt=S.getRenderTarget(),ut=S.getActiveCubeFace(),wt=S.getActiveMipmapLevel();S.setRenderTarget(j),S.getClearColor(H),q=S.getClearAlpha(),q<1&&S.setClearColor(16777215,.5),S.clear(),Ht&&yt.render(B);let Rt=S.toneMapping;S.toneMapping=Tn;let Et=z.viewport;if(z.viewport!==void 0&&(z.viewport=void 0),u.setupLightsView(z),Xt===!0&&nt.setGlobalState(S.clippingPlanes,z),Ns(x,B,z),Ft.updateMultisampleRenderTarget(j),Ft.updateRenderTargetMipmap(j),Lt.has("WEBGL_multisampled_render_to_texture")===!1){let Vt=!1;for(let Zt=0,ce=D.length;Zt0),Et=!!B.morphAttributes.position,Vt=!!B.morphAttributes.normal,Zt=!!B.morphAttributes.color,ce=Tn;z.toneMapped&&(U===null||U.isXRRenderTarget===!0)&&(ce=S.toneMapping);let te=B.morphAttributes.position||B.morphAttributes.normal||B.morphAttributes.color,$t=te!==void 0?te.length:0,Tt=_t.get(z),ae=u.state.lights;if(Xt===!0&&(Y===!0||x!==y)){let Ae=x===y&&z.id===v;nt.setState(z,x,Ae)}let Wt=!1;z.version===Tt.__version?(Tt.needsLights&&Tt.lightsStateVersion!==ae.state.version||Tt.outputColorSpace!==pt||L.isBatchedMesh&&Tt.batching===!1||!L.isBatchedMesh&&Tt.batching===!0||L.isBatchedMesh&&Tt.batchingColor===!0&&L.colorTexture===null||L.isBatchedMesh&&Tt.batchingColor===!1&&L.colorTexture!==null||L.isInstancedMesh&&Tt.instancing===!1||!L.isInstancedMesh&&Tt.instancing===!0||L.isSkinnedMesh&&Tt.skinning===!1||!L.isSkinnedMesh&&Tt.skinning===!0||L.isInstancedMesh&&Tt.instancingColor===!0&&L.instanceColor===null||L.isInstancedMesh&&Tt.instancingColor===!1&&L.instanceColor!==null||L.isInstancedMesh&&Tt.instancingMorph===!0&&L.morphTexture===null||L.isInstancedMesh&&Tt.instancingMorph===!1&&L.morphTexture!==null||Tt.envMap!==ut||z.fog===!0&&Tt.fog!==j||Tt.numClippingPlanes!==void 0&&(Tt.numClippingPlanes!==nt.numPlanes||Tt.numIntersection!==nt.numIntersection)||Tt.vertexAlphas!==wt||Tt.vertexTangents!==Rt||Tt.morphTargets!==Et||Tt.morphNormals!==Vt||Tt.morphColors!==Zt||Tt.toneMapping!==ce||Tt.morphTargetsCount!==$t)&&(Wt=!0):(Wt=!0,Tt.__version=z.version);let Ue=Tt.currentProgram;Wt===!0&&(Ue=Fs(z,D,L));let fi=!1,Ne=!1,Ki=!1,oe=Ue.getUniforms(),Ve=Tt.uniforms;if(gt.useProgram(Ue.program)&&(fi=!0,Ne=!0,Ki=!0),z.id!==v&&(v=z.id,Ne=!0),fi||y!==x){gt.buffers.depth.getReversed()&&x.reversedDepth!==!0&&(x._reversedDepth=!0,x.updateProjectionMatrix()),oe.setValue(w,"projectionMatrix",x.projectionMatrix),oe.setValue(w,"viewMatrix",x.matrixWorldInverse);let Pe=oe.map.cameraPosition;Pe!==void 0&&Pe.setValue(w,ft.setFromMatrixPosition(x.matrixWorld)),Ct.logarithmicDepthBuffer&&oe.setValue(w,"logDepthBufFC",2/(Math.log(x.far+1)/Math.LN2)),(z.isMeshPhongMaterial||z.isMeshToonMaterial||z.isMeshLambertMaterial||z.isMeshBasicMaterial||z.isMeshStandardMaterial||z.isShaderMaterial)&&oe.setValue(w,"isOrthographic",x.isOrthographicCamera===!0),y!==x&&(y=x,Ne=!0,Ki=!0)}if(L.isSkinnedMesh){oe.setOptional(w,L,"bindMatrix"),oe.setOptional(w,L,"bindMatrixInverse");let Ae=L.skeleton;Ae&&(Ae.boneTexture===null&&Ae.computeBoneTexture(),oe.setValue(w,"boneTexture",Ae.boneTexture,Ft))}L.isBatchedMesh&&(oe.setOptional(w,L,"batchingTexture"),oe.setValue(w,"batchingTexture",L._matricesTexture,Ft),oe.setOptional(w,L,"batchingIdTexture"),oe.setValue(w,"batchingIdTexture",L._indirectTexture,Ft),oe.setOptional(w,L,"batchingColorTexture"),L._colorsTexture!==null&&oe.setValue(w,"batchingColorTexture",L._colorsTexture,Ft));let He=B.morphAttributes;if((He.position!==void 0||He.normal!==void 0||He.color!==void 0)&&Q.update(L,B,Ue),(Ne||Tt.receiveShadow!==L.receiveShadow)&&(Tt.receiveShadow=L.receiveShadow,oe.setValue(w,"receiveShadow",L.receiveShadow)),z.isMeshGouraudMaterial&&z.envMap!==null&&(Ve.envMap.value=ut,Ve.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),z.isMeshStandardMaterial&&z.envMap===null&&D.environment!==null&&(Ve.envMapIntensity.value=D.environmentIntensity),Ne&&(oe.setValue(w,"toneMappingExposure",S.toneMappingExposure),Tt.needsLights&&ch(Ve,Ki),j&&z.fog===!0&&J.refreshFogUniforms(Ve,j),J.refreshMaterialUniforms(Ve,z,V,et,u.state.transmissionRenderTarget[x.id]),Yi.upload(w,rl(Tt),Ve,Ft)),z.isShaderMaterial&&z.uniformsNeedUpdate===!0&&(Yi.upload(w,rl(Tt),Ve,Ft),z.uniformsNeedUpdate=!1),z.isSpriteMaterial&&oe.setValue(w,"center",L.center),oe.setValue(w,"modelViewMatrix",L.modelViewMatrix),oe.setValue(w,"normalMatrix",L.normalMatrix),oe.setValue(w,"modelMatrix",L.matrixWorld),z.isShaderMaterial||z.isRawShaderMaterial){let Ae=z.uniformsGroups;for(let Pe=0,Aa=Ae.length;Pe0&&Ft.useMultisampledRTT(x)===!1?L=_t.get(x).__webglMultisampledFramebuffer:Array.isArray(Rt)?L=Rt[B]:L=Rt,R.copy(x.viewport),F.copy(x.scissor),k=x.scissorTest}else R.copy(bt).multiplyScalar(V).floor(),F.copy(kt).multiplyScalar(V).floor(),k=Kt;if(B!==0&&(L=uh),gt.bindFramebuffer(w.FRAMEBUFFER,L)&&z&>.drawBuffers(x,L),gt.viewport(R),gt.scissor(F),gt.setScissorTest(k),j){let ut=_t.get(x.texture);w.framebufferTexture2D(w.FRAMEBUFFER,w.COLOR_ATTACHMENT0,w.TEXTURE_CUBE_MAP_POSITIVE_X+D,ut.__webglTexture,B)}else if(lt){let ut=D;for(let wt=0;wt=0&&D<=x.width-z&&B>=0&&B<=x.height-L&&(x.textures.length>1&&w.readBuffer(w.COLOR_ATTACHMENT0+pt),w.readPixels(D,B,z,L,vt.convert(Rt),vt.convert(Et),j))}finally{let wt=U!==null?_t.get(U).__webglFramebuffer:null;gt.bindFramebuffer(w.FRAMEBUFFER,wt)}}},this.readRenderTargetPixelsAsync=async function(x,D,B,z,L,j,lt,pt=0){if(!(x&&x.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let ut=_t.get(x).__webglFramebuffer;if(x.isWebGLCubeRenderTarget&<!==void 0&&(ut=ut[lt]),ut)if(D>=0&&D<=x.width-z&&B>=0&&B<=x.height-L){gt.bindFramebuffer(w.FRAMEBUFFER,ut);let wt=x.textures[pt],Rt=wt.format,Et=wt.type;if(!Ct.textureFormatReadable(Rt))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Ct.textureTypeReadable(Et))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");let Vt=w.createBuffer();w.bindBuffer(w.PIXEL_PACK_BUFFER,Vt),w.bufferData(w.PIXEL_PACK_BUFFER,j.byteLength,w.STREAM_READ),x.textures.length>1&&w.readBuffer(w.COLOR_ATTACHMENT0+pt),w.readPixels(D,B,z,L,vt.convert(Rt),vt.convert(Et),0);let Zt=U!==null?_t.get(U).__webglFramebuffer:null;gt.bindFramebuffer(w.FRAMEBUFFER,Zt);let ce=w.fenceSync(w.SYNC_GPU_COMMANDS_COMPLETE,0);return w.flush(),await fc(w,ce,4),w.bindBuffer(w.PIXEL_PACK_BUFFER,Vt),w.getBufferSubData(w.PIXEL_PACK_BUFFER,0,j),w.deleteBuffer(Vt),w.deleteSync(ce),j}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(x,D=null,B=0){let z=Math.pow(2,-B),L=Math.floor(x.image.width*z),j=Math.floor(x.image.height*z),lt=D!==null?D.x:0,pt=D!==null?D.y:0;Ft.setTexture2D(x,0),w.copyTexSubImage2D(w.TEXTURE_2D,B,0,0,lt,pt,L,j),gt.unbindTexture()};let dh=w.createFramebuffer(),fh=w.createFramebuffer();this.copyTextureToTexture=function(x,D,B=null,z=null,L=0,j=null){j===null&&(L!==0?(Ii("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),j=L,L=0):j=0);let lt,pt,ut,wt,Rt,Et,Vt,Zt,ce,te=x.isCompressedTexture?x.mipmaps[j]:x.image;if(B!==null)lt=B.max.x-B.min.x,pt=B.max.y-B.min.y,ut=B.isBox3?B.max.z-B.min.z:1,wt=B.min.x,Rt=B.min.y,Et=B.isBox3?B.min.z:0;else{let He=Math.pow(2,-L);lt=Math.floor(te.width*He),pt=Math.floor(te.height*He),x.isDataArrayTexture?ut=te.depth:x.isData3DTexture?ut=Math.floor(te.depth*He):ut=1,wt=0,Rt=0,Et=0}z!==null?(Vt=z.x,Zt=z.y,ce=z.z):(Vt=0,Zt=0,ce=0);let $t=vt.convert(D.format),Tt=vt.convert(D.type),ae;D.isData3DTexture?(Ft.setTexture3D(D,0),ae=w.TEXTURE_3D):D.isDataArrayTexture||D.isCompressedArrayTexture?(Ft.setTexture2DArray(D,0),ae=w.TEXTURE_2D_ARRAY):(Ft.setTexture2D(D,0),ae=w.TEXTURE_2D),w.pixelStorei(w.UNPACK_FLIP_Y_WEBGL,D.flipY),w.pixelStorei(w.UNPACK_PREMULTIPLY_ALPHA_WEBGL,D.premultiplyAlpha),w.pixelStorei(w.UNPACK_ALIGNMENT,D.unpackAlignment);let Wt=w.getParameter(w.UNPACK_ROW_LENGTH),Ue=w.getParameter(w.UNPACK_IMAGE_HEIGHT),fi=w.getParameter(w.UNPACK_SKIP_PIXELS),Ne=w.getParameter(w.UNPACK_SKIP_ROWS),Ki=w.getParameter(w.UNPACK_SKIP_IMAGES);w.pixelStorei(w.UNPACK_ROW_LENGTH,te.width),w.pixelStorei(w.UNPACK_IMAGE_HEIGHT,te.height),w.pixelStorei(w.UNPACK_SKIP_PIXELS,wt),w.pixelStorei(w.UNPACK_SKIP_ROWS,Rt),w.pixelStorei(w.UNPACK_SKIP_IMAGES,Et);let oe=x.isDataArrayTexture||x.isData3DTexture,Ve=D.isDataArrayTexture||D.isData3DTexture;if(x.isDepthTexture){let He=_t.get(x),Ae=_t.get(D),Pe=_t.get(He.__renderTarget),Aa=_t.get(Ae.__renderTarget);gt.bindFramebuffer(w.READ_FRAMEBUFFER,Pe.__webglFramebuffer),gt.bindFramebuffer(w.DRAW_FRAMEBUFFER,Aa.__webglFramebuffer);for(let Zn=0;ZnMath.PI&&(n-=Le),s<-Math.PI?s+=Le:s>Math.PI&&(s-=Le),n<=s?this._spherical.theta=Math.max(n,Math.min(s,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+s)/2?Math.max(n,this._spherical.theta):Math.min(s,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{let a=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=a!=this._spherical.radius}if(ge.setFromSpherical(this._spherical),ge.applyQuaternion(this._quatInverse),e.copy(this.target).add(ge),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let a=null;if(this.object.isPerspectiveCamera){let o=ge.length();a=this._clampDistance(o*this._scale);let l=o-a;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){let o=new N(this._mouse.x,this._mouse.y,0);o.unproject(this.object);let l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;let c=new N(this._mouse.x,this._mouse.y,0);c.unproject(this.object),this.object.position.sub(c).add(o),this.object.updateMatrixWorld(),a=ge.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;a!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position):(Sa.origin.copy(this.object.position),Sa.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(Sa.direction))Xo||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Xo||this._lastTargetPosition.distanceToSquared(this.target)>Xo?(this.dispatchEvent(Xc),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?Le/60*this.autoRotateSpeed*t:Le/60/60*this.autoRotateSpeed}_getZoomScale(t){let e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){ge.setFromMatrixColumn(e,0),ge.multiplyScalar(-t),this._panOffset.add(ge)}_panUp(t,e){this.screenSpacePanning===!0?ge.setFromMatrixColumn(e,1):(ge.setFromMatrixColumn(e,0),ge.crossVectors(this.object.up,ge)),ge.multiplyScalar(t),this._panOffset.add(ge)}_pan(t,e){let n=this.domElement;if(this.object.isPerspectiveCamera){let s=this.object.position;ge.copy(s).sub(this.target);let r=ge.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/n.clientHeight,this.object.matrix),this._panUp(2*e*r/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;let n=this.domElement.getBoundingClientRect(),s=t-n.left,r=e-n.top,a=n.width,o=n.height;this._mouse.x=s/a*2-1,this._mouse.y=-(r/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let e=this.domElement;this._rotateLeft(Le*this._rotateDelta.x/e.clientHeight),this._rotateUp(Le*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._rotateStart.set(n,s)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._panStart.set(n,s)}}_handleTouchStartDolly(t){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,s=t.pageY-e.y,r=Math.sqrt(n*n+s*s);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{let n=this._getSecondPointerPosition(t),s=.5*(t.pageX+n.x),r=.5*(t.pageY+n.y);this._rotateEnd.set(s,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let e=this.domElement;this._rotateLeft(Le*this._rotateDelta.x/e.clientHeight),this._rotateUp(Le*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),s=.5*(t.pageY+e.y);this._panEnd.set(n,s)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,s=t.pageY-e.y,r=Math.sqrt(n*n+s*s);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let a=(t.pageX+e.x)*.5,o=(t.pageY+e.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;edocument.getElementById(i),Zc=64*1024*1024,Qt=(i,t)=>{if(!i)throw new Error(t)},Ta={"easy-block":"Small block","simplified-shoe":"Narrow shoe proxy","current-shoe":"Full shoe proxy"},Zo={"lightweight-control":"30 g · light control","reference-load":"300 g · reference load"},eh=i=>i==="mounted"?"Rake mounted":"Rake absent",$e;var re,Ea,we,qn,Je,An,dn,Ji,$i=[],Jo=[],$o=[],fn=0,Ds=!1,nh=0,Ko=!1,Jc=0,$c,Kc=new Map;function ih(i){return Qt(typeof i=="string"&&/^[a-zA-Z0-9_.-]+(?:\/[a-zA-Z0-9_.-]+)*$/.test(i)&&!i.split("/").some(t=>t==="."||t===".."),"Invalid export path"),i}async function sh(i,t){Qt(i,"Missing response body");let e=i.getReader(),n=[],s=0;try{for(;;){let{done:o,value:l}=await e.read();if(o)break;s+=l.byteLength,Qt(s<=t,"Asset exceeds byte limit"),n.push(l)}}finally{await e.cancel().catch(()=>{}),e.releaseLock()}let r=new Uint8Array(s),a=0;for(let o of n)r.set(o,a),a+=o.length;return r.buffer}async function rh(i,t){let e=new URL(ih(i),location.href),n=location.hostname==="dvidia-robot-simulation-lab.static.hf.space",s=n&&i.endsWith(".bin.gz")?[new URL("https://research.dvidia.org/downloads/topics/physical-grounding/runs/2026-10-14-shoe-graspability-v03/lab/"+i),e]:[e],r;for(let[a,o]of s.entries()){let l=new AbortController,c=setTimeout(()=>l.abort(),a===0&&s.length>1?15e3:45e3);try{let h=await fetch(o,{signal:l.signal,credentials:"omit",referrerPolicy:"no-referrer",redirect:n?"follow":"error"}),d=new URL(h.url);return Qt(d.origin===o.origin||n&&d.protocol==="https:"&&(d.hostname.endsWith(".hf.co")||d.hostname==="huggingface.co"),"Unexpected asset redirect"),Qt(h.ok,"HTTP "+h.status+" loading "+i),await sh(h.body,t)}catch(h){r=h}finally{clearTimeout(c)}}throw new Error("Could not load "+i+". "+r.message)}async function jo(i){return JSON.parse(new TextDecoder().decode(await rh(i,8*1024*1024)))}async function jc(i){Qt(i?.compression==="gzip"&&Number.isInteger(i.bytes)&&i.bytes>0&&i.bytes<=Zc&&Number.isInteger(i.compressed_bytes)&&i.compressed_bytes>0&&i.compressed_bytes<=Zc,"Invalid binary descriptor");let t=await rh(i.href,i.compressed_bytes);Qt(t.byteLength===i.compressed_bytes,"Compressed length mismatch");let e=await sh(new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip")),i.bytes);Qt(e.byteLength===i.bytes,"Decoded length mismatch"),Qt(crypto?.subtle,"This viewer requires a secure context or localhost");let n=[...new Uint8Array(await crypto.subtle.digest("SHA-256",e))].map(s=>s.toString(16).padStart(2,"0")).join("");return Qt(n===i.sha256,"Binary checksum mismatch"),e}function Km(i,t,e,n){Qt(i.schema==="dvidia.prerequisite-scene/v1"&&t.schema==="dvidia.prerequisite-motion/v1","Unsupported replay schema"),Qt(Number.isInteger(t.body_count)&&t.body_count>0&&t.body_count<=128&&i.bodies.length===t.body_count&&Number.isInteger(t.frame_count)&&t.frame_count>=2&&t.frame_count<=1e4&&t.times.length===t.frame_count&&n.byteLength===t.frame_count*t.body_count*28,"Invalid pose layout"),Qt(t.times.every((o,l)=>Number.isFinite(o)&&o>=0&&(!l||o>t.times[l-1])),"Invalid timestamps"),Qt(i.meshes.length<=128&&i.geoms.length<=512,"Scene too large");let s=new DataView(e),r=new Set;for(let o of i.meshes){let l=o.vertex_count,c=o.index_count,h=o.position_byte_offset,d=o.index_byte_offset;Qt([o.id,l,c,h,d].every(Number.isInteger)&&!r.has(o.id)&&l>0&&c>=0&&c%3===0&&h>=0&&d>=0&&h+l*12<=e.byteLength&&d+c*4<=e.byteLength,"Invalid mesh range"),r.add(o.id);for(let f=0;f=0&&o.body_ide*2));case"sphere":return new Fi(i.size[0],20,12);case"ellipsoid":{let e=new Fi(1,24,16);return e.scale(...i.size),e}case"capsule":{let e=new xs(i.size[0],2*i.size[1],6,18);return e.rotateX(Math.PI/2),e}case"cylinder":{let e=new ys(i.size[0],i.size[0],i.size[1]*2,24);return e.rotateX(Math.PI/2),e}case"plane":return new ni(5,5)}}function di(){!Ko&&Je&&(Ko=!0,requestAnimationFrame(Qm))}function Ls(i){fn=Math.min(we.frame_count-1,Math.max(0,i)),st("timeline").value=fn;let t=we.times[fn];st("clock").textContent=t.toFixed(2)+" / "+we.times.at(-1).toFixed(2)+" s";for(let s=0;s<$i.length;s++){let r=(fn*$i.length+s)*7;$i[s].position.set(qn[r],qn[r+1],qn[r+2]),$i[s].quaternion.set(qn[r+4],qn[r+5],qn[r+6],qn[r+3])}st("events").querySelectorAll("button").forEach(s=>s.classList.toggle("current",Math.abs(Number(s.dataset.time)-t)<.15));let e=we.rows[fn];st("phase").textContent=Us(e.phase||"unrecorded"),st("fingers").textContent=(e.finger_normal_forces_n||[]).map(s=>s.toFixed(2)).join(" / ")||"—",st("support").textContent=Number.isFinite(e.world_object_force_n)?e.world_object_force_n.toFixed(2):"—";let n=re.independent_score?.reference;st("height").textContent=e.object_position&&n&&t>=n.t_s?((e.object_position[2]-n.object_z_m)*1e3).toFixed(1):"—",st("drive").textContent=Number.isFinite(e.gripper_actuator_force_n)?e.gripper_actuator_force_n.toFixed(2):"—",st("jaw").textContent=Number.isFinite(e.jaw_opening_m)?(e.jaw_opening_m*1e3).toFixed(1):"—",st("stage").dataset.frame=String(fn),di()}function ui(){Ds=!1,st("play").textContent="Play trial",st("play").setAttribute("aria-pressed","false")}function Qm(i){if(Ko=!1,Ds&&we){let t=Math.max(0,(i-nh)/1e3),e=fn;for(;e+1{e.geometry&&i.add(e.geometry),e.material&&t.add(e.material)}),i.forEach(e=>e.dispose()),t.forEach(e=>e.dispose())}function eg(i){Je||(Qt(st("canvas").getContext("webgl2"),"WebGL2 is unavailable"),Je=new va({canvas:st("canvas"),antialias:!0,powerPreference:"low-power"}),Je.setPixelRatio(Math.min(devicePixelRatio||1,1.5)),Je.outputColorSpace=Re,Je.toneMapping=Dr,Je.toneMappingExposure=1.25,Je.shadowMap.enabled=!0,Je.shadowMap.type=Er,dn=new Se(38,1,.01,20),dn.up.set(0,0,1),Ji=new ba(dn,st("canvas")),Ji.minDistance=.3,Ji.maxDistance=4,Ji.addEventListener("change",di),$c=new ResizeObserver(()=>{let a=st("stage").getBoundingClientRect();dn.aspect=a.width/a.height,dn.updateProjectionMatrix(),Je.setSize(a.width,a.height,!1),di()}),$c.observe(st("stage"))),tg(),An=new ms,An.background=new zt(15330015),An.add(new Ss(16251903,9739389,2.6));let t=new Bi(16775143,3.2);t.position.set(1,-1,3),t.castShadow=!0,t.shadow.mapSize.set(1024,1024),t.shadow.camera.left=-1.4,t.shadow.camera.right=1.4,t.shadow.camera.top=1.4,t.shadow.camera.bottom=-1.4,t.shadow.normalBias=.003,An.add(t);let e=new Bi(15003135,.9);e.position.set(-1,1,2),An.add(e),$i=Ea.bodies.map(()=>{let a=new vn;return An.add(a),a}),Jo=[],$o=[];let n=new Map,s=new DataView(i);for(let a of Ea.meshes){let o=new Float32Array(a.vertex_count*3),l=new Uint32Array(a.index_count);for(let h=0;h{let d=new De(o,h);d.position.fromArray(a.position);let f=a.quaternion_wxyz;return d.quaternion.set(f[1],f[2],f[3],f[0]),$i[a.body_id].add(d),d};if(l[3]>0&&a.group<=2){let h=c(new Oi({color:new zt().setRGB(...l.slice(0,3),bn),roughness:.68,metalness:a.type==="mesh"?.12:0,transparent:l[3]<1,opacity:l[3],side:Ye}));h.castShadow=a.type!=="plane",h.receiveShadow=!0,Jo.push(h)}if(a.collision){let h=c(new Oi({color:12154699,transparent:!0,opacity:.4,depthWrite:!1}));h.visible=!1,$o.push(h)}}let r=st("stage").getBoundingClientRect();dn.aspect=r.width/r.height,dn.updateProjectionMatrix(),Je.setSize(r.width,r.height,!1),Ls(0),Qo("home"),st("collision").setAttribute("aria-pressed","false"),st("scene-state").textContent="NATIVE PHYSICS · RECORDED POSES"}function Us(i){return i.replaceAll("_"," ")}function ng(i){return Number(i.t??i.time_s??i.time??0)}function ig(i){let t=i.message||Us(i.type||"event");return{grip_loss_detected:"Grip check: ",grip_recovery_started:"Lowering: ",help_requested:"Stopped: "}[i.type]?{grip_loss_detected:"Grip check: ",grip_recovery_started:"Lowering: ",help_requested:"Stopped: "}[i.type]+t:t}function ah(){let i=st("events");i.replaceChildren();for(let t of re.events){if(["phase","assumptions"].includes(t.type)&&st("show-phases").getAttribute("aria-pressed")!=="true")continue;let e=document.createElement("li"),n=document.createElement("button"),s=document.createElement("time"),r=document.createElement("span"),a=ng(t);s.textContent=a.toFixed(2)+" s",r.textContent=ig(t),n.dataset.time=a,n.append(s,r),n.addEventListener("click",()=>{ui();let o=we.times.findIndex(l=>l>=a);Ls(o<0?we.frame_count-1:o)}),e.append(n),i.append(e)}if(!re.events.length){let t=document.createElement("li");t.className="events-empty",t.textContent="No discrete intervention events were recorded.",i.append(t)}}function oh(i,t,e){let n=document.createElement("option");n.value=t,n.textContent=e,i.append(n)}function sg(){let i=st("results");i.replaceChildren();for(let t of Object.keys(Ta))for(let e of Object.keys(Zo))for(let n of["mounted","absent"]){let s=$e.attempts.filter(a=>a.case.object_shape===t&&a.case.load_band===e&&a.case.tool_condition===n);if(!s.length)continue;let r=document.createElement("tr");for(let a of[Ta[t],Zo[e],eh(n),s.filter(o=>o.success&&o.valid).length+" / "+s.length,s.filter(o=>o.valid).length+" / "+s.length]){let o=document.createElement("td");o.textContent=a,r.append(o)}i.append(r)}}function Qc(i){document.querySelectorAll("#play,#timeline,#collision,#case,#shape,#load,#tool,#show-phases,#events button").forEach(t=>t.disabled=i)}function th(){let i=st("case").value,t=$e.attempts.filter(n=>n.case.object_shape===st("shape").value&&n.case.load_band===st("load").value),e=[...new Set(t.map(n=>n.case.replicate_id))];st("case").replaceChildren();for(let n of e)oh(st("case"),n,Us(n));e.includes(i)&&(st("case").value=i)}async function Yo(){let i=++Jc;ui(),Qc(!0),st("loading").hidden=!1,st("loading-message").textContent="Loading geometry and recorded motion.",st("stage").dataset.ready="loading";for(let o of["phase","fingers","support","height","drive","jaw","duration"])st(o).textContent="—";st("events").replaceChildren(),re=$e.attempts.find(o=>o.case.object_shape===st("shape").value&&o.case.load_band===st("load").value&&o.case.replicate_id===st("case").value&&o.case.tool_condition===st("tool").value),Qt(re,"Trial not found");let t=re.independent_score,e=re.metrics;if(st("scene-title").textContent=Ta[re.case.object_shape],st("outcome").textContent=re.valid?re.success?"Lift retained":"Lift not retained":"Invalid attempt",st("outcome").dataset.success=re.success&&re.valid,st("outcome").dataset.valid=re.valid,st("success").textContent=re.success&&re.valid?"Yes":"No",st("details").textContent=JSON.stringify({case:re.case,metrics:e,independent_score:t,errors:re.errors},null,2),st("receipt").href="trials/"+ih(re.id)+".json",st("metric-a").textContent=(re.case.mass*1e3).toFixed(0)+" g",st("metric-b").textContent=Number.isFinite(t?.terminal_relative_lift_m)?(t.terminal_relative_lift_m*1e3).toFixed(1)+" mm":"—",st("task-description").textContent="The same fixed pickup sequence runs on three rigid shapes at two loads, with and without the wrist-mounted rake.",st("scope-note").textContent="The simulated jaw command spans 70 mm; the full shoe sole is 100 mm wide. The position drive has a gain of 40 N/m. Its 10 N force cap is a limit, not the force delivered at contact. These settings are not a hardware calibration. Removing the rake changes both clearance and wrist inertia.",!re.replay)throw new Error("This attempt has no valid replay. Its failure receipt remains downloadable.");let[n,s]=await Promise.all([jo(re.replay.model),jo(re.replay.motion)]),r=Kc.get(n.geometry_binary.sha256);r||(r=await jc(n.geometry_binary),Kc.set(n.geometry_binary.sha256,r));let a=await jc(s.motion_binary);i===Jc&&(Km(n,s,r,a),Ea=n,we=s,qn=new Float32Array(a),eg(r),ah(),st("timeline").max=String(we.frame_count-1),st("duration").textContent=we.times.at(-1).toFixed(2)+" s",st("status").textContent=($e.split==="heldout"?"Fresh evaluation":"Development controls")+" · "+Us(re.case.replicate_id)+" · "+eh(re.case.tool_condition),st("stage").dataset.ready="true",st("loading").hidden=!0,Qc(!1))}function tl(i){ui(),st("loading").hidden=!1,st("loading-message").textContent=i.message,st("stage").dataset.ready="error",st("status").textContent="Replay unavailable. The protocol and trial receipts remain accessible.";for(let t of["case","shape","load","tool"])st(t).disabled=!1;console.error(i)}async function rg(){Qt(location.protocol!=="file:","Serve the export over HTTP"),$e=await jo("benchmark.json"),Qt($e.schema==="dvidia.graspability/v3"&&Array.isArray($e.attempts)&&$e.attempts.length>0&&$e.attempts.length<=100,"Invalid benchmark"),sg();let i=$e.source.commit;i&&(Qt(/^[a-f0-9]{40}$/.test(i),"Invalid source commit"),st("source").href="https://github.com/Dvidia-Inference/dvidia-training/tree/"+i),st("command").textContent=`git clone https://github.com/Dvidia-Inference/dvidia-training.git +cd dvidia-training +`+(i?"git checkout "+i+` +`:"")+`python -m venv .venv +# Activate .venv using your shell, then: +python -m pip install ".[arm]" +dvidia-robot-sim fetch piper --output robot-assets +dvidia-graspability-benchmark --assets robot-assets --output results --split `+$e.split+(i?" --source-commit "+i:"")+` +python -m http.server 8000 --directory results`;for(let[t,e,n]of[["shape",Ta,"object_shape"],["load",Zo,"load_band"]]){for(let s of[...new Set($e.attempts.map(r=>r.case[n]))])oh(st(t),s,e[s]||Us(s));st(t).addEventListener("change",()=>{th(),Yo().catch(tl)})}for(let t of["case","tool"])st(t).addEventListener("change",()=>Yo().catch(tl));document.querySelectorAll("[data-camera]").forEach(t=>t.addEventListener("click",()=>{dn&&Qo(t.dataset.camera)})),st("show-phases").addEventListener("click",()=>{st("show-phases").setAttribute("aria-pressed",String(st("show-phases").getAttribute("aria-pressed")!=="true")),we&&ah()}),st("play").addEventListener("click",()=>{if(Ds){ui();return}fn===we.frame_count-1&&Ls(0),Ds=!0,nh=performance.now()-we.times[fn]*1e3,st("play").textContent="Pause trial",st("play").setAttribute("aria-pressed","true"),di()}),st("timeline").addEventListener("input",()=>{ui(),Ls(Number(st("timeline").value))}),st("collision").addEventListener("click",()=>{let t=st("collision").getAttribute("aria-pressed")!=="true";st("collision").setAttribute("aria-pressed",String(t)),Jo.forEach(e=>e.visible=!t),$o.forEach(e=>e.visible=t),st("scene-state").textContent=t?"COLLISION GEOMETRY · RECORDED POSES":"NATIVE PHYSICS · RECORDED POSES",di()}),st("canvas").addEventListener("keydown",t=>{(t.key==="Home"||t.key==="h")&&(t.preventDefault(),Qo("home"))}),document.addEventListener("visibilitychange",()=>{document.hidden&&ui()}),th(),await Yo()}rg().catch(tl);})(); diff --git a/src/dvidia_training/graspability_lab.html b/src/dvidia_training/graspability_lab.html new file mode 100644 index 0000000..948d90a --- /dev/null +++ b/src/dvidia_training/graspability_lab.html @@ -0,0 +1,119 @@ + +Graspability lab · DVIDIA +

DVIDIA ROBOTICS · GRASPABILITY / 0.3

What makes a grasp work?

Change the shape. Change the load. Inspect the grip. A controlled study of what this simulated hand can hold.

Recorded native simulation
+
01 · Settle02 · Approach03 · Close04 · Lift & hold
+

Opening the published evidence…

PiPER / Direct pickup
NATIVE PHYSICS · RECORDED POSESEvery attempt is retained, including failures.
Opening the experimentLoading geometry and recorded motion.
0.00 s

Drag to orbit. Scroll to zoom. These are measured poses from a CPU simulation. The browser replays the experiment; it does not run physics or control hardware.

Phase—
Fingers · N—
World support · N—
Rise from rest · mm—
Gripper drive · N—
Jaw coordinate span · mm—

What happened

    +
    +

    The complete benchmark

    Every planned attempt is included. Layout and friction are paired across shapes, loads and tool states. Completion requires at least 35 mm rise from verified rest, both fingers in contact and no external support throughout the final half-second. This small cohort is a diagnostic, not a reliability estimate.

    ObjectLoadWrist toolRetained / attemptedValid native runs
    +

    Run it on your machine

    Native benchmarks run on the CPU. Install the optional simulation dependencies and pinned arm assets once; subsequent runs can be offline. Replay needs a browser with WebGL2. Minimum RAM has not been established across machines.

    Frozen protocol · All results · Artifact checksums · Source code · Licenses & scope

    Brand and font notices

    The DVIDIA mark and wordmark reproduce the existing DVIDIA website identity. The code license does not grant trademark rights. The embedded, unmodified IBM Plex Sans font retains its separate SIL Open Font License.

    Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
    +
    +This Font Software is licensed under the SIL Open Font License, Version 1.1.
    +
    +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
    +
    +
    +-----------------------------------------------------------
    +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
    +-----------------------------------------------------------
    +
    +PREAMBLE
    +The goals of the Open Font License (OFL) are to stimulate worldwide
    +development of collaborative font projects, to support the font creation
    +efforts of academic and linguistic communities, and to provide a free and
    +open framework in which fonts may be shared and improved in partnership
    +with others.
    +
    +The OFL allows the licensed fonts to be used, studied, modified and
    +redistributed freely as long as they are not sold by themselves. The
    +fonts, including any derivative works, can be bundled, embedded, 
    +redistributed and/or sold with any software provided that any reserved
    +names are not used by derivative works. The fonts and derivatives,
    +however, cannot be released under any other type of license. The
    +requirement for fonts to remain under this license does not apply
    +to any document created using the fonts or their derivatives.
    +
    +DEFINITIONS
    +"Font Software" refers to the set of files released by the Copyright
    +Holder(s) under this license and clearly marked as such. This may
    +include source files, build scripts and documentation.
    +
    +"Reserved Font Name" refers to any names specified as such after the
    +copyright statement(s).
    +
    +"Original Version" refers to the collection of Font Software components as
    +distributed by the Copyright Holder(s).
    +
    +"Modified Version" refers to any derivative made by adding to, deleting,
    +or substituting -- in part or in whole -- any of the components of the
    +Original Version, by changing formats or by porting the Font Software to a
    +new environment.
    +
    +"Author" refers to any designer, engineer, programmer, technical
    +writer or other person who contributed to the Font Software.
    +
    +PERMISSION & CONDITIONS
    +Permission is hereby granted, free of charge, to any person obtaining
    +a copy of the Font Software, to use, study, copy, merge, embed, modify,
    +redistribute, and sell modified and unmodified copies of the Font
    +Software, subject to the following conditions:
    +
    +1) Neither the Font Software nor any of its individual components,
    +in Original or Modified Versions, may be sold by itself.
    +
    +2) Original or Modified Versions of the Font Software may be bundled,
    +redistributed and/or sold with any software, provided that each copy
    +contains the above copyright notice and this license. These can be
    +included either as stand-alone text files, human-readable headers or
    +in the appropriate machine-readable metadata fields within text or
    +binary files as long as those fields can be easily viewed by the user.
    +
    +3) No Modified Version of the Font Software may use the Reserved Font
    +Name(s) unless explicit written permission is granted by the corresponding
    +Copyright Holder. This restriction only applies to the primary font name as
    +presented to the users.
    +
    +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
    +Software shall not be used to promote, endorse or advertise any
    +Modified Version, except to acknowledge the contribution(s) of the
    +Copyright Holder(s) and the Author(s) or with their explicit written
    +permission.
    +
    +5) The Font Software, modified or unmodified, in part or in whole,
    +must be distributed entirely under this license, and must not be
    +distributed under any other license. The requirement for fonts to
    +remain under this license does not apply to any document created
    +using the Font Software.
    +
    +TERMINATION
    +This license becomes null and void if any of the above conditions are
    +not met.
    +
    +DISCLAIMER
    +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
    +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
    +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
    +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
    +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
    +OTHER DEALINGS IN THE FONT SOFTWARE.
    +
    diff --git a/src/dvidia_training/graspability_lab.js b/src/dvidia_training/graspability_lab.js new file mode 100644 index 0000000..ec8f4ca --- /dev/null +++ b/src/dvidia_training/graspability_lab.js @@ -0,0 +1,121 @@ +/* DVIDIA prerequisite experiment viewer. MIT. Recorded native poses only. */ +import * as THREE from 'three'; +import {OrbitControls} from 'three/addons/controls/OrbitControls.js'; +const $=id=>document.getElementById(id), MAX=64*1024*1024; +const assert=(ok,message)=>{if(!ok)throw new Error(message);}; +const shapeNames={'easy-block':'Small block','simplified-shoe':'Narrow shoe proxy','current-shoe':'Full shoe proxy'}; +const loadNames={'lightweight-control':'30 g · light control','reference-load':'300 g · reference load'}; +const toolName=t=>t==='mounted'?'Rake mounted':'Rake absent'; +let report,task='in-reach-graspability',trial,model,motion,pose,renderer,scene,camera,orbit,bodyGroups=[],visual=[],collision=[],frame=0,playing=false,started=0,queued=false,generation=0,resizeObserver; +const geometryCache=new Map(); +function localPath(path){assert(typeof path==='string'&&/^[a-zA-Z0-9_.-]+(?:\/[a-zA-Z0-9_.-]+)*$/.test(path)&&!path.split('/').some(p=>p==='.'||p==='..'),'Invalid export path');return path;} +async function bounded(stream,limit){assert(stream,'Missing response body');const reader=stream.getReader(),chunks=[];let length=0;try{for(;;){const {done,value}=await reader.read();if(done)break;length+=value.byteLength;assert(length<=limit,'Asset exceeds byte limit');chunks.push(value);}}finally{await reader.cancel().catch(()=>{});reader.releaseLock();}const out=new Uint8Array(length);let offset=0;for(const c of chunks){out.set(c,offset);offset+=c.length;}return out.buffer;} +async function resource(path,limit){ + const local=new URL(localPath(path),location.href), hosted=location.hostname==='dvidia-robot-simulation-lab.static.hf.space'; + const urls=hosted&&path.endsWith('.bin.gz')?[new URL('https://research.dvidia.org/downloads/topics/physical-grounding/runs/2026-10-14-shoe-graspability-v03/lab/'+path),local]:[local]; + let last; + for(const [i,url] of urls.entries()){ + const controller=new AbortController(),timeout=setTimeout(()=>controller.abort(),i===0&&urls.length>1?15000:45000); + try{ + const r=await fetch(url,{signal:controller.signal,credentials:'omit',referrerPolicy:'no-referrer',redirect:hosted?'follow':'error'}); + const final=new URL(r.url); + assert(final.origin===url.origin||(hosted&&final.protocol==='https:'&&(final.hostname.endsWith('.hf.co')||final.hostname==='huggingface.co')),'Unexpected asset redirect'); + assert(r.ok,'HTTP '+r.status+' loading '+path); + return await bounded(r.body,limit); + }catch(error){last=error;}finally{clearTimeout(timeout);} + } + throw new Error('Could not load '+path+'. '+last.message); +} +async function json(path){return JSON.parse(new TextDecoder().decode(await resource(path,8*1024*1024)));} +async function binary(meta){ + assert(meta?.compression==='gzip'&&Number.isInteger(meta.bytes)&&meta.bytes>0&&meta.bytes<=MAX&&Number.isInteger(meta.compressed_bytes)&&meta.compressed_bytes>0&&meta.compressed_bytes<=MAX,'Invalid binary descriptor'); + const bytes=await resource(meta.href,meta.compressed_bytes);assert(bytes.byteLength===meta.compressed_bytes,'Compressed length mismatch'); + const unpacked=await bounded(new Blob([bytes]).stream().pipeThrough(new DecompressionStream('gzip')),meta.bytes);assert(unpacked.byteLength===meta.bytes,'Decoded length mismatch'); + assert(crypto?.subtle,'This viewer requires a secure context or localhost'); + const hash=[...new Uint8Array(await crypto.subtle.digest('SHA-256',unpacked))].map(x=>x.toString(16).padStart(2,'0')).join(''); + assert(hash===meta.sha256,'Binary checksum mismatch');return unpacked; +} +function validate(m,p,g,data){ + assert(m.schema==='dvidia.prerequisite-scene/v1'&&p.schema==='dvidia.prerequisite-motion/v1','Unsupported replay schema'); + assert(Number.isInteger(p.body_count)&&p.body_count>0&&p.body_count<=128&&m.bodies.length===p.body_count&&Number.isInteger(p.frame_count)&&p.frame_count>=2&&p.frame_count<=10000&&p.times.length===p.frame_count&&data.byteLength===p.frame_count*p.body_count*28,'Invalid pose layout'); + assert(p.times.every((t,i)=>Number.isFinite(t)&&t>=0&&(!i||t>p.times[i-1])),'Invalid timestamps'); + assert(m.meshes.length<=128&&m.geoms.length<=512,'Scene too large'); + const dv=new DataView(g),ids=new Set(); + for(const mesh of m.meshes){const n=mesh.vertex_count,k=mesh.index_count,v=mesh.position_byte_offset,f=mesh.index_byte_offset;assert([mesh.id,n,k,v,f].every(Number.isInteger)&&!ids.has(mesh.id)&&n>0&&k>=0&&k%3===0&&v>=0&&f>=0&&v+n*12<=g.byteLength&&f+k*4<=g.byteLength,'Invalid mesh range');ids.add(mesh.id);for(let i=0;i=0&&geom.body_idx*2));case'sphere':return new THREE.SphereGeometry(g.size[0],20,12);case'ellipsoid':{const shape=new THREE.SphereGeometry(1,24,16);shape.scale(...g.size);return shape;}case'capsule':{const shape=new THREE.CapsuleGeometry(g.size[0],2*g.size[1],6,18);shape.rotateX(Math.PI/2);return shape;}case'cylinder':{const shape=new THREE.CylinderGeometry(g.size[0],g.size[0],g.size[1]*2,24);shape.rotateX(Math.PI/2);return shape;}case'plane':return new THREE.PlaneGeometry(5,5);}} +function requestRender(){if(!queued&&renderer){queued=true;requestAnimationFrame(render);}} +function showFrame(index){ + frame=Math.min(motion.frame_count-1,Math.max(0,index));$('timeline').value=frame;const t=motion.times[frame];$('clock').textContent=t.toFixed(2)+' / '+motion.times.at(-1).toFixed(2)+' s'; + for(let i=0;ibutton.classList.toggle('current',Math.abs(Number(button.dataset.time)-t)<.15)); + const row=motion.rows[frame]; + $('phase').textContent=human(row.phase||'unrecorded'); + $('fingers').textContent=(row.finger_normal_forces_n||[]).map(x=>x.toFixed(2)).join(' / ')||'—'; + $('support').textContent=Number.isFinite(row.world_object_force_n)?row.world_object_force_n.toFixed(2):'—'; + const reference=trial.independent_score?.reference; + $('height').textContent=row.object_position&&reference&&t>=reference.t_s?((row.object_position[2]-reference.object_z_m)*1000).toFixed(1):'—'; + $('drive').textContent=Number.isFinite(row.gripper_actuator_force_n)?row.gripper_actuator_force_n.toFixed(2):'—'; + $('jaw').textContent=Number.isFinite(row.jaw_opening_m)?(row.jaw_opening_m*1000).toFixed(1):'—'; + $('stage').dataset.frame=String(frame);requestRender(); +} +function stop(){playing=false;$('play').textContent='Play trial';$('play').setAttribute('aria-pressed','false');} +function render(now){queued=false;if(playing&&motion){const t=Math.max(0,(now-started)/1000);let next=frame;while(next+1{if(o.geometry)geometries.add(o.geometry);if(o.material)materials.add(o.material);});geometries.forEach(g=>g.dispose());materials.forEach(m=>m.dispose());} +function setup(geometry){ + if(!renderer){assert($('canvas').getContext('webgl2'),'WebGL2 is unavailable');renderer=new THREE.WebGLRenderer({canvas:$('canvas'),antialias:true,powerPreference:'low-power'});renderer.setPixelRatio(Math.min(devicePixelRatio||1,1.5));renderer.outputColorSpace=THREE.SRGBColorSpace;renderer.toneMapping=THREE.ACESFilmicToneMapping;renderer.toneMappingExposure=1.25;renderer.shadowMap.enabled=true;renderer.shadowMap.type=THREE.PCFSoftShadowMap;camera=new THREE.PerspectiveCamera(38,1,.01,20);camera.up.set(0,0,1);orbit=new OrbitControls(camera,$('canvas'));orbit.minDistance=.3;orbit.maxDistance=4;orbit.addEventListener('change',requestRender);resizeObserver=new ResizeObserver(()=>{const r=$('stage').getBoundingClientRect();camera.aspect=r.width/r.height;camera.updateProjectionMatrix();renderer.setSize(r.width,r.height,false);requestRender();});resizeObserver.observe($('stage'));} + disposeScene();scene=new THREE.Scene();scene.background=new THREE.Color(0xe9eadf);scene.add(new THREE.HemisphereLight(0xf7fbff,0x949c7d,2.6));const sun=new THREE.DirectionalLight(0xfff7e7,3.2);sun.position.set(1,-1,3);sun.castShadow=true;sun.shadow.mapSize.set(1024,1024);sun.shadow.camera.left=-1.4;sun.shadow.camera.right=1.4;sun.shadow.camera.top=1.4;sun.shadow.camera.bottom=-1.4;sun.shadow.normalBias=.003;scene.add(sun);const fill=new THREE.DirectionalLight(0xe4edff,.9);fill.position.set(-1,1,2);scene.add(fill); + bodyGroups=model.bodies.map(()=>{const group=new THREE.Group();scene.add(group);return group;});visual=[];collision=[];const meshes=new Map(),dv=new DataView(geometry); + for(const mesh of model.meshes){const p=new Float32Array(mesh.vertex_count*3),idx=new Uint32Array(mesh.index_count);for(let i=0;i{const mesh=new THREE.Mesh(shape,material);mesh.position.fromArray(geom.position);const q=geom.quaternion_wxyz;mesh.quaternion.set(q[1],q[2],q[3],q[0]);bodyGroups[geom.body_id].add(mesh);return mesh;};if(rgba[3]>0&&geom.group<=2){const mesh=add(new THREE.MeshStandardMaterial({color:new THREE.Color().setRGB(...rgba.slice(0,3),THREE.LinearSRGBColorSpace),roughness:.68,metalness:geom.type==='mesh'?.12:0,transparent:rgba[3]<1,opacity:rgba[3],side:THREE.DoubleSide}));mesh.castShadow=geom.type!=='plane';mesh.receiveShadow=true;visual.push(mesh);}if(geom.collision){const mesh=add(new THREE.MeshStandardMaterial({color:0xb9774b,transparent:true,opacity:.4,depthWrite:false}));mesh.visible=false;collision.push(mesh);}} + const r=$('stage').getBoundingClientRect();camera.aspect=r.width/r.height;camera.updateProjectionMatrix();renderer.setSize(r.width,r.height,false);showFrame(0);cameraView('home');$('collision').setAttribute('aria-pressed','false');$('scene-state').textContent='NATIVE PHYSICS · RECORDED POSES'; +} +function human(key){return key.replaceAll('_',' ');} +function scalar(value){return typeof value==='number'?(Number.isInteger(value)?String(value):value.toFixed(2)):typeof value==='boolean'?(value?'Yes':'No'):String(value??'—');} +function eventTime(event){return Number(event.t??event.time_s??event.time??0);} +function eventLabel(event){const label=event.message||human(event.type||'event');return ({grip_loss_detected:'Grip check: ',grip_recovery_started:'Lowering: ',help_requested:'Stopped: '})[event.type]?({grip_loss_detected:'Grip check: ',grip_recovery_started:'Lowering: ',help_requested:'Stopped: '})[event.type]+label:label;} +function renderEvents(){const ul=$('events');ul.replaceChildren();for(const event of trial.events){if(['phase','assumptions'].includes(event.type)&&$('show-phases').getAttribute('aria-pressed')!=='true')continue;const li=document.createElement('li'),button=document.createElement('button'),time=document.createElement('time'),text=document.createElement('span');const t=eventTime(event);time.textContent=t.toFixed(2)+' s';text.textContent=eventLabel(event);button.dataset.time=t;button.append(time,text);button.addEventListener('click',()=>{stop();let i=motion.times.findIndex(x=>x>=t);showFrame(i<0?motion.frame_count-1:i);});li.append(button);ul.append(li);}if(!trial.events.length){const li=document.createElement('li');li.className='events-empty';li.textContent='No discrete intervention events were recorded.';ul.append(li);}} +function option(select,value,label){const o=document.createElement('option');o.value=value;o.textContent=label;select.append(o);} +function fillResults(){ + const rows=$('results');rows.replaceChildren(); + for(const shape of Object.keys(shapeNames))for(const load of Object.keys(loadNames))for(const tool of ['mounted','absent']){ + const group=report.attempts.filter(r=>r.case.object_shape===shape&&r.case.load_band===load&&r.case.tool_condition===tool);if(!group.length)continue; + const tr=document.createElement('tr');for(const value of [shapeNames[shape],loadNames[load],toolName(tool),group.filter(r=>r.success&&r.valid).length+' / '+group.length,group.filter(r=>r.valid).length+' / '+group.length]){const td=document.createElement('td');td.textContent=value;tr.append(td);}rows.append(tr); + } +} +function controls(disabled){document.querySelectorAll('#play,#timeline,#collision,#case,#shape,#load,#tool,#show-phases,#events button').forEach(el=>el.disabled=disabled);} +function chooseLayouts(){ + const previous=$('case').value;const cases=report.attempts.filter(r=>r.case.object_shape===$('shape').value&&r.case.load_band===$('load').value);const ids=[...new Set(cases.map(r=>r.case.replicate_id))];$('case').replaceChildren();for(const id of ids)option($('case'),id,human(id));if(ids.includes(previous))$('case').value=previous; +} +async function loadTrial(){ + const gen=++generation;stop();controls(true);$('loading').hidden=false;$('loading-message').textContent='Loading geometry and recorded motion.';$('stage').dataset.ready='loading'; + for(const id of ['phase','fingers','support','height','drive','jaw','duration'])$(id).textContent='—';$('events').replaceChildren(); + trial=report.attempts.find(row=>row.case.object_shape===$('shape').value&&row.case.load_band===$('load').value&&row.case.replicate_id===$('case').value&&row.case.tool_condition===$('tool').value);assert(trial,'Trial not found'); + const score=trial.independent_score,metrics=trial.metrics; + $('scene-title').textContent=shapeNames[trial.case.object_shape]; + $('outcome').textContent=trial.valid?(trial.success?'Lift retained':'Lift not retained'):'Invalid attempt';$('outcome').dataset.success=trial.success&&trial.valid;$('outcome').dataset.valid=trial.valid;$('success').textContent=trial.success&&trial.valid?'Yes':'No'; + $('details').textContent=JSON.stringify({case:trial.case,metrics,independent_score:score,errors:trial.errors},null,2);$('receipt').href='trials/'+localPath(trial.id)+'.json'; + $('metric-a').textContent=(trial.case.mass*1000).toFixed(0)+' g';$('metric-b').textContent=Number.isFinite(score?.terminal_relative_lift_m)?(score.terminal_relative_lift_m*1000).toFixed(1)+' mm':'—'; + $('task-description').textContent='The same fixed pickup sequence runs on three rigid shapes at two loads, with and without the wrist-mounted rake.'; + $('scope-note').textContent='The simulated jaw command spans 70 mm; the full shoe sole is 100 mm wide. The position drive has a gain of 40 N/m. Its 10 N force cap is a limit, not the force delivered at contact. These settings are not a hardware calibration. Removing the rake changes both clearance and wrist inertia.'; + if(!trial.replay)throw new Error('This attempt has no valid replay. Its failure receipt remains downloadable.'); + const [m,p]=await Promise.all([json(trial.replay.model),json(trial.replay.motion)]);let geometry=geometryCache.get(m.geometry_binary.sha256);if(!geometry){geometry=await binary(m.geometry_binary);geometryCache.set(m.geometry_binary.sha256,geometry);}const positions=await binary(p.motion_binary);if(gen!==generation)return;validate(m,p,geometry,positions);model=m;motion=p;pose=new Float32Array(positions);setup(geometry);renderEvents();$('timeline').max=String(motion.frame_count-1);$('duration').textContent=motion.times.at(-1).toFixed(2)+' s';$('status').textContent=(report.split==='heldout'?'Fresh evaluation':'Development controls')+' · '+human(trial.case.replicate_id)+' · '+toolName(trial.case.tool_condition);$('stage').dataset.ready='true';$('loading').hidden=true;controls(false); +} +function fail(error){stop();$('loading').hidden=false;$('loading-message').textContent=error.message;$('stage').dataset.ready='error';$('status').textContent='Replay unavailable. The protocol and trial receipts remain accessible.';for(const id of ['case','shape','load','tool'])$(id).disabled=false;console.error(error);} +async function main(){ + assert(location.protocol!=='file:','Serve the export over HTTP');report=await json('benchmark.json');assert(report.schema==='dvidia.graspability/v3'&&Array.isArray(report.attempts)&&report.attempts.length>0&&report.attempts.length<=100,'Invalid benchmark');fillResults(); + const commit=report.source.commit;if(commit){assert(/^[a-f0-9]{40}$/.test(commit),'Invalid source commit');$('source').href='https://github.com/Dvidia-Inference/dvidia-training/tree/'+commit;} + $('command').textContent='git clone https://github.com/Dvidia-Inference/dvidia-training.git\ncd dvidia-training\n'+(commit?'git checkout '+commit+'\n':'')+'python -m venv .venv\n# Activate .venv using your shell, then:\npython -m pip install ".[arm]"\ndvidia-robot-sim fetch piper --output robot-assets\ndvidia-graspability-benchmark --assets robot-assets --output results --split '+report.split+(commit?' --source-commit '+commit:'')+'\npython -m http.server 8000 --directory results'; + for(const [id,labels,key] of [['shape',shapeNames,'object_shape'],['load',loadNames,'load_band']]){for(const value of [...new Set(report.attempts.map(r=>r.case[key]))])option($(id),value,labels[value]||human(value));$(id).addEventListener('change',()=>{chooseLayouts();loadTrial().catch(fail);});} + for(const id of ['case','tool'])$(id).addEventListener('change',()=>loadTrial().catch(fail)); + document.querySelectorAll('[data-camera]').forEach(button=>button.addEventListener('click',()=>{if(camera)cameraView(button.dataset.camera);})); + $('show-phases').addEventListener('click',()=>{$('show-phases').setAttribute('aria-pressed',String($('show-phases').getAttribute('aria-pressed')!=='true'));if(motion)renderEvents();}); + $('play').addEventListener('click',()=>{if(playing){stop();return;}if(frame===motion.frame_count-1)showFrame(0);playing=true;started=performance.now()-motion.times[frame]*1000;$('play').textContent='Pause trial';$('play').setAttribute('aria-pressed','true');requestRender();}); + $('timeline').addEventListener('input',()=>{stop();showFrame(Number($('timeline').value));}); + $('collision').addEventListener('click',()=>{const on=$('collision').getAttribute('aria-pressed')!=='true';$('collision').setAttribute('aria-pressed',String(on));visual.forEach(m=>m.visible=!on);collision.forEach(m=>m.visible=on);$('scene-state').textContent=on?'COLLISION GEOMETRY · RECORDED POSES':'NATIVE PHYSICS · RECORDED POSES';requestRender();}); + $('canvas').addEventListener('keydown',event=>{if(event.key==='Home'||event.key==='h'){event.preventDefault();cameraView('home');}});document.addEventListener('visibilitychange',()=>{if(document.hidden)stop();});chooseLayouts();await loadTrial(); +} +main().catch(fail); diff --git a/src/dvidia_training/graspability_protocol.py b/src/dvidia_training/graspability_protocol.py new file mode 100644 index 0000000..08f5d7f --- /dev/null +++ b/src/dvidia_training/graspability_protocol.py @@ -0,0 +1,259 @@ +"""Independent evidence scoring for direct, in-reach object grasp diagnostics. + +This module does not import or execute a controller. A successful easy-object +lift is a diagnostic result, never evidence of shoe retrieval or a learned skill. +""" +from __future__ import annotations + +from copy import deepcopy +from hashlib import sha256 +import json +import math +from pathlib import Path + +SCHEMA = 'dvidia.graspability/v3' +SCORE_SCHEMA = 'dvidia.graspability-score/v3' +FIXTURE = Path(__file__).with_name('graspability_protocol_v03.json') +FIXTURE_SHA256 = 'c33ef6991379fda77d6084931d2b4b3665830ffa448f9ea403a65d2c37b757a3' +SHAPES = ('easy-block', 'simplified-shoe', 'current-shoe') +TOOL_CONDITIONS = ('mounted', 'absent') +POLICY = 'shared-v03' +NATIVE_DT = .002 +RETENTION_TICKS = 250 +REFERENCE_TICKS = 50 +REFERENCE_TIME_S = .4 +LIFT_MIN_M = .035 +FORCE_MIN_N = .01 +_REQUIRED = ( + 't_s', 'tool_object_force_n', 'object_robot_force_n', + 'left_finger_force_n', 'right_finger_force_n', + 'object_x_m', 'object_y_m', 'object_z_m', 'world_object_force_n', +) + + +def _number(value): + if type(value) not in (int, float) or not math.isfinite(value): + raise ValueError('Graspability evidence requires finite numeric values') + return float(value) + + +def _trace(result): + columns = result.get('native_trace_columns') + raw = result.get('native_trace') + if (not isinstance(columns, list) + or not all(isinstance(name, str) for name in columns) + or len(columns) != len(set(columns)) + or not set(_REQUIRED) <= set(columns) + or not isinstance(raw, list) or not 1 <= len(raw) <= 100000): + raise ValueError('Missing bounded dense object trace or required columns') + rows = [] + for sample in raw: + if not isinstance(sample, (list, tuple)) or len(sample) != len(columns): + raise ValueError('Malformed native object trace row') + row = dict(zip(columns, (_number(value) for value in sample))) + if any(row[key] < 0 for key in _REQUIRED if key.endswith('_force_n')): + raise ValueError('Negative contact normal force') + other = (row['object_robot_force_n'] - row['tool_object_force_n'] + - row['left_finger_force_n'] - row['right_finger_force_n']) + if other < -1e-6: + raise ValueError('Inconsistent object contact-force decomposition') + row['other_robot_force_n'] = max(0., other) + rows.append(row) + times = [row['t_s'] for row in rows] + if abs(times[0]) > 1e-8 and abs(times[0] - NATIVE_DT) > 1e-8: + raise ValueError('Trace omits its initial native steps') + if any(abs(b - a - NATIVE_DT) > 1e-8 for a, b in zip(times, times[1:])): + raise ValueError('Native trace has a missing, duplicated or nonuniform timestep') + metrics = result.get('metrics', {}) + end = _number(metrics.get('simulation_seconds', metrics.get('simulated_seconds'))) + if abs(times[-1] - end) > 1e-6: + raise ValueError('Dense trace does not reach the declared episode end') + steps = metrics.get('native_steps') + if type(steps) is not int or steps != round(end / NATIVE_DT): + raise ValueError('Native step count disagrees with trace duration') + if len(rows) != steps + int(abs(times[0]) <= 1e-8): + raise ValueError('Native trace coverage is incomplete') + if type(result.get('valid')) is not bool: + raise ValueError('Native validity must be explicit') + return rows + + +def _reference(result, rows): + events = result.get('events', []) + if not isinstance(events, list): + raise ValueError('Events must be a list') + for event in events: + if not isinstance(event, dict) or not isinstance(event.get('type'), str): + raise ValueError('Malformed graspability event') + if not 0 <= _number(event.get('t')) <= rows[-1]['t_s'] + 1e-6: + raise ValueError('Event lies outside recorded episode') + references = [event for event in events if event['type'] == 'settled_reference'] + if len(references) > 1: + raise ValueError('Reference cannot be reset after an attempted grasp') + if not references: + return None + event = references[0] + index = next((i for i, row in enumerate(rows) + if abs(row['t_s'] - event['t']) < 1e-8), None) + if index is None: + raise ValueError('Settled reference must identify a recorded native timestep') + window = rows[max(0, index - REFERENCE_TICKS + 1):index + 1] + ranges = [max(row[key] for row in window) - min(row[key] for row in window) + for key in ('object_x_m', 'object_y_m', 'object_z_m')] + supported = all(row['world_object_force_n'] > FORCE_MIN_N for row in window) + clear = all(row['object_robot_force_n'] < FORCE_MIN_N for row in window) + stable = max(ranges) <= .001 + complete = len(window) == REFERENCE_TICKS + at_initial_time = abs(rows[index]['t_s'] - REFERENCE_TIME_S) <= 1e-8 + return {'t_s': rows[index]['t_s'], 'object_z_m': rows[index]['object_z_m'], + 'source': 'Recorded native row; event scalar coordinates are not trusted.', + 'window_ticks': len(window), 'window_duration_s': REFERENCE_TICKS * NATIVE_DT, + 'axis_position_ranges_m': ranges, 'world_supported': supported, + 'robot_clear': clear, 'position_stable': stable, + 'at_declared_initial_time': at_initial_time, + 'valid': bool(complete and supported and clear and stable and at_initial_time)} + + +def _predicate(row, reference_z): + return bool( + row['object_z_m'] - reference_z >= LIFT_MIN_M + and row['left_finger_force_n'] > FORCE_MIN_N + and row['right_finger_force_n'] > FORCE_MIN_N + and row['world_object_force_n'] < FORCE_MIN_N + and row['tool_object_force_n'] < FORCE_MIN_N + and row['other_robot_force_n'] < FORCE_MIN_N) + + +def score_result(result): + """Score every native tick; controller success and reference z are unused. + + Short or unsettled episodes remain retained attempts, with a failed lift. + Corrupt or incomplete evidence raises ValueError rather than scoring a pass. + """ + rows = _trace(result) + reference = _reference(result, rows) + final = rows[-RETENTION_TICKS:] + end = rows[-1]['t_s'] + complete = bool(reference and len(final) == RETENTION_TICKS + and end - reference['t_s'] >= RETENTION_TICKS * NATIVE_DT - 1e-8) + reference_z = reference['object_z_m'] if reference else None + passing = sum(_predicate(row, reference_z) for row in final) if reference else 0 + failures = [] + if not result['valid']: + failures.append('native_invalid') + if reference is None: + failures.append('settled_reference_missing') + elif not reference['valid']: + failures.append('initial_reference_unsettled') + if not complete: + failures.append('retention_window_incomplete') + counts = { + 'world_supported_ticks': sum(row['world_object_force_n'] >= FORCE_MIN_N for row in final), + 'tool_supported_ticks': sum(row['tool_object_force_n'] >= FORCE_MIN_N for row in final), + 'other_robot_supported_ticks': sum(row['other_robot_force_n'] >= FORCE_MIN_N for row in final), + 'bilateral_contact_missing_ticks': sum(min(row['left_finger_force_n'], row['right_finger_force_n']) <= FORCE_MIN_N for row in final), + 'relative_lift_failed_ticks': sum(row['object_z_m'] - reference_z < LIFT_MIN_M for row in final) if reference else len(final), + } + for key, label in (('world_supported_ticks', 'world_support'), + ('tool_supported_ticks', 'tool_support'), + ('other_robot_supported_ticks', 'other_robot_support'), + ('bilateral_contact_missing_ticks', 'bilateral_contact'), + ('relative_lift_failed_ticks', 'relative_lift')): + if counts[key]: + failures.append(label) + strict = bool(reference and reference['valid'] and complete and passing == RETENTION_TICKS) + after_reference = [row for row in rows if reference and row['t_s'] >= reference['t_s']] + score = {'schema': SCORE_SCHEMA, 'valid': result['valid'], + 'task_success': bool(result['valid'] and strict), + 'strict_retention_pass': strict, 'reference': reference, + 'final_window_complete': complete, 'final_window_ticks': len(final), + 'required_final_window_s': RETENTION_TICKS * NATIVE_DT, + 'final_window_start_exclusive_s': end - RETENTION_TICKS * NATIVE_DT, + 'final_window_end_s': end, 'strict_passing_ticks': passing, + 'relative_lift_min_m': LIFT_MIN_M, + 'terminal_relative_lift_m': rows[-1]['object_z_m'] - reference_z if reference else None, + 'maximum_relative_lift_m': max(row['object_z_m'] - reference_z for row in after_reference) if after_reference else None, + 'minimum_final_relative_lift_m': min(row['object_z_m'] - reference_z for row in final) if reference else None, + 'failed_criteria': failures, + 'task_scope': 'Direct in-reach pickup; no retrieval, tool acquisition, learned skill or hardware transfer claim.', + 'height_scope': 'Object body-origin displacement from a verified initial settled native reference. Lowest collision surface is a separate diagnostic, not the success threshold.', + 'support_scope': 'Finger normal forces each >0.01 N; world, tool and non-finger robot normal forces each <0.01 N on all final 250 native ticks. Synthetic scoring thresholds, not hardware safety limits.'} + score.update(counts) + if 'object_lowest_z_m' in rows[0]: + score['minimum_final_collision_surface_z_m'] = min(row['object_lowest_z_m'] for row in final) + return score + + +def audit_result(result): + """Flag controller claim disagreement while returning the independent score.""" + score = score_result(result) + claimed = result.get('success') + if type(claimed) is not bool: + raise ValueError('Controller success must be an explicit boolean') + score['controller_reported_success'] = claimed + score['controller_claim_agrees'] = claimed == score['task_success'] + return score + + +def _fixture(): + raw = FIXTURE.read_bytes() + if sha256(raw).hexdigest() != FIXTURE_SHA256: + raise ValueError('Sealed graspability protocol changed; declare a new protocol revision') + value = json.loads(raw) + if value.get('schema') != 'dvidia.graspability-protocol/v3': + raise ValueError('Unsupported graspability protocol') + ids = set() + bounds = {'object_x': (.38, .44), 'object_y': (-.12, -.06), 'friction': (.1, 1.5)} + loads = {'lightweight-control': .03, 'reference-load': .30} + for split in ('development', 'heldout'): + cases = value['cases'][split] + if not isinstance(cases, list) or len(cases) != (2 if split == 'development' else 4): + raise ValueError('Unexpected factorial cohort size') + replicates = {} + for case in cases: + identifier = case.get('id') + if not isinstance(identifier, str) or not identifier or identifier in ids: + raise ValueError('Case IDs must be nonempty and unique across splits') + ids.add(identifier) + if case.get('load_band') not in loads or _number(case.get('mass')) != loads[case['load_band']]: + raise ValueError('Case load must match a declared explicit load band') + for key, (low, high) in bounds.items(): + if not low <= _number(case.get(key)) <= high: + raise ValueError('Case parameter outside declared study bounds: ' + key) + replicate = case.get('replicate_id') + if not isinstance(replicate, str) or not replicate: + raise ValueError('Case requires a layout replicate ID') + replicates.setdefault(replicate, []).append(case) + for paired in replicates.values(): + if len(paired) != 2 or {row['load_band'] for row in paired} != set(loads): + raise ValueError('Each layout replicate must contain both load bands') + if any(paired[0][key] != paired[1][key] for key in bounds): + raise ValueError('Load pair changed layout or friction') + expected = {'native_dt_s': NATIVE_DT, 'policy_dt_s': .02, + 'initial_settle_s': REFERENCE_TIME_S, 'reference_window_s': .1, + 'reference_axis_range_max_m': .001, + 'final_retention_s': .5, 'final_retention_ticks': RETENTION_TICKS, + 'relative_origin_lift_min_m': LIFT_MIN_M, + 'finger_force_min_n': FORCE_MIN_N, 'support_force_max_n': FORCE_MIN_N} + if any(value['criteria'].get(key) != number for key, number in expected.items()): + raise ValueError('Fixture criteria disagree with independent scorer') + return value + + +def protocol(split='development'): + """Expand a sealed factorial; loading a plan never simulates a case.""" + if split not in ('development', 'heldout'): + raise ValueError('split must be development or heldout') + value = _fixture() + attempts = [] + for case in value['cases'][split]: + for shape in SHAPES: + for tool_condition in TOOL_CONDITIONS: + expanded = dict(deepcopy(case), object_shape=shape, tool_condition=tool_condition, split=split) + attempts.append({'id': case['id'] + '-' + shape + '-' + tool_condition, + 'task': 'in-reach-graspability', 'policy': POLICY, 'case': expanded}) + return {'schema': SCHEMA, 'split': split, 'fixture_sha256': FIXTURE_SHA256, + 'cohort': value['cohorts'][split], 'attempts': attempts, + 'criteria': deepcopy(value['criteria']), 'design': value['design'], + 'comparison': value['comparison'], 'cohort_access': value['cohort_access'], + 'scope': value['scope']} diff --git a/src/dvidia_training/graspability_protocol_v03.json b/src/dvidia_training/graspability_protocol_v03.json new file mode 100644 index 0000000..daeb7ec --- /dev/null +++ b/src/dvidia_training/graspability_protocol_v03.json @@ -0,0 +1,87 @@ +{ + "schema": "dvidia.graspability-protocol/v3", + "cohorts": { + "development": "known-layout-explicit-load-controls-v03", + "heldout": "fresh-layout-factorial-v03" + }, + "design": "Direct in-reach pickup, crossing three object shapes, two explicit loads, two tool states and two fresh layout/friction replicates: 24 confirmation attempts. A single fixed authored controller uses a declared geometry-aware grasp-position rule. Layout and friction vary jointly between the two deterministic replicates; these are not random population samples or confidence-interval estimates. Development uses one separate known layout crossed with the same two loads, three shapes and two tool states.", + "comparison": "Within each layout and load, object mass, friction, spawn position, robot actuators and control settings are matched across all six shape/tool cells. Load pairs share the same layout and friction. Changing shape necessarily changes contact geometry and inertia; removing the mounted rake changes wrist mass/inertia as well as clearance. Tool absence is a morphology ablation, not successful tool detachment. Report shape × load × tool results separately; never present easy-object lifts as shoe-skill success.", + "cohort_access": "The independent evaluator seals the fresh parameter cases before the final controller is frozen. Controller tuning may use development only. Do not inspect or execute fresh cases until a source freeze is recorded. After the first evaluation these cases are known regressions; rerunning them does not create new confirmation evidence.", + "scope": "Authored direct-pickup diagnostic with privileged native observations, assumed rigid-object contact properties and pinned simulation actuators. No retrieval, learned policy, tool acquisition, deformable shoe, physical grip-capacity measurement or hardware-transfer claim. Frozen v02 retrieval results remain separate regressions and are not pooled into this study.", + "criteria": { + "native_dt_s": 0.002, + "policy_dt_s": 0.02, + "initial_settle_s": 0.4, + "reference_window_s": 0.1, + "reference_axis_range_max_m": 0.001, + "reference_scope": "At the fixed 0.4 s native timestamp, the previous 50 ticks must each show world normal force >0.01 N and aggregate robot/tool normal force <0.01 N, with range <=1 mm on each position axis. The reference height is read from the native trace, never trusted from an event coordinate.", + "final_retention_s": 0.5, + "final_retention_ticks": 250, + "relative_origin_lift_min_m": 0.035, + "finger_force_min_n": 0.01, + "support_force_max_n": 0.01, + "height_scope": "Object body-origin rise >=35 mm from the verified settled reference, on every final native tick. Actual lowest collision-surface height is an additional diagnostic and does not replace the fixed criterion.", + "support_scope": "Both finger normal forces >0.01 N; world, tool and other-robot normal forces each <0.01 N during the final 500 ms. Synthetic evidence thresholds, not calibrated hardware limits.", + "abort_scope": "All planned attempts remain in the denominator. A recorded physical abort, short run or unsettled initialization cannot pass. Corrupt or incomplete native evidence is invalid and also cannot pass. No outcome-dependent exclusion or private retry." + }, + "cases": { + "development": [ + { + "id": "grasp-dev-light", + "replicate_id": "grasp-dev-layout", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.4, + "object_y": -0.1, + "friction": 0.6 + }, + { + "id": "grasp-dev-reference", + "replicate_id": "grasp-dev-layout", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.4, + "object_y": -0.1, + "friction": 0.6 + } + ], + "heldout": [ + { + "id": "grasp-fresh-01-light", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54 + }, + { + "id": "grasp-fresh-01-reference", + "replicate_id": "grasp-fresh-layout-01", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.391, + "object_y": -0.113, + "friction": 0.54 + }, + { + "id": "grasp-fresh-02-light", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "lightweight-control", + "mass": 0.03, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91 + }, + { + "id": "grasp-fresh-02-reference", + "replicate_id": "grasp-fresh-layout-02", + "load_band": "reference-load", + "mass": 0.3, + "object_x": 0.429, + "object_y": -0.071, + "friction": 0.91 + } + ] + } +} diff --git a/tests/test_graspability.py b/tests/test_graspability.py new file mode 100644 index 0000000..9fc2f96 --- /dev/null +++ b/tests/test_graspability.py @@ -0,0 +1,91 @@ +"""Native causal controls for the explicit direct-grasp diagnostic.""" +import math +import os +from pathlib import Path +import unittest + +from dvidia_training import graspability as grasp, reference_sim as sim + + +class CaseTests(unittest.TestCase): + def test_invalid_cases_fail_before_asset_access(self): + original=grasp.cases()[0] + for key,value in [('object_shape','unknown'),('mass',0),('friction',float('nan')), + ('object_x',.9),('object_y',False),('yaw_rad',1)]: + with self.subTest(key=key),self.assertRaises(ValueError): + grasp.build_model('/missing',dict(original,**{key:value})) + with self.assertRaises(ValueError):grasp.build_model('/missing',original,'detach') + with self.assertRaises(ValueError):grasp.run_case('/missing',original,close_gripper=1) + + def test_development_controls_keep_mass_and_geometry_factors_explicit(self): + rows=grasp.cases() + self.assertEqual({r['object_shape'] for r in rows},set(grasp.SHAPES)) + self.assertEqual({r['mass'] for r in rows},{.03,.30}) + self.assertEqual(len(rows),6) + rows[0]['mass']=42 + self.assertEqual(grasp.cases()[0]['mass'],.03) + with self.assertRaises(ValueError):grasp.cases('heldout') + + +@unittest.skipUnless(os.environ.get('DVIDIA_ROBOT_PROFILE_ASSETS'),'Set pinned robot assets') +class NativeGraspTests(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.assets=Path(os.environ['DVIDIA_ROBOT_PROFILE_ASSETS']) + cls.mj,cls.np=sim._native_imports() + cls.light=grasp.cases()[0] + cls.results={tool:grasp.run_case(cls.assets,cls.light,tool) for tool in grasp.TOOLS} + + def test_tool_ablation_preserves_drives_and_free_object(self): + mounted=self.results['mounted']['model'];absent=self.results['absent']['model'] + for field in ('actuator_gainprm','actuator_biasprm','actuator_ctrlrange','actuator_forcerange','jnt_range'): + self.np.testing.assert_array_equal(getattr(mounted,field),getattr(absent,field)) + self.assertEqual(mounted.actuator_gainprm[6,0],40) + for model in (mounted,absent): + obj=self.mj.mj_name2id(model,self.mj.mjtObj.mjOBJ_BODY,grasp.ws.SHOE) + self.assertAlmostEqual(model.body_mass[obj],.03) + self.assertEqual(model.body_gravcomp[obj],0) + self.assertEqual(model.jnt_type[model.body_jntadr[obj]],self.mj.mjtJoint.mjJNT_FREE) + self.assertEqual(model.neq,1) + self.assertGreaterEqual(self.mj.mj_name2id(mounted,self.mj.mjtObj.mjOBJ_BODY,'reach_rake'),0) + self.assertEqual(self.mj.mj_name2id(absent,self.mj.mjtObj.mjOBJ_BODY,'reach_rake'),-1) + + def test_small_light_object_lifts_but_open_jaw_control_does_not(self): + from dvidia_training.graspability_protocol import score_result + for result in self.results.values(): + self.assertTrue(result['success']) + self.assertTrue(score_result(result)['task_success']) + self.assertFalse(result['metrics']['object_external_force_used']) + self.assertEqual(result['metrics']['object_equality_constraints'],0) + open_jaw=grasp.run_case(self.assets,self.light,'absent',record=False,close_gripper=False) + self.assertFalse(open_jaw['success']) + self.assertFalse(score_result(open_jaw)['task_success']) + self.assertFalse(open_jaw['metrics']['close_gripper']) + + def test_heavier_matched_box_is_not_mislabeled_as_easy_success(self): + from dvidia_training.graspability_protocol import score_result + heavy=grasp.run_case(self.assets,dict(self.light,mass=.30),'absent',record=False) + self.assertFalse(heavy['success']) + self.assertFalse(score_result(heavy)['task_success']) + self.assertEqual(heavy['metrics']['gripper_kp_n_per_m'],40) + self.assertAlmostEqual(heavy['metrics']['object_weight_n'],2.943) + self.assertEqual(heavy['metrics']['solver_warnings'],0) + + def test_dense_evidence_clearance_and_commands_are_native_and_bounded(self): + r=self.results['mounted'];trace=r['native_trace'];columns=r['native_trace_columns'] + self.assertEqual(len(trace),3300) + self.assertEqual(len(trace),r['metrics']['native_steps']) + self.assertEqual(trace[0][0],.002);self.assertEqual(trace[-1][0],6.6) + self.assertLessEqual(r['metrics']['max_joint_command_delta_rad'],.00300000001) + self.assertEqual(r['metrics']['solver_warnings'],0) + self.assertTrue(all(math.isfinite(v) for row in trace for v in row)) + reference=[e for e in r['events'] if e['type']=='settled_reference'] + self.assertEqual(len(reference),1);self.assertEqual(reference[0]['t'],.4) + self.assertLess(abs(reference[0]['object_lowest_z_m']),.001) + self.assertGreater(min(row[columns.index('object_lowest_z_m')] for row in trace[-250:]),.1) + for frame in r['frames']: + self.assertEqual(len(frame['body_poses']),r['model'].nbody) + self.assertAlmostEqual(frame['jaw_opening_m'],frame['jaw_qpos_m'][0]-frame['jaw_qpos_m'][1]) + + +if __name__=='__main__':unittest.main() diff --git a/tests/test_graspability_benchmark.py b/tests/test_graspability_benchmark.py new file mode 100644 index 0000000..9b2dd84 --- /dev/null +++ b/tests/test_graspability_benchmark.py @@ -0,0 +1,106 @@ +"""The diagnostic export retains attempts and never substitutes controller claims.""" +from copy import deepcopy +import json +import os +from pathlib import Path +import tempfile +import unittest +from unittest.mock import patch + +from dvidia_training import graspability_benchmark as bench + + +def plan(): + return {'attempts':[dict(id='fixture-'+tool,task='in-reach-graspability',policy='shared-v03', + case=dict(id='fixture',object_shape='easy-block',mass=.03,friction=.6, + object_x=.40,object_y=-.10,tool_condition=tool)) for tool in ('mounted','absent')]} + + +def rows(): + return [dict(a,valid=True,success=False,metrics={},wall_seconds=.1, + robot_actuator_sha256='a'*64,independent_score={'compiled_model_sha256':str(i)*64}) + for i,a in enumerate(plan()['attempts'])] + + +class GraspabilityBenchmarkTests(unittest.TestCase): + def test_pairing_requires_same_drives_but_allows_declared_morphology_change(self): + data=rows();data[1]['success']=True + pair=bench.paired_comparisons(data)[0] + self.assertTrue(pair['valid_pair']);self.assertTrue(pair['absent_gain']) + data[1]['robot_actuator_sha256']='b'*64 + self.assertFalse(bench.paired_comparisons(data)[0]['valid_pair']) + self.assertFalse(bench.paired_comparisons(data)[0]['absent_gain']) + data[1]['robot_actuator_sha256']='a'*64;data[1]['valid']=False + self.assertFalse(bench.paired_comparisons(data)[0]['absent_gain']) + with self.assertRaises(ValueError):bench.paired_comparisons(data[:1]) + data[1]['case']['mass']=.30 + with self.assertRaises(ValueError):bench.paired_comparisons(data) + + def test_independent_failure_overrides_claim_without_erasing_native_evidence(self): + from dvidia_training import graspability,graspability_protocol + result=dict(valid=True,success=True,metrics={'outcome':'completed','simulation_seconds':.002},events=[], + model=None,frames=[],native_trace=[[.002,1]],native_trace_columns=['t','value']) + with tempfile.TemporaryDirectory() as directory: + output=Path(directory)/'fresh' + with patch.object(bench,'protocol',return_value=plan()), \ + patch.object(bench,'implementation_hashes',return_value={}), \ + patch.object(bench,'runtime_files',return_value={'index.html':b'fixture'}), \ + patch.object(bench.asset_preview,'_licenses',return_value=({},{})), \ + patch.object(graspability,'run_case',return_value=result), \ + patch.object(bench,'robot_actuator_fingerprint',return_value='a'*64), \ + patch.object(bench.sim,'model_digest',return_value='b'*64), \ + patch.object(bench.evidence,'export_trial',return_value={}), \ + patch.object(graspability_protocol,'audit_result',return_value={'task_success':False,'controller_claim_agrees':False}): + report=bench.benchmark('assets',output) + self.assertEqual(len(report['attempts']),2) + self.assertTrue(all(r['valid'] and not r['success'] for r in report['attempts'])) + self.assertTrue(all(r['scored_outcome']=='retention_rejected' for r in report['attempts'])) + self.assertTrue(all('native_trace' not in r for r in report['attempts'])) + receipt=json.loads((output/'trials/fixture-mounted.json').read_text()) + self.assertEqual(receipt['native_trace'],result['native_trace']) + self.assertTrue(receipt['controller_reported_success']) + self.assertTrue((output/'integrity.json').exists()) + + def test_corrupt_audit_retains_invalid_attempt_and_continues_without_private_path(self): + from dvidia_training import graspability,graspability_protocol + result=dict(valid=True,success=False,metrics={'outcome':'lift_not_retained'},events=[], + model=None,frames=[],native_trace=[[.002,1]],native_trace_columns=['t','value']) + with tempfile.TemporaryDirectory() as directory: + output=Path(directory)/'fresh' + with patch.object(bench,'protocol',return_value=plan()), \ + patch.object(bench,'implementation_hashes',return_value={}), \ + patch.object(bench,'runtime_files',return_value={'index.html':b'fixture'}), \ + patch.object(bench.asset_preview,'_licenses',return_value=({},{})), \ + patch.object(graspability,'run_case',return_value=result), \ + patch.object(bench,'robot_actuator_fingerprint',return_value='a'*64), \ + patch.object(graspability_protocol,'audit_result',side_effect=ValueError('/Users/private/path')): + report=bench.benchmark('assets',output) + self.assertTrue(all(not r['valid'] and not r['success'] for r in report['attempts'])) + self.assertNotIn('/Users/',(output/'benchmark.json').read_text()) + receipt=json.loads((output/'trials/fixture-absent.json').read_text()) + self.assertEqual(receipt['native_trace'],result['native_trace']) + self.assertEqual(receipt['metrics']['outcome'],'lift_not_retained') + + def test_existing_output_invalid_source_and_unsafe_trial_ids_rejected(self): + with tempfile.TemporaryDirectory() as directory: + with self.assertRaises(ValueError):bench.benchmark('assets',directory) + with self.assertRaises(ValueError):bench.benchmark('assets',Path(directory)/'new',source_commit='HEAD') + bad=deepcopy(plan());bad['attempts'][0]['id']='../escape' + with patch.object(bench,'protocol',return_value=bad),self.assertRaises(ValueError): + bench.benchmark('assets',Path(directory)/'new') + + +@unittest.skipUnless(os.environ.get('DVIDIA_ROBOT_PROFILE_ASSETS'),'Set pinned robot assets') +class FingerprintTests(unittest.TestCase): + def test_drive_change_is_detected_while_shape_load_tool_changes_are_permitted(self): + from dvidia_training import graspability + assets=Path(os.environ['DVIDIA_ROBOT_PROFILE_ASSETS']);base=graspability.cases()[0] + a=graspability.build_model(assets,base,'mounted') + b=graspability.build_model(assets,dict(base,object_shape='current-shoe',mass=.30),'absent') + self.assertEqual(bench.robot_actuator_fingerprint(a),bench.robot_actuator_fingerprint(b)) + self.assertNotEqual(bench.sim.model_digest(a),bench.sim.model_digest(b)) + b.actuator_gainprm[6,0]*=2 + self.assertNotEqual(bench.robot_actuator_fingerprint(a),bench.robot_actuator_fingerprint(b)) + + +if __name__=='__main__':unittest.main() diff --git a/tests/test_graspability_protocol.py b/tests/test_graspability_protocol.py new file mode 100644 index 0000000..c0d3e14 --- /dev/null +++ b/tests/test_graspability_protocol.py @@ -0,0 +1,187 @@ +"""Independent object-agnostic retention and initialization evidence tests.""" +from copy import deepcopy +from hashlib import sha256 +from pathlib import Path +from tempfile import TemporaryDirectory +import unittest +from unittest.mock import patch + +from dvidia_training import graspability_protocol as grasp + + +def fixture(ticks=600, origin=.02): + columns = list(grasp._REQUIRED) + ['object_lowest_z_m'] + rows = [] + for i in range(1, ticks + 1): + settled = i <= 200 + z = origin if settled else origin + .06 + rows.append([round(i * .002, 6), 0., 0. if settled else 1., + 0. if settled else .6, 0. if settled else .4, + .4, -.1, z, 2.9 if settled else 0., z - origin]) + return {'valid': True, 'success': True, + 'case': {'id': 'synthetic-audit', 'object_shape': 'easy-block'}, + 'metrics': {'simulation_seconds': ticks * .002, 'native_steps': ticks}, + 'events': [{'type': 'settled_reference', 't': .4}], + 'native_trace_columns': columns, 'native_trace': rows} + + +def index(result, key): + return result['native_trace_columns'].index(key) + + +class GraspabilityScoreTests(unittest.TestCase): + def test_seal_expands_complete_matched_factorials_without_simulating(self): + self.assertEqual(sha256(grasp.FIXTURE.read_bytes()).hexdigest(), grasp.FIXTURE_SHA256) + development = grasp.protocol('development') + fresh = grasp.protocol('heldout') + self.assertEqual(len(development['attempts']), 12) + self.assertEqual(len(fresh['attempts']), 24) + self.assertFalse({row['case']['id'] for row in development['attempts']} + & {row['case']['id'] for row in fresh['attempts']}) + for plan in (development, fresh): + ids = [row['id'] for row in plan['attempts']] + self.assertEqual(len(ids), len(set(ids))) + for identifier in {row['case']['id'] for row in plan['attempts']}: + cases = [row['case'] for row in plan['attempts'] if row['case']['id'] == identifier] + self.assertEqual(len(cases), 6) + self.assertEqual({(case['object_shape'], case['tool_condition']) for case in cases}, + {(shape, tool) for shape in grasp.SHAPES for tool in grasp.TOOL_CONDITIONS}) + for name in ('mass', 'friction', 'object_x', 'object_y', 'replicate_id', 'load_band'): + self.assertEqual(len({case[name] for case in cases}), 1) + for replicate in {row['case']['replicate_id'] for row in plan['attempts']}: + cases = [row['case'] for row in plan['attempts'] if row['case']['replicate_id'] == replicate] + self.assertEqual({case['mass'] for case in cases}, {.03, .30}) + for name in ('friction', 'object_x', 'object_y'): + self.assertEqual(len({case[name] for case in cases}), 1) + fresh['criteria']['relative_origin_lift_min_m'] = 0. + self.assertEqual(grasp.protocol('heldout')['criteria']['relative_origin_lift_min_m'], .035) + with self.assertRaises(ValueError): + grasp.protocol('test') + + def test_changed_fixture_is_rejected(self): + with TemporaryDirectory() as directory: + path = Path(directory) / 'changed.json' + path.write_bytes(grasp.FIXTURE.read_bytes() + b' ') + with patch.object(grasp, 'FIXTURE', path), self.assertRaises(ValueError): + grasp.protocol() + + def test_full_retained_lift_uses_native_reference_and_final_500ms(self): + result = fixture() + result['events'][0]['object_z_m'] = -100. + score = grasp.audit_result(result) + self.assertTrue(score['task_success']) + self.assertTrue(score['controller_claim_agrees']) + self.assertEqual(score['reference']['object_z_m'], .02) + self.assertEqual(score['reference']['window_ticks'], 50) + self.assertEqual(score['final_window_ticks'], 250) + self.assertEqual(score['strict_passing_ticks'], 250) + self.assertAlmostEqual(score['final_window_start_exclusive_s'], .7) + self.assertAlmostEqual(score['minimum_final_relative_lift_m'], .06) + self.assertAlmostEqual(score['minimum_final_collision_surface_z_m'], .06) + + def test_body_origin_offset_is_not_object_lift(self): + low, high = fixture(origin=.02), fixture(origin=.22) + self.assertTrue(grasp.score_result(low)['task_success']) + self.assertTrue(grasp.score_result(high)['task_success']) + for row in high['native_trace'][200:]: + row[index(high, 'object_z_m')] = .22 + score = grasp.score_result(high) + self.assertFalse(score['task_success']) + self.assertEqual(score['relative_lift_failed_ticks'], 250) + self.assertEqual(score['terminal_relative_lift_m'], 0.) + + def test_one_bad_final_native_tick_fails_even_with_success_claim(self): + for key, value in [('left_finger_force_n', .01), ('right_finger_force_n', .01), + ('world_object_force_n', .01), ('tool_object_force_n', .01), + ('object_robot_force_n', 1.01), ('object_z_m', .054)]: + result = fixture() + row = result['native_trace'][-127] + row[index(result, key)] = value + if key == 'tool_object_force_n': + row[index(result, 'object_robot_force_n')] += value + score = grasp.audit_result(result) + with self.subTest(key=key): + self.assertFalse(score['task_success']) + self.assertFalse(score['controller_claim_agrees']) + self.assertTrue(score['valid']) + + def test_35mm_is_an_inclusive_relative_threshold(self): + result = fixture(origin=0.) + for row in result['native_trace'][200:]: + row[index(result, 'object_z_m')] = .035 + self.assertTrue(grasp.score_result(result)['task_success']) + + def test_reference_requires_unassisted_stable_world_support(self): + for change in ('world', 'robot', 'drift', 'too_early', 'later', 'missing'): + result = fixture() + if change == 'world': + result['native_trace'][177][index(result, 'world_object_force_n')] = 0. + elif change == 'robot': + result['native_trace'][177][index(result, 'object_robot_force_n')] = .01 + elif change == 'drift': + result['native_trace'][177][index(result, 'object_x_m')] += .0011 + elif change == 'too_early': + result['events'][0]['t'] = .02 + elif change == 'later': + result['events'][0]['t'] = .38 + else: + result['events'] = [] + score = grasp.score_result(result) + with self.subTest(change=change): + self.assertTrue(score['valid']) + self.assertFalse(score['task_success']) + + def test_reference_cannot_be_reset_or_forged_off_native_clock(self): + for change in ('duplicate', 'off_clock', 'outside'): + result = fixture() + if change == 'duplicate': + result['events'].append({'type': 'settled_reference', 't': .8}) + elif change == 'off_clock': + result['events'][0]['t'] = .401 + else: + result['events'][0]['t'] = 4. + with self.subTest(change=change), self.assertRaises(ValueError): + grasp.score_result(result) + + def test_short_or_invalid_physics_attempt_never_passes(self): + short = fixture(ticks=300) + short['success'] = False + score = grasp.score_result(short) + self.assertTrue(score['valid']) + self.assertFalse(score['final_window_complete']) + self.assertFalse(score['task_success']) + self.assertIn('retention_window_incomplete', score['failed_criteria']) + aborted = fixture(ticks=20) + aborted['events'] = [] + self.assertFalse(grasp.score_result(aborted)['task_success']) + invalid = fixture() + invalid['valid'] = False + self.assertFalse(grasp.score_result(invalid)['task_success']) + + def test_dense_trace_must_be_complete_finite_and_force_consistent(self): + for change in ('drop', 'duplicate', 'truncate', 'nan', 'force', 'negative', 'steps', 'column'): + result = fixture() + if change == 'drop': result['native_trace'].pop(150) + elif change == 'duplicate': result['native_trace'][150][0] = result['native_trace'][149][0] + elif change == 'truncate': result['native_trace'].pop() + elif change == 'nan': result['native_trace'][150][2] = float('nan') + elif change == 'force': result['native_trace'][-1][2] = 0. + elif change == 'negative': result['native_trace'][150][1] = -.1 + elif change == 'steps': result['metrics']['native_steps'] -= 1 + else: result['native_trace_columns'][-1] = result['native_trace_columns'][0] + with self.subTest(change=change), self.assertRaises(ValueError): + grasp.score_result(result) + + def test_controller_flag_does_not_change_independent_score(self): + result = fixture() + result['success'] = False + score = grasp.audit_result(result) + self.assertTrue(score['task_success']) + self.assertFalse(score['controller_claim_agrees']) + changed = deepcopy(result) + changed['case']['object_shape'] = 'current-shoe' + self.assertEqual(grasp.score_result(result), grasp.score_result(changed)) + + +if __name__ == '__main__': + unittest.main() diff --git a/viewer/build-graspability.mjs b/viewer/build-graspability.mjs new file mode 100644 index 0000000..8a86d18 --- /dev/null +++ b/viewer/build-graspability.mjs @@ -0,0 +1,8 @@ +import {createRequire} from 'node:module'; +import {fileURLToPath} from 'node:url'; +import path from 'node:path'; +const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),'..'); +const require=createRequire(path.join(root,'viewer/package.json')); +const {build}=require('esbuild'); +await build({entryPoints:[path.join(root,'src/dvidia_training/graspability_lab.js')],outfile:path.join(root,'src/dvidia_training/graspability_lab.bundle.js'),bundle:true,minify:true,format:'iife',target:['es2020'],platform:'browser',alias:{'three':path.join(root,'viewer/node_modules/three/build/three.module.js'),'three/addons/controls/OrbitControls.js':path.join(root,'viewer/node_modules/three/examples/jsm/controls/OrbitControls.js')},nodePaths:[path.join(root,'viewer/node_modules')],legalComments:'none',charset:'utf8',banner:{js:'/* DVIDIA graspability experiments. MIT; bundled Three.js r180, MIT. See reference_replay.third-party.txt. */'}}); +console.log('Built graspability_lab.bundle.js using pinned local dependencies.'); diff --git a/viewer/package.json b/viewer/package.json index b0c77ff..163e5da 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -10,7 +10,8 @@ "build:assets": "node build-assets.mjs", "build:workstation": "node build-workstation.mjs", "build:prerequisites": "node build-prerequisites.mjs", - "build:grip": "node build-grip.mjs" + "build:grip": "node build-grip.mjs", + "build:graspability": "node build-graspability.mjs" }, "devDependencies": { "@mujoco/mujoco": "3.15.0",