Viam SDK
    Preparing search index...

    Variable GenericServiceConst

    GenericService: {
        methods: {
            doCommand: {
                I: typeof DoCommandRequest;
                kind: MethodKind.Unary;
                name: "DoCommand";
                O: typeof DoCommandResponse;
            };
            getGeometries: {
                I: typeof GetGeometriesRequest;
                kind: MethodKind.Unary;
                name: "GetGeometries";
                O: typeof GetGeometriesResponse;
            };
            getStatus: {
                I: typeof commonApi.GetStatusRequest;
                kind: MethodKind.Unary;
                name: "GetStatus";
                O: typeof commonApi.GetStatusResponse;
            };
        };
        typeName: "viam.component.generic.v1.GenericService";
    }

    GenericService services all generic components associated with a robot

    Type Declaration

    • Readonlymethods: {
          doCommand: {
              I: typeof DoCommandRequest;
              kind: MethodKind.Unary;
              name: "DoCommand";
              O: typeof DoCommandResponse;
          };
          getGeometries: {
              I: typeof GetGeometriesRequest;
              kind: MethodKind.Unary;
              name: "GetGeometries";
              O: typeof GetGeometriesResponse;
          };
          getStatus: {
              I: typeof commonApi.GetStatusRequest;
              kind: MethodKind.Unary;
              name: "GetStatus";
              O: typeof commonApi.GetStatusResponse;
          };
      }
      • ReadonlydoCommand: {
            I: typeof DoCommandRequest;
            kind: MethodKind.Unary;
            name: "DoCommand";
            O: typeof DoCommandResponse;
        }

        DoCommand sends/receives arbitrary commands

        from rpc viam.component.generic.v1.GenericService.DoCommand

      • ReadonlygetGeometries: {
            I: typeof GetGeometriesRequest;
            kind: MethodKind.Unary;
            name: "GetGeometries";
            O: typeof GetGeometriesResponse;
        }

        GetGeometries returns the geometries of the component in their current configuration

        from rpc viam.component.generic.v1.GenericService.GetGeometries

      • ReadonlygetStatus: {
            I: typeof commonApi.GetStatusRequest;
            kind: MethodKind.Unary;
            name: "GetStatus";
            O: typeof commonApi.GetStatusResponse;
        }

        GetStatus returns the status of the resource

        from rpc viam.component.generic.v1.GenericService.GetStatus

    • ReadonlytypeName: "viam.component.generic.v1.GenericService"

    from service viam.component.generic.v1.GenericService