Apollo  6.0
Open source self driving car software
history_attributes.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 
17 #ifndef CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
18 #define CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
19 
20 #include <cstdint>
21 
22 #include "cyber/proto/qos_profile.pb.h"
23 
24 namespace apollo {
25 namespace cyber {
26 namespace transport {
27 
30  : history_policy(proto::QosHistoryPolicy::HISTORY_KEEP_LAST),
31  depth(1000) {}
32  HistoryAttributes(const proto::QosHistoryPolicy& qos_history_policy,
33  uint32_t history_depth)
34  : history_policy(qos_history_policy), depth(history_depth) {}
35 
36  proto::QosHistoryPolicy history_policy;
37  uint32_t depth;
38 };
39 
40 } // namespace transport
41 } // namespace cyber
42 } // namespace apollo
43 
44 #endif // CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
Definition: history_attributes.h:28
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
proto::QosHistoryPolicy history_policy
Definition: history_attributes.h:36
uint32_t depth
Definition: history_attributes.h:37
HistoryAttributes()
Definition: history_attributes.h:29
HistoryAttributes(const proto::QosHistoryPolicy &qos_history_policy, uint32_t history_depth)
Definition: history_attributes.h:32