Skip to content

Commit 55372f9

Browse files
github-actions[bot]viambotnjooma
authored
Automated Protos Update (#197)
Co-authored-by: viambot <[email protected]> Co-authored-by: Naveed Jooma <[email protected]>
1 parent bc0d802 commit 55372f9

File tree

25 files changed

+500
-118
lines changed

25 files changed

+500
-118
lines changed

examples/server/v1/components.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ def __init__(
566566
altitude: float,
567567
lin_vel: Vector3,
568568
ang_vel: Vector3,
569+
lin_acc: Vector3,
569570
heading: float,
570571
orientation: Orientation,
571572
properties: MovementSensor.Properties,
@@ -576,6 +577,7 @@ def __init__(
576577
self.altitude = altitude
577578
self.lin_vel = lin_vel
578579
self.ang_vel = ang_vel
580+
self.lin_acc = lin_acc
579581
self.heading = heading
580582
self.orientation = orientation
581583
self.properties = properties
@@ -590,6 +592,9 @@ async def get_linear_velocity(self, **kwargs) -> Vector3:
590592
async def get_angular_velocity(self, **kwargs) -> Vector3:
591593
return self.ang_vel
592594

595+
async def get_linear_acceleration(self, **kwargs) -> Vector3:
596+
return self.lin_acc
597+
593598
async def get_compass_heading(self, **kwargs) -> float:
594599
return self.heading
595600

examples/server/v1/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async def run(host: str, port: int, log_level: int):
5151
15,
5252
Vector3(x=1, y=2, z=3),
5353
Vector3(x=1, y=2, z=3),
54+
Vector3(x=1, y=2, z=3),
5455
182,
5556
Orientation(o_x=1, o_y=2, o_z=3, theta=5),
5657
MovementSensor.Properties(

src/viam/components/movement_sensor/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
GetAngularVelocityResponse,
1313
GetCompassHeadingRequest,
1414
GetCompassHeadingResponse,
15+
GetLinearAccelerationRequest,
16+
GetLinearAccelerationResponse,
1517
GetLinearVelocityRequest,
1618
GetLinearVelocityResponse,
1719
GetOrientationRequest,
@@ -54,6 +56,13 @@ async def get_angular_velocity(self, *, extra: Optional[Dict[str, Any]] = None,
5456
response: GetAngularVelocityResponse = await self.client.GetAngularVelocity(request, timeout=timeout)
5557
return response.angular_velocity
5658

59+
async def get_linear_acceleration(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None) -> Vector3:
60+
if extra is None:
61+
extra = {}
62+
request = GetLinearAccelerationRequest(name=self.name, extra=dict_to_struct(extra))
63+
response: GetLinearAccelerationResponse = await self.client.GetLinearAcceleration(request, timeout=timeout)
64+
return response.linear_acceleration
65+
5766
async def get_compass_heading(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None) -> float:
5867
if extra is None:
5968
extra = {}

src/viam/components/movement_sensor/movement_sensor.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ async def get_angular_velocity(self, *, extra: Optional[Dict[str, Any]] = None,
4646
"""
4747
...
4848

49+
@abc.abstractmethod
50+
async def get_linear_acceleration(
51+
self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs
52+
) -> Vector3:
53+
"""Get the current linear acceleration as a ``Vector3`` with x, y, and z axes represented in mm/sec^2
54+
55+
Returns:
56+
Vector3: The linear acceleration in mm/sec^2
57+
"""
58+
...
59+
4960
@abc.abstractmethod
5061
async def get_compass_heading(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs) -> float:
5162
"""Get the current compass heading in degrees
@@ -98,10 +109,11 @@ async def get_readings(self, *, extra: Optional[Dict[str, Any]] = None, timeout:
98109
orientation: Orientation
99110
}
100111
"""
101-
((pos, alt), lv, av, comp, orient) = await asyncio.gather(
112+
((pos, alt), lv, av, la, comp, orient) = await asyncio.gather(
102113
self.get_position(extra=extra, timeout=timeout),
103114
self.get_linear_velocity(extra=extra, timeout=timeout),
104115
self.get_angular_velocity(extra=extra, timeout=timeout),
116+
self.get_linear_acceleration(extra=extra, timeout=timeout),
105117
self.get_compass_heading(extra=extra, timeout=timeout),
106118
self.get_orientation(extra=extra, timeout=timeout),
107119
)
@@ -110,6 +122,7 @@ async def get_readings(self, *, extra: Optional[Dict[str, Any]] = None, timeout:
110122
"altitude": alt,
111123
"linear_velocity": lv,
112124
"angular_velocity": av,
125+
"linear_acceleration": la,
113126
"compass": comp,
114127
"orientation": orient,
115128
}

src/viam/components/movement_sensor/service.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
GetAngularVelocityResponse,
1111
GetCompassHeadingRequest,
1212
GetCompassHeadingResponse,
13+
GetLinearAccelerationRequest,
14+
GetLinearAccelerationResponse,
1315
GetLinearVelocityRequest,
1416
GetLinearVelocityResponse,
1517
GetOrientationRequest,
@@ -56,6 +58,19 @@ async def GetAngularVelocity(self, stream: Stream[GetAngularVelocityRequest, Get
5658
response = GetAngularVelocityResponse(angular_velocity=velocity)
5759
await stream.send_message(response)
5860

61+
async def GetLinearAcceleration(self, stream: Stream[GetLinearAccelerationRequest, GetLinearAccelerationResponse]) -> None:
62+
request = await stream.recv_message()
63+
assert request is not None
64+
name = request.name
65+
try:
66+
sensor = self.get_component(name)
67+
except ComponentNotFoundError as e:
68+
raise e.grpc_error
69+
timeout = stream.deadline.time_remaining() if stream.deadline else None
70+
acceleration = await sensor.get_linear_acceleration(extra=struct_to_dict(request.extra), timeout=timeout, metadata=stream.metadata)
71+
response = GetLinearAccelerationResponse(linear_acceleration=acceleration)
72+
await stream.send_message(response)
73+
5974
async def GetCompassHeading(self, stream: Stream[GetCompassHeadingRequest, GetCompassHeadingResponse]) -> None:
6075
request = await stream.recv_message()
6176
assert request is not None

src/viam/gen/common/v1/common_pb2.py

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from google.protobuf import symbol_database as _symbol_database
66
_sym_db = _symbol_database.Default()
77
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
8-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16common/v1/common.proto\x12\x0eviam.common.v1\x1a google/protobuf/descriptor.proto"n\n\x0cResourceName\x12\x1c\n\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n\x07subtype\x18\x03 \x01(\tR\x07subtype\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name"\xfc\x02\n\x0bBoardStatus\x12B\n\x07analogs\x18\x01 \x03(\x0b2(.viam.common.v1.BoardStatus.AnalogsEntryR\x07analogs\x12a\n\x12digital_interrupts\x18\x02 \x03(\x0b22.viam.common.v1.BoardStatus.DigitalInterruptsEntryR\x11digitalInterrupts\x1aX\n\x0cAnalogsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x122\n\x05value\x18\x02 \x01(\x0b2\x1c.viam.common.v1.AnalogStatusR\x05value:\x028\x01\x1al\n\x16DigitalInterruptsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b2&.viam.common.v1.DigitalInterruptStatusR\x05value:\x028\x01"$\n\x0cAnalogStatus\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value".\n\x16DigitalInterruptStatus\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"y\n\x04Pose\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z\x12\x0f\n\x03o_x\x18\x04 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x05 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x06 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x07 \x01(\x01R\x05theta"V\n\x0bOrientation\x12\x0f\n\x03o_x\x18\x01 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x02 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x03 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x04 \x01(\x01R\x05theta"`\n\x0bPoseInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12(\n\x04pose\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"3\n\x07Vector3\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z"%\n\x06Sphere\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm"D\n\x10RectangularPrism\x120\n\x07dims_mm\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x06dimsMm"\xc7\x01\n\x08Geometry\x12,\n\x06center\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x06center\x120\n\x06sphere\x18\x02 \x01(\x0b2\x16.viam.common.v1.SphereH\x00R\x06sphere\x124\n\x03box\x18\x03 \x01(\x0b2 .viam.common.v1.RectangularPrismH\x00R\x03box\x12\x14\n\x05label\x18\x04 \x01(\tR\x05labelB\x0f\n\rgeometry_type"v\n\x11GeometriesInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"v\n\x10PointCloudObject\x12\x1f\n\x0bpoint_cloud\x18\x01 \x01(\x0cR\npointCloud\x12A\n\ngeometries\x18\x02 \x01(\x0b2!.viam.common.v1.GeometriesInFrameR\ngeometries"D\n\x08GeoPoint\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude"\xe2\x01\n\tTransform\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12P\n\x16pose_in_observer_frame\x18\x02 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x13poseInObserverFrame\x12F\n\x0fphysical_object\x18\x03 \x01(\x0b2\x18.viam.common.v1.GeometryH\x00R\x0ephysicalObject\x88\x01\x01B\x12\n\x10_physical_object"\xda\x01\n\nWorldState\x12?\n\tobstacles\x18\x01 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\tobstacles\x12P\n\x12interaction_spaces\x18\x02 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\x11interactionSpaces\x129\n\ntransforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\ntransforms"-\n\x0eActuatorStatus\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving:a\n\x1asafety_heartbeat_monitored\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x92\x05 \x01(\x08R\x18safetyHeartbeatMonitored\x88\x01\x01B/\n\x12com.viam.common.v1Z\x19go.viam.com/api/common/v1b\x06proto3')
8+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16common/v1/common.proto\x12\x0eviam.common.v1\x1a google/protobuf/descriptor.proto"n\n\x0cResourceName\x12\x1c\n\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n\x07subtype\x18\x03 \x01(\tR\x07subtype\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name"\xfc\x02\n\x0bBoardStatus\x12B\n\x07analogs\x18\x01 \x03(\x0b2(.viam.common.v1.BoardStatus.AnalogsEntryR\x07analogs\x12a\n\x12digital_interrupts\x18\x02 \x03(\x0b22.viam.common.v1.BoardStatus.DigitalInterruptsEntryR\x11digitalInterrupts\x1aX\n\x0cAnalogsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x122\n\x05value\x18\x02 \x01(\x0b2\x1c.viam.common.v1.AnalogStatusR\x05value:\x028\x01\x1al\n\x16DigitalInterruptsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b2&.viam.common.v1.DigitalInterruptStatusR\x05value:\x028\x01"$\n\x0cAnalogStatus\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value".\n\x16DigitalInterruptStatus\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"y\n\x04Pose\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z\x12\x0f\n\x03o_x\x18\x04 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x05 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x06 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x07 \x01(\x01R\x05theta"V\n\x0bOrientation\x12\x0f\n\x03o_x\x18\x01 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x02 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x03 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x04 \x01(\x01R\x05theta"`\n\x0bPoseInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12(\n\x04pose\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"3\n\x07Vector3\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z"%\n\x06Sphere\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm"C\n\x07Capsule\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm\x12\x1b\n\tlength_mm\x18\x02 \x01(\x01R\x08lengthMm"D\n\x10RectangularPrism\x120\n\x07dims_mm\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x06dimsMm"\xfc\x01\n\x08Geometry\x12,\n\x06center\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x06center\x120\n\x06sphere\x18\x02 \x01(\x0b2\x16.viam.common.v1.SphereH\x00R\x06sphere\x124\n\x03box\x18\x03 \x01(\x0b2 .viam.common.v1.RectangularPrismH\x00R\x03box\x123\n\x07capsule\x18\x05 \x01(\x0b2\x17.viam.common.v1.CapsuleH\x00R\x07capsule\x12\x14\n\x05label\x18\x04 \x01(\tR\x05labelB\x0f\n\rgeometry_type"v\n\x11GeometriesInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"v\n\x10PointCloudObject\x12\x1f\n\x0bpoint_cloud\x18\x01 \x01(\x0cR\npointCloud\x12A\n\ngeometries\x18\x02 \x01(\x0b2!.viam.common.v1.GeometriesInFrameR\ngeometries"D\n\x08GeoPoint\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude"\xe2\x01\n\tTransform\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12P\n\x16pose_in_observer_frame\x18\x02 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x13poseInObserverFrame\x12F\n\x0fphysical_object\x18\x03 \x01(\x0b2\x18.viam.common.v1.GeometryH\x00R\x0ephysicalObject\x88\x01\x01B\x12\n\x10_physical_object"\xda\x01\n\nWorldState\x12?\n\tobstacles\x18\x01 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\tobstacles\x12P\n\x12interaction_spaces\x18\x02 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\x11interactionSpaces\x129\n\ntransforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\ntransforms"-\n\x0eActuatorStatus\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving:a\n\x1asafety_heartbeat_monitored\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x92\x05 \x01(\x08R\x18safetyHeartbeatMonitored\x88\x01\x01B/\n\x12com.viam.common.v1Z\x19go.viam.com/api/common/v1b\x06proto3')
99
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
1010
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.v1.common_pb2', globals())
1111
if _descriptor._USE_C_DESCRIPTORS == False:
@@ -38,19 +38,21 @@
3838
_VECTOR3._serialized_end = 1017
3939
_SPHERE._serialized_start = 1019
4040
_SPHERE._serialized_end = 1056
41-
_RECTANGULARPRISM._serialized_start = 1058
42-
_RECTANGULARPRISM._serialized_end = 1126
43-
_GEOMETRY._serialized_start = 1129
44-
_GEOMETRY._serialized_end = 1328
45-
_GEOMETRIESINFRAME._serialized_start = 1330
46-
_GEOMETRIESINFRAME._serialized_end = 1448
47-
_POINTCLOUDOBJECT._serialized_start = 1450
48-
_POINTCLOUDOBJECT._serialized_end = 1568
49-
_GEOPOINT._serialized_start = 1570
50-
_GEOPOINT._serialized_end = 1638
51-
_TRANSFORM._serialized_start = 1641
52-
_TRANSFORM._serialized_end = 1867
53-
_WORLDSTATE._serialized_start = 1870
54-
_WORLDSTATE._serialized_end = 2088
55-
_ACTUATORSTATUS._serialized_start = 2090
56-
_ACTUATORSTATUS._serialized_end = 2135
41+
_CAPSULE._serialized_start = 1058
42+
_CAPSULE._serialized_end = 1125
43+
_RECTANGULARPRISM._serialized_start = 1127
44+
_RECTANGULARPRISM._serialized_end = 1195
45+
_GEOMETRY._serialized_start = 1198
46+
_GEOMETRY._serialized_end = 1450
47+
_GEOMETRIESINFRAME._serialized_start = 1452
48+
_GEOMETRIESINFRAME._serialized_end = 1570
49+
_POINTCLOUDOBJECT._serialized_start = 1572
50+
_POINTCLOUDOBJECT._serialized_end = 1690
51+
_GEOPOINT._serialized_start = 1692
52+
_GEOPOINT._serialized_end = 1760
53+
_TRANSFORM._serialized_start = 1763
54+
_TRANSFORM._serialized_end = 1989
55+
_WORLDSTATE._serialized_start = 1992
56+
_WORLDSTATE._serialized_end = 2210
57+
_ACTUATORSTATUS._serialized_start = 2212
58+
_ACTUATORSTATUS._serialized_end = 2257

src/viam/gen/common/v1/common_pb2.pyi

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,21 @@ class Sphere(google.protobuf.message.Message):
240240
...
241241
global___Sphere = Sphere
242242

243+
@typing_extensions.final
244+
class Capsule(google.protobuf.message.Message):
245+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
246+
RADIUS_MM_FIELD_NUMBER: builtins.int
247+
LENGTH_MM_FIELD_NUMBER: builtins.int
248+
radius_mm: builtins.float
249+
length_mm: builtins.float
250+
251+
def __init__(self, *, radius_mm: builtins.float=..., length_mm: builtins.float=...) -> None:
252+
...
253+
254+
def ClearField(self, field_name: typing_extensions.Literal['length_mm', b'length_mm', 'radius_mm', b'radius_mm']) -> None:
255+
...
256+
global___Capsule = Capsule
257+
243258
@typing_extensions.final
244259
class RectangularPrism(google.protobuf.message.Message):
245260
"""RectangularPrism contains a Vector3 field corresponding to the X, Y, Z dimensions of the prism in mms
@@ -269,11 +284,12 @@ class Geometry(google.protobuf.message.Message):
269284
CENTER_FIELD_NUMBER: builtins.int
270285
SPHERE_FIELD_NUMBER: builtins.int
271286
BOX_FIELD_NUMBER: builtins.int
287+
CAPSULE_FIELD_NUMBER: builtins.int
272288
LABEL_FIELD_NUMBER: builtins.int
273289

274290
@property
275291
def center(self) -> global___Pose:
276-
"""Pose of a gemetries center point"""
292+
"""Pose of a geometries center point"""
277293

278294
@property
279295
def sphere(self) -> global___Sphere:
@@ -282,19 +298,23 @@ class Geometry(google.protobuf.message.Message):
282298
@property
283299
def box(self) -> global___RectangularPrism:
284300
...
301+
302+
@property
303+
def capsule(self) -> global___Capsule:
304+
...
285305
label: builtins.str
286306
'Label of the geometry. If none supplied, will be an empty string.'
287307

288-
def __init__(self, *, center: global___Pose | None=..., sphere: global___Sphere | None=..., box: global___RectangularPrism | None=..., label: builtins.str=...) -> None:
308+
def __init__(self, *, center: global___Pose | None=..., sphere: global___Sphere | None=..., box: global___RectangularPrism | None=..., capsule: global___Capsule | None=..., label: builtins.str=...) -> None:
289309
...
290310

291-
def HasField(self, field_name: typing_extensions.Literal['box', b'box', 'center', b'center', 'geometry_type', b'geometry_type', 'sphere', b'sphere']) -> builtins.bool:
311+
def HasField(self, field_name: typing_extensions.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'geometry_type', b'geometry_type', 'sphere', b'sphere']) -> builtins.bool:
292312
...
293313

294-
def ClearField(self, field_name: typing_extensions.Literal['box', b'box', 'center', b'center', 'geometry_type', b'geometry_type', 'label', b'label', 'sphere', b'sphere']) -> None:
314+
def ClearField(self, field_name: typing_extensions.Literal['box', b'box', 'capsule', b'capsule', 'center', b'center', 'geometry_type', b'geometry_type', 'label', b'label', 'sphere', b'sphere']) -> None:
295315
...
296316

297-
def WhichOneof(self, oneof_group: typing_extensions.Literal['geometry_type', b'geometry_type']) -> typing_extensions.Literal['sphere', 'box'] | None:
317+
def WhichOneof(self, oneof_group: typing_extensions.Literal['geometry_type', b'geometry_type']) -> typing_extensions.Literal['sphere', 'box', 'capsule'] | None:
298318
...
299319
global___Geometry = Geometry
300320

0 commit comments

Comments
 (0)