Skip to content

Add object displacement metric - #1731

Merged
xyao-nv merged 2 commits into
mainfrom
xyao/feature/object_displacement_metric
Nov 20, 2026
Merged

xyao-nv merged 2 commits into
mainfrom
xyao/feature/object_displacement_metric

Conversation

@xyao-nv

@xyao-nv xyao-nv commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Reopen #1718 to main.

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
- Say in the compute function docstring that an episode counts once the object is
  ever past the threshold, and test a lift-and-return episode.
- Drop the shape assert that ArenaWorld.get_position_w already makes.
- Test a fast case for the peak-speed metric, which four tasks still report.
- Walk through ObjectDisplacedRateMetric in the metrics concept page.

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were established.

Summary

Adds ObjectDisplacedRateMetric and makes it the default movement metric for PickAndPlaceTask.

  • Pick-and-place reports how often an object moves beyond a distance limit.

Reviews (1) · Last reviewed commit: "Address object_displaced_rate review com..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR moves #1718 onto main. It adds ObjectDisplacedRateMetric, which counts an episode once the object is more than 2 cm from its first recorded position, and PickAndPlaceTask now reports it instead of the peak-speed metric. The code changes asked for in the #1718 review are in: the docstring now says "ever displaced", there's a lift-and-return test, the duplicate shape assert is gone, and the peak-speed metric has a fast case. Two things are left: a docstring that overstates what the first-step baseline excludes (this follows up the record-at-reset discussion on #1718), and the docs pages still open from #1718.

Findings

🔵 Improvement: isaaclab_arena/metrics/object_displaced.py:70: The class docstring says a drop onto the support after spawning doesn't count. Only motion during the first environment step is skipped:

  • At the default 15 Hz, one step allows about 2.2 cm of free fall, so the whole drop is skipped.
  • At 50 Hz, as in gr1_put_and_close_door, one step allows only about 2 mm, so most of a 1 cm On() drop still counts toward the 2 cm threshold.

Suggest rewording. The recorder docstring at line 19 also says "simulation step" where it means environment step.

🔵 Improvement: docs (no changed line): Still open from #1718. These pages show pick-and-place output with object_peak_speed_exceeded_rate:

  • docs/pages/quickstart/running_a_real_policy/gr00t.rst
  • docs/pages/quickstart/running_a_real_policy/openpi.rst
  • docs/pages/example_workflows/analysis/variations.rst
  • docs/pages/example_workflows/newton/deformable_pick_and_place.rst
  • docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst (as _subtask_0)

These runs now print object_displaced_rate, and the values change too, so the pages need fresh output or a note. Is that planned as a follow-up?

🔵 Improvement: PR description: The description only links #1718. This is the PR that lands on main, so could it carry #1718's summary and breaking-change note, following the PR template? The note matters because pick-and-place results now report object_displaced_rate instead of object_peak_speed_exceeded_rate. #1717 renamed that key earlier today, so pick-and-place users will see two key changes in a row.

Test Coverage and CI Cost

  • I couldn't confirm test results. When I reviewed, the Arena image build for this head commit was still queued and the test jobs hadn't run. Pre-commit passed.

Verdict

Minor fixes needed

@xyao-nv
xyao-nv enabled auto-merge (squash) November 20, 2026 23:10
@xyao-nv
xyao-nv merged commit 05f2c7f into main Nov 20, 2026
21 checks passed
xyao-nv added a commit that referenced this pull request Nov 21, 2026
…e and add object_displaced_rate (#1732)

Cherrypick #1717 and
#1731.

---------

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants