Skip to content

Commit

Permalink
audio: add more enums for labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
kechxu authored and Capri2014 committed Aug 25, 2020
1 parent df3b5b0 commit 734805c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions modules/audio/proto/audio_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ enum MovingResult {
DEPARTING = 2;
STATIONARY = 3;
}

enum AudioType {
UNKNOWN_TYPE = 0;
POLICE = 1;
AMBULANCE = 2;
FIRETRUCK = 3;
}

enum AudioDirection {
UNKNOWN_DIRECTION = 0;
FRONT = 1;
LEFT = 2;
BACK = 3;
RIGHT = 4;
}
4 changes: 3 additions & 1 deletion modules/audio/proto/audio_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ message AudioEvent {
optional apollo.common.Header header = 1;
optional int32 id = 2; // obstacle ID.
optional apollo.audio.MovingResult moving_result = 3 [default = UNKNOWN];
optional bool siren_is_on = 4;
optional apollo.audio.AudioType audio_type = 4 [default = UNKNOWN_TYPE];
optional bool siren_is_on = 5;
optional apollo.audio.AudioDirection audio_direction = 6 [default = UNKNOWN_DIRECTION];
}

0 comments on commit 734805c

Please sign in to comment.