51 void End(
bool interrupted)
override;
59 std::unique_ptr<Command> m_command;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
A wrapper around std::unique_ptr<Command> so commands have move-only semantics.
Definition: CommandPtr.h:29
Defers Command construction to runtime.
Definition: DeferredCommand.h:29
DeferredCommand(wpi::unique_function< CommandPtr()> supplier, Requirements requirements)
Creates a new DeferredCommand that runs the supplied command when initialized, and ends when it ends.
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: TrapezoidProfileSubsystem.h:12