fix(dashboard): compare gripper action and PE state in mm - #2
Open
Peter-cuhk wants to merge 1 commit into
Open
Conversation
WM action grippers are normalised [0, 1] while Pose Expert state uses OmniPicker aperture in mm. The dashboard was subtracting raw values, producing misleading deltas (e.g. +118 for a ~1 mm right-gripper error). Also fall back to imageio-ffmpeg when ffmpeg is not on PATH so rollout videos use H.264 instead of OpenCV mp4v when possible.
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.
Summary
[0, 1]) directly against Pose Expert state grippers (OmniPicker aperture in mm), which produced misleading deltas (e.g.+118for a ~1 mm right-gripper error during replay).35 + norm * 85mapping used inconditioning/band.pybefore rendering the comparison table.wm_action_gripper_to_mm()helpers ingesim.typesand unit tests.imageio-ffmpegwhenffmpegis not onPATH, sosave_video()prefers H.264 instead of OpenCVmp4vwhen possible.Test plan
pytest tests/test_gripper_units.py tests/test_env_server_smoke.pyruff checkon touched filesdemo_000and confirm dashboard gripper Δ is ~mm-scale (R grip ~1 mm, not ~118)