Package com.viam.service.navigation.v1
Class NavigationServiceGrpc.NavigationServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<NavigationServiceGrpc.NavigationServiceStub>
io.grpc.stub.AbstractAsyncStub<NavigationServiceGrpc.NavigationServiceStub>
com.viam.service.navigation.v1.NavigationServiceGrpc.NavigationServiceStub
- Enclosing class:
NavigationServiceGrpc
public static final class NavigationServiceGrpc.NavigationServiceStub
extends io.grpc.stub.AbstractAsyncStub<NavigationServiceGrpc.NavigationServiceStub>
A stub to allow clients to do asynchronous rpc calls to service NavigationService.
A NavigationService declares the gRPC contract for a Navigation service. Each service instance is bound to exactly one controllable base and one map type (local SLAM or GPS). Apps save named locations, routes, and zones, then navigate with plan-then-drive or direct go-to motion.
-
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 TypeMethodDescriptionvoidaddLocation(Navigation.AddLocationRequest request, io.grpc.stub.StreamObserver<Navigation.AddLocationResponse> responseObserver) AddLocation saves a named position on the active map.voidaddRoute(Navigation.AddRouteRequest request, io.grpc.stub.StreamObserver<Navigation.AddRouteResponse> responseObserver) AddRoute creates a named route from an ordered list of waypoints.voidaddZone(Navigation.AddZoneRequest request, io.grpc.stub.StreamObserver<Navigation.AddZoneResponse> responseObserver) AddZone creates a keep-out or speed-limit zone on the active map.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcancel(Navigation.CancelRequest request, io.grpc.stub.StreamObserver<Navigation.CancelResponse> responseObserver) Cancel stops all motion and discards both the active goal and any suspended goal.voiddeleteLocation(Navigation.DeleteLocationRequest request, io.grpc.stub.StreamObserver<Navigation.DeleteLocationResponse> responseObserver) DeleteLocation deletes a saved location.voiddeleteRoute(Navigation.DeleteRouteRequest request, io.grpc.stub.StreamObserver<Navigation.DeleteRouteResponse> responseObserver) DeleteRoute deletes a route.voiddeleteZone(Navigation.DeleteZoneRequest request, io.grpc.stub.StreamObserver<Navigation.DeleteZoneResponse> responseObserver) DeleteZone deletes a zone.voiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidexecutePlan(Navigation.ExecutePlanRequest request, io.grpc.stub.StreamObserver<Navigation.ExecutePlanResponse> responseObserver) ExecutePlan drives a Plan (typically from PlanToPoint or PlanToLocation).voidgetCostmap(Navigation.GetCostmapRequest request, io.grpc.stub.StreamObserver<Navigation.GetCostmapResponse> responseObserver) GetCostmap returns the local or global costmap as a downsampled grid, for display in UIs.voidgetLocation(Navigation.GetLocationRequest request, io.grpc.stub.StreamObserver<Navigation.GetLocationResponse> responseObserver) GetLocation returns a saved location by name.voidgetNavigationStatus(Navigation.GetNavigationStatusRequest request, io.grpc.stub.StreamObserver<Navigation.GetNavigationStatusResponse> responseObserver) GetNavigationStatus returns the full navigation state, including the robot's current position and the latest goal.voidgetPosition(Navigation.GetPositionRequest request, io.grpc.stub.StreamObserver<Navigation.GetPositionResponse> responseObserver) GetPosition returns the robot's current position on the active map.voidgetProperties(Navigation.GetPropertiesRequest request, io.grpc.stub.StreamObserver<Navigation.GetPropertiesResponse> responseObserver) GetProperties returns the map type the service operates on and robot properties.voidgetRoute(Navigation.GetRouteRequest request, io.grpc.stub.StreamObserver<Navigation.GetRouteResponse> responseObserver) GetRoute returns a route by name.voidgetStatus(Common.GetStatusRequest request, io.grpc.stub.StreamObserver<Common.GetStatusResponse> responseObserver) GetStatus returns the status of the resourcevoidgetZone(Navigation.GetZoneRequest request, io.grpc.stub.StreamObserver<Navigation.GetZoneResponse> responseObserver) GetZone returns a zone by name.voidgoToLocation(Navigation.GoToLocationRequest request, io.grpc.stub.StreamObserver<Navigation.GoToLocationResponse> responseObserver) GoToLocation drives directly to a saved location with a closed-loop controller, without full path planning.voidgoToPoint(Navigation.GoToPointRequest request, io.grpc.stub.StreamObserver<Navigation.GoToPointResponse> responseObserver) GoToPoint drives directly to a Position with a closed-loop controller, without full path planning.voidlistLocations(Navigation.ListLocationsRequest request, io.grpc.stub.StreamObserver<Navigation.ListLocationsResponse> responseObserver) ListLocations lists all saved locations on the active map.voidlistRoutes(Navigation.ListRoutesRequest request, io.grpc.stub.StreamObserver<Navigation.ListRoutesResponse> responseObserver) ListRoutes lists all routes on the active map.voidlistZones(Navigation.ListZonesRequest request, io.grpc.stub.StreamObserver<Navigation.ListZonesResponse> responseObserver) ListZones lists zones on the active map, optionally filtered by type.voidnavigateRoute(Navigation.NavigateRouteRequest request, io.grpc.stub.StreamObserver<Navigation.NavigateRouteResponse> responseObserver) NavigateRoute drives a route one waypoint at a time using the obstacle-aware planner.voidnavigateToLocation(Navigation.NavigateToLocationRequest request, io.grpc.stub.StreamObserver<Navigation.NavigateToLocationResponse> responseObserver) NavigateToLocation plans an obstacle-aware path to a saved location and starts driving it.voidnavigateToPoint(Navigation.NavigateToPointRequest request, io.grpc.stub.StreamObserver<Navigation.NavigateToPointResponse> responseObserver) NavigateToPoint plans an obstacle-aware path to a Position and starts driving it.voidplanToLocation(Navigation.PlanToLocationRequest request, io.grpc.stub.StreamObserver<Navigation.PlanToLocationResponse> responseObserver) PlanToLocation computes a path to a saved location without moving.voidplanToPoint(Navigation.PlanToPointRequest request, io.grpc.stub.StreamObserver<Navigation.PlanToPointResponse> responseObserver) PlanToPoint computes a path from the robot (or a given start) to a Position without moving.voidresume(Navigation.ResumeRequest request, io.grpc.stub.StreamObserver<Navigation.ResumeResponse> responseObserver) Resume resumes the suspended goal the same way it was started: planned navigation, simple go-to, or a route from its current waypoint.voidsuspend(Navigation.SuspendRequest request, io.grpc.stub.StreamObserver<Navigation.SuspendResponse> responseObserver) Suspend stops motion but remembers the current goal, including the current waypoint and loop setting for routes.voidupdateLocation(Navigation.UpdateLocationRequest request, io.grpc.stub.StreamObserver<Navigation.UpdateLocationResponse> responseObserver) UpdateLocation changes a saved location's position or name.voidupdateRoute(Navigation.UpdateRouteRequest request, io.grpc.stub.StreamObserver<Navigation.UpdateRouteResponse> responseObserver) UpdateRoute renames a route and/or replaces its waypoints.voidupdateZone(Navigation.UpdateZoneRequest request, io.grpc.stub.StreamObserver<Navigation.UpdateZoneResponse> responseObserver) UpdateZone changes a zone's type, geometry, speed limit, or name.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected NavigationServiceGrpc.NavigationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<NavigationServiceGrpc.NavigationServiceStub>
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-
getStatus
public void getStatus(Common.GetStatusRequest request, io.grpc.stub.StreamObserver<Common.GetStatusResponse> responseObserver) GetStatus returns the status of the resource
-