9#pragma warning(disable : 4521)
47 std::vector<std::unique_ptr<Command>>&& commands);
56 template <wpi::DecayedDerivedFrom<Command>... Commands>
74 template <wpi::DecayedDerivedFrom<Command>... Commands>
76 std::vector<std::unique_ptr<Command>> foo;
77 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
78 std::forward<Commands>(commands))),
87 void End(
bool interrupted) final;
102 bool m_runWhenDisabled{
true};
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
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:37
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:75
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:57
SequentialCommandGroup(const SequentialCommandGroup &)=delete
Definition: NotifierCommand.h:16
const size_t invalid_index
Definition: SequentialCommandGroup.h:24
Implement std::hash so that hash_code can be used in STL containers.
Definition: array.h:89
UnitTypeLhs() max(const UnitTypeLhs &lhs, const UnitTypeRhs &rhs)
Definition: base.h:3419
Definition: ntcore_cpp.h:26