diff --git a/modules/common/proto/BUILD b/modules/common/proto/BUILD index 4d32b5909da6ccf8f0b27c009691ebe519cdc546..83ccb57df956666ca49eab69aa6a596983fd2b95 100644 --- a/modules/common/proto/BUILD +++ b/modules/common/proto/BUILD @@ -147,3 +147,17 @@ proto_library( "//modules/localization/proto:pose_proto_lib", ], ) + +proto_library( + name = "drive_state_proto_lib", + srcs = [ + "drive_state.proto", + ], +) + +cc_proto_library( + name = "drive_state_proto", + deps = [ + ":drive_state_proto_lib", + ], +) diff --git a/modules/common/proto/drive_state.proto b/modules/common/proto/drive_state.proto new file mode 100644 index 0000000000000000000000000000000000000000..dc047a008cacc1d96575f196af937697400107ee --- /dev/null +++ b/modules/common/proto/drive_state.proto @@ -0,0 +1,18 @@ +syntax = "proto2"; + +package apollo.common; + + +// This is the engage advice that published by critical runtime modules. +message EngageAdvice { + enum Advice { + UNKNOWN = 0; + DISALLOW_ENGAGE = 1; + READY_TO_ENGAGE = 2; + KEEP_ENGAGED = 3; + PREPARE_DISENGAGE = 4; + } + + optional Advice advice = 1 [default = DISALLOW_ENGAGE]; + optional string reason = 2; +}