Skip to content

fix(storage wrapper): recorder obs action pairing - #354

Merged
juelg merged 5 commits into
masterfrom
fix/recorder-obs-action-pairing
Nov 28, 2026
Merged

juelg merged 5 commits into
masterfrom
fix/recorder-obs-action-pairing

Conversation

@juelg

@juelg juelg commented Nov 28, 2026

Copy link
Copy Markdown
Contributor
  • storage wrapper fix: record correct obs/action pairing
  • storage wrapper feat: rcs version recorded in dataset
  • converter fix: obs/action pairing; rcs version aware dataset converting

Each row now holds obs (the observation before the step, the reset
observation for the first row), action (the action passed to step) and
env_obs (the observation returned by the step, without camera frames).
Before, obs was the observation after the step, paired with env_action
(the same step) and action (the previous step), so neither column gave
the (observation, action) pair a policy is trained on.

The replayer reads env_action for recordings in the old layout.
…plied from

Recordings with obs/action/env_obs rows are converted as they are.
For recordings in the old layout (obs after the step, env_action),
each row's action is paired with the previous row's observation and
images, and the IK is seeded with that observation, which is the
command the robot executed. The first row of such an episode has no
observation before its action and is dropped.
Before, a step was dropped when its action equalled the previous one,
which also removed steps in which the robot was still moving towards an
unchanged target, e.g. while the gripper closed or the arm settled.
Now a step is dropped only if the observed joints and gripper do not
change during it.
Recordings with an rcs_version column use the obs/action/env_obs layout;
the replayer uses it to tell them apart from older recordings.
…column

Datasets with an rcs_version column are taken as recorded with the
fixed obs/action pairing; datasets without it get the one-step shift.
@juelg
juelg merged commit 488742a into master Nov 28, 2026
7 checks passed
@juelg
juelg deleted the fix/recorder-obs-action-pairing branch November 28, 2026 05:39
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.

1 participant