Viam Python SDK
  • Example usage
  • Changelog
  • Contributing
  • Code of Conduct
  • Full Viam Docs

API Reference

  • viam.components
    • Subpackages
      • viam.components.arm
      • viam.components.audio_input
      • viam.components.base
      • viam.components.board
      • viam.components.camera
      • viam.components.encoder
      • viam.components.gantry
      • viam.components.generic
      • viam.components.gripper
      • viam.components.input
        • Submodules
          • viam.components.input.client
          • viam.components.input.input
          • viam.components.input.service
            • Module Contents
              • Classes
              • Attributes
                • LOGGER
                • InputControllerRPCService
                  • InputControllerRPCService.RESOURCE_TYPE
                  • InputControllerRPCService.GetControls()
                  • InputControllerRPCService.GetEvents()
                  • InputControllerRPCService.StreamEvents()
                  • InputControllerRPCService.TriggerEvent()
                  • InputControllerRPCService.DoCommand()
        • Package Contents
      • viam.components.motor
      • viam.components.movement_sensor
      • viam.components.pose_tracker
      • viam.components.sensor
      • viam.components.servo
    • Submodules
  • viam.services
  • viam.robot
  • viam.resource
  • viam.module
  • viam.media
  • viam.rpc
  • viam.proto
Viam Python SDK
  • viam.components
  • viam.components.input
  • viam.components.input.service
  • View page source

viam.components.input.service

Module Contents

Classes

InputControllerRPCService

gRPC Service for an input controller

Attributes

LOGGER

viam.components.input.service.LOGGER
class viam.components.input.service.InputControllerRPCService(manager: viam.resource.manager.ResourceManager)[source]

Bases: viam.proto.component.inputcontroller.InputControllerServiceBase, viam.resource.rpc_service_base.ResourceRPCServiceBase[viam.components.input.input.Controller]

gRPC Service for an input controller

RESOURCE_TYPE
async GetControls(stream: grpclib.server.Stream[viam.proto.component.inputcontroller.GetControlsRequest, viam.proto.component.inputcontroller.GetControlsResponse]) → None[source]
async GetEvents(stream: grpclib.server.Stream[viam.proto.component.inputcontroller.GetEventsRequest, viam.proto.component.inputcontroller.GetEventsResponse]) → None[source]
async StreamEvents(stream: grpclib.server.Stream[viam.proto.component.inputcontroller.StreamEventsRequest, viam.proto.component.inputcontroller.StreamEventsResponse]) → None[source]
async TriggerEvent(stream: grpclib.server.Stream[viam.proto.component.inputcontroller.TriggerEventRequest, viam.proto.component.inputcontroller.TriggerEventResponse]) → None[source]
async DoCommand(stream: grpclib.server.Stream[viam.proto.common.DoCommandRequest, viam.proto.common.DoCommandResponse]) → None[source]
Previous Next

© Copyright 2022-2023, Viam Inc.

Built with Sphinx using a theme provided by Read the Docs.