Add ignore_theta to OrientationConstraint - #906
Merged
Nicolas Palpacuer (NickPPC) merged 2 commits intoSep 24, 2026
Merged
Conversation
An orientation constraint currently pins rotation about the component's own pointing axis along with the axis direction. Payloads that are symmetric about that axis - a cup, glass or bucket - spill when tipped, not when spun, so that part of the tolerance constrains a rotation which cannot matter, and the planner is forced to hold a wrist angle for no reason. Add an optional ignore_theta flag that scores deviation between orientation vectors alone. It defaults to false, so existing constraints keep measuring the full orientation. The RDK-side implementation is in viamrobotics/rdk#6511, which cannot reach users over gRPC until this field exists. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Nicolas Palpacuer (NickPPC)
requested review from
Dan Gottlieb (dgottlieb) and
Eliot Horowitz (erh)
September 23, 2026 20:10
Eliot Horowitz (erh)
approved these changes
Sep 24, 2026
Dan Gottlieb (dgottlieb)
approved these changes
Sep 24, 2026
Nicolas Palpacuer (NickPPC)
deleted the
orientation-constraint-ignore-theta
branch
September 24, 2026 14:12
Nicolas Palpacuer (NickPPC)
added a commit
to viamrobotics/rdk
that referenced
this pull request
Sep 24, 2026
viamrobotics/api#906 added ignore_theta to motionpb.OrientationConstraint and shipped it in v0.1.585, so the flag can now cross gRPC. Bump the dependency and map it in both directions, which makes the feature reachable from the motion service rather than only from in-process callers and the JSON plan-request path. Drop the two notes saying the round trip loses the flag; they are no longer true. The existing constructor test only ever round-trips the zero value, which would pass even if the conversion dropped the field, so add one covering both states plus a message from a peer that predates the field - an unset value must read as the theta-aware default. Verified it fails when either direction of the mapping is removed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Summary
Add an optional
ignore_thetatoOrientationConstraint, scoring orientation deviation between orientation vectors alone. Payloads symmetric about their pointing axis — a cup, glass or bucket — spill when tipped, not when spun. Constraining that rotation makes the planner hold a wrist angle that cannot matter.Testing
buf lint,buf build, andbuf breaking --against origin/mainall clean.protois committed — generated interfaces come from CI per the README, so this needs theready-for-protoslabel before it can mergeClaude Code prompts used
🤖 Generated with Claude Code