48 [[deprecated(
"Defer a proxy command instead.")]]
67 [[deprecated(
"Defer a proxy command instead.")]]
94 void End(
bool interrupted)
override;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition CommandHelper.h:25
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:28
Schedules a given command when this command is initialized and ends when it ends, but does not direct...
Definition ProxyCommand.h:29
ProxyCommand(std::unique_ptr< Command > command)
Creates a new ProxyCommand that schedules the given command when initialized, and ends when it is no ...
WPI_IGNORE_DEPRECATED ProxyCommand(wpi::unique_function< Command *()> supplier)
Creates a new ProxyCommand that schedules the supplied command when initialized, and ends when it is ...
WPI_UNIGNORE_DEPRECATED ProxyCommand(Command *command)
Creates a new ProxyCommand that schedules the given command when initialized, and ends when it is no ...
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
#define WPI_IGNORE_DEPRECATED
Definition deprecated.h:16
#define WPI_UNIGNORE_DEPRECATED
Definition deprecated.h:27
Definition FunctionalCommand.h:13