rclcpp_components
master
Package containing tools for dynamically loadable components
|
Go to the documentation of this file.
15 #ifndef RCLCPP_COMPONENTS__NODE_INSTANCE_WRAPPER_HPP__
16 #define RCLCPP_COMPONENTS__NODE_INSTANCE_WRAPPER_HPP__
33 : node_instance_(nullptr)
39 : node_instance_(node_instance), node_base_interface_getter_(node_base_interface_getter)
52 return node_instance_;
59 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr
62 return node_base_interface_getter_(node_instance_);
71 #endif // RCLCPP_COMPONENTS__NODE_INSTANCE_WRAPPER_HPP__
rclcpp::node_interfaces::NodeBaseInterface::SharedPtr get_node_base_interface()
Get NodeBaseInterface pointer for the encapsulated Node Instance.
Definition: node_instance_wrapper.hpp:60
std::function< rclcpp::node_interfaces::NodeBaseInterface::SharedPtr(const std::shared_ptr< void > &)> NodeBaseInterfaceGetter
Definition: node_instance_wrapper.hpp:30
The NodeInstanceWrapper encapsulates the node instance.
Definition: node_instance_wrapper.hpp:26
const std::shared_ptr< void > get_node_instance() const
Get a type-erased pointer to the original Node instance.
Definition: node_instance_wrapper.hpp:50
NodeInstanceWrapper()
Definition: node_instance_wrapper.hpp:32
NodeInstanceWrapper(std::shared_ptr< void > node_instance, NodeBaseInterfaceGetter node_base_interface_getter)
Definition: node_instance_wrapper.hpp:36
Definition: component_manager.hpp:66