Apollo  6.0
Open source self driving car software
inner_component_messages.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 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 #pragma once
17 
18 #include <string>
19 
20 #include "cyber/cyber.h"
24 #include "modules/perception/proto/perception_obstacle.pb.h"
25 
26 namespace apollo {
27 namespace perception {
28 namespace onboard {
29 
30 enum class ProcessStage {
31  LIDAR_PREPROCESS = 0,
32  LIDAR_DETECTION = 1,
39  SENSOR_FUSION = 8,
40  UNKNOWN_STAGE = 9,
42 };
43 
44 class Descriptor {
45  public:
46  std::string full_name() { return "name"; }
47 };
48 
50  public:
51  SensorFrameMessage() { type_name_ = "SensorFrameMessage"; }
52  ~SensorFrameMessage() = default;
53  std::string GetTypeName() { return type_name_; }
54  SensorFrameMessage* New() const { return new SensorFrameMessage; }
55 
56  public:
57  apollo::common::ErrorCode error_code_ = apollo::common::ErrorCode::OK;
58 
59  std::string sensor_id_;
60  double timestamp_ = 0.0;
61  uint64_t lidar_timestamp_ = 0;
62  uint32_t seq_num_ = 0;
63  std::string type_name_;
65 
67 
69 };
70 
71 } // namespace onboard
72 } // namespace perception
73 } // namespace apollo
std::string GetTypeName()
Definition: inner_component_messages.h:53
ProcessStage
Definition: inner_component_messages.h:30
std::shared_ptr< Frame > FramePtr
Definition: frame.h:60
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::string type_name_
Definition: inner_component_messages.h:63
std::shared_ptr< const HdmapStruct > HdmapStructConstPtr
Definition: hdmap_struct.h:46
Definition: inner_component_messages.h:49
base::FramePtr frame_
Definition: inner_component_messages.h:66
std::string full_name()
Definition: inner_component_messages.h:46
SensorFrameMessage * New() const
Definition: inner_component_messages.h:54
base::HdmapStructConstPtr hdmap_
Definition: inner_component_messages.h:64
std::string sensor_id_
Definition: inner_component_messages.h:59
Definition: inner_component_messages.h:44
bool OK()
Definition: state.h:44
SensorFrameMessage()
Definition: inner_component_messages.h:51