9#pragma warning(disable : 4521)
48 template <std::derived_from<Command> T>
52 std::make_unique<
std::decay_t<T>>(
std::forward<T>(command))) {}
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:25
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:101
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
Definition: SendableBuilder.h:18
Definition: ProfiledPIDCommand.h:18
Definition: BFloat16.h:88