Represents a connection to a physical robot.

Hierarchy

  • RobotSocket

Constructors

Properties

Methods

Constructors

Properties

tunnel: BotTunnel

Methods

  • Send a packet to the robot indicating distance to drive. Returns a promise that finishes when the robot finishes the action.

    Parameters

    • tileDistance: number

      The distance to drive forward or backwards by. 1 is defined as the length of a tile.

    Returns Promise<void>

  • Send a packet to the robot indicating angle to turn. Returns a promise that finishes when the robot finishes the action.

    Parameters

    • deltaHeading: number

      A relative heading to turn by, in radians. May be positive or negative.

    Returns Promise<void>

  • Parameters

    • deltaHeading: number = 0
    • distance: number = 0

    Returns Promise<void>

Generated using TypeDoc