Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 974df52

Browse files
Pyreach sync 20220622
1 parent 93cca6a commit 974df52

32 files changed

+1224
-528
lines changed

pyreach/arm.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ class ArmState:
102102
device_type: The device type of the arm..
103103
device_name: The device name of the arm.
104104
joint_angles: The arm joint angles in radians.
105-
pose: The pose of the arm (alias for tcp_t_base).
106-
tcp_t_base: The pose of the tool center point (TCP) relative to the base of
107-
the arm.
105+
pose: The pose of the arm (alias for flange_t_base).
106+
flange_t_base: The pose of the robot flange relative to the base of the arm.
108107
force: The arm joint force values in Newton-meters. Robot specific.
109108
is_protective_stopped: True if the robot is protective stopped.
110109
is_emergency_stopped: True if the robot is emergency stopped.
@@ -114,7 +113,7 @@ class ArmState:
114113
is_program_running: True if a program is running on the robot.
115114
is_robot_power_on: True if the robot power is on.
116115
robot_mode: Mode of operation of the robot.
117-
tip_adjust_t_tcp: Adjust transform for the tooltip.
116+
tip_adjust_t_flange: Adjust transform for the tooltip.
118117
tip_adjust_t_base: Pose with the tip adjust applied relative to the base of
119118
the arm.
120119
"""
@@ -127,7 +126,7 @@ class ArmState:
127126
pose: core.Pose = core.Pose(
128127
core.Translation(0.0, 0.0, 0.0), core.AxisAngle.from_tuple(
129128
(0.0, 0.0, 0.0)))
130-
tcp_t_base: core.Pose = core.Pose(
129+
flange_t_base: core.Pose = core.Pose(
131130
core.Translation(0.0, 0.0, 0.0), core.AxisAngle.from_tuple(
132131
(0.0, 0.0, 0.0)))
133132
force: Tuple[float, ...] = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
@@ -139,7 +138,7 @@ class ArmState:
139138
is_program_running: bool = False
140139
is_robot_power_on: bool = False
141140
robot_mode: RobotMode = RobotMode.DEFAULT
142-
tip_adjust_t_tcp: Optional[core.Pose] = None
141+
tip_adjust_t_flange: Optional[core.Pose] = None
143142
tip_adjust_t_base: Optional[core.Pose] = None
144143

145144

@@ -579,3 +578,14 @@ def fk(self,
579578
was not yet initialized, this will return None.
580579
"""
581580
raise NotImplementedError
581+
582+
def wait_constraints(self, timeout: Optional[float] = None) -> bool:
583+
"""Wait for the arm constraints to load.
584+
585+
Args:
586+
timeout: the optional maximum time to wait for loading.
587+
588+
Returns:
589+
True if the constraints loaded, otherwise false.
590+
"""
591+
raise NotImplementedError

