9#pragma warning(disable : 4521)
47 std::vector<std::unique_ptr<Command>>&& commands);
58 template <wpi::util::DecayedDerivedFrom<Command> T,
59 wpi::util::DecayedDerivedFrom<Command>... Commands>
61 SetDeadline(std::make_unique<std::decay_t<T>>(std::forward<T>(deadline)));
78 template <wpi::util::DecayedDerivedFrom<Command>... Commands>
80 std::vector<std::unique_ptr<Command>> foo;
81 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
82 std::forward<Commands>(commands))),
91 void End(
bool interrupted) final;
104 void SetDeadline(
std::unique_ptr<
Command>&& deadline);
108 bool m_runWhenDisabled{
true};
111 bool m_finished{
true};
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
ParallelDeadlineGroup(ParallelDeadlineGroup &&other)=default
void End(bool interrupted) final
ParallelDeadlineGroup(const ParallelDeadlineGroup &)=delete
ParallelDeadlineGroup(std::unique_ptr< Command > &&deadline, std::vector< std::unique_ptr< Command > > &&commands)
Creates a new ParallelDeadlineGroup.
Command::InterruptionBehavior GetInterruptionBehavior() const override
ParallelDeadlineGroup(T &&deadline, Commands &&... commands)
Creates a new ParallelDeadlineGroup.
Definition ParallelDeadlineGroup.hpp:60
ParallelDeadlineGroup(ParallelDeadlineGroup &)=delete
bool RunsWhenDisabled() const override
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition ParallelDeadlineGroup.hpp:79
void InitSendable(wpi::util::SendableBuilder &builder) override
Definition StringMap.hpp:773
Definition CommandNiDsStadiaController.hpp:15
Definition raw_os_ostream.hpp:19
Definition CvSource.hpp:15