Skip to content

Read arm kinematics from the typed kinematic model - #1204

Merged
Micheal Parks (micheal-parks) merged 2 commits into
mainfrom
read-arm-kinematics
Nov 25, 2026
Merged

Micheal Parks (micheal-parks) merged 2 commits into
mainfrom
read-arm-kinematics

Conversation

@micheal-parks

Copy link
Copy Markdown
Member

Reads each frame system part's kinematics from RDK's typed FrameSystemConfig.model instead of the deprecated kinematics struct, so arms with DH kinematics draw everywhere the visualizer shows a machine.

RDK expands DH parameters and converts URDF into links and joints before sending model. The deprecated struct carries a DH arm as raw dhParams, which every reader here skipped, so those arms had no link geometry, move previews, saved-pose ghosts, plan replay, or export joints.

  • Add kinematicModelToJson, a port of RDK's modelConfigFromProto that writes the typed model as the ModelConfigJSON every downstream reader already parses.
  • Add partKinematicsJson, which prefers model and falls back to the deprecated struct for servers that predate it.
  • Route kinematicsByComponent and frameSystemToPlanFrames through it.
  • Extend the raw kinematics types with the fields RDK writes: link geometries, and joint geometry, mimic, and max_acceleration.
  • Add specs for the conversion, and for a DH arm drawing from the expanded model.

Not covered: XR's joint limits still come from getKinematics' legacy file encoding, so a DH arm's limits stay missing there until that reader moves to model.

@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2f27c8e

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

This PR includes changesets to release 1 package
Name Type
@viamrobotics/visualization Minor

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

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

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

Built to branch gh-pages at 2026-11-25 15:48 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@micheal-parks
Micheal Parks (micheal-parks) merged commit e2fb787 into main Nov 25, 2026
8 checks passed
@micheal-parks
Micheal Parks (micheal-parks) deleted the read-arm-kinematics branch November 25, 2026 15:55
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