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

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

#include <finish.hpp>

Inheritance diagram for Finish:

Public Member Functions

 Finish (const std::string &name, const BT::NodeConfig &config)
 Constructs the BT node.
BT::NodeStatus onStart () override
 Records the start time and logs a finishing 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 after Navigate: takes 2 seconds and only prints a finishing message.

No ports.

Constructor & Destructor Documentation

◆ Finish()

Finish ( 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 finishing 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/finish.hpp
  • easyfleet_example_deployments/easyfleet_easynav_deployment/src/easyfleet_easynav_deployment/finish.cpp