This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RMW function to check QoS compatibility
Implements ros2/rmw#299 Depends on ros2/rmw_dds_common#45 Signed-off-by: Jacob Perron <[email protected]>
- Loading branch information
1 parent
ecce83e
commit 846302c
Showing
6 changed files
with
96 additions
and
0 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
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,30 @@ | ||
// Copyright 2021 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. | ||
|
||
#include "rmw_connext_shared_cpp/rmw_qos.hpp" | ||
|
||
extern "C" | ||
{ | ||
rmw_ret_t | ||
rmw_qos_profile_check_compatible( | ||
const rmw_qos_profile_t publisher_profile, | ||
const rmw_qos_profile_t subscription_profile, | ||
rmw_qos_compatibility_type_t * compatibility, | ||
char * reason, | ||
size_t reason_size) | ||
{ | ||
return qos_profile_check_compatible( | ||
publisher_profile, subscription_profile, compatibility, reason, reason_size); | ||
} | ||
} // extern "C" |
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
31 changes: 31 additions & 0 deletions
31
rmw_connext_shared_cpp/include/rmw_connext_shared_cpp/rmw_qos.hpp
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,31 @@ | ||
// Copyright 2021 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 RMW_CONNEXT_SHARED_CPP__RMW_QOS_HPP_ | ||
#define RMW_CONNEXT_SHARED_CPP__RMW_QOS_HPP_ | ||
|
||
#include "rmw/qos_profiles.h" | ||
|
||
#include "rmw_connext_shared_cpp/visibility_control.h" | ||
|
||
RMW_CONNEXT_SHARED_CPP_PUBLIC | ||
rmw_ret_t | ||
qos_profile_check_compatible( | ||
const rmw_qos_profile_t publisher_profile, | ||
const rmw_qos_profile_t subscription_profile, | ||
rmw_qos_compatibility_type_t * compatibility, | ||
char * reason, | ||
size_t reason_size); | ||
|
||
#endif // RMW_CONNEXT_SHARED_CPP__RMW_QOS_HPP_ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2021 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. | ||
|
||
#include "rmw_dds_common/qos.hpp" | ||
|
||
#include "rmw_connext_shared_cpp/rmw_qos.hpp" | ||
|
||
rmw_ret_t | ||
qos_profile_check_compatible( | ||
const rmw_qos_profile_t publisher_profile, | ||
const rmw_qos_profile_t subscription_profile, | ||
rmw_qos_compatibility_type_t * compatibility, | ||
char * reason, | ||
size_t reason_size) | ||
{ | ||
return rmw_dds_common::qos_profile_check_compatible( | ||
publisher_profile, subscription_profile, compatibility, reason, reason_size); | ||
} |