-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from ros2/qos
Added support for QoS profiles
- Loading branch information
Showing
3 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Copyright 2015 Open Source Robotics Foundation, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef ROS_MIDDLEWARE_INTERFACE_ROS_MIDDLEWARE_INTERFACE_QOS_PROFILES_H_ | ||
#define ROS_MIDDLEWARE_INTERFACE_ROS_MIDDLEWARE_INTERFACE_QOS_PROFILES_H_ | ||
|
||
#if __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
#include "types.h" | ||
|
||
const static rmw_qos_profile_t rmw_qos_profile_sensor_data = | ||
{ | ||
RMW_QOS_POLICY_KEEP_LAST_HISTORY, | ||
5, | ||
RMW_QOS_POLICY_BEST_EFFORT | ||
}; | ||
|
||
const static rmw_qos_profile_t rmw_qos_profile_parameters = | ||
{ | ||
RMW_QOS_POLICY_KEEP_LAST_HISTORY, | ||
1000, | ||
RMW_QOS_POLICY_RELIABLE | ||
}; | ||
|
||
const static rmw_qos_profile_t rmw_qos_profile_default = | ||
{ | ||
RMW_QOS_POLICY_KEEP_ALL_HISTORY, | ||
10, | ||
RMW_QOS_POLICY_RELIABLE | ||
}; | ||
|
||
const static rmw_qos_profile_t rmw_qos_profile_services_default = | ||
{ | ||
RMW_QOS_POLICY_KEEP_ALL_HISTORY, | ||
10, | ||
RMW_QOS_POLICY_RELIABLE | ||
}; | ||
|
||
const static rmw_qos_profile_t rmw_qos_profile_parameter_events = | ||
{ | ||
RMW_QOS_POLICY_KEEP_ALL_HISTORY, | ||
1000, | ||
RMW_QOS_POLICY_RELIABLE | ||
}; | ||
|
||
#if __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* ROS_MIDDLEWARE_INTERFACE_ROS_MIDDLEWARE_INTERFACE_QOS_PROFILES_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters