Repository navigation
Rename object_moved_rate metric to object_peak_speed_exceeded_rate - #1717
Conversation
Signed-off-by: Xinjie Yao <xyao@nvidia.com>
[Medium impact] The PR appears safe to merge. SummaryRenames
Reviews (2) · Last reviewed commit: "Use metric keys in the sequential evalua..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR renames Design, Boundaries & Scope
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? Test Coverage and CI CostWhen 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 VerdictMinor 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>
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>
Rename the
object_moved_ratemetric, its classObjectMovedRateMetric,and its modulemetrics/object_moved.pytoobject_peak_speed_exceeded_rate,ObjectPeakSpeedExceededRateMetricandmetrics/object_peak_speed_exceeded.py.Why this change?
object_moved_ratecounts 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?
Breaking change: anything that reads
object_moved_ratefrom 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:
After: