rclcpp  master
C++ ROS Client Library API
typesupport_helpers.hpp
Go to the documentation of this file.
1 // Copyright 2018, Bosch Software Innovations GmbH.
2 // Copyright 2021, Apex.AI Inc.
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 #ifndef RCLCPP__TYPESUPPORT_HELPERS_HPP_
17 #define RCLCPP__TYPESUPPORT_HELPERS_HPP_
18 
19 #include <memory>
20 #include <string>
21 #include <tuple>
22 
23 #include "rcpputils/shared_library.hpp"
24 #include "rosidl_runtime_cpp/message_type_support_decl.hpp"
25 
27 
28 namespace rclcpp
29 {
31 
38 get_typesupport_library(const std::string & type, const std::string & typesupport_identifier);
39 
41 
49 const rosidl_message_type_support_t *
51  const std::string & type,
52  const std::string & typesupport_identifier,
53  rcpputils::SharedLibrary & library);
54 
55 } // namespace rclcpp
56 
57 #endif // RCLCPP__TYPESUPPORT_HELPERS_HPP_
std::string
std::shared_ptr< rcpputils::SharedLibrary >
rclcpp
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
RCLCPP_PUBLIC
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
rclcpp::get_typesupport_handle
const rosidl_message_type_support_t * get_typesupport_handle(const std::string &type, const std::string &typesupport_identifier, rcpputils::SharedLibrary &library)
Extract the type support handle from the library.
visibility_control.hpp
rclcpp::get_typesupport_library
std::shared_ptr< rcpputils::SharedLibrary > get_typesupport_library(const std::string &type, const std::string &typesupport_identifier)
Load the type support library for the given type.