|
28 | 28 | from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 |
29 | 29 | from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 |
30 | 30 | import pyreach.common.proto_gen.status_pb2 as status__pb2 |
| 31 | +import pyreach.common.proto_gen.robot_info_pb2 as robot__info__pb2 |
31 | 32 |
|
32 | 33 |
|
33 | 34 | DESCRIPTOR = _descriptor.FileDescriptor( |
|
36 | 37 | syntax='proto2', |
37 | 38 | serialized_options=None, |
38 | 39 | create_key=_descriptor._internal_create_key, |
39 | | - serialized_pb=b'\n\x13robot_control.proto\x12\x19robotics.logging.messages\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0cstatus.proto\"N\n\rControlEntity\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x0f\n\x07part_id\x18\x02 \x01(\t\x12\x19\n\x11\x63ontrol_module_id\x18\x03 \x01(\t\"\x9c\x02\n\rStateMetadata\x12;\n\x04type\x18\x01 \x01(\x0e\x32-.robotics.logging.messages.StateMetadata.Type\x12\x11\n\tsignal_id\x18\x04 \x01(\t\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12@\n\x0emerged_sources\x18\x03 \x03(\x0b\x32(.robotics.logging.messages.ControlEntity\"?\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07REGULAR\x10\x01\x12\n\n\x06MERGED\x10\x02\x12\r\n\tIRREGULAR\x10\x03\"\xfb\x03\n\x0f\x43ommandMetadata\x12\x10\n\x08\x62locking\x18\x02 \x01(\x08\x12*\n\x07timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07updated\x18\x04 \x01(\x08\x12+\n\x08min_time\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\x04type\x18\x07 \x01(\x0e\x32/.robotics.logging.messages.CommandMetadata.Type\x12\x38\n\x06source\x18\x08 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12\x38\n\x06target\x18\t \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12[\n\x11processing_result\x18\n \x01(\x0e\x32@.robotics.logging.messages.ControlModuleCommandProcessing.Result\"B\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x43LIENT\x10\x01\x12\x0b\n\x07VIRTUAL\x10\x02\x12\x10\n\x0c\x45\x43HOED_INPUT\x10\x03J\x04\x08\x05\x10\x06J\x04\x08\x01\x10\x02R\x08internalR\x02id\"\xd0\x01\n\rSystemCommand\x12;\n\x04type\x18\x01 \x01(\x0e\x32-.robotics.logging.messages.SystemCommand.Type\"\x81\x01\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x11\n\rENABLE_MOTION\x10\x01\x12\x12\n\x0e\x44ISABLE_MOTION\x10\x02\x12\x0f\n\x0b\x43LEAR_FAULT\x10\x03\x12\x0f\n\x0bSTOP_MOTION\x10\x04\x12\x10\n\x0cMOVE_TO_HOME\x10\x05\x12\r\n\tFAIL_SAFE\x10\x06\"W\n\x0eRobotCommandId\x12\x0b\n\x03seq\x18\x01 \x01(\x04\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\"\x8f\x01\n\x12RobotCommandResult\x12=\n\ncommand_id\x18\x04 \x01(\x0b\x32).robotics.logging.messages.RobotCommandId\x12!\n\x06status\x18\x02 \x01(\x0b\x32\x11.util.StatusProto\x12\x11\n\tpreempted\x18\x03 \x01(\x08J\x04\x08\x01\x10\x02\"a\n\x1e\x43ontrolModuleCommandProcessing\"?\n\x06Result\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x42YPASS\x10\x01\x12\x0b\n\x07SUCCESS\x10\x02\x12\x0b\n\x07\x46\x41ILURE\x10\x03\"\xfa\x03\n\x0bSystemState\x12\x46\n\x0f\x63ommand_results\x18\x01 \x03(\x0b\x32-.robotics.logging.messages.RobotCommandResult\x12(\n\rdevice_status\x18\x02 \x01(\x0b\x32\x11.util.StatusProto\x12\x16\n\x0emotion_enabled\x18\x03 \x01(\x08\x12\x18\n\x10\x64\x65vice_fail_safe\x18\x04 \x01(\x08\x12\x44\n\x11\x61\x63tive_command_id\x18\x06 \x01(\x0b\x32).robotics.logging.messages.RobotCommandId\x12\x1d\n\x15\x63ontrol_step_time_sec\x18\n \x01(\x02\x12\"\n\x1a\x63ontrol_step_time_exceeded\x18\x0e \x01(\x08\x12<\n\x18\x63ommand_sent_from_client\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16\x63ommand_sent_to_device\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1astate_received_from_device\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampJ\x04\x08\x05\x10\x06' |
| 40 | + serialized_pb=b'\n\x13robot_control.proto\x12\x19robotics.logging.messages\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0cstatus.proto\x1a\x10robot_info.proto\"/\n\x1aRegisterRobotClientRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"q\n\x1bRegisterRobotClientResponse\x12!\n\x06status\x18\x01 \x01(\x0b\x32\x11.util.StatusProto\x12/\n\nrobot_info\x18\x02 \x01(\x0b\x32\x1b.robotics.logging.RobotInfo\"N\n\rControlEntity\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x0f\n\x07part_id\x18\x02 \x01(\t\x12\x19\n\x11\x63ontrol_module_id\x18\x03 \x01(\t\"\x9c\x02\n\rStateMetadata\x12;\n\x04type\x18\x01 \x01(\x0e\x32-.robotics.logging.messages.StateMetadata.Type\x12\x11\n\tsignal_id\x18\x04 \x01(\t\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12@\n\x0emerged_sources\x18\x03 \x03(\x0b\x32(.robotics.logging.messages.ControlEntity\"?\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07REGULAR\x10\x01\x12\n\n\x06MERGED\x10\x02\x12\r\n\tIRREGULAR\x10\x03\"\xfb\x03\n\x0f\x43ommandMetadata\x12\x10\n\x08\x62locking\x18\x02 \x01(\x08\x12*\n\x07timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07updated\x18\x04 \x01(\x08\x12+\n\x08min_time\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\x04type\x18\x07 \x01(\x0e\x32/.robotics.logging.messages.CommandMetadata.Type\x12\x38\n\x06source\x18\x08 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12\x38\n\x06target\x18\t \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\x12[\n\x11processing_result\x18\n \x01(\x0e\x32@.robotics.logging.messages.ControlModuleCommandProcessing.Result\"B\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x43LIENT\x10\x01\x12\x0b\n\x07VIRTUAL\x10\x02\x12\x10\n\x0c\x45\x43HOED_INPUT\x10\x03J\x04\x08\x05\x10\x06J\x04\x08\x01\x10\x02R\x08internalR\x02id\"\xd0\x01\n\rSystemCommand\x12;\n\x04type\x18\x01 \x01(\x0e\x32-.robotics.logging.messages.SystemCommand.Type\"\x81\x01\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x11\n\rENABLE_MOTION\x10\x01\x12\x12\n\x0e\x44ISABLE_MOTION\x10\x02\x12\x0f\n\x0b\x43LEAR_FAULT\x10\x03\x12\x0f\n\x0bSTOP_MOTION\x10\x04\x12\x10\n\x0cMOVE_TO_HOME\x10\x05\x12\r\n\tFAIL_SAFE\x10\x06\"W\n\x0eRobotCommandId\x12\x0b\n\x03seq\x18\x01 \x01(\x04\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32(.robotics.logging.messages.ControlEntity\"\x8f\x01\n\x12RobotCommandResult\x12=\n\ncommand_id\x18\x04 \x01(\x0b\x32).robotics.logging.messages.RobotCommandId\x12!\n\x06status\x18\x02 \x01(\x0b\x32\x11.util.StatusProto\x12\x11\n\tpreempted\x18\x03 \x01(\x08J\x04\x08\x01\x10\x02\"a\n\x1e\x43ontrolModuleCommandProcessing\"?\n\x06Result\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x42YPASS\x10\x01\x12\x0b\n\x07SUCCESS\x10\x02\x12\x0b\n\x07\x46\x41ILURE\x10\x03\"\xfa\x03\n\x0bSystemState\x12\x46\n\x0f\x63ommand_results\x18\x01 \x03(\x0b\x32-.robotics.logging.messages.RobotCommandResult\x12(\n\rdevice_status\x18\x02 \x01(\x0b\x32\x11.util.StatusProto\x12\x16\n\x0emotion_enabled\x18\x03 \x01(\x08\x12\x18\n\x10\x64\x65vice_fail_safe\x18\x04 \x01(\x08\x12\x44\n\x11\x61\x63tive_command_id\x18\x06 \x01(\x0b\x32).robotics.logging.messages.RobotCommandId\x12\x1d\n\x15\x63ontrol_step_time_sec\x18\n \x01(\x02\x12\"\n\x1a\x63ontrol_step_time_exceeded\x18\x0e \x01(\x08\x12<\n\x18\x63ommand_sent_from_client\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16\x63ommand_sent_to_device\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1astate_received_from_device\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampJ\x04\x08\x05\x10\x06' |
40 | 41 | , |
41 | | - dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,status__pb2.DESCRIPTOR,]) |
| 42 | + dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,status__pb2.DESCRIPTOR,robot__info__pb2.DESCRIPTOR,]) |
42 | 43 |
|
43 | 44 |
|
44 | 45 |
|
|
72 | 73 | ], |
73 | 74 | containing_type=None, |
74 | 75 | serialized_options=None, |
75 | | - serialized_start=431, |
76 | | - serialized_end=494, |
| 76 | + serialized_start=613, |
| 77 | + serialized_end=676, |
77 | 78 | ) |
78 | 79 | _sym_db.RegisterEnumDescriptor(_STATEMETADATA_TYPE) |
79 | 80 |
|
|
107 | 108 | ], |
108 | 109 | containing_type=None, |
109 | 110 | serialized_options=None, |
110 | | - serialized_start=912, |
111 | | - serialized_end=978, |
| 111 | + serialized_start=1094, |
| 112 | + serialized_end=1160, |
112 | 113 | ) |
113 | 114 | _sym_db.RegisterEnumDescriptor(_COMMANDMETADATA_TYPE) |
114 | 115 |
|
|
157 | 158 | ], |
158 | 159 | containing_type=None, |
159 | 160 | serialized_options=None, |
160 | | - serialized_start=1086, |
161 | | - serialized_end=1215, |
| 161 | + serialized_start=1268, |
| 162 | + serialized_end=1397, |
162 | 163 | ) |
163 | 164 | _sym_db.RegisterEnumDescriptor(_SYSTEMCOMMAND_TYPE) |
164 | 165 |
|
|
192 | 193 | ], |
193 | 194 | containing_type=None, |
194 | 195 | serialized_options=None, |
195 | | - serialized_start=1486, |
196 | | - serialized_end=1549, |
| 196 | + serialized_start=1668, |
| 197 | + serialized_end=1731, |
197 | 198 | ) |
198 | 199 | _sym_db.RegisterEnumDescriptor(_CONTROLMODULECOMMANDPROCESSING_RESULT) |
199 | 200 |
|
200 | 201 |
|
| 202 | +_REGISTERROBOTCLIENTREQUEST = _descriptor.Descriptor( |
| 203 | + name='RegisterRobotClientRequest', |
| 204 | + full_name='robotics.logging.messages.RegisterRobotClientRequest', |
| 205 | + filename=None, |
| 206 | + file=DESCRIPTOR, |
| 207 | + containing_type=None, |
| 208 | + create_key=_descriptor._internal_create_key, |
| 209 | + fields=[ |
| 210 | + _descriptor.FieldDescriptor( |
| 211 | + name='client_id', full_name='robotics.logging.messages.RegisterRobotClientRequest.client_id', index=0, |
| 212 | + number=1, type=9, cpp_type=9, label=1, |
| 213 | + has_default_value=False, default_value=b"".decode('utf-8'), |
| 214 | + message_type=None, enum_type=None, containing_type=None, |
| 215 | + is_extension=False, extension_scope=None, |
| 216 | + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 217 | + ], |
| 218 | + extensions=[ |
| 219 | + ], |
| 220 | + nested_types=[], |
| 221 | + enum_types=[ |
| 222 | + ], |
| 223 | + serialized_options=None, |
| 224 | + is_extendable=False, |
| 225 | + syntax='proto2', |
| 226 | + extension_ranges=[], |
| 227 | + oneofs=[ |
| 228 | + ], |
| 229 | + serialized_start=147, |
| 230 | + serialized_end=194, |
| 231 | +) |
| 232 | + |
| 233 | + |
| 234 | +_REGISTERROBOTCLIENTRESPONSE = _descriptor.Descriptor( |
| 235 | + name='RegisterRobotClientResponse', |
| 236 | + full_name='robotics.logging.messages.RegisterRobotClientResponse', |
| 237 | + filename=None, |
| 238 | + file=DESCRIPTOR, |
| 239 | + containing_type=None, |
| 240 | + create_key=_descriptor._internal_create_key, |
| 241 | + fields=[ |
| 242 | + _descriptor.FieldDescriptor( |
| 243 | + name='status', full_name='robotics.logging.messages.RegisterRobotClientResponse.status', index=0, |
| 244 | + number=1, type=11, cpp_type=10, label=1, |
| 245 | + has_default_value=False, default_value=None, |
| 246 | + message_type=None, enum_type=None, containing_type=None, |
| 247 | + is_extension=False, extension_scope=None, |
| 248 | + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 249 | + _descriptor.FieldDescriptor( |
| 250 | + name='robot_info', full_name='robotics.logging.messages.RegisterRobotClientResponse.robot_info', index=1, |
| 251 | + number=2, type=11, cpp_type=10, label=1, |
| 252 | + has_default_value=False, default_value=None, |
| 253 | + message_type=None, enum_type=None, containing_type=None, |
| 254 | + is_extension=False, extension_scope=None, |
| 255 | + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), |
| 256 | + ], |
| 257 | + extensions=[ |
| 258 | + ], |
| 259 | + nested_types=[], |
| 260 | + enum_types=[ |
| 261 | + ], |
| 262 | + serialized_options=None, |
| 263 | + is_extendable=False, |
| 264 | + syntax='proto2', |
| 265 | + extension_ranges=[], |
| 266 | + oneofs=[ |
| 267 | + ], |
| 268 | + serialized_start=196, |
| 269 | + serialized_end=309, |
| 270 | +) |
| 271 | + |
| 272 | + |
201 | 273 | _CONTROLENTITY = _descriptor.Descriptor( |
202 | 274 | name='ControlEntity', |
203 | 275 | full_name='robotics.logging.messages.ControlEntity', |
|
239 | 311 | extension_ranges=[], |
240 | 312 | oneofs=[ |
241 | 313 | ], |
242 | | - serialized_start=129, |
243 | | - serialized_end=207, |
| 314 | + serialized_start=311, |
| 315 | + serialized_end=389, |
244 | 316 | ) |
245 | 317 |
|
246 | 318 |
|
|
293 | 365 | extension_ranges=[], |
294 | 366 | oneofs=[ |
295 | 367 | ], |
296 | | - serialized_start=210, |
297 | | - serialized_end=494, |
| 368 | + serialized_start=392, |
| 369 | + serialized_end=676, |
298 | 370 | ) |
299 | 371 |
|
300 | 372 |
|
|
375 | 447 | extension_ranges=[], |
376 | 448 | oneofs=[ |
377 | 449 | ], |
378 | | - serialized_start=497, |
379 | | - serialized_end=1004, |
| 450 | + serialized_start=679, |
| 451 | + serialized_end=1186, |
380 | 452 | ) |
381 | 453 |
|
382 | 454 |
|
|
408 | 480 | extension_ranges=[], |
409 | 481 | oneofs=[ |
410 | 482 | ], |
411 | | - serialized_start=1007, |
412 | | - serialized_end=1215, |
| 483 | + serialized_start=1189, |
| 484 | + serialized_end=1397, |
413 | 485 | ) |
414 | 486 |
|
415 | 487 |
|
|
447 | 519 | extension_ranges=[], |
448 | 520 | oneofs=[ |
449 | 521 | ], |
450 | | - serialized_start=1217, |
451 | | - serialized_end=1304, |
| 522 | + serialized_start=1399, |
| 523 | + serialized_end=1486, |
452 | 524 | ) |
453 | 525 |
|
454 | 526 |
|
|
493 | 565 | extension_ranges=[], |
494 | 566 | oneofs=[ |
495 | 567 | ], |
496 | | - serialized_start=1307, |
497 | | - serialized_end=1450, |
| 568 | + serialized_start=1489, |
| 569 | + serialized_end=1632, |
498 | 570 | ) |
499 | 571 |
|
500 | 572 |
|
|
519 | 591 | extension_ranges=[], |
520 | 592 | oneofs=[ |
521 | 593 | ], |
522 | | - serialized_start=1452, |
523 | | - serialized_end=1549, |
| 594 | + serialized_start=1634, |
| 595 | + serialized_end=1731, |
524 | 596 | ) |
525 | 597 |
|
526 | 598 |
|
|
614 | 686 | extension_ranges=[], |
615 | 687 | oneofs=[ |
616 | 688 | ], |
617 | | - serialized_start=1552, |
618 | | - serialized_end=2058, |
| 689 | + serialized_start=1734, |
| 690 | + serialized_end=2240, |
619 | 691 | ) |
620 | 692 |
|
| 693 | +_REGISTERROBOTCLIENTRESPONSE.fields_by_name['status'].message_type = status__pb2._STATUSPROTO |
| 694 | +_REGISTERROBOTCLIENTRESPONSE.fields_by_name['robot_info'].message_type = robot__info__pb2._ROBOTINFO |
621 | 695 | _STATEMETADATA.fields_by_name['type'].enum_type = _STATEMETADATA_TYPE |
622 | 696 | _STATEMETADATA.fields_by_name['source'].message_type = _CONTROLENTITY |
623 | 697 | _STATEMETADATA.fields_by_name['merged_sources'].message_type = _CONTROLENTITY |
|
641 | 715 | _SYSTEMSTATE.fields_by_name['command_sent_from_client'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP |
642 | 716 | _SYSTEMSTATE.fields_by_name['command_sent_to_device'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP |
643 | 717 | _SYSTEMSTATE.fields_by_name['state_received_from_device'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP |
| 718 | +DESCRIPTOR.message_types_by_name['RegisterRobotClientRequest'] = _REGISTERROBOTCLIENTREQUEST |
| 719 | +DESCRIPTOR.message_types_by_name['RegisterRobotClientResponse'] = _REGISTERROBOTCLIENTRESPONSE |
644 | 720 | DESCRIPTOR.message_types_by_name['ControlEntity'] = _CONTROLENTITY |
645 | 721 | DESCRIPTOR.message_types_by_name['StateMetadata'] = _STATEMETADATA |
646 | 722 | DESCRIPTOR.message_types_by_name['CommandMetadata'] = _COMMANDMETADATA |
|
651 | 727 | DESCRIPTOR.message_types_by_name['SystemState'] = _SYSTEMSTATE |
652 | 728 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
653 | 729 |
|
| 730 | +RegisterRobotClientRequest = _reflection.GeneratedProtocolMessageType('RegisterRobotClientRequest', (_message.Message,), { |
| 731 | + 'DESCRIPTOR' : _REGISTERROBOTCLIENTREQUEST, |
| 732 | + '__module__' : 'robot_control_pb2' |
| 733 | + # @@protoc_insertion_point(class_scope:robotics.logging.messages.RegisterRobotClientRequest) |
| 734 | + }) |
| 735 | +_sym_db.RegisterMessage(RegisterRobotClientRequest) |
| 736 | + |
| 737 | +RegisterRobotClientResponse = _reflection.GeneratedProtocolMessageType('RegisterRobotClientResponse', (_message.Message,), { |
| 738 | + 'DESCRIPTOR' : _REGISTERROBOTCLIENTRESPONSE, |
| 739 | + '__module__' : 'robot_control_pb2' |
| 740 | + # @@protoc_insertion_point(class_scope:robotics.logging.messages.RegisterRobotClientResponse) |
| 741 | + }) |
| 742 | +_sym_db.RegisterMessage(RegisterRobotClientResponse) |
| 743 | + |
654 | 744 | ControlEntity = _reflection.GeneratedProtocolMessageType('ControlEntity', (_message.Message,), { |
655 | 745 | 'DESCRIPTOR' : _CONTROLENTITY, |
656 | 746 | '__module__' : 'robot_control_pb2' |
|
0 commit comments