Skip to content

Motion plan replay: axis_angles + warn on skipped frames/orients - #893

Open
Marcus (sucrammal) wants to merge 5 commits into
mainfrom
mpr-orient-warn
Open

Motion plan replay: axis_angles + warn on skipped frames/orients#893
Marcus (sucrammal) wants to merge 5 commits into
mainfrom
mpr-orient-warn

Conversation

@sucrammal

@sucrammal Marcus (sucrammal) commented Jul 29, 2026

Copy link
Copy Markdown
Member

Issue

Unrecognized orientation encodings in the client-side frame fallback silently became identity rotations, and unregistered frame types disappeared without a console signal. quatFromJson now accepts RDK axis_angles, validates encodings once, and warns (naming the frame) when orients or frame types are skipped.

Changes

  • File header comments for easier handoff
  • Adds axis_angles to quatFromJson, collapses hasOrientJson into a single validate-then-write path, and console.warns for unrecognized orientations and unregistered frame types
  • Tests: Covers axis_angles/quaternion equivalence and asserts warnings fire for bad encodings and unknown frame_type values while existing fixtures stay silent

Testing

  1. Open localhost:5173, upload plan.json and salad-plan.json, scrub → rendering matches main and the console stays quiet
  2. Edit any capture's inner frame_type to an unregistered value (e.g. "pose"), reload → console names the frame and the rest of the plan still renders

Stack created with GitHub Stacks CLIGive Feedback 💬

@changeset-bot

changeset-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9d5b11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@viamrobotics/motion-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sucrammal Marcus (sucrammal) changed the title mpr orient warn Motion plan replay: axis_angles + warn on skipped frames/orients Jul 29, 2026
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://viamrobotics.github.io/visualization/pr-preview/pr-893/

Built to branch gh-pages at 2026-07-29 21:25 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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