-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create one Participant per Context instead of one per Node
Add example test of how to access message type supports from rmw_dds_common Signed-off-by: ivanpauno <[email protected]> Move from one participant per node to one participant per context. Signed-off-by: ivanpauno <[email protected]> Reimplemented rmw_node_info_and_types Signed-off-by: Ivan Santiago Paunovic <[email protected]> Implement rmw_count Signed-off-by: Ivan Santiago Paunovic <[email protected]> Please linter Signed-off-by: Ivan Santiago Paunovic <[email protected]> Correct rmw_service_server_is_available Signed-off-by: Ivan Santiago Paunovic <[email protected]> Implement rmw_service_names_and_types and rmw_topic_names_and_types Signed-off-by: Ivan Santiago Paunovic <[email protected]> Add guard condition to listener thread Signed-off-by: Ivan Santiago Paunovic <[email protected]> Stop using group data. Use the new group cache Signed-off-by: Ivan Santiago Paunovic <[email protected]> Delete old group data stuff Signed-off-by: Ivan Santiago Paunovic <[email protected]> Further changes after rebasing with master Signed-off-by: Ivan Santiago Paunovic <[email protected]> Update after changes in rmw_dds_common Signed-off-by: Ivan Santiago Paunovic <[email protected]> Delete old comment. Update default domain id macro Signed-off-by: Ivan Santiago Paunovic <[email protected]> Address some reviewer comments Signed-off-by: Ivan Santiago Paunovic <[email protected]> Fix some upstream test failures Signed-off-by: Ivan Santiago Paunovic <[email protected]> Correct linter failure Signed-off-by: Ivan Santiago Paunovic <[email protected]> Add node sanity check in __rmw_destroy_service Signed-off-by: Ivan Santiago Paunovic <[email protected]> Correct error in __rmw_destroy_publisher Signed-off-by: Ivan Santiago Paunovic <[email protected]> Addressed per review comments Signed-off-by: Ivan Santiago Paunovic <[email protected]> Minimal cleanup Signed-off-by: Ivan Santiago Paunovic <[email protected]> Updated rmw_fastrtps_dynamic_cpp Signed-off-by: Ivan Santiago Paunovic <[email protected]> Address peer review comments Signed-off-by: Ivan Santiago Paunovic <[email protected]> Create participant in first use, destruct it after last node is destroyed Signed-off-by: Ivan Santiago Paunovic <[email protected]> Address PR comments Signed-off-by: Ivan Santiago Paunovic <[email protected]> Add context name and namespace Signed-off-by: Ivan Santiago Paunovic <[email protected]>
- Loading branch information
Showing
79 changed files
with
3,844 additions
and
2,668 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,36 @@ | ||
// Copyright 2017-2019 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_FASTRTPS_CPP__PUBLISHER_HPP_ | ||
#define RMW_FASTRTPS_CPP__PUBLISHER_HPP_ | ||
|
||
#include "rmw/rmw.h" | ||
#include "rmw_fastrtps_shared_cpp/custom_participant_info.hpp" | ||
|
||
namespace rmw_fastrtps_cpp | ||
{ | ||
|
||
rmw_publisher_t * | ||
create_publisher( | ||
const CustomParticipantInfo * participant_info, | ||
const rosidl_message_type_support_t * type_supports, | ||
const char * topic_name, | ||
const rmw_qos_profile_t * qos_policies, | ||
const rmw_publisher_options_t * publisher_options, | ||
bool keyed, | ||
bool create_publisher_listener); | ||
|
||
} // namespace rmw_fastrtps_cpp | ||
|
||
#endif // RMW_FASTRTPS_CPP__PUBLISHER_HPP_ |
41 changes: 41 additions & 0 deletions
41
rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/register_node.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,41 @@ | ||
// Copyright 2019 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_FASTRTPS_CPP__REGISTER_NODE_HPP_ | ||
#define RMW_FASTRTPS_CPP__REGISTER_NODE_HPP_ | ||
|
||
#include "rmw/init.h" | ||
#include "rmw/types.h" | ||
|
||
namespace rmw_fastrtps_cpp | ||
{ | ||
|
||
/// Register node in context. | ||
/** | ||
* Function that should be called when creating a node, | ||
* before using `context->impl`. | ||
*/ | ||
rmw_ret_t | ||
register_node(rmw_context_t * context); | ||
|
||
/// Unregister node in context. | ||
/** | ||
* Function that should be called when destroying a node. | ||
*/ | ||
rmw_ret_t | ||
unregister_node(rmw_context_t * context); | ||
|
||
} // namespace rmw_fastrtps_cpp | ||
|
||
#endif // RMW_FASTRTPS_CPP__REGISTER_NODE_HPP_ |
38 changes: 38 additions & 0 deletions
38
rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/subscription.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,38 @@ | ||
// Copyright 2019 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_FASTRTPS_CPP__SUBSCRIPTION_HPP_ | ||
#define RMW_FASTRTPS_CPP__SUBSCRIPTION_HPP_ | ||
|
||
#include "rmw/rmw.h" | ||
#include "rmw/subscription_options.h" | ||
|
||
#include "rmw_fastrtps_shared_cpp/custom_participant_info.hpp" | ||
|
||
namespace rmw_fastrtps_cpp | ||
{ | ||
|
||
rmw_subscription_t * | ||
create_subscription( | ||
const CustomParticipantInfo * participant_info, | ||
const rosidl_message_type_support_t * type_supports, | ||
const char * topic_name, | ||
const rmw_qos_profile_t * qos_policies, | ||
const rmw_subscription_options_t * subscription_options, | ||
bool keyed, | ||
bool create_subscription_listener); | ||
|
||
} // namespace rmw_fastrtps_cpp | ||
|
||
#endif // RMW_FASTRTPS_CPP__SUBSCRIPTION_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
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,52 @@ | ||
// Copyright 2019 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 <cstddef> | ||
|
||
#include "rosidl_generator_c/message_type_support_struct.h" | ||
// rosidl_typesupport_cpp/message_type_support.hpp is installed by rosidl_generator_cpp | ||
#include "rosidl_typesupport_cpp/message_type_support.hpp" | ||
#include "rmw_dds_common/msg/gid__struct.hpp" | ||
#include "rmw_dds_common/msg/gid__rosidl_typesupport_fastrtps_cpp.hpp" | ||
#include "rmw_fastrtps_cpp/visibility_control.h" | ||
|
||
namespace rosidl_typesupport_cpp | ||
{ | ||
|
||
template<> | ||
RMW_FASTRTPS_CPP_PUBLIC | ||
const rosidl_message_type_support_t * | ||
get_message_type_support_handle<rmw_dds_common::msg::Gid>() | ||
{ | ||
return ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( | ||
rosidl_typesupport_fastrtps_cpp, rmw_dds_common, msg, Gid)(); | ||
} | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
RMW_FASTRTPS_CPP_PUBLIC | ||
const rosidl_message_type_support_t * | ||
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( | ||
rosidl_typesupport_cpp, rmw_dds_common, msg, Gid)() | ||
{ | ||
return get_message_type_support_handle<rmw_dds_common::msg::Gid>(); | ||
} | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
} // namespace rosidl_typesupport_cpp |
Oops, something went wrong.