rmw  beta1
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
qos_profiles.h
Go to the documentation of this file.
1 // Copyright 2015 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RMW__QOS_PROFILES_H_
16 #define RMW__QOS_PROFILES_H_
17 
18 #if __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rmw/types.h"
24 
25 static const rmw_qos_profile_t rmw_qos_profile_sensor_data =
26 {
28  5,
29  RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT,
30  RMW_QOS_POLICY_DURABILITY_VOLATILE
31 };
32 
33 static const rmw_qos_profile_t rmw_qos_profile_parameters =
34 {
36  1000,
38  RMW_QOS_POLICY_DURABILITY_VOLATILE
39 };
40 
41 static const rmw_qos_profile_t rmw_qos_profile_default =
42 {
44  10,
46  RMW_QOS_POLICY_DURABILITY_VOLATILE
47 };
48 
49 static const rmw_qos_profile_t rmw_qos_profile_services_default =
50 {
52  10,
54  RMW_QOS_POLICY_DURABILITY_VOLATILE
55 };
56 
57 static const rmw_qos_profile_t rmw_qos_profile_parameter_events =
58 {
59  RMW_QOS_POLICY_HISTORY_KEEP_ALL,
60  1000,
62  RMW_QOS_POLICY_DURABILITY_VOLATILE
63 };
64 
65 static const rmw_qos_profile_t rmw_qos_profile_system_default =
66 {
71 };
72 
73 #if __cplusplus
74 }
75 #endif
76 
77 #endif // RMW__QOS_PROFILES_H_
RMW_QOS_POLICY_RELIABILITY_RELIABLE
Definition: types.h:161
RMW_QOS_POLICY_HISTORY_SYSTEM_DEFAULT
Definition: types.h:168
RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT
Definition: types.h:175
RMW_QOS_POLICY_HISTORY_KEEP_LAST
Definition: types.h:168
RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT
Definition: types.h:161
Definition: types.h:180