15 #ifndef NAV2_UTIL__NODE_THREAD_HPP_
16 #define NAV2_UTIL__NODE_THREAD_HPP_
20 #include "rclcpp/rclcpp.hpp"
36 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base);
43 rclcpp::executors::SingleThreadedExecutor::SharedPtr executor);
49 template<
typename NodeT>
60 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_;
61 std::unique_ptr<std::thread> thread_;
62 rclcpp::Executor::SharedPtr executor_;
A background thread to process node/executor callbacks.
~NodeThread()
A destructor.
NodeThread(rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base)
A background thread to process node callbacks constructor.
NodeThread(NodeT node)
A background thread to process node callbacks constructor.