pyreach/common/proto_gen/image_pb2.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
syntax='proto3',
3535
serialized_options=None,
3636
create_key=_descriptor._internal_create_key,
37-
serialized_pb=b'\n\x0bimage.proto\x12\x11robotics.messages\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x08\n\x0c\x45ncodedImage\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12\x34\n\x04type\x18\x03 \x01(\x0e\x32$.robotics.messages.EncodedImage.TypeH\x00\x12?\n\npixel_type\x18\x05 \x01(\x0b\x32).robotics.messages.EncodedImage.PixelTypeH\x00\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\x84\x06\n\tPixelType\x12Q\n\x0fpixel_primitive\x18\x01 \x01(\x0e\x32\x38.robotics.messages.EncodedImage.PixelType.PixelPrimitive\x12P\n\x0e\x63hannel_type_1\x18\x02 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType1H\x00\x12P\n\x0e\x63hannel_type_3\x18\x03 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType3H\x00\x12P\n\x0e\x63hannel_type_4\x18\x04 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType4H\x00\"z\n\x0ePixelPrimitive\x12\x1f\n\x1bUNSPECIFIED_PIXEL_PRIMITIVE\x10\x00\x12\n\n\x06UCHAR8\x10\x01\x12\n\n\x06UINT16\x10\x02\x12\n\n\x06UINT32\x10\x03\x12\t\n\x05INT32\x10\x06\x12\x0b\n\x07\x46LOAT16\x10\x04\x12\x0b\n\x07\x46LOAT32\x10\x05\"\x89\x01\n\x0c\x43hannelType1\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_1\x10\x00\x12\x08\n\x04MONO\x10\x01\x12\t\n\x05\x44\x45PTH\x10\x02\x12\r\n\tDISPARITY\x10\x08\x12\r\n\tOCCUPANCY\x10\x03\x12\x08\n\x04\x42GGR\x10\x04\x12\x08\n\x04RGGB\x10\x05\x12\x08\n\x04GBRG\x10\x06\x12\x08\n\x04GRBG\x10\x07\"Q\n\x0c\x43hannelType3\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_3\x10\x00\x12\x07\n\x03\x42GR\x10\x01\x12\x07\n\x03RGB\x10\x02\x12\x0f\n\x0bPOINT_CLOUD\x10\x03\"B\n\x0c\x43hannelType4\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_4\x10\x00\x12\x08\n\x04\x42GRA\x10\x01\x12\x08\n\x04RGBA\x10\x02\x42\x0f\n\rchannel_oneof\"\x90\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PNG_U8\x10\x01\x12\x0e\n\nPNG_GRAYU8\x10\x02\x12\n\n\x06JPG_U8\x10\x03\x12\x0e\n\nJPG_GRAYU8\x10\x04\x12\x10\n\x0cROS_DEPTHF32\x10\x05\x12\x0f\n\x0b\x42\x41YER_GRBG8\x10\x06\x12\r\n\tBZIP2_PGM\x10\x07\x12\x11\n\rDEPTH_16U_RVL\x10\x08\x42\x0c\n\ntype_oneof\"\xae\x02\n\x08RawImage\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .robotics.messages.RawImage.Type\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"\xc7\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06GRAYU8\x10\x01\x12\x0b\n\x07GRAYF32\x10\x02\x12\t\n\x05RGBU8\x10\x03\x12\n\n\x06RGBAU8\x10\x0b\x12\n\n\x06RGBF32\x10\x04\x12\x0b\n\x07RGBAF16\x10\r\x12\x0b\n\x07RGBAF32\x10\x0e\x12\t\n\x05\x42GRU8\x10\x05\x12\n\n\x06\x42GRAU8\x10\n\x12\n\n\x06\x42GRF32\x10\x06\x12\x0c\n\x08\x44\x45PTHF32\x10\x07\x12\x0c\n\x08\x44\x45PTHF64\x10\x0c\x12\x0c\n\x08\x44\x45PTHU16\x10\t\x12\x0f\n\x0bOCCUPANCYU8\x10\x08\"\xbf\x01\n\x14TimestampedImageKind\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\rencoded_image\x18\x02 \x01(\x0b\x32\x1f.robotics.messages.EncodedImageH\x00\x12\x30\n\traw_image\x18\x03 \x01(\x0b\x32\x1b.robotics.messages.RawImageH\x00\x42\x0c\n\nimage_kind\"\xdb\x01\n\tImageSpec\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12\x37\n\x07\x65ncoded\x18\x03 \x01(\x0e\x32$.robotics.messages.EncodedImage.TypeH\x00\x12:\n\x05pixel\x18\x04 \x01(\x0b\x32).robotics.messages.EncodedImage.PixelTypeH\x00\x12/\n\x03raw\x18\x05 \x01(\x0e\x32 .robotics.messages.RawImage.TypeH\x00\x42\x0c\n\nimage_typeb\x06proto3'
37+
serialized_pb=b'\n\x0bimage.proto\x12\x11robotics.messages\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x08\n\x0c\x45ncodedImage\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12\x34\n\x04type\x18\x03 \x01(\x0e\x32$.robotics.messages.EncodedImage.TypeH\x00\x12?\n\npixel_type\x18\x05 \x01(\x0b\x32).robotics.messages.EncodedImage.PixelTypeH\x00\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a\x84\x06\n\tPixelType\x12Q\n\x0fpixel_primitive\x18\x01 \x01(\x0e\x32\x38.robotics.messages.EncodedImage.PixelType.PixelPrimitive\x12P\n\x0e\x63hannel_type_1\x18\x02 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType1H\x00\x12P\n\x0e\x63hannel_type_3\x18\x03 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType3H\x00\x12P\n\x0e\x63hannel_type_4\x18\x04 \x01(\x0e\x32\x36.robotics.messages.EncodedImage.PixelType.ChannelType4H\x00\"z\n\x0ePixelPrimitive\x12\x1f\n\x1bUNSPECIFIED_PIXEL_PRIMITIVE\x10\x00\x12\n\n\x06UCHAR8\x10\x01\x12\n\n\x06UINT16\x10\x02\x12\n\n\x06UINT32\x10\x03\x12\t\n\x05INT32\x10\x06\x12\x0b\n\x07\x46LOAT16\x10\x04\x12\x0b\n\x07\x46LOAT32\x10\x05\"\x89\x01\n\x0c\x43hannelType1\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_1\x10\x00\x12\x08\n\x04MONO\x10\x01\x12\t\n\x05\x44\x45PTH\x10\x02\x12\r\n\tDISPARITY\x10\x08\x12\r\n\tOCCUPANCY\x10\x03\x12\x08\n\x04\x42GGR\x10\x04\x12\x08\n\x04RGGB\x10\x05\x12\x08\n\x04GBRG\x10\x06\x12\x08\n\x04GRBG\x10\x07\"Q\n\x0c\x43hannelType3\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_3\x10\x00\x12\x07\n\x03\x42GR\x10\x01\x12\x07\n\x03RGB\x10\x02\x12\x0f\n\x0bPOINT_CLOUD\x10\x03\"B\n\x0c\x43hannelType4\x12\x1e\n\x1aUNSPECIFIED_CHANNEL_TYPE_4\x10\x00\x12\x08\n\x04\x42GRA\x10\x01\x12\x08\n\x04RGBA\x10\x02\x42\x0f\n\rchannel_oneof\"\xa2\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PNG_U8\x10\x01\x12\x0e\n\nPNG_GRAYU8\x10\x02\x12\n\n\x06JPG_U8\x10\x03\x12\x0e\n\nJPG_GRAYU8\x10\x04\x12\x10\n\x0cROS_DEPTHF32\x10\x05\x12\x0f\n\x0b\x42\x41YER_GRBG8\x10\x06\x12\r\n\tBZIP2_PGM\x10\x07\x12\x11\n\rDEPTH_16U_RVL\x10\x08\x12\x10\n\x0cPGM_DEPTHU16\x10\tB\x0c\n\ntype_oneof\"\xae\x02\n\x08RawImage\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .robotics.messages.RawImage.Type\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"\xc7\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06GRAYU8\x10\x01\x12\x0b\n\x07GRAYF32\x10\x02\x12\t\n\x05RGBU8\x10\x03\x12\n\n\x06RGBAU8\x10\x0b\x12\n\n\x06RGBF32\x10\x04\x12\x0b\n\x07RGBAF16\x10\r\x12\x0b\n\x07RGBAF32\x10\x0e\x12\t\n\x05\x42GRU8\x10\x05\x12\n\n\x06\x42GRAU8\x10\n\x12\n\n\x06\x42GRF32\x10\x06\x12\x0c\n\x08\x44\x45PTHF32\x10\x07\x12\x0c\n\x08\x44\x45PTHF64\x10\x0c\x12\x0c\n\x08\x44\x45PTHU16\x10\t\x12\x0f\n\x0bOCCUPANCYU8\x10\x08\"\xbf\x01\n\x14TimestampedImageKind\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\rencoded_image\x18\x02 \x01(\x0b\x32\x1f.robotics.messages.EncodedImageH\x00\x12\x30\n\traw_image\x18\x03 \x01(\x0b\x32\x1b.robotics.messages.RawImageH\x00\x42\x0c\n\nimage_kind\"\xdb\x01\n\tImageSpec\x12\x0c\n\x04\x63ols\x18\x01 \x01(\x05\x12\x0c\n\x04rows\x18\x02 \x01(\x05\x12\x37\n\x07\x65ncoded\x18\x03 \x01(\x0e\x32$.robotics.messages.EncodedImage.TypeH\x00\x12:\n\x05pixel\x18\x04 \x01(\x0b\x32).robotics.messages.EncodedImage.PixelTypeH\x00\x12/\n\x03raw\x18\x05 \x01(\x0e\x32 .robotics.messages.RawImage.TypeH\x00\x42\x0c\n\nimage_typeb\x06proto3'
3838
,
3939
dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
4040

@@ -267,11 +267,16 @@
267267
serialized_options=None,
268268
type=None,
269269
create_key=_descriptor._internal_create_key),
270+
_descriptor.EnumValueDescriptor(
271+
name='PGM_DEPTHU16', index=9, number=9,
272+
serialized_options=None,
273+
type=None,
274+
create_key=_descriptor._internal_create_key),
270275
],
271276
containing_type=None,
272277
serialized_options=None,
273278
serialized_start=1021,
274-
serialized_end=1165,
279+
serialized_end=1183,
275280
)
276281
_sym_db.RegisterEnumDescriptor(_ENCODEDIMAGE_TYPE)
277282

@@ -360,8 +365,8 @@
360365
],
361366
containing_type=None,
362367
serialized_options=None,
363-
serialized_start=1285,
364-
serialized_end=1484,
368+
serialized_start=1303,
369+
serialized_end=1502,
365370
)
366371
_sym_db.RegisterEnumDescriptor(_RAWIMAGE_TYPE)
367372

@@ -489,7 +494,7 @@
489494
fields=[]),
490495
],
491496
serialized_start=68,
492-
serialized_end=1179,
497+
serialized_end=1197,
493498
)
494499

495500

@@ -542,8 +547,8 @@
542547
extension_ranges=[],
543548
oneofs=[
544549
],
545-
serialized_start=1182,
546-
serialized_end=1484,
550+
serialized_start=1200,
551+
serialized_end=1502,
547552
)
548553

549554

@@ -593,8 +598,8 @@
593598
create_key=_descriptor._internal_create_key,
594599
fields=[]),
595600
],
596-
serialized_start=1487,
597-
serialized_end=1678,
601+
serialized_start=1505,
602+
serialized_end=1696,
598603
)
599604

600605

@@ -658,8 +663,8 @@
658663
create_key=_descriptor._internal_create_key,
659664
fields=[]),
660665
],
661-
serialized_start=1681,
662-
serialized_end=1900,
666+
serialized_start=1699,
667+
serialized_end=1918,
663668
)
664669

665670
_ENCODEDIMAGE_PIXELTYPE.fields_by_name['pixel_primitive'].enum_type = _ENCODEDIMAGE_PIXELTYPE_PIXELPRIMITIVE

pyreach/common/proto_gen/image_pb2.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ class EncodedImage(google.protobuf.message.Message):
8080
DEPTH_16U_RVL: EncodedImage.Type.ValueType = ... # 8
8181
"""Lossless RVL compression with U16 depth image."""
8282

83+
PGM_DEPTHU16: EncodedImage.Type.ValueType = ... # 9
84+
"""16-bit PGM for depth-data, used in reach."""
85+
8386
class Type(_Type, metaclass=_TypeEnumTypeWrapper):
8487
pass
8588

@@ -121,6 +124,9 @@ class EncodedImage(google.protobuf.message.Message):
121124
DEPTH_16U_RVL: EncodedImage.Type.ValueType = ... # 8
122125
"""Lossless RVL compression with U16 depth image."""
123126

127+
PGM_DEPTHU16: EncodedImage.Type.ValueType = ... # 9
128+
"""16-bit PGM for depth-data, used in reach."""
129+
124130

