Common
common packages for kyubic
 
Loading...
Searching...
No Matches
BatteryCheck Class Reference

Condition node to check the health status of battery voltage. More...

#include <battery_check.hpp>

+ Inheritance diagram for BatteryCheck:
+ Collaboration diagram for BatteryCheck:

Public Member Functions

 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 Public Member Functions

static BT::PortsList providedPorts ()
 Defines the input and output ports for this node.
 

Detailed Description

Condition node to check the health status of battery voltage.

Constructor & Destructor Documentation

◆ 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
nameThe name of the node in the behavior tree.
configThe configuration of the node.
ros_nodeShared pointer to the ROS 2 node used for subscriptions.

Member Function Documentation

◆ 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

Start logic.

◆ 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: