65 void End(
bool interrupted)
override;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:41
A wrapper around std::unique_ptr<Command> so commands have move-only semantics.
Definition: CommandPtr.h:29
Schedules the given command when this command is initialized, and ends when it ends.
Definition: ProxyCommand.h:22
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
void InitSendable(wpi::SendableBuilder &builder) override
bool IsFinished() override
ProxyCommand(ProxyCommand &&other)=default
void End(bool interrupted) override
ProxyCommand(wpi::unique_function< CommandPtr()> supplier)
Creates a new ProxyCommand that schedules the supplied command when initialized, and ends when it is ...
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