50 void End(
bool interrupted)
override;
58 std::unique_ptr<Command> m_command;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition CommandHelper.h:25
A wrapper around std::unique_ptr<Command> so commands have move-only semantics.
Definition CommandPtr.h:28
Defers Command construction to runtime.
Definition DeferredCommand.h:27
DeferredCommand(wpi::unique_function< CommandPtr()> supplier, Requirements requirements)
Creates a new DeferredCommand that directly runs the supplied command when initialized,...
DeferredCommand(DeferredCommand &&other)=default
void InitSendable(wpi::SendableBuilder &builder) override
void Initialize() override
bool IsFinished() override
void End(bool interrupted) override
Represents requirements for a command, which is a set of (pointers to) subsystems.
Definition Requirements.h:20
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
unique_function is a type-erasing functor similar to std::function.
Definition FunctionExtras.h:57
Definition FunctionalCommand.h:13