Repository navigation
RSDK-14871: Add SetPercentOpen, GetPercentOpen and GetProperties to the gripper API - #943
Merged
Clint Purser (clintpurser) merged 7 commits intoNov 25, 2026
Conversation
Dan Gottlieb (dgottlieb)
approved these changes
Nov 12, 2026
Clint Purser (clintpurser)
force-pushed
the
RSDK-14871-gripper-percent-open
branch
from
November 13, 2026 21:36
e567cb7 to
9986081
Compare
|
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. |
|
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. |
Clint Purser (clintpurser)
merged commit Nov 25, 2026
af439c0
into
viamrobotics:main
10 of 11 checks passed
Clint Purser (clintpurser)
deleted the
RSDK-14871-gripper-percent-open
branch
November 25, 2026 18:27
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.
Jira: RSDK-14871. Scope: APP-18508, part of APP-18507.
Adds three RPCs to
GripperService, afterGoToInputs. 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 (whereGrabgoes) ..1.0= open (whereOpengoes). The module maps linearly and owns any inversion of its hardware scale. Blocking, likeOpen/Grab;Stopcancels it. NaN or out-of-range isInvalidArgument.GetPercentOpen(GET …/percent_open): measured opening on the same scale.GetProperties(GET …/properties):percent_open_supported.Unimplementedis treated asfalse, so modules built against older SDKs keep working.Notes:
percent_openis a plaindouble, notoptional, so a missing value arrives as0.0(fully closed). The proto comment does not claim otherwise.double, notrepeated: multi-DOF hands are a non-goal, andrepeatedcan 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/Grabfallback for grippers that don't support percent open (< 0.5grabs,>= 0.5opens), fake gripper, and aGetPercentOpendata collector. That PR follows once this is tagged.buf lintandbuf breakingagainstmainpass locally.