19 #include "nav2_behavior_tree/bt_service_node.hpp"
20 #include "nav2_msgs/srv/toggle.hpp"
22 namespace nav2_behavior_tree
39 const std::string & service_node_name,
40 const BT::NodeConfiguration & conf);
58 "Whether to enable or disable collision monitoring"),
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::Toggle.
static BT::PortsList providedPorts()
Creates list of BT ports.
void on_tick() override
The main override required by a BT service.
ToggleCollisionMonitorService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ToggleCollisionMonitorService.