Skip to content

[prototype] StreamServo: Cartesian servo stream on MotionService (do not merge) - #954

Draft
Nick Hehr (HipsterBrown) wants to merge 1 commit into
mainfrom
stream-servo-prototype
Draft

Nick Hehr (HipsterBrown) wants to merge 1 commit into
mainfrom
stream-servo-prototype

Conversation

@HipsterBrown

@HipsterBrown Nick Hehr (HipsterBrown) commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Prototype, do not merge. This is a reference for the Cartesian servoing scope review (APP-18704), not a proposal to merge as-is. Field names are a starting point.

What this adds

One bidirectional RPC on MotionService, StreamServo, beside TempStreamArmJointPositions. The stream is the session:

  • First request: Init. Opens a session on one arm with a mode (pose or velocity), limits that may only tighten what the arm reports, and a dead-man timeout.
  • Later requests: Update. Each is one command, and the latest wins:
    • a pose target (PoseInFrame), optionally with the target's own velocity as feed-forward;
    • or a velocity (Twist).
  • Responses:
    • Started comes first, with the effective limits.
    • A Status acknowledges every update in order. It carries the state, the tracking error, whether the update was rejected and why, and limited_by (joint position, joint speed, TCP speed, singularity).
    • Unprompted Status messages report state changes.
    • A final Status carries the terminal state.

Enums: ServoMode, ServoState, ServoLimit.

Companion

The RDK implementation that uses this proto: viamrobotics/rdk#6853 (it pins go.viam.com/api to this branch's commit).

Generated code

Only the motion service's generated Go files changed (buf generate with the pinned tools, from tag v0.1.603). The branch is based on v0.1.603 to match the RDK version it was built against.

🤖 Generated with Claude Code

https://claude.ai/code/session_012FAJrCbp5iNrpYMwiGMGmg

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012FAJrCbp5iNrpYMwiGMGmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants