luckyrobots 0.1.69__py3-none-any.whl → 0.1.71__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- luckyrobots/__init__.py +8 -1
- luckyrobots/client.py +98 -4
- luckyrobots/grpc/generated/agent_pb2.py +36 -32
- luckyrobots/grpc/generated/agent_pb2_grpc.py +110 -128
- luckyrobots/grpc/generated/camera_pb2.py +20 -18
- luckyrobots/grpc/generated/camera_pb2_grpc.py +62 -73
- luckyrobots/grpc/generated/common_pb2.py +20 -16
- luckyrobots/grpc/generated/common_pb2_grpc.py +7 -10
- luckyrobots/grpc/generated/hazel_rpc_pb2.py +43 -0
- luckyrobots/grpc/generated/hazel_rpc_pb2_grpc.py +24 -0
- luckyrobots/grpc/generated/media_pb2.py +16 -12
- luckyrobots/grpc/generated/media_pb2_grpc.py +7 -10
- luckyrobots/grpc/generated/mujoco_pb2.py +28 -24
- luckyrobots/grpc/generated/mujoco_pb2_grpc.py +110 -128
- luckyrobots/grpc/generated/scene_pb2.py +30 -28
- luckyrobots/grpc/generated/scene_pb2_grpc.py +108 -127
- luckyrobots/grpc/generated/telemetry_pb2.py +24 -20
- luckyrobots/grpc/generated/telemetry_pb2_grpc.py +62 -73
- luckyrobots/grpc/generated/viewport_pb2.py +24 -22
- luckyrobots/grpc/generated/viewport_pb2_grpc.py +62 -73
- luckyrobots/grpc/proto/agent.proto +33 -1
- luckyrobots/grpc/proto/camera.proto +1 -1
- luckyrobots/grpc/proto/common.proto +1 -1
- luckyrobots/grpc/proto/hazel_rpc.proto +1 -1
- luckyrobots/grpc/proto/media.proto +1 -1
- luckyrobots/grpc/proto/mujoco.proto +1 -1
- luckyrobots/grpc/proto/scene.proto +1 -1
- luckyrobots/grpc/proto/telemetry.proto +1 -1
- luckyrobots/grpc/proto/viewport.proto +1 -1
- luckyrobots/luckyrobots.py +28 -0
- luckyrobots/models/__init__.py +2 -0
- luckyrobots/models/randomization.py +77 -0
- {luckyrobots-0.1.69.dist-info → luckyrobots-0.1.71.dist-info}/METADATA +1 -1
- luckyrobots-0.1.71.dist-info/RECORD +47 -0
- luckyrobots-0.1.69.dist-info/RECORD +0 -44
- {luckyrobots-0.1.69.dist-info → luckyrobots-0.1.71.dist-info}/WHEEL +0 -0
- {luckyrobots-0.1.69.dist-info → luckyrobots-0.1.71.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,9 +9,13 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
9
9
|
from google.protobuf import runtime_version as _runtime_version
|
|
10
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
|
|
13
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
14
|
-
_runtime_version.Domain.PUBLIC,
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'camera.proto'
|
|
15
19
|
)
|
|
16
20
|
# @@protoc_insertion_point(imports)
|
|
17
21
|
|
|
@@ -22,24 +26,22 @@ from . import common_pb2 as common__pb2
|
|
|
22
26
|
from . import media_pb2 as media__pb2
|
|
23
27
|
|
|
24
28
|
|
|
25
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
26
|
-
b'\n\x0c\x63\x61mera.proto\x12\x0chazel.rpc.v1\x1a\x0c\x63ommon.proto\x1a\x0bmedia.proto">\n\nCameraInfo\x12"\n\x02id\x18\x01 \x01(\x0b\x32\x16.hazel.rpc.v1.EntityId\x12\x0c\n\x04name\x18\x02 \x01(\t"\x14\n\x12ListCamerasRequest"@\n\x13ListCamerasResponse\x12)\n\x07\x63\x61meras\x18\x01 \x03(\x0b\x32\x18.hazel.rpc.v1.CameraInfo"\x9c\x01\n\x13StreamCameraRequest\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x16.hazel.rpc.v1.EntityIdH\x00\x12\x0e\n\x04name\x18\x02 \x01(\tH\x00\x12\x12\n\ntarget_fps\x18\x03 \x01(\r\x12\r\n\x05width\x18\x04 \x01(\r\x12\x0e\n\x06height\x18\x05 \x01(\r\x12\x0e\n\x06\x66ormat\x18\x06 \x01(\tB\x0c\n\nidentifier2\xb2\x01\n\rCameraService\x12R\n\x0bListCameras\x12 .hazel.rpc.v1.ListCamerasRequest\x1a!.hazel.rpc.v1.ListCamerasResponse\x12M\n\x0cStreamCamera\x12!.hazel.rpc.v1.StreamCameraRequest\x1a\x18.hazel.rpc.v1.ImageFrame0\x01\x42\x03\xf8\x01\x01\x62\x06proto3'
|
|
27
|
-
)
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63\x61mera.proto\x12\thazel.rpc\x1a\x0c\x63ommon.proto\x1a\x0bmedia.proto\";\n\nCameraInfo\x12\x1f\n\x02id\x18\x01 \x01(\x0b\x32\x13.hazel.rpc.EntityId\x12\x0c\n\x04name\x18\x02 \x01(\t\"\x14\n\x12ListCamerasRequest\"=\n\x13ListCamerasResponse\x12&\n\x07\x63\x61meras\x18\x01 \x03(\x0b\x32\x15.hazel.rpc.CameraInfo\"\x99\x01\n\x13StreamCameraRequest\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x13.hazel.rpc.EntityIdH\x00\x12\x0e\n\x04name\x18\x02 \x01(\tH\x00\x12\x12\n\ntarget_fps\x18\x03 \x01(\r\x12\r\n\x05width\x18\x04 \x01(\r\x12\x0e\n\x06height\x18\x05 \x01(\r\x12\x0e\n\x06\x66ormat\x18\x06 \x01(\tB\x0c\n\nidentifier2\xa6\x01\n\rCameraService\x12L\n\x0bListCameras\x12\x1d.hazel.rpc.ListCamerasRequest\x1a\x1e.hazel.rpc.ListCamerasResponse\x12G\n\x0cStreamCamera\x12\x1e.hazel.rpc.StreamCameraRequest\x1a\x15.hazel.rpc.ImageFrame0\x01\x42\x03\xf8\x01\x01\x62\x06proto3')
|
|
28
30
|
|
|
29
31
|
_globals = globals()
|
|
30
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR,
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'camera_pb2', _globals)
|
|
32
34
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
37
|
+
_globals['_CAMERAINFO']._serialized_start=54
|
|
38
|
+
_globals['_CAMERAINFO']._serialized_end=113
|
|
39
|
+
_globals['_LISTCAMERASREQUEST']._serialized_start=115
|
|
40
|
+
_globals['_LISTCAMERASREQUEST']._serialized_end=135
|
|
41
|
+
_globals['_LISTCAMERASRESPONSE']._serialized_start=137
|
|
42
|
+
_globals['_LISTCAMERASRESPONSE']._serialized_end=198
|
|
43
|
+
_globals['_STREAMCAMERAREQUEST']._serialized_start=201
|
|
44
|
+
_globals['_STREAMCAMERAREQUEST']._serialized_end=354
|
|
45
|
+
_globals['_CAMERASERVICE']._serialized_start=357
|
|
46
|
+
_globals['_CAMERASERVICE']._serialized_end=523
|
|
45
47
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -6,31 +6,29 @@ import warnings
|
|
|
6
6
|
from . import camera_pb2 as camera__pb2
|
|
7
7
|
from . import media_pb2 as media__pb2
|
|
8
8
|
|
|
9
|
-
GRPC_GENERATED_VERSION =
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
10
10
|
GRPC_VERSION = grpc.__version__
|
|
11
11
|
_version_not_supported = False
|
|
12
12
|
|
|
13
13
|
try:
|
|
14
14
|
from grpc._utilities import first_version_is_lower
|
|
15
|
-
|
|
16
|
-
_version_not_supported = first_version_is_lower(
|
|
17
|
-
GRPC_VERSION, GRPC_GENERATED_VERSION
|
|
18
|
-
)
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
19
16
|
except ImportError:
|
|
20
17
|
_version_not_supported = True
|
|
21
18
|
|
|
22
19
|
if _version_not_supported:
|
|
23
20
|
raise RuntimeError(
|
|
24
|
-
f
|
|
25
|
-
+
|
|
26
|
-
+ f
|
|
27
|
-
+ f
|
|
28
|
-
+ f
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ ' but the generated code in camera_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
29
26
|
)
|
|
30
27
|
|
|
31
28
|
|
|
32
29
|
class CameraServiceStub(object):
|
|
33
|
-
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
30
|
+
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
31
|
+
"""
|
|
34
32
|
|
|
35
33
|
def __init__(self, channel):
|
|
36
34
|
"""Constructor.
|
|
@@ -39,78 +37,73 @@ class CameraServiceStub(object):
|
|
|
39
37
|
channel: A grpc.Channel.
|
|
40
38
|
"""
|
|
41
39
|
self.ListCameras = channel.unary_unary(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
)
|
|
40
|
+
'/hazel.rpc.CameraService/ListCameras',
|
|
41
|
+
request_serializer=camera__pb2.ListCamerasRequest.SerializeToString,
|
|
42
|
+
response_deserializer=camera__pb2.ListCamerasResponse.FromString,
|
|
43
|
+
_registered_method=True)
|
|
47
44
|
self.StreamCamera = channel.unary_stream(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
45
|
+
'/hazel.rpc.CameraService/StreamCamera',
|
|
46
|
+
request_serializer=camera__pb2.StreamCameraRequest.SerializeToString,
|
|
47
|
+
response_deserializer=media__pb2.ImageFrame.FromString,
|
|
48
|
+
_registered_method=True)
|
|
53
49
|
|
|
54
50
|
|
|
55
51
|
class CameraServiceServicer(object):
|
|
56
|
-
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
52
|
+
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
53
|
+
"""
|
|
57
54
|
|
|
58
55
|
def ListCameras(self, request, context):
|
|
59
56
|
"""Missing associated documentation comment in .proto file."""
|
|
60
57
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
61
|
-
context.set_details(
|
|
62
|
-
raise NotImplementedError(
|
|
58
|
+
context.set_details('Method not implemented!')
|
|
59
|
+
raise NotImplementedError('Method not implemented!')
|
|
63
60
|
|
|
64
61
|
def StreamCamera(self, request, context):
|
|
65
62
|
"""Missing associated documentation comment in .proto file."""
|
|
66
63
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
-
context.set_details(
|
|
68
|
-
raise NotImplementedError(
|
|
64
|
+
context.set_details('Method not implemented!')
|
|
65
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
66
|
|
|
70
67
|
|
|
71
68
|
def add_CameraServiceServicer_to_server(servicer, server):
|
|
72
69
|
rpc_method_handlers = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
'ListCameras': grpc.unary_unary_rpc_method_handler(
|
|
71
|
+
servicer.ListCameras,
|
|
72
|
+
request_deserializer=camera__pb2.ListCamerasRequest.FromString,
|
|
73
|
+
response_serializer=camera__pb2.ListCamerasResponse.SerializeToString,
|
|
74
|
+
),
|
|
75
|
+
'StreamCamera': grpc.unary_stream_rpc_method_handler(
|
|
76
|
+
servicer.StreamCamera,
|
|
77
|
+
request_deserializer=camera__pb2.StreamCameraRequest.FromString,
|
|
78
|
+
response_serializer=media__pb2.ImageFrame.SerializeToString,
|
|
79
|
+
),
|
|
83
80
|
}
|
|
84
81
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
85
|
-
|
|
86
|
-
)
|
|
82
|
+
'hazel.rpc.CameraService', rpc_method_handlers)
|
|
87
83
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
88
|
-
server.add_registered_method_handlers(
|
|
89
|
-
"hazel.rpc.v1.CameraService", rpc_method_handlers
|
|
90
|
-
)
|
|
84
|
+
server.add_registered_method_handlers('hazel.rpc.CameraService', rpc_method_handlers)
|
|
91
85
|
|
|
92
86
|
|
|
93
|
-
# This class is part of an EXPERIMENTAL API.
|
|
87
|
+
# This class is part of an EXPERIMENTAL API.
|
|
94
88
|
class CameraService(object):
|
|
95
|
-
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
89
|
+
"""Streams pixels from a camera entity (useful for external perception / debugging).
|
|
90
|
+
"""
|
|
96
91
|
|
|
97
92
|
@staticmethod
|
|
98
|
-
def ListCameras(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
metadata=None,
|
|
109
|
-
):
|
|
93
|
+
def ListCameras(request,
|
|
94
|
+
target,
|
|
95
|
+
options=(),
|
|
96
|
+
channel_credentials=None,
|
|
97
|
+
call_credentials=None,
|
|
98
|
+
insecure=False,
|
|
99
|
+
compression=None,
|
|
100
|
+
wait_for_ready=None,
|
|
101
|
+
timeout=None,
|
|
102
|
+
metadata=None):
|
|
110
103
|
return grpc.experimental.unary_unary(
|
|
111
104
|
request,
|
|
112
105
|
target,
|
|
113
|
-
|
|
106
|
+
'/hazel.rpc.CameraService/ListCameras',
|
|
114
107
|
camera__pb2.ListCamerasRequest.SerializeToString,
|
|
115
108
|
camera__pb2.ListCamerasResponse.FromString,
|
|
116
109
|
options,
|
|
@@ -121,26 +114,23 @@ class CameraService(object):
|
|
|
121
114
|
wait_for_ready,
|
|
122
115
|
timeout,
|
|
123
116
|
metadata,
|
|
124
|
-
_registered_method=True
|
|
125
|
-
)
|
|
117
|
+
_registered_method=True)
|
|
126
118
|
|
|
127
119
|
@staticmethod
|
|
128
|
-
def StreamCamera(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
metadata=None,
|
|
139
|
-
):
|
|
120
|
+
def StreamCamera(request,
|
|
121
|
+
target,
|
|
122
|
+
options=(),
|
|
123
|
+
channel_credentials=None,
|
|
124
|
+
call_credentials=None,
|
|
125
|
+
insecure=False,
|
|
126
|
+
compression=None,
|
|
127
|
+
wait_for_ready=None,
|
|
128
|
+
timeout=None,
|
|
129
|
+
metadata=None):
|
|
140
130
|
return grpc.experimental.unary_stream(
|
|
141
131
|
request,
|
|
142
132
|
target,
|
|
143
|
-
|
|
133
|
+
'/hazel.rpc.CameraService/StreamCamera',
|
|
144
134
|
camera__pb2.StreamCameraRequest.SerializeToString,
|
|
145
135
|
media__pb2.ImageFrame.FromString,
|
|
146
136
|
options,
|
|
@@ -151,5 +141,4 @@ class CameraService(object):
|
|
|
151
141
|
wait_for_ready,
|
|
152
142
|
timeout,
|
|
153
143
|
metadata,
|
|
154
|
-
_registered_method=True
|
|
155
|
-
)
|
|
144
|
+
_registered_method=True)
|
|
@@ -9,31 +9,35 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
9
9
|
from google.protobuf import runtime_version as _runtime_version
|
|
10
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
|
|
13
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
14
|
-
_runtime_version.Domain.PUBLIC,
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'common.proto'
|
|
15
19
|
)
|
|
16
20
|
# @@protoc_insertion_point(imports)
|
|
17
21
|
|
|
18
22
|
_sym_db = _symbol_database.Default()
|
|
19
23
|
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63ommon.proto\x12\thazel.rpc\"\x16\n\x08\x45ntityId\x12\n\n\x02id\x18\x01 \x01(\x04\"\'\n\x04Vec3\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"2\n\x04Quat\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x12\t\n\x01w\x18\x04 \x01(\x02\"q\n\tTransform\x12!\n\x08position\x18\x01 \x01(\x0b\x32\x0f.hazel.rpc.Vec3\x12!\n\x08rotation\x18\x02 \x01(\x0b\x32\x0f.hazel.rpc.Quat\x12\x1e\n\x05scale\x18\x03 \x01(\x0b\x32\x0f.hazel.rpc.Vec3B\x03\xf8\x01\x01\x62\x06proto3')
|
|
24
28
|
|
|
25
29
|
_globals = globals()
|
|
26
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR,
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common_pb2', _globals)
|
|
28
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
35
|
+
_globals['_ENTITYID']._serialized_start=27
|
|
36
|
+
_globals['_ENTITYID']._serialized_end=49
|
|
37
|
+
_globals['_VEC3']._serialized_start=51
|
|
38
|
+
_globals['_VEC3']._serialized_end=90
|
|
39
|
+
_globals['_QUAT']._serialized_start=92
|
|
40
|
+
_globals['_QUAT']._serialized_end=142
|
|
41
|
+
_globals['_TRANSFORM']._serialized_start=144
|
|
42
|
+
_globals['_TRANSFORM']._serialized_end=257
|
|
39
43
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -4,24 +4,21 @@ import grpc
|
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
GRPC_GENERATED_VERSION =
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
8
8
|
GRPC_VERSION = grpc.__version__
|
|
9
9
|
_version_not_supported = False
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
from grpc._utilities import first_version_is_lower
|
|
13
|
-
|
|
14
|
-
_version_not_supported = first_version_is_lower(
|
|
15
|
-
GRPC_VERSION, GRPC_GENERATED_VERSION
|
|
16
|
-
)
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
14
|
except ImportError:
|
|
18
15
|
_version_not_supported = True
|
|
19
16
|
|
|
20
17
|
if _version_not_supported:
|
|
21
18
|
raise RuntimeError(
|
|
22
|
-
f
|
|
23
|
-
+
|
|
24
|
-
+ f
|
|
25
|
-
+ f
|
|
26
|
-
+ f
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in common_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
24
|
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: hazel_rpc.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'hazel_rpc.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from . import common_pb2 as common__pb2
|
|
26
|
+
from . import scene_pb2 as scene__pb2
|
|
27
|
+
from . import mujoco_pb2 as mujoco__pb2
|
|
28
|
+
from . import telemetry_pb2 as telemetry__pb2
|
|
29
|
+
from . import media_pb2 as media__pb2
|
|
30
|
+
from . import agent_pb2 as agent__pb2
|
|
31
|
+
from . import viewport_pb2 as viewport__pb2
|
|
32
|
+
from . import camera_pb2 as camera__pb2
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fhazel_rpc.proto\x12\thazel.rpc\x1a\x0c\x63ommon.proto\x1a\x0bscene.proto\x1a\x0cmujoco.proto\x1a\x0ftelemetry.proto\x1a\x0bmedia.proto\x1a\x0b\x61gent.proto\x1a\x0eviewport.proto\x1a\x0c\x63\x61mera.protoB\x03\xf8\x01\x01\x62\x06proto3')
|
|
36
|
+
|
|
37
|
+
_globals = globals()
|
|
38
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
39
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hazel_rpc_pb2', _globals)
|
|
40
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
41
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
42
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
43
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in hazel_rpc_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -9,27 +9,31 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
9
9
|
from google.protobuf import runtime_version as _runtime_version
|
|
10
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
|
|
13
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
14
|
-
_runtime_version.Domain.PUBLIC,
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'media.proto'
|
|
15
19
|
)
|
|
16
20
|
# @@protoc_insertion_point(imports)
|
|
17
21
|
|
|
18
22
|
_sym_db = _symbol_database.Default()
|
|
19
23
|
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bmedia.proto\x12\thazel.rpc\"\x87\x01\n\nImageFrame\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x10\n\x08\x63hannels\x18\x04 \x01(\r\x12\x0e\n\x06\x66ormat\x18\x05 \x01(\t\x12\x14\n\x0ctimestamp_ms\x18\x06 \x01(\x04\x12\x14\n\x0c\x66rame_number\x18\x07 \x01(\r\"E\n\x0fNamedImageFrame\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x05\x66rame\x18\x02 \x01(\x0b\x32\x15.hazel.rpc.ImageFrameB\x03\xf8\x01\x01\x62\x06proto3')
|
|
24
28
|
|
|
25
29
|
_globals = globals()
|
|
26
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR,
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'media_pb2', _globals)
|
|
28
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
35
|
+
_globals['_IMAGEFRAME']._serialized_start=27
|
|
36
|
+
_globals['_IMAGEFRAME']._serialized_end=162
|
|
37
|
+
_globals['_NAMEDIMAGEFRAME']._serialized_start=164
|
|
38
|
+
_globals['_NAMEDIMAGEFRAME']._serialized_end=233
|
|
35
39
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -4,24 +4,21 @@ import grpc
|
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
GRPC_GENERATED_VERSION =
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
8
8
|
GRPC_VERSION = grpc.__version__
|
|
9
9
|
_version_not_supported = False
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
from grpc._utilities import first_version_is_lower
|
|
13
|
-
|
|
14
|
-
_version_not_supported = first_version_is_lower(
|
|
15
|
-
GRPC_VERSION, GRPC_GENERATED_VERSION
|
|
16
|
-
)
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
14
|
except ImportError:
|
|
18
15
|
_version_not_supported = True
|
|
19
16
|
|
|
20
17
|
if _version_not_supported:
|
|
21
18
|
raise RuntimeError(
|
|
22
|
-
f
|
|
23
|
-
+
|
|
24
|
-
+ f
|
|
25
|
-
+ f
|
|
26
|
-
+ f
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in media_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
24
|
)
|
|
@@ -9,39 +9,43 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
9
9
|
from google.protobuf import runtime_version as _runtime_version
|
|
10
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
|
|
13
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
14
|
-
_runtime_version.Domain.PUBLIC,
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'mujoco.proto'
|
|
15
19
|
)
|
|
16
20
|
# @@protoc_insertion_point(imports)
|
|
17
21
|
|
|
18
22
|
_sym_db = _symbol_database.Default()
|
|
19
23
|
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cmujoco.proto\x12\thazel.rpc\"K\n\nJointState\x12\x11\n\tpositions\x18\x01 \x03(\x02\x12\x12\n\nvelocities\x18\x02 \x03(\x02\x12\n\n\x02nq\x18\x03 \x01(\r\x12\n\n\x02nv\x18\x04 \x01(\r\"*\n\x14GetJointStateRequest\x12\x12\n\nrobot_name\x18\x01 \x01(\t\"_\n\x15GetJointStateResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\x12$\n\x05state\x18\x03 \x01(\x0b\x32\x15.hazel.rpc.JointState\":\n\x12SendControlRequest\x12\x12\n\nrobot_name\x18\x01 \x01(\t\x12\x10\n\x08\x63ontrols\x18\x02 \x03(\x02\"7\n\x13SendControlResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\"*\n\x14GetMujocoInfoRequest\x12\x12\n\nrobot_name\x18\x01 \x01(\t\"\x8a\x01\n\x15GetMujocoInfoResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\n\n\x02nq\x18\x03 \x01(\r\x12\n\n\x02nv\x18\x04 \x01(\r\x12\n\n\x02nu\x18\x05 \x01(\r\x12\x13\n\x0bjoint_names\x18\x06 \x03(\t\x12\x16\n\x0e\x61\x63tuator_names\x18\x07 \x03(\t2\xde\x02\n\rMujocoService\x12R\n\rGetJointState\x12\x1f.hazel.rpc.GetJointStateRequest\x1a .hazel.rpc.GetJointStateResponse\x12L\n\x0bSendControl\x12\x1d.hazel.rpc.SendControlRequest\x1a\x1e.hazel.rpc.SendControlResponse\x12R\n\rGetMujocoInfo\x12\x1f.hazel.rpc.GetMujocoInfoRequest\x1a .hazel.rpc.GetMujocoInfoResponse\x12W\n\x10StreamJointState\x12\x1f.hazel.rpc.GetJointStateRequest\x1a .hazel.rpc.GetJointStateResponse0\x01\x42\x03\xf8\x01\x01\x62\x06proto3')
|
|
24
28
|
|
|
25
29
|
_globals = globals()
|
|
26
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR,
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mujoco_pb2', _globals)
|
|
28
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\370\001\001'
|
|
35
|
+
_globals['_JOINTSTATE']._serialized_start=27
|
|
36
|
+
_globals['_JOINTSTATE']._serialized_end=102
|
|
37
|
+
_globals['_GETJOINTSTATEREQUEST']._serialized_start=104
|
|
38
|
+
_globals['_GETJOINTSTATEREQUEST']._serialized_end=146
|
|
39
|
+
_globals['_GETJOINTSTATERESPONSE']._serialized_start=148
|
|
40
|
+
_globals['_GETJOINTSTATERESPONSE']._serialized_end=243
|
|
41
|
+
_globals['_SENDCONTROLREQUEST']._serialized_start=245
|
|
42
|
+
_globals['_SENDCONTROLREQUEST']._serialized_end=303
|
|
43
|
+
_globals['_SENDCONTROLRESPONSE']._serialized_start=305
|
|
44
|
+
_globals['_SENDCONTROLRESPONSE']._serialized_end=360
|
|
45
|
+
_globals['_GETMUJOCOINFOREQUEST']._serialized_start=362
|
|
46
|
+
_globals['_GETMUJOCOINFOREQUEST']._serialized_end=404
|
|
47
|
+
_globals['_GETMUJOCOINFORESPONSE']._serialized_start=407
|
|
48
|
+
_globals['_GETMUJOCOINFORESPONSE']._serialized_end=545
|
|
49
|
+
_globals['_MUJOCOSERVICE']._serialized_start=548
|
|
50
|
+
_globals['_MUJOCOSERVICE']._serialized_end=898
|
|
47
51
|
# @@protoc_insertion_point(module_scope)
|