Apollo  6.0
Open source self driving car software
qos_profile_conf.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_QOS_QOS_PROFILE_CONF_H_
18 #define CYBER_TRANSPORT_QOS_QOS_PROFILE_CONF_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 
28 using cyber::proto::QosDurabilityPolicy;
29 using cyber::proto::QosHistoryPolicy;
30 using cyber::proto::QosProfile;
31 using cyber::proto::QosReliabilityPolicy;
32 
34  public:
36  virtual ~QosProfileConf();
37 
38  static QosProfile CreateQosProfile(const QosHistoryPolicy& history,
39  uint32_t depth, uint32_t mps,
40  const QosReliabilityPolicy& reliability,
41  const QosDurabilityPolicy& durability);
42 
43  static const uint32_t QOS_HISTORY_DEPTH_SYSTEM_DEFAULT;
44  static const uint32_t QOS_MPS_SYSTEM_DEFAULT;
45 
46  static const QosProfile QOS_PROFILE_DEFAULT;
47  static const QosProfile QOS_PROFILE_SENSOR_DATA;
48  static const QosProfile QOS_PROFILE_PARAMETERS;
49  static const QosProfile QOS_PROFILE_SERVICES_DEFAULT;
50  static const QosProfile QOS_PROFILE_PARAM_EVENT;
51  static const QosProfile QOS_PROFILE_SYSTEM_DEFAULT;
52  static const QosProfile QOS_PROFILE_TF_STATIC;
53  static const QosProfile QOS_PROFILE_TOPO_CHANGE;
54 };
55 
56 } // namespace transport
57 } // namespace cyber
58 } // namespace apollo
59 
60 #endif // CYBER_TRANSPORT_QOS_QOS_PROFILE_CONF_H_
Definition: qos_profile_conf.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
static const QosProfile QOS_PROFILE_SYSTEM_DEFAULT
Definition: qos_profile_conf.h:51
static const QosProfile QOS_PROFILE_SERVICES_DEFAULT
Definition: qos_profile_conf.h:49
static const QosProfile QOS_PROFILE_SENSOR_DATA
Definition: qos_profile_conf.h:47
static QosProfile CreateQosProfile(const QosHistoryPolicy &history, uint32_t depth, uint32_t mps, const QosReliabilityPolicy &reliability, const QosDurabilityPolicy &durability)
static const uint32_t QOS_MPS_SYSTEM_DEFAULT
Definition: qos_profile_conf.h:44
static const uint32_t QOS_HISTORY_DEPTH_SYSTEM_DEFAULT
Definition: qos_profile_conf.h:43
static const QosProfile QOS_PROFILE_PARAM_EVENT
Definition: qos_profile_conf.h:50
static const QosProfile QOS_PROFILE_PARAMETERS
Definition: qos_profile_conf.h:48
static const QosProfile QOS_PROFILE_TF_STATIC
Definition: qos_profile_conf.h:52
static const QosProfile QOS_PROFILE_DEFAULT
Definition: qos_profile_conf.h:46
static const QosProfile QOS_PROFILE_TOPO_CHANGE
Definition: qos_profile_conf.h:53