9#pragma warning(disable : 4521)
44 std::vector<std::unique_ptr<Command>>&& commands);
54 template <wpi::util::DecayedDerivedFrom<Command>... Commands>
72 template <wpi::util::DecayedDerivedFrom<Command>... Commands>
74 std::vector<std::unique_ptr<Command>> foo;
75 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
76 std::forward<Commands>(commands))),
85 void End(
bool interrupted) final;
97 bool m_runWhenDisabled{
true};
100 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
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition ParallelCommandGroup.hpp:73
ParallelCommandGroup(ParallelCommandGroup &)=delete
ParallelCommandGroup(std::vector< std::unique_ptr< Command > > &&commands)
Creates a new ParallelCommandGroup.
ParallelCommandGroup(const ParallelCommandGroup &)=delete
bool RunsWhenDisabled() const override
Command::InterruptionBehavior GetInterruptionBehavior() const override
ParallelCommandGroup(Commands &&... commands)
Creates a new ParallelCommandGroup.
Definition ParallelCommandGroup.hpp:55
void End(bool interrupted) final
ParallelCommandGroup(ParallelCommandGroup &&other)=default
Definition StringMap.hpp:773
Definition CommandNiDsStadiaController.hpp:15