36 std::function<
void()> onExecute,
37 std::function<
void(
bool)> onEnd,
38 std::function<
bool()> isFinished,
49 void End(
bool interrupted)
override;
54 std::function<void()> m_onInit;
55 std::function<void()> m_onExecute;
56 std::function<void(
bool)> m_onEnd;
57 std::function<bool()> m_isFinished;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
A command that allows the user to pass in functions for each of the basic command methods through the...
Definition: FunctionalCommand.h:23
void End(bool interrupted) override
FunctionalCommand(std::function< void()> onInit, std::function< void()> onExecute, std::function< void(bool)> onEnd, std::function< bool()> isFinished, Requirements requirements={})
Creates a new FunctionalCommand.
FunctionalCommand(FunctionalCommand &&other)=default
void Initialize() override
bool IsFinished() override
FunctionalCommand(const FunctionalCommand &other)=default
Represents requirements for a command, which is a set of (pointers to) subsystems.
Definition: Requirements.h:20
Definition: TrapezoidProfileSubsystem.h:12