9#pragma warning(disable : 4521)
43 template <wpi::util::DecayedDerivedFrom<Command>... Commands>
61 template <wpi::util::DecayedDerivedFrom<Command>... Commands>
63 std::vector<std::unique_ptr<Command>> foo;
64 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
65 std::forward<Commands>(commands))),
74 void End(
bool interrupted) final;
86 bool m_runWhenDisabled{
true};
89 bool m_finished{
false};
90 bool isRunning =
false;
A state machine representing a complete action to be performed by the robot.
Definition Command.hpp:41
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition Command.hpp:173
@ kCancelIncoming
This command continues, and the incoming command is not scheduled.
Definition Command.hpp:182
ParallelRaceGroup(ParallelRaceGroup &)=delete
bool RunsWhenDisabled() const override
ParallelRaceGroup(std::vector< std::unique_ptr< Command > > &&commands)
Creates a new ParallelCommandRace.
ParallelRaceGroup(const ParallelRaceGroup &)=delete
void End(bool interrupted) final
ParallelRaceGroup(Commands &&... commands)
Definition ParallelRaceGroup.hpp:44
ParallelRaceGroup(ParallelRaceGroup &&other)=default
Command::InterruptionBehavior GetInterruptionBehavior() const override
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition ParallelRaceGroup.hpp:62
Definition StringMap.hpp:773
Definition CommandNiDsStadiaController.hpp:15