viam.components.motor.service
Classes
gRPC Service for a Motor |
Module Contents
- class viam.components.motor.service.MotorRPCService(manager: viam.resource.manager.ResourceManager)[source]
Bases:
viam.proto.component.motor.UnimplementedMotorServiceBase
,viam.resource.rpc_service_base.ResourceRPCServiceBase
[viam.components.motor.motor.Motor
]gRPC Service for a Motor
- RESOURCE_TYPE
- async SetPower(stream: grpclib.server.Stream[viam.proto.component.motor.SetPowerRequest, viam.proto.component.motor.SetPowerResponse]) None [source]
- async GoFor(stream: grpclib.server.Stream[viam.proto.component.motor.GoForRequest, viam.proto.component.motor.GoForResponse]) None [source]
- async GoTo(stream: grpclib.server.Stream[viam.proto.component.motor.GoToRequest, viam.proto.component.motor.GoToResponse]) None [source]
- async SetRPM(stream: grpclib.server.Stream[viam.proto.component.motor.SetRPMRequest, viam.proto.component.motor.SetRPMResponse]) None [source]
- async ResetZeroPosition(stream: grpclib.server.Stream[viam.proto.component.motor.ResetZeroPositionRequest, viam.proto.component.motor.ResetZeroPositionResponse]) None [source]
- async GetPosition(stream: grpclib.server.Stream[viam.proto.component.motor.GetPositionRequest, viam.proto.component.motor.GetPositionResponse]) None [source]
- async GetProperties(stream: grpclib.server.Stream[viam.proto.component.motor.GetPropertiesRequest, viam.proto.component.motor.GetPropertiesResponse]) None [source]
- async Stop(stream: grpclib.server.Stream[viam.proto.component.motor.StopRequest, viam.proto.component.motor.StopResponse]) None [source]
- async IsPowered(stream: grpclib.server.Stream[viam.proto.component.motor.IsPoweredRequest, viam.proto.component.motor.IsPoweredResponse]) None [source]
- async IsMoving(stream: grpclib.server.Stream[viam.proto.component.motor.IsMovingRequest, viam.proto.component.motor.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]