Repository navigation
fix(storage wrapper): recorder obs action pairing - #354
Merged
Merged
Conversation
juelg
commented
Nov 28, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.