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_around_pose.hpp"
24 #include "nav2_msgs/srv/clear_costmap_except_region.hpp"
26 namespace nav2_behavior_tree
41 const std::string & service_node_name,
42 const BT::NodeConfiguration & conf);
56 :
public BtServiceNode<nav2_msgs::srv::ClearCostmapExceptRegion>
65 const std::string & service_node_name,
66 const BT::NodeConfiguration & conf);
82 BT::InputPort<double>(
84 "Distance from the robot above which obstacles are cleared")
102 const std::string & service_node_name,
103 const BT::NodeConfiguration & conf);
119 BT::InputPort<double>(
121 "Distance from the robot under which obstacles are cleared")
141 const std::string & service_node_name,
142 const BT::NodeConfiguration & conf);
158 BT::InputPort<geometry_msgs::msg::PoseStamped>(
159 "pose",
"Pose around which to clear the costmap"),
160 BT::InputPort<double>(
161 "reset_distance", 1.0,
162 "Distance from the pose 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::ClearCostmapAroundPose.
ClearCostmapAroundPoseService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ClearCostmapAroundPoseService.
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::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.