Class SafeDisconnectFunction

Class Documentation

class SafeDisconnectFunction

Abstract base class for a functor that defines how a robot is considered “disconnected” in the CommandScheduler. When the functor returns true, the robot is then considered disconnected and will end all Commands in the CommandScheduler and disallow new Commands from being added.

By default, the SafeDisconnectFunction will always return false, i.e., allow the CommandScheduler to continue running Commands in a “disconnected” state.

Public Functions

inline SafeDisconnectFunction()
inline virtual bool operator()()