Repository navigation
common: add Cylinder to the Geometry oneof - #949
Merged
Merged
Conversation
Gabriel Gottlob (gabegottlob)
force-pushed
the
ggottlob/cylinder-geometry
branch
2 times, most recently
from
November 17, 2026 19:49
02d83e4 to
b549a21
Compare
Gabriel Gottlob (gabegottlob)
marked this pull request as ready for review
November 17, 2026 21:57
Gabriel Gottlob (gabegottlob)
requested a review
from Nicolas Palpacuer (NickPPC)
November 17, 2026 21:57
| double length_mm = 2; | ||
| // When true, the flat end caps are omitted: an open tube with no interior volume. Phrased | ||
| // negatively so the default (false) is a solid cylinder, matching URDF and SDF cylinders. | ||
| bool uncapped = 3; |
There was a problem hiding this comment.
is uncapped already in use in the code?
Member
Author
There was a problem hiding this comment.
Technically does exist in the RDK but not really usable as of now. Going to leave them out of the proto for now until we are sure we want them. Also now that we are only dealing with solid/capped cylinders, let me know if you want me to change the mesh representation so that it encloses the underlying cylinder (more conservative representation).
Adds a Cylinder message (radius_mm, length_mm, uncapped) as field 8 of the Geometry oneof so RDK's spatialmath.Cylinder can be sent over gRPC. length_mm matches Capsule; uncapped defaults to a solid cylinder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open (uncapped) cylinders have no confirmed users over the wire, so the message stays solid-only for now. A field can be added later as `bool uncapped` so an unset value still decodes as solid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gabriel Gottlob (gabegottlob)
force-pushed
the
ggottlob/cylinder-geometry
branch
from
November 23, 2026 19:30
81711b6 to
9bedacd
Compare
Gabriel Gottlob (gabegottlob)
requested a review
from Nicolas Palpacuer (NickPPC)
November 23, 2026 19:43
Nicolas Palpacuer (NickPPC)
approved these changes
Nov 23, 2026
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 a
Cylindermessage to theGeometryoneof so RDK cylinders can be sent over gRPC. RDK'sCylinder.ToProtobufpanics today because there is no message to encode into. Field names followCapsule, solength_mmis the end-to-end length along the local Z axis.Changes
false) is a solid cylinder; a positivecappedwould decode every old or unset cylinder as an open tubecylinder = 8is additive;buf breaking --against mainis cleanmise r buf-goandmise r buf-web; most of thecommon.pb.godiff is shifted message indexesTesting
buf lintandbuf breaking --against '.git#branch=main'passClaude Code prompts used
🤖 Generated with Claude Code