EasyFleet
A simple-by-default framework for multi-robot, multi-capability fleets built on ROS 2
Loading...
Searching...
No Matches
StartOff Class Reference

Bookend BT node run before Navigate: takes 2 seconds and only prints a starting message. More...

#include <start_off.hpp>

Inheritance diagram for StartOff:

Public Member Functions

 StartOff (const std::string &name, const BT::NodeConfig &config)
 Constructs the BT node.
BT::NodeStatus onStart () override
 Records the start time and logs a starting message.
BT::NodeStatus onRunning () override
 Waits out the fixed 2-second delay.
void onHalted () override
 No-op: this node has nothing to clean up on halt.

Static Public Member Functions

static BT::PortsList providedPorts ()
 This node's ports (none).

Detailed Description

Bookend BT node run before Navigate: takes 2 seconds and only prints a starting message.

No ports.

Constructor & Destructor Documentation

◆ StartOff()

StartOff ( const std::string & name,
const BT::NodeConfig & config )

Constructs the BT node.

Parameters
nameName of this node instance, as given in the BT XML.
configBT.CPP node configuration (ports, blackboard).

Member Function Documentation

◆ onRunning()

BT::NodeStatus onRunning ( )
override

Waits out the fixed 2-second delay.

Returns
SUCCESS once at least 2 seconds have elapsed since onStart(), RUNNING otherwise.

◆ onStart()

BT::NodeStatus onStart ( )
override

Records the start time and logs a starting message.

Returns
RUNNING.

◆ providedPorts()

BT::PortsList providedPorts ( )
static

This node's ports (none).

Returns
This node's ports (none).

The documentation for this class was generated from the following files:
  • easyfleet_example_deployments/easyfleet_easynav_deployment/include/easyfleet_easynav_deployment/bt_nodes/start_off.hpp
  • easyfleet_example_deployments/easyfleet_easynav_deployment/src/easyfleet_easynav_deployment/start_off.cpp