10#ifndef _ALWAYS_RUNNING_HPP
11#define _ALWAYS_RUNNING_HPP
13#include <behaviortree_cpp/action_node.h>
15#include <rclcpp/rclcpp.hpp>
16#include <std_msgs/msg/string.hpp>
35 const std::string & name,
const BT::NodeConfig & config,
36 rclcpp::Publisher<std_msgs::msg::String>::SharedPtr logger_pub);
48 BT::NodeStatus
onStart()
override;
62 rclcpp::Publisher<std_msgs::msg::String>::SharedPtr logger_pub_;
A simple node that constantly returns RUNNING.
Definition: always_running.hpp:27
void onHalted() override
Called when the node is halted.
Definition: always_running.cpp:36
BT::NodeStatus onStart() override
Called first when the node is ticked.
Definition: always_running.cpp:26
BT::NodeStatus onRunning() override
Called continuously after onStart() returns RUNNING.
Definition: always_running.cpp:34
static BT::PortsList providedPorts()
Defines the ports used by this node.
Definition: always_running.cpp:24