-
public class Commands
Commands= factory.
-
-
Method Summary
Modifier and Type Method Description static DynamicCommandBuilder
dynamic()
Starts building a "dynamic" command group. static Command
anyOf(String name, Array<Command> commandList)
Creates a new command group for commands that need to execute exclusively. static Command
parallel(String name, Array<Command> commandList)
Creates a new command group for commands that must run in parallel. static Command
sequential(String name, Array<Command> commandList)
Creates a new command group for commands that must run in sequence. static Command
followTrajectory(String name, ITimedTrajectory timedTrajectory, FollowTrajectoryCommandParams trajectoryGoals, ISubsystemHub robotHub)
kCreates a new follow trajectory command. -
-
Method Detail
-
dynamic
static DynamicCommandBuilder dynamic()
Starts building a "dynamic" command group.
-
anyOf
static Command anyOf(String name, Array<Command> commandList)
Creates a new command group for commands that need to execute exclusively.
- Parameters:
name
- command group name.commandList
- list of commands in the group.
-
parallel
static Command parallel(String name, Array<Command> commandList)
Creates a new command group for commands that must run in parallel.
- Parameters:
name
- command group name.commandList
- list of commands in the group.
-
sequential
static Command sequential(String name, Array<Command> commandList)
Creates a new command group for commands that must run in sequence.
- Parameters:
name
- command group name.commandList
- list of commands in the group.
-
followTrajectory
static Command followTrajectory(String name, ITimedTrajectory timedTrajectory, FollowTrajectoryCommandParams trajectoryGoals, ISubsystemHub robotHub)
kCreates a new follow trajectory command.
- Parameters:
name
- command name.timedTrajectory
- timed trajectory.trajectoryGoals
- end position goals.robotHub
- robot hub containing ILocalizer, IHolonomicController, IDrivetrain.
-
-
-
-