Skip to content

Follow-up to #1456: address the remaining #1739 review comments - #1769

Merged
cvolkcvolk merged 1 commit into
mainfrom
cvolk/refactor/maximum-in-episode-term-names
Nov 27, 2026
Merged

cvolkcvolk merged 1 commit into
mainfrom
cvolk/refactor/maximum-in-episode-term-names

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #1456: address Alex's review comments on #1739, which were not addressed before #1456 merged.

Rename ObjectDisplacement to ObjectMaximumDisplacement and RevoluteJointMovement to RevoluteJointMaximumMovement, together with the episode result fields they write.

Why this change?

#1739 was merged into #1456 before these comments were addressed:

  • ObjectDisplacement reads like the object's displacement over time, while the term records the largest displacement in the episode. The same holds for RevoluteJointMovement. Recording the value at every step instead does not fit the episode results, which hold one line per episode; per-step data belongs in the trajectory HDF5 files.

The terms are not in a release yet, so renaming them now breaks no released code.

What changes?

  • The two term classes and the fields PickAndPlaceTask and RotateRevoluteJointTask record are renamed to object_maximum_displacement and revolute_joint_maximum_movement. object_peak_speed keeps its name, since "peak" already says it is a maximum.
  • ObjectMaximumDisplacement keeps measuring from the object's position after the episode's first step. Alex also asked whether it could measure from the resting position instead; the reply on Let tasks record per-episode values, and port the pick-and-place and door metrics #1739 explains why it does not.

Breaking changes on main:

  • The episode result fields object_displacement and revolute_joint_movement are now object_maximum_displacement and revolute_joint_maximum_movement.

@greptile-apps

greptile-apps Bot commented Nov 26, 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 the displacement and joint movement terms and their result fields to say they record a maximum.

  • Pick-and-place episodes measure maximum displacement from the object's first resting position.
  • Rotate-joint episodes name the largest openness change as maximum movement.

cvolkcvolk explicitly identifies the renamed fields and omitted values as intentional changes to unreleased behavior.

Reviews (1) · Last reviewed commit: "Measure the object's maximum displacemen..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR renames ObjectDisplacement and RevoluteJointMovement, along with their episode result fields, so the names say "maximum". It also makes ObjectMaximumDisplacement measure from the object's first resting position, using the same speed check as objects_settled, instead of from its position after the first step. The new behavior is correct, and the updated unit test fails if motion before rest were counted. I only have two small comment fixes.

Findings

🔵 Improvement: isaaclab_arena/terms/episode_recorders.py:55 — The term checks for rest itself instead of reading get_object_initial_rest_state(). The reason is that a sequential composite task only runs a later subtask's objects_settled after the earlier subtasks finish (the active_envs gating in ProgressTracker.step()), but that reason appears only in the PR description. Add a note here and link it to the TODO in PickAndPlaceTask.get_termination_cfg(), so this second rest tracker can be removed once rest poses are recorded independently of task success.

🔵 Improvement: isaaclab_arena/tests/test_episode_recorder.py:244 — The comment says a term whose post_step() never ran "would record 0". After this change, such a term returns None and the field is missing from the record, which the key-set check catches.

Test Coverage and CI Cost

On the reviewed head commit, only pre-commit (and Greptile) have finished. The image build is still queued, so the simulation tests have not run yet. _expected_record_keys() now expects env 1's records to leave out object_maximum_displacement, because env 1's episodes end before its box comes to rest. That depends on the physics of this scene, and CI has not confirmed it yet.

Verdict

Ship it

@cvolkcvolk cvolkcvolk changed the title Say maximum in the displacement and joint movement terms, and measure displacement from rest Follow-up to #1456: address the remaining #1739 review comments Nov 26, 2026
ObjectDisplacement read like the object's displacement over time, but
the term records the largest displacement in the episode; the same holds
for RevoluteJointMovement. Rename them to ObjectMaximumDisplacement and
RevoluteJointMaximumMovement, and their episode result fields to
object_maximum_displacement and revolute_joint_maximum_movement.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
@cvolkcvolk
cvolkcvolk force-pushed the cvolk/refactor/maximum-in-episode-term-names branch from ea299dc to b8b841b Compare November 26, 2026 12:45

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cvolkcvolk
cvolkcvolk merged commit 7760edc into main Nov 27, 2026
10 checks passed
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