A command which operates on an individual Robot. Note this class redirects the execute implementation to executeRobot.

Hierarchy

Constructors

Properties

_requirements: Set<object> = ...
robotId: string

Accessors

  • get requirements(): Set<object>
  • The set of objects that this command requires to execute. Used to place mutexes on common resources to ensure they don't receive multiple inputs at once.

    Returns Set<object>

Methods

  • Decorates the command with a "time point" - if the command finishes in less than the given duration, it will wait until this number of seconds has elapsed before continuing.

    Parameters

    • seconds: number

      The number of seconds that the command will execute for, at minimum.

    Returns Command

Generated using TypeDoc