7#include <initializer_list>
This file defines the SmallSet class.
A Sendable base class for Commands.
Definition: CommandBase.h:26
void SetName(std::string_view name) override
Sets the name of this Command.
wpi::SmallSet< Subsystem *, 4 > m_requirements
Definition: CommandBase.h:123
wpi::SmallSet< Subsystem *, 4 > GetRequirements() const override
Gets the Subsystem requirements of the command.
void AddRequirements(wpi::SmallSet< Subsystem *, 4 > requirements)
Adds the specified Subsystem requirements to the command.
void AddRequirements(std::initializer_list< Subsystem * > requirements)
Adds the specified Subsystem requirements to the command.
void AddRequirements(std::span< Subsystem *const > requirements)
Adds the specified Subsystem requirements to the command.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
void AddRequirements(Subsystem *requirement)
Adds the specified Subsystem requirement to the command.
std::string GetName() const override
Gets the name of this Command.
std::string GetSubsystem() const
Gets the subsystem name of this Command.
void SetSubsystem(std::string_view subsystem)
Sets the subsystem name of this Command.
A state machine representing a complete action to be performed by the robot.
Definition: Command.h:44
A robot subsystem.
Definition: Subsystem.h:39
Definition: SendableBuilder.h:18
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:135
basic_string_view< char > string_view
Definition: core.h:520
Definition: ProfiledPIDCommand.h:18