WPILibC++ 2024.3.2
|
A command composition that runs a set of commands in parallel, ending when the last command ends. More...
#include <frc2/command/ParallelCommandGroup.h>
Public Member Functions | |
ParallelCommandGroup (std::vector< std::unique_ptr< Command > > &&commands) | |
Creates a new ParallelCommandGroup. More... | |
template<wpi::DecayedDerivedFrom< Command >... Commands> | |
ParallelCommandGroup (Commands &&... commands) | |
Creates a new ParallelCommandGroup. More... | |
ParallelCommandGroup (ParallelCommandGroup &&other)=default | |
ParallelCommandGroup (const ParallelCommandGroup &)=delete | |
ParallelCommandGroup (ParallelCommandGroup &)=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 |
Public Member Functions inherited from frc2::CommandHelper< Command, ParallelCommandGroup > | |
CommandHelper ()=default | |
CommandPtr | ToPtr () &&override |
Additional Inherited Members | |
Protected Member Functions inherited from frc2::CommandHelper< Command, ParallelCommandGroup > | |
std::unique_ptr< Command > | TransferOwnership () &&override |
A command composition that runs a set of commands in parallel, ending when the last command ends.
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
|
explicit |
Creates a new ParallelCommandGroup.
The given commands will be executed simultaneously. The command group will finish when the last command finishes. If the composition is interrupted, only the commands that are still running will be interrupted.
commands | the commands to include in this composition. |
|
inlineexplicit |
Creates a new ParallelCommandGroup.
The given commands will be executed simultaneously. The command group will finish when the last command finishes. If the composition is interrupted, only the commands that are still running will be interrupted.
commands | the commands to include in this composition. |
|
default |
|
delete |
|
delete |
|
inline |
Adds the given commands to the group.
commands | Commands to add to the group. |
|
final |
|
final |
|
override |
|
final |
|
final |
|
override |