Declare DriveModeMessage
This commit is contained in:
parent
f80deda38b
commit
e4d9ad61d6
@ -24,12 +24,22 @@ message ThrottleMessage {
|
|||||||
FrameRef frame_ref = 3;
|
FrameRef frame_ref = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ObjectsMessage{
|
message DriveModeMessage {
|
||||||
|
DriveMode drive_mode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum DriveMode {
|
||||||
|
INVALID = 0;
|
||||||
|
USER = 1;
|
||||||
|
PILOT = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ObjectsMessage {
|
||||||
repeated Object objects = 1;
|
repeated Object objects = 1;
|
||||||
FrameRef frame_ref = 2;
|
FrameRef frame_ref = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Object{
|
message Object {
|
||||||
TypeObject type = 1;
|
TypeObject type = 1;
|
||||||
int32 lLeft = 2;
|
int32 lLeft = 2;
|
||||||
int32 up = 3;
|
int32 up = 3;
|
||||||
@ -38,7 +48,7 @@ message Object{
|
|||||||
float confidence = 6;
|
float confidence = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum TypeObject{
|
enum TypeObject {
|
||||||
ANY = 0;
|
ANY = 0;
|
||||||
CAR = 1;
|
CAR = 1;
|
||||||
BUMP = 2;
|
BUMP = 2;
|
||||||
|
@ -20,6 +20,34 @@ var _ = math.Inf
|
|||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
|
type DriveMode int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
DriveMode_INVALID DriveMode = 0
|
||||||
|
DriveMode_USER DriveMode = 1
|
||||||
|
DriveMode_PILOT DriveMode = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
var DriveMode_name = map[int32]string{
|
||||||
|
0: "INVALID",
|
||||||
|
1: "USER",
|
||||||
|
2: "PILOT",
|
||||||
|
}
|
||||||
|
|
||||||
|
var DriveMode_value = map[string]int32{
|
||||||
|
"INVALID": 0,
|
||||||
|
"USER": 1,
|
||||||
|
"PILOT": 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x DriveMode) String() string {
|
||||||
|
return proto.EnumName(DriveMode_name, int32(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (DriveMode) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_8ec31f2d2a3db598, []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
type TypeObject int32
|
type TypeObject int32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -48,7 +76,7 @@ func (x TypeObject) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (TypeObject) EnumDescriptor() ([]byte, []int) {
|
func (TypeObject) EnumDescriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_8ec31f2d2a3db598, []int{0}
|
return fileDescriptor_8ec31f2d2a3db598, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
type FrameRef struct {
|
type FrameRef struct {
|
||||||
@ -255,6 +283,45 @@ func (m *ThrottleMessage) GetFrameRef() *FrameRef {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DriveModeMessage struct {
|
||||||
|
DriveMode DriveMode `protobuf:"varint,1,opt,name=drive_mode,json=driveMode,proto3,enum=robocar.events.DriveMode" json:"drive_mode,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DriveModeMessage) Reset() { *m = DriveModeMessage{} }
|
||||||
|
func (m *DriveModeMessage) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*DriveModeMessage) ProtoMessage() {}
|
||||||
|
func (*DriveModeMessage) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_8ec31f2d2a3db598, []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DriveModeMessage) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_DriveModeMessage.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *DriveModeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DriveModeMessage.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DriveModeMessage) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DriveModeMessage.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DriveModeMessage) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DriveModeMessage.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DriveModeMessage) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DriveModeMessage.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DriveModeMessage proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DriveModeMessage) GetDriveMode() DriveMode {
|
||||||
|
if m != nil {
|
||||||
|
return m.DriveMode
|
||||||
|
}
|
||||||
|
return DriveMode_INVALID
|
||||||
|
}
|
||||||
|
|
||||||
type ObjectsMessage struct {
|
type ObjectsMessage struct {
|
||||||
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
|
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
|
||||||
FrameRef *FrameRef `protobuf:"bytes,2,opt,name=frame_ref,json=frameRef,proto3" json:"frame_ref,omitempty"`
|
FrameRef *FrameRef `protobuf:"bytes,2,opt,name=frame_ref,json=frameRef,proto3" json:"frame_ref,omitempty"`
|
||||||
@ -267,7 +334,7 @@ func (m *ObjectsMessage) Reset() { *m = ObjectsMessage{} }
|
|||||||
func (m *ObjectsMessage) String() string { return proto.CompactTextString(m) }
|
func (m *ObjectsMessage) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ObjectsMessage) ProtoMessage() {}
|
func (*ObjectsMessage) ProtoMessage() {}
|
||||||
func (*ObjectsMessage) Descriptor() ([]byte, []int) {
|
func (*ObjectsMessage) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_8ec31f2d2a3db598, []int{4}
|
return fileDescriptor_8ec31f2d2a3db598, []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ObjectsMessage) XXX_Unmarshal(b []byte) error {
|
func (m *ObjectsMessage) XXX_Unmarshal(b []byte) error {
|
||||||
@ -318,7 +385,7 @@ func (m *Object) Reset() { *m = Object{} }
|
|||||||
func (m *Object) String() string { return proto.CompactTextString(m) }
|
func (m *Object) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Object) ProtoMessage() {}
|
func (*Object) ProtoMessage() {}
|
||||||
func (*Object) Descriptor() ([]byte, []int) {
|
func (*Object) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_8ec31f2d2a3db598, []int{5}
|
return fileDescriptor_8ec31f2d2a3db598, []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Object) XXX_Unmarshal(b []byte) error {
|
func (m *Object) XXX_Unmarshal(b []byte) error {
|
||||||
@ -382,11 +449,13 @@ func (m *Object) GetConfidence() float32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
proto.RegisterEnum("robocar.events.DriveMode", DriveMode_name, DriveMode_value)
|
||||||
proto.RegisterEnum("robocar.events.TypeObject", TypeObject_name, TypeObject_value)
|
proto.RegisterEnum("robocar.events.TypeObject", TypeObject_name, TypeObject_value)
|
||||||
proto.RegisterType((*FrameRef)(nil), "robocar.events.FrameRef")
|
proto.RegisterType((*FrameRef)(nil), "robocar.events.FrameRef")
|
||||||
proto.RegisterType((*FrameMessage)(nil), "robocar.events.FrameMessage")
|
proto.RegisterType((*FrameMessage)(nil), "robocar.events.FrameMessage")
|
||||||
proto.RegisterType((*SteeringMessage)(nil), "robocar.events.SteeringMessage")
|
proto.RegisterType((*SteeringMessage)(nil), "robocar.events.SteeringMessage")
|
||||||
proto.RegisterType((*ThrottleMessage)(nil), "robocar.events.ThrottleMessage")
|
proto.RegisterType((*ThrottleMessage)(nil), "robocar.events.ThrottleMessage")
|
||||||
|
proto.RegisterType((*DriveModeMessage)(nil), "robocar.events.DriveModeMessage")
|
||||||
proto.RegisterType((*ObjectsMessage)(nil), "robocar.events.ObjectsMessage")
|
proto.RegisterType((*ObjectsMessage)(nil), "robocar.events.ObjectsMessage")
|
||||||
proto.RegisterType((*Object)(nil), "robocar.events.Object")
|
proto.RegisterType((*Object)(nil), "robocar.events.Object")
|
||||||
}
|
}
|
||||||
@ -394,29 +463,33 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("events/events.proto", fileDescriptor_8ec31f2d2a3db598) }
|
func init() { proto.RegisterFile("events/events.proto", fileDescriptor_8ec31f2d2a3db598) }
|
||||||
|
|
||||||
var fileDescriptor_8ec31f2d2a3db598 = []byte{
|
var fileDescriptor_8ec31f2d2a3db598 = []byte{
|
||||||
// 383 bytes of a gzipped FileDescriptorProto
|
// 446 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x4d, 0x6f, 0x9b, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xcf, 0x6b, 0xdb, 0x30,
|
||||||
0x10, 0x2d, 0xcb, 0x87, 0xf1, 0xd8, 0xa2, 0x68, 0x5b, 0x59, 0xc8, 0x87, 0xca, 0xf2, 0xc9, 0xea,
|
0x18, 0xad, 0x15, 0xdb, 0xb1, 0xbf, 0x94, 0xcc, 0x68, 0xa3, 0x78, 0x3d, 0x8c, 0x92, 0x53, 0x28,
|
||||||
0x81, 0x56, 0x54, 0xfd, 0x01, 0x76, 0xa5, 0x9e, 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0x8f, 0x00, 0xfe, 0xd6, 0xa6, 0x5d, 0xe8,
|
||||||
|
0x8c, 0xe7, 0xdf, 0xa3, 0x23, 0x35, 0x7c, 0x1e, 0x2b, 0x69, 0x00, 0xee, 0xc5, 0xcd, 0x6c, 0x11,
|
||||||
|
0x11, 0x35, 0x2d, 0x94, 0xa7, 0x73, 0x11, 0xfc, 0xf0, 0xcd, 0x8e, 0xd7, 0xbe, 0xfe, 0x12, 0x3f,
|
||||||
|
0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xc0, 0xf6, 0x60, 0xa0, 0x03, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,36 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||||||
package='robocar.events',
|
package='robocar.events',
|
||||||
syntax='proto3',
|
syntax='proto3',
|
||||||
serialized_options=_b('Z\006events'),
|
serialized_options=_b('Z\006events'),
|
||||||
serialized_pb=_b('\n\x13\x65vents/events.proto\x12\x0erobocar.events\"$\n\x08\x46rameRef\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"C\n\x0c\x46rameMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.robocar.events.FrameRef\x12\r\n\x05\x66rame\x18\x02 \x01(\x0c\"d\n\x0fSteeringMessage\x12\x10\n\x08steering\x18\x01 \x01(\x02\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12+\n\tframe_ref\x18\x03 \x01(\x0b\x32\x18.robocar.events.FrameRef\"d\n\x0fThrottleMessage\x12\x10\n\x08throttle\x18\x01 \x01(\x02\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12+\n\tframe_ref\x18\x03 \x01(\x0b\x32\x18.robocar.events.FrameRef\"f\n\x0eObjectsMessage\x12\'\n\x07objects\x18\x01 \x03(\x0b\x32\x16.robocar.events.Object\x12+\n\tframe_ref\x18\x02 \x01(\x0b\x32\x18.robocar.events.FrameRef\"\x80\x01\n\x06Object\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.robocar.events.TypeObject\x12\r\n\x05lLeft\x18\x02 \x01(\x05\x12\n\n\x02up\x18\x03 \x01(\x05\x12\r\n\x05right\x18\x04 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x05 \x01(\x05\x12\x12\n\nconfidence\x18\x06 \x01(\x02*2\n\nTypeObject\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x43\x41R\x10\x01\x12\x08\n\x04\x42UMP\x10\x02\x12\x08\n\x04PLOT\x10\x03\x42\x08Z\x06\x65ventsb\x06proto3')
|
serialized_pb=_b('\n\x13\x65vents/events.proto\x12\x0erobocar.events\"$\n\x08\x46rameRef\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"C\n\x0c\x46rameMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.robocar.events.FrameRef\x12\r\n\x05\x66rame\x18\x02 \x01(\x0c\"d\n\x0fSteeringMessage\x12\x10\n\x08steering\x18\x01 \x01(\x02\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12+\n\tframe_ref\x18\x03 \x01(\x0b\x32\x18.robocar.events.FrameRef\"d\n\x0fThrottleMessage\x12\x10\n\x08throttle\x18\x01 \x01(\x02\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12+\n\tframe_ref\x18\x03 \x01(\x0b\x32\x18.robocar.events.FrameRef\"A\n\x10\x44riveModeMessage\x12-\n\ndrive_mode\x18\x01 \x01(\x0e\x32\x19.robocar.events.DriveMode\"f\n\x0eObjectsMessage\x12\'\n\x07objects\x18\x01 \x03(\x0b\x32\x16.robocar.events.Object\x12+\n\tframe_ref\x18\x02 \x01(\x0b\x32\x18.robocar.events.FrameRef\"\x80\x01\n\x06Object\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.robocar.events.TypeObject\x12\r\n\x05lLeft\x18\x02 \x01(\x05\x12\n\n\x02up\x18\x03 \x01(\x05\x12\r\n\x05right\x18\x04 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x05 \x01(\x05\x12\x12\n\nconfidence\x18\x06 \x01(\x02*-\n\tDriveMode\x12\x0b\n\x07INVALID\x10\x00\x12\x08\n\x04USER\x10\x01\x12\t\n\x05PILOT\x10\x02*2\n\nTypeObject\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x43\x41R\x10\x01\x12\x08\n\x04\x42UMP\x10\x02\x12\x08\n\x04PLOT\x10\x03\x42\x08Z\x06\x65ventsb\x06proto3')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_DRIVEMODE = _descriptor.EnumDescriptor(
|
||||||
|
name='DriveMode',
|
||||||
|
full_name='robocar.events.DriveMode',
|
||||||
|
filename=None,
|
||||||
|
file=DESCRIPTOR,
|
||||||
|
values=[
|
||||||
|
_descriptor.EnumValueDescriptor(
|
||||||
|
name='INVALID', index=0, number=0,
|
||||||
|
serialized_options=None,
|
||||||
|
type=None),
|
||||||
|
_descriptor.EnumValueDescriptor(
|
||||||
|
name='USER', index=1, number=1,
|
||||||
|
serialized_options=None,
|
||||||
|
type=None),
|
||||||
|
_descriptor.EnumValueDescriptor(
|
||||||
|
name='PILOT', index=2, number=2,
|
||||||
|
serialized_options=None,
|
||||||
|
type=None),
|
||||||
|
],
|
||||||
|
containing_type=None,
|
||||||
|
serialized_options=None,
|
||||||
|
serialized_start=652,
|
||||||
|
serialized_end=697,
|
||||||
|
)
|
||||||
|
_sym_db.RegisterEnumDescriptor(_DRIVEMODE)
|
||||||
|
|
||||||
|
DriveMode = enum_type_wrapper.EnumTypeWrapper(_DRIVEMODE)
|
||||||
_TYPEOBJECT = _descriptor.EnumDescriptor(
|
_TYPEOBJECT = _descriptor.EnumDescriptor(
|
||||||
name='TypeObject',
|
name='TypeObject',
|
||||||
full_name='robocar.events.TypeObject',
|
full_name='robocar.events.TypeObject',
|
||||||
@ -48,12 +75,15 @@ _TYPEOBJECT = _descriptor.EnumDescriptor(
|
|||||||
],
|
],
|
||||||
containing_type=None,
|
containing_type=None,
|
||||||
serialized_options=None,
|
serialized_options=None,
|
||||||
serialized_start=585,
|
serialized_start=699,
|
||||||
serialized_end=635,
|
serialized_end=749,
|
||||||
)
|
)
|
||||||
_sym_db.RegisterEnumDescriptor(_TYPEOBJECT)
|
_sym_db.RegisterEnumDescriptor(_TYPEOBJECT)
|
||||||
|
|
||||||
TypeObject = enum_type_wrapper.EnumTypeWrapper(_TYPEOBJECT)
|
TypeObject = enum_type_wrapper.EnumTypeWrapper(_TYPEOBJECT)
|
||||||
|
INVALID = 0
|
||||||
|
USER = 1
|
||||||
|
PILOT = 2
|
||||||
ANY = 0
|
ANY = 0
|
||||||
CAR = 1
|
CAR = 1
|
||||||
BUMP = 2
|
BUMP = 2
|
||||||
@ -227,6 +257,37 @@ _THROTTLEMESSAGE = _descriptor.Descriptor(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
_DRIVEMODEMESSAGE = _descriptor.Descriptor(
|
||||||
|
name='DriveModeMessage',
|
||||||
|
full_name='robocar.events.DriveModeMessage',
|
||||||
|
filename=None,
|
||||||
|
file=DESCRIPTOR,
|
||||||
|
containing_type=None,
|
||||||
|
fields=[
|
||||||
|
_descriptor.FieldDescriptor(
|
||||||
|
name='drive_mode', full_name='robocar.events.DriveModeMessage.drive_mode', 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),
|
||||||
|
],
|
||||||
|
extensions=[
|
||||||
|
],
|
||||||
|
nested_types=[],
|
||||||
|
enum_types=[
|
||||||
|
],
|
||||||
|
serialized_options=None,
|
||||||
|
is_extendable=False,
|
||||||
|
syntax='proto3',
|
||||||
|
extension_ranges=[],
|
||||||
|
oneofs=[
|
||||||
|
],
|
||||||
|
serialized_start=350,
|
||||||
|
serialized_end=415,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
_OBJECTSMESSAGE = _descriptor.Descriptor(
|
_OBJECTSMESSAGE = _descriptor.Descriptor(
|
||||||
name='ObjectsMessage',
|
name='ObjectsMessage',
|
||||||
full_name='robocar.events.ObjectsMessage',
|
full_name='robocar.events.ObjectsMessage',
|
||||||
@ -260,8 +321,8 @@ _OBJECTSMESSAGE = _descriptor.Descriptor(
|
|||||||
extension_ranges=[],
|
extension_ranges=[],
|
||||||
oneofs=[
|
oneofs=[
|
||||||
],
|
],
|
||||||
serialized_start=350,
|
serialized_start=417,
|
||||||
serialized_end=452,
|
serialized_end=519,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -326,13 +387,14 @@ _OBJECT = _descriptor.Descriptor(
|
|||||||
extension_ranges=[],
|
extension_ranges=[],
|
||||||
oneofs=[
|
oneofs=[
|
||||||
],
|
],
|
||||||
serialized_start=455,
|
serialized_start=522,
|
||||||
serialized_end=583,
|
serialized_end=650,
|
||||||
)
|
)
|
||||||
|
|
||||||
_FRAMEMESSAGE.fields_by_name['id'].message_type = _FRAMEREF
|
_FRAMEMESSAGE.fields_by_name['id'].message_type = _FRAMEREF
|
||||||
_STEERINGMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
_STEERINGMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
||||||
_THROTTLEMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
_THROTTLEMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
||||||
|
_DRIVEMODEMESSAGE.fields_by_name['drive_mode'].enum_type = _DRIVEMODE
|
||||||
_OBJECTSMESSAGE.fields_by_name['objects'].message_type = _OBJECT
|
_OBJECTSMESSAGE.fields_by_name['objects'].message_type = _OBJECT
|
||||||
_OBJECTSMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
_OBJECTSMESSAGE.fields_by_name['frame_ref'].message_type = _FRAMEREF
|
||||||
_OBJECT.fields_by_name['type'].enum_type = _TYPEOBJECT
|
_OBJECT.fields_by_name['type'].enum_type = _TYPEOBJECT
|
||||||
@ -340,8 +402,10 @@ DESCRIPTOR.message_types_by_name['FrameRef'] = _FRAMEREF
|
|||||||
DESCRIPTOR.message_types_by_name['FrameMessage'] = _FRAMEMESSAGE
|
DESCRIPTOR.message_types_by_name['FrameMessage'] = _FRAMEMESSAGE
|
||||||
DESCRIPTOR.message_types_by_name['SteeringMessage'] = _STEERINGMESSAGE
|
DESCRIPTOR.message_types_by_name['SteeringMessage'] = _STEERINGMESSAGE
|
||||||
DESCRIPTOR.message_types_by_name['ThrottleMessage'] = _THROTTLEMESSAGE
|
DESCRIPTOR.message_types_by_name['ThrottleMessage'] = _THROTTLEMESSAGE
|
||||||
|
DESCRIPTOR.message_types_by_name['DriveModeMessage'] = _DRIVEMODEMESSAGE
|
||||||
DESCRIPTOR.message_types_by_name['ObjectsMessage'] = _OBJECTSMESSAGE
|
DESCRIPTOR.message_types_by_name['ObjectsMessage'] = _OBJECTSMESSAGE
|
||||||
DESCRIPTOR.message_types_by_name['Object'] = _OBJECT
|
DESCRIPTOR.message_types_by_name['Object'] = _OBJECT
|
||||||
|
DESCRIPTOR.enum_types_by_name['DriveMode'] = _DRIVEMODE
|
||||||
DESCRIPTOR.enum_types_by_name['TypeObject'] = _TYPEOBJECT
|
DESCRIPTOR.enum_types_by_name['TypeObject'] = _TYPEOBJECT
|
||||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||||
|
|
||||||
@ -373,6 +437,13 @@ ThrottleMessage = _reflection.GeneratedProtocolMessageType('ThrottleMessage', (_
|
|||||||
))
|
))
|
||||||
_sym_db.RegisterMessage(ThrottleMessage)
|
_sym_db.RegisterMessage(ThrottleMessage)
|
||||||
|
|
||||||
|
DriveModeMessage = _reflection.GeneratedProtocolMessageType('DriveModeMessage', (_message.Message,), dict(
|
||||||
|
DESCRIPTOR = _DRIVEMODEMESSAGE,
|
||||||
|
__module__ = 'events.events_pb2'
|
||||||
|
# @@protoc_insertion_point(class_scope:robocar.events.DriveModeMessage)
|
||||||
|
))
|
||||||
|
_sym_db.RegisterMessage(DriveModeMessage)
|
||||||
|
|
||||||
ObjectsMessage = _reflection.GeneratedProtocolMessageType('ObjectsMessage', (_message.Message,), dict(
|
ObjectsMessage = _reflection.GeneratedProtocolMessageType('ObjectsMessage', (_message.Message,), dict(
|
||||||
DESCRIPTOR = _OBJECTSMESSAGE,
|
DESCRIPTOR = _OBJECTSMESSAGE,
|
||||||
__module__ = 'events.events_pb2'
|
__module__ = 'events.events_pb2'
|
||||||
|
Loading…
Reference in New Issue
Block a user