Moves a robot to a global location. Implements Reversible through a position supplier to return to the previous position.

Hierarchy

Implements

Constructors

Properties

_requirements: Set<object> = ...
positionSupplier: (() => Position)

Type declaration

previousPosition: undefined | Position
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