15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__DECORATOR__RATE_CONTROLLER_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__DECORATOR__RATE_CONTROLLER_HPP_
21 #include "behaviortree_cpp_v3/decorator_node.h"
23 namespace nav2_behavior_tree
38 const std::string & name,
39 const BT::NodeConfiguration & conf);
48 BT::InputPort<double>(
"hz", 10.0,
"Rate")
57 BT::NodeStatus tick()
override;
59 std::chrono::time_point<std::chrono::high_resolution_clock> start_;
A BT::DecoratorNode that ticks its child at a specified rate.
static BT::PortsList providedPorts()
Creates list of BT ports.
RateController(const std::string &name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::RateController.