public class WaitForChildren extends Command
CommandGroupit is in has no active children. If it is not a part of a
CommandGroup, then it will finish immediately. If it is itself an active child, then the
CommandGroupwill never end.
This class is useful for the situation where you want to allow anything running in parallel
to finish, before continuing in the main
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns whether this command is finished.
cancel, clearRequirements, doesRequire, end, execute, getGroup, initialize, initSendable, interrupted, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected boolean isFinished()
end()will be called.
It may be useful for a team to reference the
method for time-sensitive commands.
Returning false will result in the command never ending automatically. It may still be
cancelled manually or interrupted by another command. Returning true will result in the
command executing once and finishing immediately. We recommend using