Class SlamClient

A gRPC-web client for a SLAM service.

Implements

  • Slam

Constructors

Properties

callOptions: CallOptions = ...
client: PromiseClient<{
    methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getInternalState: {
            I: typeof GetInternalStateRequest;
            O: typeof GetInternalStateResponse;
            kind: ServerStreaming;
            name: "GetInternalState";
        };
        getPointCloudMap: {
            I: typeof GetPointCloudMapRequest;
            O: typeof GetPointCloudMapResponse;
            kind: ServerStreaming;
            name: "GetPointCloudMap";
        };
        getPosition: {
            I: typeof slamApi.GetPositionRequest;
            O: typeof slamApi.GetPositionResponse;
            kind: Unary;
            name: "GetPosition";
        };
        getProperties: {
            I: typeof slamApi.GetPropertiesRequest;
            O: typeof slamApi.GetPropertiesResponse;
            kind: Unary;
            name: "GetProperties";
        };
    };
    typeName: "viam.service.slam.v1.SLAMService";
}>

Type declaration

  • Readonly methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getInternalState: {
            I: typeof GetInternalStateRequest;
            O: typeof GetInternalStateResponse;
            kind: ServerStreaming;
            name: "GetInternalState";
        };
        getPointCloudMap: {
            I: typeof GetPointCloudMapRequest;
            O: typeof GetPointCloudMapResponse;
            kind: ServerStreaming;
            name: "GetPointCloudMap";
        };
        getPosition: {
            I: typeof slamApi.GetPositionRequest;
            O: typeof slamApi.GetPositionResponse;
            kind: Unary;
            name: "GetPosition";
        };
        getProperties: {
            I: typeof slamApi.GetPropertiesRequest;
            O: typeof slamApi.GetPropertiesResponse;
            kind: Unary;
            name: "GetProperties";
        };
    }
    • Readonly doCommand: {
          I: typeof DoCommandRequest;
          O: typeof DoCommandResponse;
          kind: Unary;
          name: "DoCommand";
      }

      DoCommand sends/receives arbitrary commands.

      Generated

      from rpc viam.service.slam.v1.SLAMService.DoCommand

    • Readonly getInternalState: {
          I: typeof GetInternalStateRequest;
          O: typeof GetInternalStateResponse;
          kind: ServerStreaming;
          name: "GetInternalState";
      }

      GetInternalState returns the internal map as defined by the specified slam algorithm required to continue mapping/localizing. This endpoint is not intended for end users.

      Generated

      from rpc viam.service.slam.v1.SLAMService.GetInternalState

    • Readonly getPointCloudMap: {
          I: typeof GetPointCloudMapRequest;
          O: typeof GetPointCloudMapResponse;
          kind: ServerStreaming;
          name: "GetPointCloudMap";
      }

      GetPointCloudMap returns the latest pointcloud map available where XY is the ground plane and positive Z is up, following the Right Hand Rule.

      Generated

      from rpc viam.service.slam.v1.SLAMService.GetPointCloudMap

    • Readonly getPosition: {
          I: typeof slamApi.GetPositionRequest;
          O: typeof slamApi.GetPositionResponse;
          kind: Unary;
          name: "GetPosition";
      }

      GetPosition returns the current estimated position of the robot with respect to a returned component reference.

      Generated

      from rpc viam.service.slam.v1.SLAMService.GetPosition

    • Readonly getProperties: {
          I: typeof slamApi.GetPropertiesRequest;
          O: typeof slamApi.GetPropertiesResponse;
          kind: Unary;
          name: "GetProperties";
      }

      GetProperties returns properties of the current slam service including mapping_mode and cloud_slam, where mapping_mode is the type of mapping/localizing being performed and cloud_slam is a boolean representing if this SLAM service is being run in the cloud.

      Generated

      from rpc viam.service.slam.v1.SLAMService.GetProperties

  • Readonly typeName: "viam.service.slam.v1.SLAMService"
name: string
options: Options

Methods

  • Parameters

    • command: Struct
    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

  • Parameters

    • callOptions: CallOptions = ...

    Returns Promise<Uint8Array>

  • Parameters

    • Optional returnEditedMap: boolean
    • callOptions: CallOptions = ...

    Returns Promise<Uint8Array>

Generated using TypeDoc