18 #include "nav2_behavior_tree/plugins/action/navigate_to_pose_action.hpp"
20 namespace nav2_behavior_tree
24 const std::string & xml_tag_name,
25 const std::string & action_name,
26 const BT::NodeConfiguration & conf)
27 :
BtActionNode<nav2_msgs::action::NavigateToPose>(xml_tag_name, action_name, conf)
33 if (!getInput(
"goal", goal_.pose)) {
36 "NavigateToPoseAction: goal not provided");
39 getInput(
"behavior_tree", goal_.behavior_tree);
44 #include "behaviortree_cpp_v3/bt_factory.h"
45 BT_REGISTER_NODES(factory)
47 BT::NodeBuilder builder =
48 [](
const std::string & name,
const BT::NodeConfiguration & config)
50 return std::make_unique<nav2_behavior_tree::NavigateToPoseAction>(
51 name,
"navigate_to_pose", config);
55 "NavigateToPose", builder);
Abstract class representing an action based BT node.
A nav2_behavior_tree::BtActionNode class that wraps nav2_msgs::action::NavigateToPose.
NavigateToPoseAction(const std::string &xml_tag_name, const std::string &action_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::NavigateToPoseAction.
void on_tick() override
Function to perform some user-defined operation on tick.