9#pragma warning(disable : 4521)
50 std::vector<std::unique_ptr<Command>>&& commands);
61 template <wpi::DecayedDerivedFrom<Command> T,
62 wpi::DecayedDerivedFrom<Command>... Commands>
64 SetDeadline(std::make_unique<std::decay_t<T>>(std::forward<T>(deadline)));
81 template <wpi::DecayedDerivedFrom<Command>... Commands>
83 std::vector<std::unique_ptr<Command>> foo;
84 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
85 std::forward<Commands>(commands))),
94 void End(
bool interrupted) final;
107 void SetDeadline(
std::unique_ptr<
Command>&& deadline);
111 bool m_runWhenDisabled{
true};
114 bool m_finished{
true};
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:44
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:101
@ kCancelIncoming
This command continues, and the incoming command is not scheduled.
A command composition that runs a set of commands in parallel, ending only when a specific command (t...
Definition: ParallelDeadlineGroup.h:37
ParallelDeadlineGroup(ParallelDeadlineGroup &)=delete
ParallelDeadlineGroup(ParallelDeadlineGroup &&other)=default
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition: ParallelDeadlineGroup.h:82
ParallelDeadlineGroup(std::unique_ptr< Command > &&deadline, std::vector< std::unique_ptr< Command > > &&commands)
Creates a new ParallelDeadlineGroup.
Command::InterruptionBehavior GetInterruptionBehavior() const override
void InitSendable(wpi::SendableBuilder &builder) override
ParallelDeadlineGroup(const ParallelDeadlineGroup &)=delete
bool RunsWhenDisabled() const override
void End(bool interrupted) final
ParallelDeadlineGroup(T &&deadline, Commands &&... commands)
Creates a new ParallelDeadlineGroup.
Definition: ParallelDeadlineGroup.h:63
Definition: ProfiledPIDCommand.h:18
Definition: BFloat16.h:88
Definition: AprilTagFieldLayout.h:18