15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__PATH_EXPIRING_TIMER_CONDITION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__CONDITION__PATH_EXPIRING_TIMER_CONDITION_HPP_
20 #include "nav2_ros_common/lifecycle_node.hpp"
21 #include "behaviortree_cpp/condition_node.h"
22 #include "behaviortree_cpp/json_export.h"
23 #include "nav_msgs/msg/path.hpp"
24 #include "nav2_behavior_tree/bt_utils.hpp"
25 #include "nav2_behavior_tree/json_utils.hpp"
27 namespace nav2_behavior_tree
43 const std::string & condition_name,
44 const BT::NodeConfiguration & conf);
52 BT::NodeStatus
tick()
override;
61 BT::RegisterJsonDefinition<nav_msgs::msg::Path>();
64 BT::InputPort<double>(
"seconds", 1.0,
"Seconds"),
65 BT::InputPort<nav_msgs::msg::Path>(
"path")
70 nav2::LifecycleNode::SharedPtr node_;
72 nav_msgs::msg::Path prev_path_;
A BT::ConditionNode that returns SUCCESS every time a specified time period passes and FAILURE otherw...
static BT::PortsList providedPorts()
Creates list of BT ports.
BT::NodeStatus tick() override
The main override required by a BT action.