16 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__TRUNCATE_PATH_ACTION_HPP_
17 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__TRUNCATE_PATH_ACTION_HPP_
22 #include "nav_msgs/msg/path.hpp"
24 #include "behaviortree_cpp/action_node.h"
26 namespace nav2_behavior_tree
41 const std::string & xml_tag_name,
42 const BT::NodeConfiguration & conf);
51 BT::InputPort<nav_msgs::msg::Path>(
"input_path",
"Original Path"),
52 BT::OutputPort<nav_msgs::msg::Path>(
"output_path",
"Path truncated to a certain distance"),
53 BT::InputPort<double>(
"distance", 1.0,
"distance"),
61 void halt()
override {}
67 BT::NodeStatus tick()
override;
A BT::ActionNodeBase to shorten path by some distance.
TruncatePath(const std::string &xml_tag_name, const BT::NodeConfiguration &conf)
A nav2_behavior_tree::TruncatePath constructor.
static BT::PortsList providedPorts()
Creates list of BT ports.