9#pragma warning(disable : 4521)
49 std::vector<std::unique_ptr<Command>>&& commands);
58 template <wpi::DecayedDerivedFrom<Command>... Commands>
76 template <wpi::DecayedDerivedFrom<Command>... Commands>
78 std::vector<std::unique_ptr<Command>> foo;
79 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
80 std::forward<Commands>(commands))),
89 void End(
bool interrupted) final;
104 bool m_runWhenDisabled{
true};
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:41
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:173
@ kCancelIncoming
This command continues, and the incoming command is not scheduled.
A command composition that runs a list of commands in sequence.
Definition: SequentialCommandGroup.h:39
bool RunsWhenDisabled() const override
SequentialCommandGroup(SequentialCommandGroup &&other)=default
SequentialCommandGroup(std::vector< std::unique_ptr< Command > > &&commands)
Creates a new SequentialCommandGroup.
void AddCommands(Commands &&... commands)
Adds the given commands to the group.
Definition: SequentialCommandGroup.h:77
void End(bool interrupted) final
Command::InterruptionBehavior GetInterruptionBehavior() const override
void InitSendable(wpi::SendableBuilder &builder) override
SequentialCommandGroup(SequentialCommandGroup &)=delete
SequentialCommandGroup(Commands &&... commands)
Creates a new SequentialCommandGroup.
Definition: SequentialCommandGroup.h:59
SequentialCommandGroup(const SequentialCommandGroup &)=delete
Definition: TrapezoidProfileSubsystem.h:12
const size_t invalid_index
Definition: SequentialCommandGroup.h:26
UnitTypeLhs() max(const UnitTypeLhs &lhs, const UnitTypeRhs &rhs)
Definition: base.h:3417
Definition: ntcore_cpp.h:26