58 void End(
bool interrupted)
override;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:26
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:47
Schedules the given command when this command is initialized, and ends when it ends.
Definition: ProxyCommand.h:24
ProxyCommand(Command *command)
Creates a new ProxyCommand that schedules the given command when initialized, and ends when it is no ...
ProxyCommand(std::unique_ptr< Command > command)
Creates a new ProxyCommand that schedules the given command when initialized, and ends when it is no ...
ProxyCommand(wpi::unique_function< Command *()> supplier)
Creates a new ProxyCommand that schedules the supplied command when initialized, and ends when it is ...
void Initialize() override
The initial subroutine of a command.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
void Execute() override
The main body of a command.
bool IsFinished() override
Whether the command has finished.
ProxyCommand(ProxyCommand &&other)=default
void End(bool interrupted) override
The action to take when the command ends.
Definition: SendableBuilder.h:18
unique_function is a type-erasing functor similar to std::function.
Definition: FunctionExtras.h:56
Definition: InstantCommand.h:14