125131
class PixelType(google.protobuf.message.Message):
126132
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# -*- coding: utf-8 -*-
16+
# Generated by the protocol buffer compiler. DO NOT EDIT!
17+
# source: link.proto
18+
19+
from google.protobuf import descriptor as _descriptor
20+
from google.protobuf import message as _message
21+
from google.protobuf import reflection as _reflection
22+
from google.protobuf import symbol_database as _symbol_database
23+
# @@protoc_insertion_point(imports)
24+
25+
_sym_db = _symbol_database.Default()
26+
27+
28+
29+
30+
DESCRIPTOR = _descriptor.FileDescriptor(
31+
name='link.proto',
32+
package='link',
33+
syntax='proto3',
34+
serialized_options=None,
35+
create_key=_descriptor._internal_create_key,
36+
serialized_pb=b'\n\nlink.proto\x12\x04link\"+\n\x0e\x43lientToServer\x12\x19\n\x11\x63ommand_data_json\x18\x01 \x01(\t\"R\n\x0eServerToClient\x12\x18\n\x10\x64\x65vice_data_json\x18\x01 \x01(\t\x12\x12\n\ncolor_data\x18\x02 \x01(\x0c\x12\x12\n\ndepth_data\x18\x03 \x01(\x0c\x62\x06proto3'
37+
)
38+
39+
40+
41+
42+
_CLIENTTOSERVER = _descriptor.Descriptor(
43+
name='ClientToServer',
44+
full_name='link.ClientToServer',
45+
filename=None,
46+
file=DESCRIPTOR,
47+
containing_type=None,
48+
create_key=_descriptor._internal_create_key,
49+
fields=[
50+
_descriptor.FieldDescriptor(
51+
name='command_data_json', full_name='link.ClientToServer.command_data_json', index=0,
52+
number=1, type=9, cpp_type=9, label=1,
53+
has_default_value=False, default_value=b"".decode('utf-8'),
54+
message_type=None, enum_type=None, containing_type=None,
55+
is_extension=False, extension_scope=None,
56+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
57+
],
58+
extensions=[
59+
],
60+
nested_types=[],
61+
enum_types=[
62+
],
63+
serialized_options=None,
64+
is_extendable=False,
65+
syntax='proto3',
66+
extension_ranges=[],
67+
oneofs=[
68+
],
69+
serialized_start=20,
70+
serialized_end=63,
71+
)
72+
73+
74+
_SERVERTOCLIENT = _descriptor.Descriptor(
75+
name='ServerToClient',
76+
full_name='link.ServerToClient',
77+
filename=None,
78+
file=DESCRIPTOR,
79+
containing_type=None,
80+
create_key=_descriptor._internal_create_key,
81+
fields=[
82+
_descriptor.FieldDescriptor(
83+
name='device_data_json', full_name='link.ServerToClient.device_data_json', index=0,
84+
number=1, type=9, cpp_type=9, label=1,
85+
has_default_value=False, default_value=b"".decode('utf-8'),
86+
message_type=None, enum_type=None, containing_type=None,
87+
is_extension=False, extension_scope=None,
88+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
89+
_descriptor.FieldDescriptor(
90+
name='color_data', full_name='link.ServerToClient.color_data', index=1,
91+
number=2, type=12, cpp_type=9, label=1,
92+
has_default_value=False, default_value=b"",
93+
message_type=None, enum_type=None, containing_type=None,
94+
is_extension=False, extension_scope=None,
95+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
96+
_descriptor.FieldDescriptor(
97+
name='depth_data', full_name='link.ServerToClient.depth_data', index=2,
98+
number=3, type=12, cpp_type=9, label=1,
99+
has_default_value=False, default_value=b"",
100+
message_type=None, enum_type=None, containing_type=None,
101+
is_extension=False, extension_scope=None,
102+
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
103+
],
104+
extensions=[
105+
],
106+
nested_types=[],
107+
enum_types=[
108+
],
109+
serialized_options=None,
110+
is_extendable=False,
111+
syntax='proto3',
112+
extension_ranges=[],
113+
oneofs=[
114+
],
115+
serialized_start=65,
116+
serialized_end=147,
117+
)
118+
119+
DESCRIPTOR.message_types_by_name['ClientToServer'] = _CLIENTTOSERVER
120+
DESCRIPTOR.message_types_by_name['ServerToClient'] = _SERVERTOCLIENT
121+
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
122+
123+
ClientToServer = _reflection.GeneratedProtocolMessageType('ClientToServer', (_message.Message,), {
124+
'DESCRIPTOR' : _CLIENTTOSERVER,
125+
'__module__' : 'link_pb2'
126+
# @@protoc_insertion_point(class_scope:link.ClientToServer)
127+
})
128+
_sym_db.RegisterMessage(ClientToServer)
129+
130+
ServerToClient = _reflection.GeneratedProtocolMessageType('ServerToClient', (_message.Message,), {
131+
'DESCRIPTOR' : _SERVERTOCLIENT,
132+
'__module__' : 'link_pb2'
133+
# @@protoc_insertion_point(class_scope:link.ServerToClient)
134+
})
135+
_sym_db.RegisterMessage(ServerToClient)
136+
137+
138+
# @@protoc_insertion_point(module_scope)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""
16+
@generated by mypy-protobuf. Do not edit manually!
17+
isort:skip_file
18+
"""
19+
import builtins
20+
import google.protobuf.descriptor
21+
import google.protobuf.message
22+
import typing
23+
import typing_extensions
24+
25+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
26+
27+
class ClientToServer(google.protobuf.message.Message):
28+
"""option go_package = ".;link";
29+
30+
"""
31+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
32+
COMMAND_DATA_JSON_FIELD_NUMBER: builtins.int
33+
command_data_json: typing.Text = ...
34+
def __init__(self,
35+
*,
36+
command_data_json : typing.Text = ...,
37+
) -> None: ...
38+
def ClearField(self, field_name: typing_extensions.Literal["command_data_json",b"command_data_json"]) -> None: ...
39+
global___ClientToServer = ClientToServer
40+
41+
class ServerToClient(google.protobuf.message.Message):
42+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
43+
DEVICE_DATA_JSON_FIELD_NUMBER: builtins.int
44+
COLOR_DATA_FIELD_NUMBER: builtins.int
45+
DEPTH_DATA_FIELD_NUMBER: builtins.int
46+
device_data_json: typing.Text = ...
47+
color_data: builtins.bytes = ...
48+
depth_data: builtins.bytes = ...
49+
def __init__(self,
50+
*,
51+
device_data_json : typing.Text = ...,
52+
color_data : builtins.bytes = ...,
53+
depth_data : builtins.bytes = ...,
54+
) -> None: ...
55+
def ClearField(self, field_name: typing_extensions.Literal["color_data",b"color_data","depth_data",b"depth_data","device_data_json",b"device_data_json"]) -> None: ...
56+
global___ServerToClient = ServerToClient

pyreach/common/proto_gen/logs_pb2.py

Lines changed: 373 additions & 288 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)