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

Hierarchy

Constructors

  • Parameters

    • robotId: string
    • startPosition: {
          x: number;
          y: number;
      }
      • x: number
      • y: number
    • endPosition: {
          x: number;
          y: number;
      }
      • x: number
      • y: number
    • controlPosition: {
          x: number;
          y: number;
      }
      • x: number
      • y: number
    • timeDeltaMs: number

    Returns DriveQuadraticSplineCommand

Properties

_requirements: Set<object> = ...
controlPosition: {
    x: number;
    y: number;
}

Type declaration

  • x: number
  • y: number
endPosition: {
    x: number;
    y: number;
}

Type declaration

  • x: number
  • y: number
robotId: string
startPosition: {
    x: number;
    y: number;
}

Type declaration

  • x: number
  • y: number
timeDeltaMs: number

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