18 #include "nav2_behavior_tree/plugins/action/clear_costmap_service.hpp"
20 namespace nav2_behavior_tree
24 const std::string & service_node_name,
25 const BT::NodeConfiguration & conf)
26 :
BtServiceNode<nav2_msgs::srv::ClearEntireCostmap>(service_node_name, conf)
36 const std::string & service_node_name,
37 const BT::NodeConfiguration & conf)
38 :
BtServiceNode<nav2_msgs::srv::ClearCostmapExceptRegion>(service_node_name, conf)
44 getInput(
"reset_distance", request_->reset_distance);
49 const std::string & service_node_name,
50 const BT::NodeConfiguration & conf)
51 :
BtServiceNode<nav2_msgs::srv::ClearCostmapAroundRobot>(service_node_name, conf)
57 getInput(
"reset_distance", request_->reset_distance);
63 #include "behaviortree_cpp_v3/bt_factory.h"
64 BT_REGISTER_NODES(factory)
68 "ClearCostmapExceptRegion");
70 "ClearCostmapAroundRobot");
Abstract class representing a service based BT node.
void increment_recovery_count()
Function to increment recovery count on blackboard if this node wraps a recovery.
A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::ClearCostmapAroundRobot.
ClearCostmapAroundRobotService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ClearCostmapAroundRobotService.
void on_tick() override
The main override required by a BT service.
A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::ClearCostmapExceptRegion.
ClearCostmapExceptRegionService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ClearCostmapExceptRegionService.
void on_tick() override
The main override required by a BT service.
A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::ClearEntireCostmap.
void on_tick() override
The main override required by a BT service.
ClearEntireCostmapService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ClearEntireCostmapService.