Condition node to check the health status of battery voltage.
More...
#include <battery_check.hpp>
|
| | BatteryCheck (const std::string &name, const BT::NodeConfig &config, rclcpp::Publisher< std_msgs::msg::String >::SharedPtr logger_pub, rclcpp::Node::SharedPtr ros_node) |
| | Constructor for the BatteryCheck node.
|
| |
| BT::NodeStatus | onStart () override |
| | Start logic.
|
| |
| BT::NodeStatus | onRunning () override |
| | Performs the battery check logic.
|
| |
| void | onHalted () override |
| | Called when the node is halted.
|
| |
|
| static BT::PortsList | providedPorts () |
| | Defines the input and output ports for this node.
|
| |
Condition node to check the health status of battery voltage.
◆ BatteryCheck()
| BatteryCheck::BatteryCheck |
( |
const std::string & |
name, |
|
|
const BT::NodeConfig & |
config, |
|
|
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr |
logger_pub, |
|
|
rclcpp::Node::SharedPtr |
ros_node |
|
) |
| |
Constructor for the BatteryCheck node.
- Parameters
-
| name | The name of the node in the behavior tree. |
| config | The configuration of the node. |
| ros_node | Shared pointer to the ROS 2 node used for subscriptions. |
◆ onHalted()
| void BatteryCheck::onHalted |
( |
| ) |
|
|
override |
Called when the node is halted.
◆ onRunning()
| BT::NodeStatus BatteryCheck::onRunning |
( |
| ) |
|
|
override |
Performs the battery check logic.
◆ onStart()
| BT::NodeStatus BatteryCheck::onStart |
( |
| ) |
|
|
override |
◆ providedPorts()
| BT::PortsList BatteryCheck::providedPorts |
( |
| ) |
|
|
static |
Defines the input and output ports for this node.
- Returns
- A list of ports.
The documentation for this class was generated from the following files: