9#pragma warning(disable : 4521)
50 std::vector<std::unique_ptr<Command>>&& commands);
59 template <wpi::DecayedDerivedFrom<Command>... Commands>
77 template <wpi::DecayedDerivedFrom<Command>... Commands>
79 std::vector<std::unique_ptr<Command>> foo;
80 ((void)foo.emplace_back(std::make_unique<std::decay_t<Commands>>(
81 std::forward<Commands>(commands))),
90 void End(
bool interrupted) final;
105 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:44
InterruptionBehavior
An enum describing the command's behavior when another command with a shared requirement is scheduled...
Definition: Command.h:101
@ 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:40
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:78
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:60
SequentialCommandGroup(const SequentialCommandGroup &)=delete
constexpr common_t< T1, T2 > max(const T1 x, const T2 y) noexcept
Compile-time pairwise maximum function.
Definition: max.hpp:35
Definition: ProfiledPIDCommand.h:18
const size_t invalid_index
Definition: SequentialCommandGroup.h:27
Definition: BFloat16.h:88
Definition: AprilTagFieldLayout.h:18
class LLVM_GSL_OWNER SmallVector
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference s...
Definition: SmallVector.h:1112