class wpilib.command.WaitForChildren(name=None, timeout=None)[source]

Bases: wpilib.command.Command

This command will only finish if whatever CommandGroup it 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 CommandGroup will 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 CommandGroup sequence.

Creates a new command.

  • name – The name for this command; if unspecified or None, The name of this command will be set to its class name.
  • timeout – The time (in seconds) before this command “times out”. Default is no timeout. See isTimedOut().