viam.components.servo.service

Classes

ServoRPCService

gRPC Service for a Servo

Module Contents

class viam.components.servo.service.ServoRPCService(manager: viam.resource.manager.ResourceManager)[source]

Bases: viam.proto.component.servo.ServoServiceBase, viam.resource.rpc_service_base.ResourceRPCServiceBase[viam.components.servo.servo.Servo]

gRPC Service for a Servo

RESOURCE_TYPE
async Move(stream: grpclib.server.Stream[viam.proto.component.servo.MoveRequest, viam.proto.component.servo.MoveResponse]) None[source]
async GetPosition(stream: grpclib.server.Stream[viam.proto.component.servo.GetPositionRequest, viam.proto.component.servo.GetPositionResponse]) None[source]
async Stop(stream: grpclib.server.Stream[viam.proto.component.servo.StopRequest, viam.proto.component.servo.StopResponse]) None[source]
async IsMoving(stream: grpclib.server.Stream[viam.proto.component.servo.IsMovingRequest, viam.proto.component.servo.IsMovingResponse]) None[source]
async DoCommand(stream: grpclib.server.Stream[viam.proto.common.DoCommandRequest, viam.proto.common.DoCommandResponse]) None[source]
async GetGeometries(stream: grpclib.server.Stream[viam.proto.common.GetGeometriesRequest, viam.proto.common.GetGeometriesResponse]) None[source]