10 #include <initializer_list>
13 #include <frc/smartdashboard/Sendable.h>
14 #include <frc/smartdashboard/SendableHelper.h>
15 #include <wpi/ArrayRef.h>
16 #include <wpi/SmallSet.h>
17 #include <wpi/Twine.h>
19 #include "frc2/command/Command.h"
59 std::string
GetName()
const override;
std::string GetSubsystem() const
Gets the subsystem name of this Command.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:42
wpi::SmallSet< Subsystem *, 4 > GetRequirements() const override
Specifies the set of subsystems used by this command.
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:52
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:135
void SetSubsystem(const wpi::Twine &subsystem)
Sets the subsystem name of this Command.
void InitSendable(frc::SendableBuilder &builder) override
Initializes this Sendable object.
void AddRequirements(std::initializer_list< Subsystem * > requirements)
Adds the specified requirements to the command.
Interface for Sendable objects.
Definition: Sendable.h:17
A Sendable base class for Commands.
Definition: CommandBase.h:25
std::string GetName() const override
Gets the name of this Command.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:85
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23
void SetName(const wpi::Twine &name)
Sets the name of this Command.