Skip to content

Rename object_moved_rate metric to object_peak_speed_exceeded_rate - #1717

Merged
xyao-nv merged 2 commits into
mainfrom
xyao/refactor/rename_object_moved_rate
Nov 20, 2026
Merged

xyao-nv merged 2 commits into
mainfrom
xyao/refactor/rename_object_moved_rate

Conversation

@xyao-nv

@xyao-nv xyao-nv commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Rename the object_moved_rate metric, its class ObjectMovedRateMetric, and its module metrics/object_moved.py to object_peak_speed_exceeded_rate, ObjectPeakSpeedExceededRateMetric and metrics/object_peak_speed_exceeded.py.

Why this change?

object_moved_rate counts an episode as "moved" only if the object's linear speed goes above 0.5 m/s at some step. The name suggests it measures displacement, and it doesn't. In the deformable pick-and-place workflow, all 16 episodes succeed with the cube on the plate, but the metric reports 0.75. The 4 episodes that carried the object slowly never crossed the speed threshold.
VDR reported as a bug as the object_moved_rate < success_rate.

What changes?

  • Rename the metric key, class, compute function and module. The metric's behavior is unchanged.
  • Rewrite the docstrings and the concept doc to say the metric compares peak speed against object_velocity_threshold, and that a slow movement is not counted.

Breaking change: anything that reads object_moved_rate from result files or logs must use the new key. Sequential tasks derive their _subtask_N keys from the base name, so those change too.

Usage example

Before:

from isaaclab_arena.metrics.object_moved import ObjectMovedRateMetric

def get_metrics(self):
    return [SuccessRateMetric(), ObjectMovedRateMetric(self.pick_up_object)]

metrics = env.unwrapped.compute_metrics()
rate = metrics.metric_data_entries["object_moved_rate"].metric_value

After:

from isaaclab_arena.metrics.object_peak_speed_exceeded import ObjectPeakSpeedExceededRateMetric

def get_metrics(self):
    return [SuccessRateMetric(), ObjectPeakSpeedExceededRateMetric(self.pick_up_object)]

metrics = env.unwrapped.compute_metrics()
rate = metrics.metric_data_entries["object_peak_speed_exceeded_rate"].metric_value

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
@xyao-nv
xyao-nv marked this pull request as ready for review November 19, 2026 21:55
@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Renames object_moved_rate to object_peak_speed_exceeded_rate without changing how it is computed.

  • Object task reports now name the peak-speed check clearly.

Reviews (2) · Last reviewed commit: "Use metric keys in the sequential evalua..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR renames object_moved_rate, ObjectMovedRateMetric and metrics/object_moved.py to the peak-speed names. It also rewrites the docstrings and the concept page to say the metric checks peak speed, not displacement. The code change is a mechanical rename with unchanged behavior. The main question is whether a breaking key rename is worth it while #1456 is removing this metric.

Design, Boundaries & Scope

  • Overlap with Replace the HDF5 metrics with per-episode values in the episode results #1456. That open PR deletes isaaclab_arena/metrics/, including this module, concept_metrics_design.rst and test_success_rate_metric.py. Its description lists object_moved_rate as no longer printed. If both PRs land, anyone parsing results updates the key here and then loses it there. The two PRs will also conflict on the renamed module and docs. Details are in the inline comment.
  • Rename or fix? The bug report says slow, successful carries are not counted as "moved". The rename makes that the expected result instead of fixing it. If this metric is going to stay, would a displacement check answer the report better? ArenaWorld.get_position_w() works for both rigid and deformable objects. The recorder could log position each step and count an episode once the object is more than a threshold from its first recorded position. compute_revolute_joint_moved_rate already works this way, comparing against reset_joint_percentage. That would keep the object_moved_rate name accurate. The result change would need a note in the release notes.

Findings

🟡 Warning: isaaclab_arena/metrics/object_peak_speed_exceeded.py:73. This breaking key rename overlaps with #1456, which removes the metric. Could we keep the old key and land only the docstring and concept-page changes?
🔵 Improvement: docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst:122. The prose at lines 109, 164 and 208 still says "object moved rate for the first subtask".

Test Coverage and CI Cost

When this review ran, pre-commit had passed and the image build was still in progress. No test or docs-build job had finished on this head, so the renamed assertions in test_success_rate_metric.py and the docs build have not been checked against this change.

Verdict

Minor fixes needed

Name object_peak_speed_exceeded_rate and revolute_joint_moved_rate by their
keys so a search for the metric name finds the text. Fix the column spacing
of the renamed row in the METRICS SUMMARY sample.

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
@xyao-nv
xyao-nv merged commit ee6a9b0 into main Nov 20, 2026
10 checks passed
xyao-nv added a commit that referenced this pull request Nov 20, 2026
Add `ObjectDisplacedRateMetric,` which counts an episode as displaced if
the object ends up more than 2 cm from where it started, and use it in
`PickAndPlaceTask` instead of the peak-speed metric.

## Why this change?

The previous [PR](#1717)
renamed the speed metric to `object_peak_speed_exceeded_rate,` so its
name now says what it measures. This PR adds the measure that
pick-and-place needs.

## What changes?

- Add `ObjectDisplacedRateMetric` (key `object_displaced_rate).` It
records the object's world-frame position each step and counts an
episode if the position is ever more than `displacement_threshold_m`
(default 0.02 m) from the first recorded position. Deformables use their
mean node position.
- `PickAndPlaceTask.get_metrics()` returns the new metric in place of
the peak-speed one. The other tasks (goal-pose, gear-insertion,
assembly, place-upright) keep the peak-speed metric.

Breaking change: pick-and-place results now report
`object_displaced_rate,` not `object_peak_speed_exceeded_rate.`

## Usage example

Before:
```

return [SuccessRateMetric(), ObjectPeakSpeedExceededRateMetric(self.pick_up_object)]
metrics.metric_data_entries["object_peak_speed_exceeded_rate"]

```
After:

```
return [SuccessRateMetric(), ObjectDisplacedRateMetric(self.pick_up_object)]
metrics.metric_data_entries["object_displaced_rate"]

```
A slow carry now counts as displaced.

## Validation

- Run tests

Signed-off-by: Xinjie Yao <xyao@nvidia.com>
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