Class NavigationClient

A gRPC-web client for a Navigation service.

Implements

  • Navigation

Constructors

Properties

callOptions: CallOptions = ...
name: string

The name of the resource.

Methods

  • Add a waypoint to the service's data storage.

    Parameters

    • location: PlainMessage

      The current location of the robot n the navigation service with latitude and longitude values.

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<void>

  • Send/Receive arbitrary commands to the resource.

    Parameters

    • command: Struct

      The command to execute.

    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

    const result = await resource.doCommand({
    name: 'myCommand',
    args: { key: 'value' },
    });
  • Get the mode the robot is operating in.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<navigationApi.Mode>

  • Get a list of obstacles.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<commonApi.GeoGeometry[]>

  • Gets the list of paths known to the navigation service.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<navigationApi.Path[]>

  • Get an array of waypoints currently in the service's data storage.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<navigationApi.Waypoint[]>

  • Remove a waypoint from the service's data storage.

    Parameters

    • id: string

      The MongoDB ObjectID of the waypoint to remove from the service's data storage.

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<void>

  • Set the mode the robot is operating in.

    Parameters

    • mode: navigationApi.Mode

      The mode for the service to operate in.

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR