9#pragma warning(disable : 4521)
48 template <std::derived_from<Command> T>
68 void End(
bool interrupted)
override;
77 std::unique_ptr<Command> m_command;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:173
A command that runs another command repeatedly, restarting it when it ends, until this command is int...
Definition: RepeatCommand.h:32
RepeatCommand(RepeatCommand &&other)=default
void End(bool interrupted) override
void InitSendable(wpi::SendableBuilder &builder) override
bool RunsWhenDisabled() const override
RepeatCommand(T &&command)
Creates a new RepeatCommand.
Definition: RepeatCommand.h:50
void Initialize() override
Command::InterruptionBehavior GetInterruptionBehavior() const override
RepeatCommand(const RepeatCommand &other)=delete
RepeatCommand(RepeatCommand &)=delete
RepeatCommand(std::unique_ptr< Command > &&command)
Creates a new RepeatCommand.
bool IsFinished() override
Helper class for building Sendable dashboard representations.
Definition: SendableBuilder.h:21
Definition: TrapezoidProfileSubsystem.h:12
typename std::decay< T >::type decay_t
Definition: expected:231