Apollo 10.0
自动驾驶开放平台
qos_profile_conf.cc
浏览该文件的文档.
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
18
19namespace apollo {
20namespace cyber {
21namespace transport {
22
24
26
28 const QosHistoryPolicy& history, uint32_t depth, uint32_t mps,
29 const QosReliabilityPolicy& reliability,
30 const QosDurabilityPolicy& durability) {
31 QosProfile qos_profile;
32 qos_profile.set_history(history);
33 qos_profile.set_depth(depth);
34 qos_profile.set_mps(mps);
35 qos_profile.set_reliability(reliability);
36 qos_profile.set_durability(durability);
37
38 return qos_profile;
39}
40
43
44const QosProfile QosProfileConf::QOS_PROFILE_DEFAULT = CreateQosProfile(
45 QosHistoryPolicy::HISTORY_KEEP_LAST, 1, QOS_MPS_SYSTEM_DEFAULT,
46 QosReliabilityPolicy::RELIABILITY_RELIABLE,
47 QosDurabilityPolicy::DURABILITY_VOLATILE);
48
50 QosHistoryPolicy::HISTORY_KEEP_LAST, 5, QOS_MPS_SYSTEM_DEFAULT,
51 QosReliabilityPolicy::RELIABILITY_BEST_EFFORT,
52 QosDurabilityPolicy::DURABILITY_VOLATILE);
53
55 QosHistoryPolicy::HISTORY_KEEP_LAST, 1000, QOS_MPS_SYSTEM_DEFAULT,
56 QosReliabilityPolicy::RELIABILITY_RELIABLE,
57 QosDurabilityPolicy::DURABILITY_VOLATILE);
58
60 CreateQosProfile(QosHistoryPolicy::HISTORY_KEEP_LAST, 10,
61 QOS_MPS_SYSTEM_DEFAULT,
62 QosReliabilityPolicy::RELIABILITY_RELIABLE,
63 QosDurabilityPolicy::DURABILITY_TRANSIENT_LOCAL);
64
66 QosHistoryPolicy::HISTORY_KEEP_LAST, 1000, QOS_MPS_SYSTEM_DEFAULT,
67 QosReliabilityPolicy::RELIABILITY_RELIABLE,
68 QosDurabilityPolicy::DURABILITY_VOLATILE);
69
71 QosHistoryPolicy::HISTORY_SYSTEM_DEFAULT, QOS_HISTORY_DEPTH_SYSTEM_DEFAULT,
72 QOS_MPS_SYSTEM_DEFAULT, QosReliabilityPolicy::RELIABILITY_RELIABLE,
73 QosDurabilityPolicy::DURABILITY_TRANSIENT_LOCAL);
74
76 QosHistoryPolicy::HISTORY_KEEP_ALL, 10, QOS_MPS_SYSTEM_DEFAULT,
77 QosReliabilityPolicy::RELIABILITY_RELIABLE,
78 QosDurabilityPolicy::DURABILITY_TRANSIENT_LOCAL);
79
81 QosHistoryPolicy::HISTORY_KEEP_ALL, 10, QOS_MPS_SYSTEM_DEFAULT,
82 QosReliabilityPolicy::RELIABILITY_RELIABLE,
83 QosDurabilityPolicy::DURABILITY_TRANSIENT_LOCAL);
84
85} // namespace transport
86} // namespace cyber
87} // namespace apollo
static const uint32_t QOS_HISTORY_DEPTH_SYSTEM_DEFAULT
static const QosProfile QOS_PROFILE_SERVICES_DEFAULT
static const QosProfile QOS_PROFILE_TF_STATIC
static const QosProfile QOS_PROFILE_SENSOR_DATA
static const QosProfile QOS_PROFILE_PARAM_EVENT
static const QosProfile QOS_PROFILE_SYSTEM_DEFAULT
static QosProfile CreateQosProfile(const QosHistoryPolicy &history, uint32_t depth, uint32_t mps, const QosReliabilityPolicy &reliability, const QosDurabilityPolicy &durability)
static const QosProfile QOS_PROFILE_TOPO_CHANGE
static const QosProfile QOS_PROFILE_PARAMETERS
class register implement
Definition arena_queue.h:37