A simple node that constantly returns RUNNING.
More...
#include <always_running.hpp>
|
| | AlwaysRunning (const std::string &name, const BT::NodeConfig &config, rclcpp::Publisher< std_msgs::msg::String >::SharedPtr logger_pub) |
| | Constructor.
|
| |
| BT::NodeStatus | onStart () override |
| | Called first when the node is ticked.
|
| |
| BT::NodeStatus | onRunning () override |
| | Called continuously after onStart() returns RUNNING.
|
| |
| void | onHalted () override |
| | Called when the node is halted.
|
| |
|
| static BT::PortsList | providedPorts () |
| | Defines the ports used by this node.
|
| |
A simple node that constantly returns RUNNING.
Returns RUNNING when onStart() is called. Returns RUNNING when onRunning() is called.
◆ AlwaysRunning()
| behavior_tree::AlwaysRunning::AlwaysRunning |
( |
const std::string & |
name, |
|
|
const BT::NodeConfig & |
config, |
|
|
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr |
logger_pub |
|
) |
| |
Constructor.
- Parameters
-
| name | Node name |
| config | Node configuration |
◆ onHalted()
| void behavior_tree::AlwaysRunning::onHalted |
( |
| ) |
|
|
override |
Called when the node is halted.
◆ onRunning()
| BT::NodeStatus behavior_tree::AlwaysRunning::onRunning |
( |
| ) |
|
|
override |
Called continuously after onStart() returns RUNNING.
- Returns
- BT::NodeStatus::RUNNING forever.
◆ onStart()
| BT::NodeStatus behavior_tree::AlwaysRunning::onStart |
( |
| ) |
|
|
override |
Called first when the node is ticked.
- Returns
- BT::NodeStatus::RUNNING immediately.
◆ providedPorts()
| BT::PortsList behavior_tree::AlwaysRunning::providedPorts |
( |
| ) |
|
|
static |
Defines the ports used by this node.
- Returns
- An empty list as this node requires no ports.
The documentation for this class was generated from the following files: