Creating a command
Commands are classes you create that provide behaviors or actions for your subsystems. The subsystem class should set the operation of the subsystem, like ElevatorUp to start the elevator moving up, or ElevatorToSetPoint to set the elevator's PID setpoint. The commands initiate the subystem operation and keep track of when it is finished.
Drag a command to the robot description Commands folder
Creating commands using the context menu
Give the command a name and set the required subsystem
Name the command with something meaningful that describes what the command will do. Then set the subsystem that is used by this command. When this command is scheduled, it will automatically stop any command currently running that also requires this command. If a command to open the gripper is currently running (requiring the gripper subsystem) and the close gripper command is scheduled, it will immediately stop opening and start closing.



