WPILibC++ 2023.4.3-108-ge5452e3
|
A command composition that runs a set of commands in parallel, ending only when a specific command (the "deadline") ends, interrupting all other commands that are still running at that point. More...
#include <frc2/command/ParallelDeadlineGroup.h>
Public Member Functions | |
ParallelDeadlineGroup (std::unique_ptr< Command > &&deadline, std::vector< std::unique_ptr< Command > > &&commands) | |
Creates a new ParallelDeadlineGroup. More... | |
template<wpi::DecayedDerivedFrom< Command > T, wpi::DecayedDerivedFrom< Command >... Commands> | |
ParallelDeadlineGroup (T &&deadline, Commands &&... commands) | |
Creates a new ParallelDeadlineGroup. More... | |
ParallelDeadlineGroup (ParallelDeadlineGroup &&other)=default | |
ParallelDeadlineGroup (const ParallelDeadlineGroup &)=delete | |
ParallelDeadlineGroup (ParallelDeadlineGroup &)=delete | |
template<wpi::DecayedDerivedFrom< Command >... Commands> | |
void | AddCommands (Commands &&... commands) |
Adds the given commands to the group. More... | |
void | Initialize () final |
void | Execute () final |
void | End (bool interrupted) final |
bool | IsFinished () final |
bool | RunsWhenDisabled () const override |
Command::InterruptionBehavior | GetInterruptionBehavior () const override |
void | InitSendable (wpi::SendableBuilder &builder) override |
Public Member Functions inherited from frc2::CommandHelper< CommandBase, ParallelDeadlineGroup > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< CommandBase, ParallelDeadlineGroup > | |
std::unique_ptr< Command > | TransferOwnership () &&override |
A command composition that runs a set of commands in parallel, ending only when a specific command (the "deadline") ends, interrupting all other commands that are still running at that point.
The rules for command compositions apply: command instances that are passed to it are owned by the composition and cannot be added to any other composition or scheduled individually, and the composition requires all subsystems its components require.
This class is provided by the NewCommands VendorDep
frc2::ParallelDeadlineGroup::ParallelDeadlineGroup | ( | std::unique_ptr< Command > && | deadline, |
std::vector< std::unique_ptr< Command > > && | commands | ||
) |
Creates a new ParallelDeadlineGroup.
The given commands (including the deadline) will be executed simultaneously. The composition will finish when the deadline finishes, interrupting all other still-running commands. If the composition is interrupted, only the commands still running will be interrupted.
deadline | the command that determines when the composition ends |
commands | the commands to be executed |
|
inlineexplicit |
Creates a new ParallelDeadlineGroup.
The given commands (including the deadline) will be executed simultaneously. The composition will finish when the deadline finishes, interrupting all other still-running commands. If the composition is interrupted, only the commands still running will be interrupted.
deadline | the command that determines when the composition ends |
commands | the commands to be executed |
|
default |
|
delete |
|
delete |
|
inline |
Adds the given commands to the group.
commands | Commands to add to the group. |
|
final |
|
final |
|
override |
|
final |
|
override |
|
final |
|
override |