Class InputControllerClient

A gRPC-web client for the Input Controller component.

Implements

Constructors

Properties

callOptions: CallOptions = ...
client: PromiseClient<{
    methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getControls: {
            I: typeof GetControlsRequest;
            O: typeof GetControlsResponse;
            kind: Unary;
            name: "GetControls";
        };
        getEvents: {
            I: typeof GetEventsRequest;
            O: typeof GetEventsResponse;
            kind: Unary;
            name: "GetEvents";
        };
        getGeometries: {
            I: typeof GetGeometriesRequest;
            O: typeof GetGeometriesResponse;
            kind: Unary;
            name: "GetGeometries";
        };
        streamEvents: {
            I: typeof StreamEventsRequest;
            O: typeof StreamEventsResponse;
            kind: ServerStreaming;
            name: "StreamEvents";
        };
        triggerEvent: {
            I: typeof TriggerEventRequest;
            O: typeof TriggerEventResponse;
            kind: Unary;
            name: "TriggerEvent";
        };
    };
    typeName: "viam.component.inputcontroller.v1.InputControllerService";
}>

Type declaration

  • Readonly methods: {
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getControls: {
            I: typeof GetControlsRequest;
            O: typeof GetControlsResponse;
            kind: Unary;
            name: "GetControls";
        };
        getEvents: {
            I: typeof GetEventsRequest;
            O: typeof GetEventsResponse;
            kind: Unary;
            name: "GetEvents";
        };
        getGeometries: {
            I: typeof GetGeometriesRequest;
            O: typeof GetGeometriesResponse;
            kind: Unary;
            name: "GetGeometries";
        };
        streamEvents: {
            I: typeof StreamEventsRequest;
            O: typeof StreamEventsResponse;
            kind: ServerStreaming;
            name: "StreamEvents";
        };
        triggerEvent: {
            I: typeof TriggerEventRequest;
            O: typeof TriggerEventResponse;
            kind: Unary;
            name: "TriggerEvent";
        };
    }
    • Readonly doCommand: {
          I: typeof DoCommandRequest;
          O: typeof DoCommandResponse;
          kind: Unary;
          name: "DoCommand";
      }

      DoCommand sends/receives arbitrary commands

      Generated

      from rpc viam.component.inputcontroller.v1.InputControllerService.DoCommand

    • Readonly getControls: {
          I: typeof GetControlsRequest;
          O: typeof GetControlsResponse;
          kind: Unary;
          name: "GetControls";
      }

      GetControls returns a list of GetControls provided by the Controller

      Generated

      from rpc viam.component.inputcontroller.v1.InputControllerService.GetControls

    • Readonly getEvents: {
          I: typeof GetEventsRequest;
          O: typeof GetEventsResponse;
          kind: Unary;
          name: "GetEvents";
      }

      GetEvents returns a list of events representing the last event on each control of a give Input Controller

      Generated

      from rpc viam.component.inputcontroller.v1.InputControllerService.GetEvents

    • 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.inputcontroller.v1.InputControllerService.GetGeometries

    • Readonly streamEvents: {
          I: typeof StreamEventsRequest;
          O: typeof StreamEventsResponse;
          kind: ServerStreaming;
          name: "StreamEvents";
      }

      StreamEvents starts a stream of InputControllerEvents for the given controls (buttons/axes) on a robot's input controller

      Generated

      from rpc viam.component.inputcontroller.v1.InputControllerService.StreamEvents

    • Readonly triggerEvent: {
          I: typeof TriggerEventRequest;
          O: typeof TriggerEventResponse;
          kind: Unary;
          name: "TriggerEvent";
      }

      TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events like button presses or axis movements

      Generated

      from rpc viam.component.inputcontroller.v1.InputControllerService.TriggerEvent

  • Readonly typeName: "viam.component.inputcontroller.v1.InputControllerService"
name: string
options: Options

Methods

  • Send/Receive arbitrary commands to the resource.

    Parameters

    • command: Struct

      The command to execute.

    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

  • Returns a list of events representing the last event on each control.

    Parameters

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

      Returns Promise<Event[]>

    • TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events like button presses or axis movements

      Parameters

      Returns Promise<void>

    Generated using TypeDoc