Skip to content

RSDK-14871: Add SetPercentOpen, GetPercentOpen and GetProperties to the gripper API - #943

Merged
Clint Purser (clintpurser) merged 7 commits into
viamrobotics:mainfrom
clintpurser:RSDK-14871-gripper-percent-open
Nov 25, 2026
Merged

Clint Purser (clintpurser) merged 7 commits into
viamrobotics:mainfrom
clintpurser:RSDK-14871-gripper-percent-open

Conversation

@clintpurser

@clintpurser Clint Purser (clintpurser) commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Jira: RSDK-14871. Scope: APP-18508, part of APP-18507.

Adds three RPCs to GripperService, after GoToInputs. Additive only: no changes to existing RPCs or messages.

  • SetPercentOpen (PUT /viam/api/v1/component/gripper/{name}/percent_open, safety_heartbeat_monitored): moves to a normalized opening, 0.0 = closed (where Grab goes) .. 1.0 = open (where Open goes). The module maps linearly and owns any inversion of its hardware scale. Blocking, like Open/Grab; Stop cancels it. NaN or out-of-range is InvalidArgument.
  • GetPercentOpen (GET …/percent_open): measured opening on the same scale.
  • GetProperties (GET …/properties): percent_open_supported. Unimplemented is treated as false, so modules built against older SDKs keep working.

Notes:

  • percent_open is a plain double, not optional, so a missing value arrives as 0.0 (fully closed). The proto comment does not claim otherwise.
  • Single double, not repeated: multi-DOF hands are a non-goal, and repeated can be added later without a break.

Follows the pattern of #707 (IsHoldingSomething) and #844 (GetCurrentInputs/GoToInputs).

The rdk side (RSDK-14872) is built and tested against this locally: interface, server/client, a server-side Open/Grab fallback for grippers that don't support percent open (< 0.5 grabs, >= 0.5 opens), fake gripper, and a GetPercentOpen data collector. That PR follows once this is tagged.

buf lint and buf breaking against main pass locally.

@viambot viambot added the safe to test committer is a member of this org label Nov 11, 2026
@clintpurser Clint Purser (clintpurser) removed the ready-for-protos add this when you want protos to compile on every commit label Nov 13, 2026
@viam-overwatch

Copy link
Copy Markdown

Hey Clint Purser (@clintpurser) — this PR has been approved and CI has been green for 3+ business days. Ready to merge?

Auto-comment from overwatch. Will not re-nudge for 7 days.

@viam-overwatch

Copy link
Copy Markdown

Hey Clint Purser (@clintpurser) — this PR has been approved and CI has been green for 8+ business days. Ready to merge?

Auto-comment from overwatch. Will not re-nudge for 7 days.

@clintpurser Clint Purser (clintpurser) added the ready-for-protos add this when you want protos to compile on every commit label Nov 25, 2026
@clintpurser Clint Purser (clintpurser) removed the ready-for-protos add this when you want protos to compile on every commit label Nov 25, 2026
@clintpurser
Clint Purser (clintpurser) merged commit af439c0 into viamrobotics:main Nov 25, 2026
10 of 11 checks passed
@clintpurser
Clint Purser (clintpurser) deleted the RSDK-14871-gripper-percent-open branch November 25, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

protos-compiled safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants