WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::cmd Namespace Reference

Namespaces

namespace  cmd
 Namespace for command factories.
namespace  sysid

Classes

class  CommandNiDsStadiaController
 A version of wpi::NiDsStadiaController with Trigger factories for command-based. More...
class  Subsystem
 A robot subsystem. More...
class  RepeatCommand
 A command that runs another command repeatedly, restarting it when it ends, until this command is interrupted. More...
class  PrintCommand
 A command that prints a string when initialized. More...
class  InstantCommand
 A Command that runs instantly; it will initialize, execute once, and end on the same iteration of the scheduler. More...
class  WaitCommand
 A command that does nothing but takes a specified amount of time to finish. More...
class  FunctionalCommand
 A command that allows the user to pass in functions for each of the basic command methods through the constructor. More...
class  CommandNiDsXboxController
 A version of wpi::NiDsXboxController with Trigger factories for command-based. More...
class  CommandJoystick
 A version of wpi::Joystick with Trigger factories for command-based. More...
class  CommandHelper
 CRTP implementation to allow polymorphic decorator functions in Command. More...
class  StartEndCommand
 A command that runs a given runnable when it is initialized, and another runnable when it ends. More...
class  ProxyCommand
 Schedules a given command when this command is initialized and ends when it ends, but does not directly run it. More...
class  ParallelDeadlineGroup
 A command composition that runs a set of commands in parallel, ending only when a specific command (the "deadline") ends, interrupting all other commands that are still running at that point. More...
class  CommandNiDsPS5Controller
 A version of wpi::NiDsPS5Controller with Trigger factories for command-based. More...
class  SubsystemBase
 A base for subsystems that handles registration in the constructor, and provides a more intuitive method for setting the default command. More...
class  SelectCommand
 A command composition that runs one of a selection of commands using a selector and a key to command mapping. More...
class  CommandPtr
 A wrapper around std::unique_ptr<Command> so commands have move-only semantics. More...
class  ParallelCommandGroup
 A command composition that runs a set of commands in parallel, ending when the last command ends. More...
class  POVButton
 A class used to bind command scheduling to joystick POV presses. More...
class  ConditionalCommand
 A command composition that runs one of two commands, depending on the value of the given condition when this command is initialized. More...
class  Trigger
 This class provides an easy way to link commands to conditions. More...
class  Command
 A state machine representing a complete action to be performed by the robot. More...
class  ParallelRaceGroup
 A composition that runs a set of commands in parallel, ending when any one of the commands ends and interrupting all the others. More...
class  JoystickButton
 A class used to bind command scheduling to joystick button presses. More...
class  CommandScheduler
 The scheduler responsible for running Commands. More...
class  CommandGamepad
 A version of wpi::Gamepad with Trigger factories for command-based. More...
class  NetworkButton
 A Button that uses a NetworkTable boolean field. More...
class  Requirements
 Represents requirements for a command, which is a set of (pointers to) subsystems. More...
class  WaitUntilCommand
 A command that does nothing but ends after a specified match time or condition. More...
class  CommandNiDsPS4Controller
 A version of wpi::NiDsPS4Controller with Trigger factories for command-based. More...
class  RunCommand
 A command that runs a Runnable continuously. More...
class  DeferredCommand
 Defers Command construction to runtime. More...
class  RobotModeTriggers
 A class containing static Trigger factories for running callbacks when robot mode changes. More...
class  ScheduleCommand
 Schedules the given commands when this command is initialized. More...
class  WrapperCommand
 A class used internally to wrap commands while overriding a specific method; all other methods will call through to the wrapped command. More...
class  NotifierCommand
 A command that starts a notifier to run the given runnable periodically in a separate thread. More...
class  SequentialCommandGroup
 A command composition that runs a list of commands in sequence. More...
class  CommandGenericHID
 A version of wpi::GenericHID with Trigger factories for command-based. More...

Functions

bool RequirementsDisjoint (Command *first, Command *second)
 Checks if two commands have disjoint requirement sets.

Variables

const size_t invalid_index = std::numeric_limits<size_t>::max()

Function Documentation

◆ RequirementsDisjoint()

bool wpi::cmd::RequirementsDisjoint ( Command * first,
Command * second )

Checks if two commands have disjoint requirement sets.

Parameters
firstThe first command to check.
secondThe second command to check.
Returns
False if first and second share a requirement.

Variable Documentation

◆ invalid_index

const size_t wpi::cmd::invalid_index = std::numeric_limits<size_t>::max()