Represents a robot. Includes information about the current location as well as tooling for communication.

Hierarchy

  • Robot

Constructors

Properties

_heading: number
_position: Position = ZERO_POSITION
homeIndices: GridIndices

The location the robot lives in when its not in use.

id: string
socket: RobotSocket
startHeading: number = 0

Accessors

Methods

  • Parameters

    • heading: number

      An absolute heading to turn to.

    Returns Promise<void>

  • Turns and drives the robot to this.position + deltaPosition.

    Parameters

    • deltaPosition: Position

      The amount to offset the current position by.

    Returns Promise<void>

  • Parameters

    • deltaHeading: number

      A relative heading to turn by.

    Returns Promise<void>

Generated using TypeDoc