Nav2 Navigation Stack - jazzy  jazzy
ROS 2 Navigation Stack
Public Member Functions | List of all members
nav2_behavior_tree::ClearEntireCostmapService Class Reference

A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::ClearEntireCostmap. More...

#include <nav2_behavior_tree/include/nav2_behavior_tree/plugins/action/clear_costmap_service.hpp>

Inheritance diagram for nav2_behavior_tree::ClearEntireCostmapService:
Inheritance graph
[legend]
Collaboration diagram for nav2_behavior_tree::ClearEntireCostmapService:
Collaboration graph
[legend]

Public Member Functions

 ClearEntireCostmapService (const std::string &service_node_name, const BT::NodeConfiguration &conf)
 A constructor for nav2_behavior_tree::ClearEntireCostmapService. More...
 
void on_tick () override
 The main override required by a BT service. More...
 
- Public Member Functions inherited from nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >
 BtServiceNode (const std::string &service_node_name, const BT::NodeConfiguration &conf, const std::string &service_name="")
 A nav2_behavior_tree::BtServiceNode constructor. More...
 
BT::NodeStatus tick () override
 The main override required by a BT service. More...
 
void halt () override
 The other (optional) override required by a BT service.
 
virtual BT::NodeStatus on_completion (std::shared_ptr< typename ServiceT::Response >)
 Function to perform some user-defined operation upon successful completion of the service. Could put a value on the blackboard. More...
 
virtual BT::NodeStatus check_future ()
 Check the future and decide the status of BT. More...
 
virtual void on_wait_for_result ()
 Function to perform some user-defined operation after a timeout waiting for a result that hasn't been received yet.
 

Additional Inherited Members

- Static Public Member Functions inherited from nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >
static BT::PortsList providedBasicPorts (BT::PortsList addition)
 Any subclass of BtServiceNode that accepts parameters must provide a providedPorts method and call providedBasicPorts in it. More...
 
static BT::PortsList providedPorts ()
 Creates list of BT ports. More...
 
- Protected Member Functions inherited from nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >
void increment_recovery_count ()
 Function to increment recovery count on blackboard if this node wraps a recovery.
 
- Protected Attributes inherited from nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >
std::string service_name_
 
std::string service_node_name_
 
std::shared_ptr< rclcpp::Client< nav2_msgs::srv::ClearEntireCostmap > > service_client_
 
std::shared_ptr< typename ServiceT::Request > request_
 
rclcpp::Node::SharedPtr node_
 
rclcpp::CallbackGroup::SharedPtr callback_group_
 
rclcpp::executors::SingleThreadedExecutor callback_group_executor_
 
std::chrono::milliseconds server_timeout_
 
std::chrono::milliseconds max_timeout_
 
std::chrono::milliseconds wait_for_service_timeout_
 
std::shared_future< typename ServiceT::Response::SharedPtr > future_result_
 
bool request_sent_
 
rclcpp::Time sent_time_
 
bool should_send_request_
 

Detailed Description

A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::ClearEntireCostmap.

Definition at line 32 of file clear_costmap_service.hpp.

Constructor & Destructor Documentation

◆ ClearEntireCostmapService()

nav2_behavior_tree::ClearEntireCostmapService::ClearEntireCostmapService ( const std::string &  service_node_name,
const BT::NodeConfiguration &  conf 
)

A constructor for nav2_behavior_tree::ClearEntireCostmapService.

Parameters
service_node_nameService name this node creates a client for
confBT node configuration

Definition at line 23 of file clear_costmap_service.cpp.

Member Function Documentation

◆ on_tick()

void nav2_behavior_tree::ClearEntireCostmapService::on_tick ( )
overridevirtual

The main override required by a BT service.

Returns
BT::NodeStatus Status of tick execution

Reimplemented from nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >.

Definition at line 30 of file clear_costmap_service.cpp.

References nav2_behavior_tree::BtServiceNode< nav2_msgs::srv::ClearEntireCostmap >::increment_recovery_count().

Here is the call graph for this function:

The documentation for this class was generated from the following files: