hal: convert animation recordings to recalibrated hal_follower ranges - #244
Merged
Conversation
Remap all 32 recording CSVs from the pre-recalibration hal.json ranges to the current hal_follower ranges, preserving the original physical motion. Each normalized value is rescaled so it resolves to the same servo tick under the new ranges (verified within 1 encoder tick per joint).
leo-super-dev
approved these changes
Aug 21, 2026
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.
What
Remaps all 32 animation recording CSVs in
hal/recordings/from the pre-recalibrationhal.jsonranges to the currenthal_followerranges.Why
The recordings store normalized (-100..100) joint values that the runtime un-normalizes against the loaded
hal.jsonranges to get servo ticks. After the range recalibration, the same normalized value maps to a different physical tick, so the recordings need remapping to keep the intended motion.How
Per joint, per value:
n_new = normalize(unnormalize(n_old, old_ranges), new_ranges)— using the exact lerobot RANGE_M100_100 math, so each frame resolves to the same physical servo tick under the new ranges.Verification
Note for reviewers
This replaces the current recordings on
main. It is a mechanical remap that preserves the pre-recalibration motion; please compare against the existing set to confirm which is intended before merging.