9#pragma warning(disable : 4521)
46 template <wpi::DecayedDerivedFrom<Command>... Commands>
64 template <wpi::DecayedDerivedFrom<Command>... Commands>
66 std::vector<std::unique_ptr<Command>> foo;
67 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
68 std::forward<Commands>(commands))),
77 void End(
bool interrupted) final;
89 bool m_runWhenDisabled{
true};
92 bool m_finished{
false};
93 bool isRunning =
false;
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
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:173
@ kCancelIncoming
This command continues, and the incoming command is not scheduled.
A composition that runs a set of commands in parallel, ending when any one of the commands ends and i...
Definition: ParallelRaceGroup.h:35
ParallelRaceGroup(const ParallelRaceGroup &)=delete
Command::InterruptionBehavior GetInterruptionBehavior() const override
ParallelRaceGroup(ParallelRaceGroup &&other)=default
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition: ParallelRaceGroup.h:65
ParallelRaceGroup(ParallelRaceGroup &)=delete
void End(bool interrupted) final
ParallelRaceGroup(std::vector< std::unique_ptr< Command > > &&commands)
Creates a new ParallelCommandRace.
ParallelRaceGroup(Commands &&... commands)
Definition: ParallelRaceGroup.h:47
bool RunsWhenDisabled() const override
Definition: TrapezoidProfileSubsystem.h:12