Package lib.commands

Class CreateOnInitialize

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.DeferredCommand
lib.commands.CreateOnInitialize
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable

public class CreateOnInitialize extends edu.wpi.first.wpilibj2.command.DeferredCommand
  • Nested Class Summary

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command

    edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateOnInitialize(Supplier<edu.wpi.first.wpilibj2.command.Command> supplier)
    Wrapper for DeferredCommand that immediately gets a command from the supplier and uses it to determine this command's requirements.
  • Method Summary

    Methods inherited from class edu.wpi.first.wpilibj2.command.DeferredCommand

    end, execute, initialize, initSendable, isFinished

    Methods inherited from class edu.wpi.first.wpilibj2.command.Command

    addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CreateOnInitialize

      public CreateOnInitialize(Supplier<edu.wpi.first.wpilibj2.command.Command> supplier)
      Wrapper for DeferredCommand that immediately gets a command from the supplier and uses it to determine this command's requirements. If you do not need this behavior, you can use DeferredCommand directly instead and manually supply the necessary requirements.
      Parameters:
      supplier - The command supplier