Package com.viam.service.motion.v1
Class MotionServiceGrpc.MotionServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<MotionServiceGrpc.MotionServiceStub>
com.viam.service.motion.v1.MotionServiceGrpc.MotionServiceStub
- Enclosing class:
- MotionServiceGrpc
public static final class MotionServiceGrpc.MotionServiceStub
extends io.grpc.stub.AbstractAsyncStub<MotionServiceGrpc.MotionServiceStub>
A stub to allow clients to do asynchronous rpc calls to service MotionService.
A MotionService declares the gRPC contract for a motion service
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected MotionServiceGrpc.MotionServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetPlan(Motion.GetPlanRequest request, io.grpc.stub.StreamObserver<Motion.GetPlanResponse> responseObserver) Returns the plan(s) & state history of the most recent execution to move a component.voidgetPose(Motion.GetPoseRequest request, io.grpc.stub.StreamObserver<Motion.GetPoseResponse> responseObserver) Deprecated.voidlistPlanStatuses(Motion.ListPlanStatusesRequest request, io.grpc.stub.StreamObserver<Motion.ListPlanStatusesResponse> responseObserver) Returns the status of plans created by requests to move components that are executing OR are part of an execution which changed it state within the a 24HR TTL OR until the robot reinitializes.voidmove(Motion.MoveRequest request, io.grpc.stub.StreamObserver<Motion.MoveResponse> responseObserver) voidmoveOnGlobe(Motion.MoveOnGlobeRequest request, io.grpc.stub.StreamObserver<Motion.MoveOnGlobeResponse> responseObserver) Generate and begin executing an execution to move a component to a specific GPS coordinate.voidmoveOnMap(Motion.MoveOnMapRequest request, io.grpc.stub.StreamObserver<Motion.MoveOnMapResponse> responseObserver) Generate a plan and move a component to a specific pose with respect to the SLAM map's origin.voidstopPlan(Motion.StopPlanRequest request, io.grpc.stub.StreamObserver<Motion.StopPlanResponse> responseObserver) Stops a PlanMethods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MotionServiceGrpc.MotionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MotionServiceGrpc.MotionServiceStub>
-
move
public void move(Motion.MoveRequest request, io.grpc.stub.StreamObserver<Motion.MoveResponse> responseObserver) -
moveOnMap
public void moveOnMap(Motion.MoveOnMapRequest request, io.grpc.stub.StreamObserver<Motion.MoveOnMapResponse> responseObserver) Generate a plan and move a component to a specific pose with respect to the SLAM map's origin. May replan to avoid obstacles
-
moveOnGlobe
public void moveOnGlobe(Motion.MoveOnGlobeRequest request, io.grpc.stub.StreamObserver<Motion.MoveOnGlobeResponse> responseObserver) Generate and begin executing an execution to move a component to a specific GPS coordinate. May replan to avoid obstacles & account for location drift. Creates a new plan upon replanning.
-
getPose
@Deprecated public void getPose(Motion.GetPoseRequest request, io.grpc.stub.StreamObserver<Motion.GetPoseResponse> responseObserver) Deprecated. -
stopPlan
public void stopPlan(Motion.StopPlanRequest request, io.grpc.stub.StreamObserver<Motion.StopPlanResponse> responseObserver) Stops a Plan
-
listPlanStatuses
public void listPlanStatuses(Motion.ListPlanStatusesRequest request, io.grpc.stub.StreamObserver<Motion.ListPlanStatusesResponse> responseObserver) Returns the status of plans created by requests to move components that are executing OR are part of an execution which changed it state within the a 24HR TTL OR until the robot reinitializes. This currently only returns plans for MoveOnGlobe and MoveOnMap.
-
getPlan
public void getPlan(Motion.GetPlanRequest request, io.grpc.stub.StreamObserver<Motion.GetPlanResponse> responseObserver) Returns the plan(s) & state history of the most recent execution to move a component. Returns a result if the last execution is still executing OR changed state within the last 24 hours AND the robot has not reinitialized. Plans are never mutated. Replans always create new plans. Replans share the execution_id of the previously executing plan. This currently only returns plans for MoveOnGlobe and MoveOnMap.
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-