Class GripperClient

A gRPC-web client for the Gripper component.

Implements

Constructors

Properties

callOptions: CallOptions = ...
client: PromiseClient<{
    methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getGeometries: {
            I: typeof GetGeometriesRequest;
            O: typeof GetGeometriesResponse;
            kind: Unary;
            name: "GetGeometries";
        };
        grab: {
            I: typeof GrabRequest;
            O: typeof GrabResponse;
            kind: Unary;
            name: "Grab";
        };
        isMoving: {
            I: typeof gripperApi.IsMovingRequest;
            O: typeof gripperApi.IsMovingResponse;
            kind: Unary;
            name: "IsMoving";
        };
        open: {
            I: typeof OpenRequest;
            O: typeof OpenResponse;
            kind: Unary;
            name: "Open";
        };
        stop: {
            I: typeof gripperApi.StopRequest;
            O: typeof gripperApi.StopResponse;
            kind: Unary;
            name: "Stop";
        };
    };
    typeName: "viam.component.gripper.v1.GripperService";
}>

Type declaration

  • Readonly methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getGeometries: {
            I: typeof GetGeometriesRequest;
            O: typeof GetGeometriesResponse;
            kind: Unary;
            name: "GetGeometries";
        };
        grab: {
            I: typeof GrabRequest;
            O: typeof GrabResponse;
            kind: Unary;
            name: "Grab";
        };
        isMoving: {
            I: typeof gripperApi.IsMovingRequest;
            O: typeof gripperApi.IsMovingResponse;
            kind: Unary;
            name: "IsMoving";
        };
        open: {
            I: typeof OpenRequest;
            O: typeof OpenResponse;
            kind: Unary;
            name: "Open";
        };
        stop: {
            I: typeof gripperApi.StopRequest;
            O: typeof gripperApi.StopResponse;
            kind: Unary;
            name: "Stop";
        };
    }
    • Readonly doCommand: {
          I: typeof DoCommandRequest;
          O: typeof DoCommandResponse;
          kind: Unary;
          name: "DoCommand";
      }

      DoCommand sends/receives arbitrary commands

      Generated

      from rpc viam.component.gripper.v1.GripperService.DoCommand

    • Readonly getGeometries: {
          I: typeof GetGeometriesRequest;
          O: typeof GetGeometriesResponse;
          kind: Unary;
          name: "GetGeometries";
      }

      GetGeometries returns the geometries of the component in their current configuration

      Generated

      from rpc viam.component.gripper.v1.GripperService.GetGeometries

    • Readonly grab: {
          I: typeof GrabRequest;
          O: typeof GrabResponse;
          kind: Unary;
          name: "Grab";
      }

      Grab requests a gripper of the underlying robot to grab.

      Generated

      from rpc viam.component.gripper.v1.GripperService.Grab

    • Readonly isMoving: {
          I: typeof gripperApi.IsMovingRequest;
          O: typeof gripperApi.IsMovingResponse;
          kind: Unary;
          name: "IsMoving";
      }

      IsMoving reports if a component is in motion

      Generated

      from rpc viam.component.gripper.v1.GripperService.IsMoving

    • Readonly open: {
          I: typeof OpenRequest;
          O: typeof OpenResponse;
          kind: Unary;
          name: "Open";
      }

      Open opens a gripper of the underlying robot.

      Generated

      from rpc viam.component.gripper.v1.GripperService.Open

    • Readonly stop: {
          I: typeof gripperApi.StopRequest;
          O: typeof gripperApi.StopResponse;
          kind: Unary;
          name: "Stop";
      }

      Stop stops a robot's gripper

      Generated

      from rpc viam.component.gripper.v1.GripperService.Stop

  • Readonly typeName: "viam.component.gripper.v1.GripperService"
name: string
options: Options

Methods

  • Send/Receive arbitrary commands to the resource.

    Parameters

    • command: Struct

      The command to execute.

    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

  • Parameters

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

      Returns Promise<void>

    • Parameters

      • callOptions: CallOptions = ...

      Returns Promise<boolean>

    • Parameters

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

        Returns Promise<void>

      • Parameters

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

          Returns Promise<void>

        Generated using TypeDoc