# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: messages.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import config_pb2 as config__pb2 from config_pb2 import * DESCRIPTOR = _descriptor.FileDescriptor( name='messages.proto', package='ugv.messages', syntax='proto3', serialized_options=_b('H\003'), serialized_pb=_b('\n\x0emessages.proto\x12\x0cugv.messages\x1a\x0c\x63onfig.proto\"5\n\x0eTargetLocation\x12\x10\n\x08latitude\x18\x01 \x01(\x02\x12\x11\n\tlongitude\x18\x02 \x01(\x02\"V\n\x08Location\x12\x13\n\x0b\x66ix_quality\x18\x01 \x01(\r\x12\x10\n\x08latitude\x18\x02 \x01(\x02\x12\x11\n\tlongitude\x18\x03 \x01(\x02\x12\x10\n\x08\x61ltitude\x18\x04 \x01(\x02\"\xac\x01\n\nUGV_Status\x12&\n\x05state\x18\x01 \x01(\x0e\x32\x17.ugv.messages.UGV_State\x12(\n\x08location\x18\x02 \x01(\x0b\x32\x16.ugv.messages.Location\x12\x11\n\tyaw_angle\x18\x03 \x01(\x02\x12\x13\n\x0bpitch_angle\x18\x04 \x01(\x02\x12\x12\n\nroll_angle\x18\x05 \x01(\x02\x12\x10\n\x08is_still\x18\x06 \x01(\x08\"_\n\x0bUGV_Message\x12*\n\x06status\x18\x01 \x01(\x0b\x32\x18.ugv.messages.UGV_StatusH\x00\x12\x15\n\x0b\x63ommand_ack\x18\x02 \x01(\rH\x00\x42\r\n\x0bugv_message\"2\n\x10\x44riveHeadingData\x12\x0f\n\x07heading\x18\x01 \x01(\x02\x12\r\n\x05power\x18\x02 \x01(\x02\"\xea\x01\n\rGroundCommand\x12\n\n\x02id\x18\x01 \x01(\r\x12-\n\x04type\x18\x02 \x01(\x0e\x32\x1f.ugv.messages.GroundCommandType\x12\x37\n\rdrive_heading\x18\x03 \x01(\x0b\x32\x1e.ugv.messages.DriveHeadingDataH\x00\x12\x37\n\x0ftarget_location\x18\x04 \x01(\x0b\x32\x1c.ugv.messages.TargetLocationH\x00\x12$\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x12.ugv.config.ConfigH\x00\x42\x06\n\x04\x64\x61ta\"Q\n\rGroundMessage\x12.\n\x07\x63ommand\x18\x01 \x01(\x0b\x32\x1b.ugv.messages.GroundCommandH\x00\x42\x10\n\x0eground_message*\xa6\x01\n\tUGV_State\x12\x0e\n\nSTATE_IDLE\x10\x00\x12\x12\n\x0eSTATE_AQUIRING\x10\x01\x12\x11\n\rSTATE_DRIVING\x10\x02\x12\x12\n\x0eSTATE_FINISHED\x10\x03\x12\x0e\n\nSTATE_TEST\x10\x04\x12\x12\n\x0eSTATE_FLIPPING\x10\x05\x12\x11\n\rSTATE_TURNING\x10\x06\x12\x17\n\x13STATE_DRIVE_HEADING\x10\x07*\xac\x01\n\x11GroundCommandType\x12\x0f\n\x0b\x43MD_DISABLE\x10\x00\x12\x17\n\x13\x43MD_DRIVE_TO_TARGET\x10\x01\x12\x0c\n\x08\x43MD_TEST\x10\x02\x12\x15\n\x11\x43MD_DRIVE_HEADING\x10\x03\x12\x12\n\x0e\x43MD_SET_TARGET\x10\x04\x12\x12\n\x0e\x43MD_SET_CONFIG\x10\x05\x12\x12\n\x0e\x43MD_GET_STATUS\x10\x06\x12\x0c\n\x08\x43MD_PING\x10\x07\x42\x02H\x03P\x00\x62\x06proto3') , dependencies=[config__pb2.DESCRIPTOR,], public_dependencies=[config__pb2.DESCRIPTOR,]) _UGV_STATE = _descriptor.EnumDescriptor( name='UGV_State', full_name='ugv.messages.UGV_State', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='STATE_IDLE', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_AQUIRING', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_DRIVING', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_FINISHED', index=3, number=3, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_TEST', index=4, number=4, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_FLIPPING', index=5, number=5, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_TURNING', index=6, number=6, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='STATE_DRIVE_HEADING', index=7, number=7, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=834, serialized_end=1000, ) _sym_db.RegisterEnumDescriptor(_UGV_STATE) UGV_State = enum_type_wrapper.EnumTypeWrapper(_UGV_STATE) _GROUNDCOMMANDTYPE = _descriptor.EnumDescriptor( name='GroundCommandType', full_name='ugv.messages.GroundCommandType', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='CMD_DISABLE', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_DRIVE_TO_TARGET', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_TEST', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_DRIVE_HEADING', index=3, number=3, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_SET_TARGET', index=4, number=4, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_SET_CONFIG', index=5, number=5, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_GET_STATUS', index=6, number=6, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='CMD_PING', index=7, number=7, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=1003, serialized_end=1175, ) _sym_db.RegisterEnumDescriptor(_GROUNDCOMMANDTYPE) GroundCommandType = enum_type_wrapper.EnumTypeWrapper(_GROUNDCOMMANDTYPE) STATE_IDLE = 0 STATE_AQUIRING = 1 STATE_DRIVING = 2 STATE_FINISHED = 3 STATE_TEST = 4 STATE_FLIPPING = 5 STATE_TURNING = 6 STATE_DRIVE_HEADING = 7 CMD_DISABLE = 0 CMD_DRIVE_TO_TARGET = 1 CMD_TEST = 2 CMD_DRIVE_HEADING = 3 CMD_SET_TARGET = 4 CMD_SET_CONFIG = 5 CMD_GET_STATUS = 6 CMD_PING = 7 _TARGETLOCATION = _descriptor.Descriptor( name='TargetLocation', full_name='ugv.messages.TargetLocation', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='latitude', full_name='ugv.messages.TargetLocation.latitude', index=0, number=1, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='longitude', full_name='ugv.messages.TargetLocation.longitude', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=46, serialized_end=99, ) _LOCATION = _descriptor.Descriptor( name='Location', full_name='ugv.messages.Location', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='fix_quality', full_name='ugv.messages.Location.fix_quality', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='latitude', full_name='ugv.messages.Location.latitude', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='longitude', full_name='ugv.messages.Location.longitude', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='altitude', full_name='ugv.messages.Location.altitude', index=3, number=4, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=101, serialized_end=187, ) _UGV_STATUS = _descriptor.Descriptor( name='UGV_Status', full_name='ugv.messages.UGV_Status', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='state', full_name='ugv.messages.UGV_Status.state', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='location', full_name='ugv.messages.UGV_Status.location', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='yaw_angle', full_name='ugv.messages.UGV_Status.yaw_angle', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='pitch_angle', full_name='ugv.messages.UGV_Status.pitch_angle', index=3, number=4, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='roll_angle', full_name='ugv.messages.UGV_Status.roll_angle', index=4, number=5, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='is_still', full_name='ugv.messages.UGV_Status.is_still', index=5, number=6, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=190, serialized_end=362, ) _UGV_MESSAGE = _descriptor.Descriptor( name='UGV_Message', full_name='ugv.messages.UGV_Message', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='status', full_name='ugv.messages.UGV_Message.status', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='command_ack', full_name='ugv.messages.UGV_Message.command_ack', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='ugv_message', full_name='ugv.messages.UGV_Message.ugv_message', index=0, containing_type=None, fields=[]), ], serialized_start=364, serialized_end=459, ) _DRIVEHEADINGDATA = _descriptor.Descriptor( name='DriveHeadingData', full_name='ugv.messages.DriveHeadingData', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='heading', full_name='ugv.messages.DriveHeadingData.heading', index=0, number=1, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='power', full_name='ugv.messages.DriveHeadingData.power', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=461, serialized_end=511, ) _GROUNDCOMMAND = _descriptor.Descriptor( name='GroundCommand', full_name='ugv.messages.GroundCommand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='ugv.messages.GroundCommand.id', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='type', full_name='ugv.messages.GroundCommand.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='drive_heading', full_name='ugv.messages.GroundCommand.drive_heading', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='target_location', full_name='ugv.messages.GroundCommand.target_location', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='config', full_name='ugv.messages.GroundCommand.config', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='data', full_name='ugv.messages.GroundCommand.data', index=0, containing_type=None, fields=[]), ], serialized_start=514, serialized_end=748, ) _GROUNDMESSAGE = _descriptor.Descriptor( name='GroundMessage', full_name='ugv.messages.GroundMessage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='command', full_name='ugv.messages.GroundMessage.command', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='ground_message', full_name='ugv.messages.GroundMessage.ground_message', index=0, containing_type=None, fields=[]), ], serialized_start=750, serialized_end=831, ) _UGV_STATUS.fields_by_name['state'].enum_type = _UGV_STATE _UGV_STATUS.fields_by_name['location'].message_type = _LOCATION _UGV_MESSAGE.fields_by_name['status'].message_type = _UGV_STATUS _UGV_MESSAGE.oneofs_by_name['ugv_message'].fields.append( _UGV_MESSAGE.fields_by_name['status']) _UGV_MESSAGE.fields_by_name['status'].containing_oneof = _UGV_MESSAGE.oneofs_by_name['ugv_message'] _UGV_MESSAGE.oneofs_by_name['ugv_message'].fields.append( _UGV_MESSAGE.fields_by_name['command_ack']) _UGV_MESSAGE.fields_by_name['command_ack'].containing_oneof = _UGV_MESSAGE.oneofs_by_name['ugv_message'] _GROUNDCOMMAND.fields_by_name['type'].enum_type = _GROUNDCOMMANDTYPE _GROUNDCOMMAND.fields_by_name['drive_heading'].message_type = _DRIVEHEADINGDATA _GROUNDCOMMAND.fields_by_name['target_location'].message_type = _TARGETLOCATION _GROUNDCOMMAND.fields_by_name['config'].message_type = config__pb2._CONFIG _GROUNDCOMMAND.oneofs_by_name['data'].fields.append( _GROUNDCOMMAND.fields_by_name['drive_heading']) _GROUNDCOMMAND.fields_by_name['drive_heading'].containing_oneof = _GROUNDCOMMAND.oneofs_by_name['data'] _GROUNDCOMMAND.oneofs_by_name['data'].fields.append( _GROUNDCOMMAND.fields_by_name['target_location']) _GROUNDCOMMAND.fields_by_name['target_location'].containing_oneof = _GROUNDCOMMAND.oneofs_by_name['data'] _GROUNDCOMMAND.oneofs_by_name['data'].fields.append( _GROUNDCOMMAND.fields_by_name['config']) _GROUNDCOMMAND.fields_by_name['config'].containing_oneof = _GROUNDCOMMAND.oneofs_by_name['data'] _GROUNDMESSAGE.fields_by_name['command'].message_type = _GROUNDCOMMAND _GROUNDMESSAGE.oneofs_by_name['ground_message'].fields.append( _GROUNDMESSAGE.fields_by_name['command']) _GROUNDMESSAGE.fields_by_name['command'].containing_oneof = _GROUNDMESSAGE.oneofs_by_name['ground_message'] DESCRIPTOR.message_types_by_name['TargetLocation'] = _TARGETLOCATION DESCRIPTOR.message_types_by_name['Location'] = _LOCATION DESCRIPTOR.message_types_by_name['UGV_Status'] = _UGV_STATUS DESCRIPTOR.message_types_by_name['UGV_Message'] = _UGV_MESSAGE DESCRIPTOR.message_types_by_name['DriveHeadingData'] = _DRIVEHEADINGDATA DESCRIPTOR.message_types_by_name['GroundCommand'] = _GROUNDCOMMAND DESCRIPTOR.message_types_by_name['GroundMessage'] = _GROUNDMESSAGE DESCRIPTOR.enum_types_by_name['UGV_State'] = _UGV_STATE DESCRIPTOR.enum_types_by_name['GroundCommandType'] = _GROUNDCOMMANDTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) TargetLocation = _reflection.GeneratedProtocolMessageType('TargetLocation', (_message.Message,), dict( DESCRIPTOR = _TARGETLOCATION, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.TargetLocation) )) _sym_db.RegisterMessage(TargetLocation) Location = _reflection.GeneratedProtocolMessageType('Location', (_message.Message,), dict( DESCRIPTOR = _LOCATION, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.Location) )) _sym_db.RegisterMessage(Location) UGV_Status = _reflection.GeneratedProtocolMessageType('UGV_Status', (_message.Message,), dict( DESCRIPTOR = _UGV_STATUS, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.UGV_Status) )) _sym_db.RegisterMessage(UGV_Status) UGV_Message = _reflection.GeneratedProtocolMessageType('UGV_Message', (_message.Message,), dict( DESCRIPTOR = _UGV_MESSAGE, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.UGV_Message) )) _sym_db.RegisterMessage(UGV_Message) DriveHeadingData = _reflection.GeneratedProtocolMessageType('DriveHeadingData', (_message.Message,), dict( DESCRIPTOR = _DRIVEHEADINGDATA, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.DriveHeadingData) )) _sym_db.RegisterMessage(DriveHeadingData) GroundCommand = _reflection.GeneratedProtocolMessageType('GroundCommand', (_message.Message,), dict( DESCRIPTOR = _GROUNDCOMMAND, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.GroundCommand) )) _sym_db.RegisterMessage(GroundCommand) GroundMessage = _reflection.GeneratedProtocolMessageType('GroundMessage', (_message.Message,), dict( DESCRIPTOR = _GROUNDMESSAGE, __module__ = 'messages_pb2' # @@protoc_insertion_point(class_scope:ugv.messages.GroundMessage) )) _sym_db.RegisterMessage(GroundMessage) DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope)