SequentialCommandBuilder

SequentialCommandGroup builder class

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun asCommand(): SequentialCommandGroup

Get the builder as a SequentialCommandGroup

Link copied to clipboard
fun requires(vararg requirements: Subsystem)

Add subsystem requirements to the command.

Link copied to clipboard
fun run(action: Runnable)

Run an action until interruption.

Link copied to clipboard
fun runCommand(command: Command)

Run another command.

Link copied to clipboard
fun runOnce(action: Runnable)

Run an action once.

Link copied to clipboard
fun runParallel(vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once all commands in the group finish.

Link copied to clipboard
fun runRace(vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once any command in the group finishes, and cancels the others.

Link copied to clipboard
fun runUntil(condition: BooleanSupplier, vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once the condition is met.

fun runUntil(condition: BooleanSupplier, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once the condition is met.

Link copied to clipboard
fun runWhile(condition: BooleanSupplier, vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once the condition is no longer met.

fun runWhile(condition: BooleanSupplier, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once the condition is no longer met.

Link copied to clipboard
fun runWithDeadline(deadline: Command, vararg otherCommands: Command)

Run a group of commands at the same time. Ends once a specific command finishes, and cancels the others.

fun runWithDeadline(deadline: Command, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once a specific command finishes.

Link copied to clipboard
fun runWithTimeout(timeout: Time, vararg commandsToRun: Command)

Run a group of commands at the same time. Ends once the timeout is exceeded.

fun runWithTimeout(timeout: Time, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once the timeout is exceeded.

Link copied to clipboard
fun thenPrint(message: String)

Print a message to the standard output.

Link copied to clipboard
fun waitSeconds(seconds: Double)

Wait an amount of time in seconds.

Link copied to clipboard
fun waitTime(time: Time)

Wait an amount of time.

Link copied to clipboard
fun waitUntil(condition: BooleanSupplier)

Wait until a condition is met.

Link copied to clipboard
fun waitWhile(condition: BooleanSupplier)

Wait until a condition is no longer met.