Class ParallelAction

  • All Implemented Interfaces:
    com.acmerobotics.roadrunner.Action

    
    public final class ParallelAction
     implements Action
                        

    Action combinator that executes the action group initialActions in parallel. Each call to run on this action calls run on every live child action in the order provided. Completed actions are removed from the rotation and do not prevent the completion of other actions. This action completes when all of initialActions have.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<Action> getInitialActions()
      Boolean run(TelemetryPacket p) Runs a single uninterruptible block.
      Unit preview(Canvas fieldOverlay) Draws a preview of the action on canvas fieldOverlay.
      • Methods inherited from class java.lang.Object

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

      • ParallelAction

        ParallelAction(Action actions)
      • ParallelAction

        ParallelAction(List<Action> initialActions)
    • Method Detail

      • run

         Boolean run(TelemetryPacket p)

        Runs a single uninterruptible block. Returns true if the action should run again and false if it has completed. A telemetry packet p is provided to record any information on the action's progress.