rclcpp_components
master
Package containing tools for dynamically loadable components
|
Go to the documentation of this file.
15 #ifndef RCLCPP_COMPONENTS__NODE_FACTORY_TEMPLATE_HPP__
16 #define RCLCPP_COMPONENTS__NODE_FACTORY_TEMPLATE_HPP__
31 template<
typename NodeT>
45 auto node = std::make_shared<NodeT>(options);
48 node,
std::bind(&NodeT::get_node_base_interface, node));
53 #endif // RCLCPP_COMPONENTS__NODE_FACTORY_TEMPLATE_HPP__
The NodeInstanceWrapper encapsulates the node instance.
Definition: node_instance_wrapper.hpp:26
NodeFactoryTemplate()=default
The NodeFactory interface is used by the class loader to instantiate components.
Definition: node_factory.hpp:29
Definition: component_manager.hpp:66
NodeInstanceWrapper create_node_instance(const rclcpp::NodeOptions &options) override
Create an instance of a component.
Definition: node_factory_template.hpp:43
virtual ~NodeFactoryTemplate()=default
NodeFactoryTemplate is a convenience class for instantiating components.
Definition: node_factory_template.hpp:32