audio_event.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /******************************************************************************
  2. * Copyright 2020 The Apollo Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. *****************************************************************************/
  16. syntax = "proto2";
  17. package apollo.audio;
  18. import "modules/common_msgs/audio_msgs/audio_common.proto";
  19. import "modules/common_msgs/basic_msgs/header.proto";
  20. import "modules/common_msgs/localization_msgs/pose.proto";
  21. message AudioEvent {
  22. optional apollo.common.Header header = 1;
  23. optional int32 id = 2; // obstacle ID.
  24. optional apollo.audio.MovingResult moving_result = 3 [default = UNKNOWN];
  25. optional apollo.audio.AudioType audio_type = 4 [default = UNKNOWN_TYPE];
  26. optional bool siren_is_on = 5;
  27. optional apollo.audio.AudioDirection audio_direction = 6
  28. [default = UNKNOWN_DIRECTION];
  29. optional apollo.localization.Pose pose = 7;
  30. }