Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
A BT::ConditionNode that listens to a battery topic and returns SUCCESS when battery is low and FAILURE otherwise. More...
#include <nav2_behavior_tree/include/nav2_behavior_tree/plugins/condition/is_battery_low_condition.hpp>
Public Member Functions | |
IsBatteryLowCondition (const std::string &condition_name, const BT::NodeConfiguration &conf) | |
A constructor for nav2_behavior_tree::IsBatteryLowCondition. More... | |
BT::NodeStatus | tick () override |
The main override required by a BT action. More... | |
void | initialize () |
Function to read parameters and initialize class variables. | |
void | createROSInterfaces () |
Function to create ROS interfaces. | |
Static Public Member Functions | |
static BT::PortsList | providedPorts () |
Creates list of BT ports. More... | |
A BT::ConditionNode that listens to a battery topic and returns SUCCESS when battery is low and FAILURE otherwise.
Definition at line 36 of file is_battery_low_condition.hpp.
nav2_behavior_tree::IsBatteryLowCondition::IsBatteryLowCondition | ( | const std::string & | condition_name, |
const BT::NodeConfiguration & | conf | ||
) |
A constructor for nav2_behavior_tree::IsBatteryLowCondition.
condition_name | Name for the XML tag for this node |
conf | BT node configuration |
Definition at line 23 of file is_battery_low_condition.cpp.
References initialize().
|
inlinestatic |
Creates list of BT ports.
Definition at line 70 of file is_battery_low_condition.hpp.
|
override |
The main override required by a BT action.
Definition at line 68 of file is_battery_low_condition.cpp.
References initialize().