15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__CLEAR_COSTMAP_SERVICE_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__CLEAR_COSTMAP_SERVICE_HPP_
20 #include "nav2_behavior_tree/bt_service_node.hpp"
21 #include "nav2_msgs/srv/clear_entire_costmap.hpp"
22 #include "nav2_msgs/srv/clear_costmap_around_robot.hpp"
23 #include "nav2_msgs/srv/clear_costmap_except_region.hpp"
25 namespace nav2_behavior_tree
40 const std::string & service_node_name,
41 const BT::NodeConfiguration & conf);
55 :
public BtServiceNode<nav2_msgs::srv::ClearCostmapExceptRegion>
64 const std::string & service_node_name,
65 const BT::NodeConfiguration & conf);
81 BT::InputPort<double>(
83 "Distance from the robot above which obstacles are cleared")
101 const std::string & service_node_name,
102 const BT::NodeConfiguration & conf);
118 BT::InputPort<double>(
120 "Distance from the robot under which obstacles are cleared")
Abstract class representing a service based BT node.
static BT::PortsList providedBasicPorts(BT::PortsList addition)
Any subclass of BtServiceNode that accepts parameters must provide a providedPorts method and call pr...
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.
static BT::PortsList providedPorts()
Creates list of BT ports.
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.
static BT::PortsList providedPorts()
Creates list of BT ports.
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.