Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSLAMServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSLAMServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SLAMServiceClient) error
- func RegisterSLAMServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSLAMServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SLAMServiceServer) error
- func RegisterSLAMServiceServer(s grpc.ServiceRegistrar, srv SLAMServiceServer)
- type GetInternalStateRequest
- func (*GetInternalStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInternalStateRequest) GetName() string
- func (*GetInternalStateRequest) ProtoMessage()
- func (x *GetInternalStateRequest) ProtoReflect() protoreflect.Message
- func (x *GetInternalStateRequest) Reset()
- func (x *GetInternalStateRequest) String() string
- type GetInternalStateResponse
- func (*GetInternalStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInternalStateResponse) GetInternalStateChunk() []byte
- func (*GetInternalStateResponse) ProtoMessage()
- func (x *GetInternalStateResponse) ProtoReflect() protoreflect.Message
- func (x *GetInternalStateResponse) Reset()
- func (x *GetInternalStateResponse) String() string
- type GetInternalStateStreamRequestdeprecated
- func (*GetInternalStateStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInternalStateStreamRequest) GetName() string
- func (*GetInternalStateStreamRequest) ProtoMessage()
- func (x *GetInternalStateStreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetInternalStateStreamRequest) Reset()
- func (x *GetInternalStateStreamRequest) String() string
- type GetInternalStateStreamResponsedeprecated
- func (*GetInternalStateStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInternalStateStreamResponse) GetInternalStateChunk() []byte
- func (*GetInternalStateStreamResponse) ProtoMessage()
- func (x *GetInternalStateStreamResponse) ProtoReflect() protoreflect.Message
- func (x *GetInternalStateStreamResponse) Reset()
- func (x *GetInternalStateStreamResponse) String() string
- type GetPointCloudMapRequest
- func (*GetPointCloudMapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPointCloudMapRequest) GetName() string
- func (*GetPointCloudMapRequest) ProtoMessage()
- func (x *GetPointCloudMapRequest) ProtoReflect() protoreflect.Message
- func (x *GetPointCloudMapRequest) Reset()
- func (x *GetPointCloudMapRequest) String() string
- type GetPointCloudMapResponse
- func (*GetPointCloudMapResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPointCloudMapResponse) GetPointCloudPcdChunk() []byte
- func (*GetPointCloudMapResponse) ProtoMessage()
- func (x *GetPointCloudMapResponse) ProtoReflect() protoreflect.Message
- func (x *GetPointCloudMapResponse) Reset()
- func (x *GetPointCloudMapResponse) String() string
- type GetPointCloudMapStreamRequestdeprecated
- func (*GetPointCloudMapStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPointCloudMapStreamRequest) GetName() string
- func (*GetPointCloudMapStreamRequest) ProtoMessage()
- func (x *GetPointCloudMapStreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetPointCloudMapStreamRequest) Reset()
- func (x *GetPointCloudMapStreamRequest) String() string
- type GetPointCloudMapStreamResponsedeprecated
- func (*GetPointCloudMapStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPointCloudMapStreamResponse) GetPointCloudPcdChunk() []byte
- func (*GetPointCloudMapStreamResponse) ProtoMessage()
- func (x *GetPointCloudMapStreamResponse) ProtoReflect() protoreflect.Message
- func (x *GetPointCloudMapStreamResponse) Reset()
- func (x *GetPointCloudMapStreamResponse) String() string
- type GetPositionNewRequestdeprecated
- func (*GetPositionNewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionNewRequest) GetName() string
- func (*GetPositionNewRequest) ProtoMessage()
- func (x *GetPositionNewRequest) ProtoReflect() protoreflect.Message
- func (x *GetPositionNewRequest) Reset()
- func (x *GetPositionNewRequest) String() string
- type GetPositionNewResponsedeprecated
- func (*GetPositionNewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionNewResponse) GetComponentReference() string
- func (x *GetPositionNewResponse) GetExtra() *structpb.Struct
- func (x *GetPositionNewResponse) GetPose() *v1.Pose
- func (*GetPositionNewResponse) ProtoMessage()
- func (x *GetPositionNewResponse) ProtoReflect() protoreflect.Message
- func (x *GetPositionNewResponse) Reset()
- func (x *GetPositionNewResponse) String() string
- type GetPositionRequest
- func (*GetPositionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionRequest) GetName() string
- func (*GetPositionRequest) ProtoMessage()
- func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPositionRequest) Reset()
- func (x *GetPositionRequest) String() string
- type GetPositionResponse
- func (*GetPositionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionResponse) GetComponentReference() string
- func (x *GetPositionResponse) GetExtra() *structpb.Struct
- func (x *GetPositionResponse) GetPose() *v1.Pose
- func (*GetPositionResponse) ProtoMessage()
- func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
- func (x *GetPositionResponse) Reset()
- func (x *GetPositionResponse) String() string
- type SLAMServiceClient
- type SLAMServiceServer
- type SLAMService_GetInternalStateClient
- type SLAMService_GetInternalStateServer
- type SLAMService_GetInternalStateStreamClient
- type SLAMService_GetInternalStateStreamServer
- type SLAMService_GetPointCloudMapClient
- type SLAMService_GetPointCloudMapServer
- type SLAMService_GetPointCloudMapStreamClient
- type SLAMService_GetPointCloudMapStreamServer
- type UnimplementedSLAMServiceServer
- func (UnimplementedSLAMServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
- func (UnimplementedSLAMServiceServer) GetInternalState(*GetInternalStateRequest, SLAMService_GetInternalStateServer) error
- func (UnimplementedSLAMServiceServer) GetInternalStateStream(*GetInternalStateStreamRequest, SLAMService_GetInternalStateStreamServer) error
- func (UnimplementedSLAMServiceServer) GetPointCloudMap(*GetPointCloudMapRequest, SLAMService_GetPointCloudMapServer) error
- func (UnimplementedSLAMServiceServer) GetPointCloudMapStream(*GetPointCloudMapStreamRequest, SLAMService_GetPointCloudMapStreamServer) error
- func (UnimplementedSLAMServiceServer) GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error)
- func (UnimplementedSLAMServiceServer) GetPositionNew(context.Context, *GetPositionNewRequest) (*GetPositionNewResponse, error)
- type UnsafeSLAMServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_service_slam_v1_slam_proto protoreflect.FileDescriptor
var SLAMService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "viam.service.slam.v1.SLAMService", HandlerType: (*SLAMServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPosition", Handler: _SLAMService_GetPosition_Handler, }, { MethodName: "GetPositionNew", Handler: _SLAMService_GetPositionNew_Handler, }, { MethodName: "DoCommand", Handler: _SLAMService_DoCommand_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetPointCloudMap", Handler: _SLAMService_GetPointCloudMap_Handler, ServerStreams: true, }, { StreamName: "GetInternalState", Handler: _SLAMService_GetInternalState_Handler, ServerStreams: true, }, { StreamName: "GetPointCloudMapStream", Handler: _SLAMService_GetPointCloudMapStream_Handler, ServerStreams: true, }, { StreamName: "GetInternalStateStream", Handler: _SLAMService_GetInternalStateStream_Handler, ServerStreams: true, }, }, Metadata: "service/slam/v1/slam.proto", }
SLAMService_ServiceDesc is the grpc.ServiceDesc for SLAMService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSLAMServiceHandler ¶
func RegisterSLAMServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSLAMServiceHandler registers the http handlers for service SLAMService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSLAMServiceHandlerClient ¶
func RegisterSLAMServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SLAMServiceClient) error
RegisterSLAMServiceHandlerClient registers the http handlers for service SLAMService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SLAMServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SLAMServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SLAMServiceClient" to call the correct interceptors.
func RegisterSLAMServiceHandlerFromEndpoint ¶
func RegisterSLAMServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSLAMServiceHandlerFromEndpoint is same as RegisterSLAMServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSLAMServiceHandlerServer ¶
func RegisterSLAMServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SLAMServiceServer) error
RegisterSLAMServiceHandlerServer registers the http handlers for service SLAMService to "mux". UnaryRPC :call SLAMServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSLAMServiceHandlerFromEndpoint instead.
func RegisterSLAMServiceServer ¶
func RegisterSLAMServiceServer(s grpc.ServiceRegistrar, srv SLAMServiceServer)
Types ¶
type GetInternalStateRequest ¶ added in v0.1.42
type GetInternalStateRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetInternalStateRequest) Descriptor
deprecated
added in
v0.1.42
func (*GetInternalStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInternalStateRequest.ProtoReflect.Descriptor instead.
func (*GetInternalStateRequest) GetName ¶ added in v0.1.42
func (x *GetInternalStateRequest) GetName() string
func (*GetInternalStateRequest) ProtoMessage ¶ added in v0.1.42
func (*GetInternalStateRequest) ProtoMessage()
func (*GetInternalStateRequest) ProtoReflect ¶ added in v0.1.42
func (x *GetInternalStateRequest) ProtoReflect() protoreflect.Message
func (*GetInternalStateRequest) Reset ¶ added in v0.1.42
func (x *GetInternalStateRequest) Reset()
func (*GetInternalStateRequest) String ¶ added in v0.1.42
func (x *GetInternalStateRequest) String() string
type GetInternalStateResponse ¶ added in v0.1.42
type GetInternalStateResponse struct { // Chunk of the internal state of the SLAM algorithm required to continue // mapping/localization InternalStateChunk []byte `protobuf:"bytes,1,opt,name=internal_state_chunk,json=internalStateChunk,proto3" json:"internal_state_chunk,omitempty"` // contains filtered or unexported fields }
func (*GetInternalStateResponse) Descriptor
deprecated
added in
v0.1.42
func (*GetInternalStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInternalStateResponse.ProtoReflect.Descriptor instead.
func (*GetInternalStateResponse) GetInternalStateChunk ¶ added in v0.1.98
func (x *GetInternalStateResponse) GetInternalStateChunk() []byte
func (*GetInternalStateResponse) ProtoMessage ¶ added in v0.1.42
func (*GetInternalStateResponse) ProtoMessage()
func (*GetInternalStateResponse) ProtoReflect ¶ added in v0.1.42
func (x *GetInternalStateResponse) ProtoReflect() protoreflect.Message
func (*GetInternalStateResponse) Reset ¶ added in v0.1.42
func (x *GetInternalStateResponse) Reset()
func (*GetInternalStateResponse) String ¶ added in v0.1.42
func (x *GetInternalStateResponse) String() string
type GetInternalStateStreamRequest
deprecated
added in
v0.1.78
type GetInternalStateStreamRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetInternalStateStreamRequest) Descriptor
deprecated
added in
v0.1.78
func (*GetInternalStateStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInternalStateStreamRequest.ProtoReflect.Descriptor instead.
func (*GetInternalStateStreamRequest) GetName ¶ added in v0.1.78
func (x *GetInternalStateStreamRequest) GetName() string
func (*GetInternalStateStreamRequest) ProtoMessage ¶ added in v0.1.78
func (*GetInternalStateStreamRequest) ProtoMessage()
func (*GetInternalStateStreamRequest) ProtoReflect ¶ added in v0.1.78
func (x *GetInternalStateStreamRequest) ProtoReflect() protoreflect.Message
func (*GetInternalStateStreamRequest) Reset ¶ added in v0.1.78
func (x *GetInternalStateStreamRequest) Reset()
func (*GetInternalStateStreamRequest) String ¶ added in v0.1.78
func (x *GetInternalStateStreamRequest) String() string
type GetInternalStateStreamResponse
deprecated
added in
v0.1.78
type GetInternalStateStreamResponse struct { // Chunk of the internal state of the SLAM algorithm required to continue // mapping/localization InternalStateChunk []byte `protobuf:"bytes,1,opt,name=internal_state_chunk,json=internalStateChunk,proto3" json:"internal_state_chunk,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetInternalStateStreamResponse) Descriptor
deprecated
added in
v0.1.78
func (*GetInternalStateStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInternalStateStreamResponse.ProtoReflect.Descriptor instead.
func (*GetInternalStateStreamResponse) GetInternalStateChunk ¶ added in v0.1.78
func (x *GetInternalStateStreamResponse) GetInternalStateChunk() []byte
func (*GetInternalStateStreamResponse) ProtoMessage ¶ added in v0.1.78
func (*GetInternalStateStreamResponse) ProtoMessage()
func (*GetInternalStateStreamResponse) ProtoReflect ¶ added in v0.1.78
func (x *GetInternalStateStreamResponse) ProtoReflect() protoreflect.Message
func (*GetInternalStateStreamResponse) Reset ¶ added in v0.1.78
func (x *GetInternalStateStreamResponse) Reset()
func (*GetInternalStateStreamResponse) String ¶ added in v0.1.78
func (x *GetInternalStateStreamResponse) String() string
type GetPointCloudMapRequest ¶ added in v0.1.42
type GetPointCloudMapRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetPointCloudMapRequest) Descriptor
deprecated
added in
v0.1.42
func (*GetPointCloudMapRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPointCloudMapRequest.ProtoReflect.Descriptor instead.
func (*GetPointCloudMapRequest) GetName ¶ added in v0.1.42
func (x *GetPointCloudMapRequest) GetName() string
func (*GetPointCloudMapRequest) ProtoMessage ¶ added in v0.1.42
func (*GetPointCloudMapRequest) ProtoMessage()
func (*GetPointCloudMapRequest) ProtoReflect ¶ added in v0.1.42
func (x *GetPointCloudMapRequest) ProtoReflect() protoreflect.Message
func (*GetPointCloudMapRequest) Reset ¶ added in v0.1.42
func (x *GetPointCloudMapRequest) Reset()
func (*GetPointCloudMapRequest) String ¶ added in v0.1.42
func (x *GetPointCloudMapRequest) String() string
type GetPointCloudMapResponse ¶ added in v0.1.42
type GetPointCloudMapResponse struct { // One chunk of the PointCloud. // For a given GetPointCloudMap request, concatenating all // GetPointCloudMapResponse.point_cloud_pcd_chunk values in the // order received result in the complete pointcloud in standard PCD // format. // https://pointclouds.org/documentation/tutorials/pcd_file_format.html PointCloudPcdChunk []byte `protobuf:"bytes,1,opt,name=point_cloud_pcd_chunk,json=pointCloudPcdChunk,proto3" json:"point_cloud_pcd_chunk,omitempty"` // contains filtered or unexported fields }
func (*GetPointCloudMapResponse) Descriptor
deprecated
added in
v0.1.42
func (*GetPointCloudMapResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPointCloudMapResponse.ProtoReflect.Descriptor instead.
func (*GetPointCloudMapResponse) GetPointCloudPcdChunk ¶ added in v0.1.98
func (x *GetPointCloudMapResponse) GetPointCloudPcdChunk() []byte
func (*GetPointCloudMapResponse) ProtoMessage ¶ added in v0.1.42
func (*GetPointCloudMapResponse) ProtoMessage()
func (*GetPointCloudMapResponse) ProtoReflect ¶ added in v0.1.42
func (x *GetPointCloudMapResponse) ProtoReflect() protoreflect.Message
func (*GetPointCloudMapResponse) Reset ¶ added in v0.1.42
func (x *GetPointCloudMapResponse) Reset()
func (*GetPointCloudMapResponse) String ¶ added in v0.1.42
func (x *GetPointCloudMapResponse) String() string
type GetPointCloudMapStreamRequest
deprecated
added in
v0.1.78
type GetPointCloudMapStreamRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetPointCloudMapStreamRequest) Descriptor
deprecated
added in
v0.1.78
func (*GetPointCloudMapStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPointCloudMapStreamRequest.ProtoReflect.Descriptor instead.
func (*GetPointCloudMapStreamRequest) GetName ¶ added in v0.1.78
func (x *GetPointCloudMapStreamRequest) GetName() string
func (*GetPointCloudMapStreamRequest) ProtoMessage ¶ added in v0.1.78
func (*GetPointCloudMapStreamRequest) ProtoMessage()
func (*GetPointCloudMapStreamRequest) ProtoReflect ¶ added in v0.1.78
func (x *GetPointCloudMapStreamRequest) ProtoReflect() protoreflect.Message
func (*GetPointCloudMapStreamRequest) Reset ¶ added in v0.1.78
func (x *GetPointCloudMapStreamRequest) Reset()
func (*GetPointCloudMapStreamRequest) String ¶ added in v0.1.78
func (x *GetPointCloudMapStreamRequest) String() string
type GetPointCloudMapStreamResponse
deprecated
added in
v0.1.78
type GetPointCloudMapStreamResponse struct { // One chunk of the PointCloud. // For a given GetPointCloudMapStream request, // concatinating all // GetPointCloudMapStreamResponse.point_cloud_pcd_chunk // values in the order received result in // the complete pointcloud in standard PCD format. // https://pointclouds.org/documentation/tutorials/pcd_file_format.html PointCloudPcdChunk []byte `protobuf:"bytes,1,opt,name=point_cloud_pcd_chunk,json=pointCloudPcdChunk,proto3" json:"point_cloud_pcd_chunk,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetPointCloudMapStreamResponse) Descriptor
deprecated
added in
v0.1.78
func (*GetPointCloudMapStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPointCloudMapStreamResponse.ProtoReflect.Descriptor instead.
func (*GetPointCloudMapStreamResponse) GetPointCloudPcdChunk ¶ added in v0.1.78
func (x *GetPointCloudMapStreamResponse) GetPointCloudPcdChunk() []byte
func (*GetPointCloudMapStreamResponse) ProtoMessage ¶ added in v0.1.78
func (*GetPointCloudMapStreamResponse) ProtoMessage()
func (*GetPointCloudMapStreamResponse) ProtoReflect ¶ added in v0.1.78
func (x *GetPointCloudMapStreamResponse) ProtoReflect() protoreflect.Message
func (*GetPointCloudMapStreamResponse) Reset ¶ added in v0.1.78
func (x *GetPointCloudMapStreamResponse) Reset()
func (*GetPointCloudMapStreamResponse) String ¶ added in v0.1.78
func (x *GetPointCloudMapStreamResponse) String() string
type GetPositionNewRequest
deprecated
added in
v0.1.42
type GetPositionNewRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetPositionNewRequest) Descriptor
deprecated
added in
v0.1.42
func (*GetPositionNewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionNewRequest.ProtoReflect.Descriptor instead.
func (*GetPositionNewRequest) GetName ¶ added in v0.1.42
func (x *GetPositionNewRequest) GetName() string
func (*GetPositionNewRequest) ProtoMessage ¶ added in v0.1.42
func (*GetPositionNewRequest) ProtoMessage()
func (*GetPositionNewRequest) ProtoReflect ¶ added in v0.1.42
func (x *GetPositionNewRequest) ProtoReflect() protoreflect.Message
func (*GetPositionNewRequest) Reset ¶ added in v0.1.42
func (x *GetPositionNewRequest) Reset()
func (*GetPositionNewRequest) String ¶ added in v0.1.42
func (x *GetPositionNewRequest) String() string
type GetPositionNewResponse
deprecated
added in
v0.1.42
type GetPositionNewResponse struct { // Current position of the specified component in the SLAM Map Pose *v1.Pose `protobuf:"bytes,1,opt,name=pose,proto3" json:"pose,omitempty"` // This is usually the name of the camera that is in the SLAM config ComponentReference string `protobuf:"bytes,2,opt,name=component_reference,json=componentReference,proto3" json:"component_reference,omitempty"` // Additional information in the response Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
Deprecated: Do not use.
func (*GetPositionNewResponse) Descriptor
deprecated
added in
v0.1.42
func (*GetPositionNewResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionNewResponse.ProtoReflect.Descriptor instead.
func (*GetPositionNewResponse) GetComponentReference ¶ added in v0.1.42
func (x *GetPositionNewResponse) GetComponentReference() string
func (*GetPositionNewResponse) GetExtra ¶ added in v0.1.42
func (x *GetPositionNewResponse) GetExtra() *structpb.Struct
func (*GetPositionNewResponse) GetPose ¶ added in v0.1.42
func (x *GetPositionNewResponse) GetPose() *v1.Pose
func (*GetPositionNewResponse) ProtoMessage ¶ added in v0.1.42
func (*GetPositionNewResponse) ProtoMessage()
func (*GetPositionNewResponse) ProtoReflect ¶ added in v0.1.42
func (x *GetPositionNewResponse) ProtoReflect() protoreflect.Message
func (*GetPositionNewResponse) Reset ¶ added in v0.1.42
func (x *GetPositionNewResponse) Reset()
func (*GetPositionNewResponse) String ¶ added in v0.1.42
func (x *GetPositionNewResponse) String() string
type GetPositionRequest ¶
type GetPositionRequest struct { // Name of slam service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetPositionRequest) Descriptor
deprecated
func (*GetPositionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionRequest.ProtoReflect.Descriptor instead.
func (*GetPositionRequest) GetName ¶
func (x *GetPositionRequest) GetName() string
func (*GetPositionRequest) ProtoMessage ¶
func (*GetPositionRequest) ProtoMessage()
func (*GetPositionRequest) ProtoReflect ¶
func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
func (*GetPositionRequest) Reset ¶
func (x *GetPositionRequest) Reset()
func (*GetPositionRequest) String ¶
func (x *GetPositionRequest) String() string
type GetPositionResponse ¶
type GetPositionResponse struct { // Current position of the specified component in the SLAM Map Pose *v1.Pose `protobuf:"bytes,1,opt,name=pose,proto3" json:"pose,omitempty"` // This is usually the name of the camera that is in the SLAM config ComponentReference string `protobuf:"bytes,2,opt,name=component_reference,json=componentReference,proto3" json:"component_reference,omitempty"` // Additional information in the response Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetPositionResponse) Descriptor
deprecated
func (*GetPositionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionResponse.ProtoReflect.Descriptor instead.
func (*GetPositionResponse) GetComponentReference ¶ added in v0.1.98
func (x *GetPositionResponse) GetComponentReference() string
func (*GetPositionResponse) GetExtra ¶ added in v0.1.1
func (x *GetPositionResponse) GetExtra() *structpb.Struct
func (*GetPositionResponse) GetPose ¶
func (x *GetPositionResponse) GetPose() *v1.Pose
func (*GetPositionResponse) ProtoMessage ¶
func (*GetPositionResponse) ProtoMessage()
func (*GetPositionResponse) ProtoReflect ¶
func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
func (*GetPositionResponse) Reset ¶
func (x *GetPositionResponse) Reset()
func (*GetPositionResponse) String ¶
func (x *GetPositionResponse) String() string
type SLAMServiceClient ¶
type SLAMServiceClient interface { // GetPosition returns the current estimated position of the robot with // respect to a returned component reference. GetPosition(ctx context.Context, in *GetPositionRequest, opts ...grpc.CallOption) (*GetPositionResponse, error) // GetPointCloudMap returns the latest point cloud map available GetPointCloudMap(ctx context.Context, in *GetPointCloudMapRequest, opts ...grpc.CallOption) (SLAMService_GetPointCloudMapClient, error) // GetInternalState returns the internal map as defined by the specified slam // algorithm required to continue mapping/localizing. // This endpoint is not intended for end users. GetInternalState(ctx context.Context, in *GetInternalStateRequest, opts ...grpc.CallOption) (SLAMService_GetInternalStateClient, error) // Deprecated: Do not use. // GetPositionNew returns the current estimated position of the robot with // respect to a returned component reference. Note: this function will be // renamed to GetPosition and replace the existing one in the near future GetPositionNew(ctx context.Context, in *GetPositionNewRequest, opts ...grpc.CallOption) (*GetPositionNewResponse, error) // Deprecated: Do not use. // TODO (RSDK-1066): This will soon be renamed to GetPointCloudMap // GetPointCloudMapStream returns the latest point cloud map available GetPointCloudMapStream(ctx context.Context, in *GetPointCloudMapStreamRequest, opts ...grpc.CallOption) (SLAMService_GetPointCloudMapStreamClient, error) // Deprecated: Do not use. // TODO (RSDK-1066): This will be renamed to GetInternalState // GetInternalStateStream returns the internal map as defined by the specified slam // algorithm required to continue mapping/localizing. // This endpoint is not intended for end users. GetInternalStateStream(ctx context.Context, in *GetInternalStateStreamRequest, opts ...grpc.CallOption) (SLAMService_GetInternalStateStreamClient, error) // DoCommand sends/receives arbitrary commands DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error) }
SLAMServiceClient is the client API for SLAMService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSLAMServiceClient ¶
func NewSLAMServiceClient(cc grpc.ClientConnInterface) SLAMServiceClient
type SLAMServiceServer ¶
type SLAMServiceServer interface { // GetPosition returns the current estimated position of the robot with // respect to a returned component reference. GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error) // GetPointCloudMap returns the latest point cloud map available GetPointCloudMap(*GetPointCloudMapRequest, SLAMService_GetPointCloudMapServer) error // GetInternalState returns the internal map as defined by the specified slam // algorithm required to continue mapping/localizing. // This endpoint is not intended for end users. GetInternalState(*GetInternalStateRequest, SLAMService_GetInternalStateServer) error // Deprecated: Do not use. // GetPositionNew returns the current estimated position of the robot with // respect to a returned component reference. Note: this function will be // renamed to GetPosition and replace the existing one in the near future GetPositionNew(context.Context, *GetPositionNewRequest) (*GetPositionNewResponse, error) // Deprecated: Do not use. // TODO (RSDK-1066): This will soon be renamed to GetPointCloudMap // GetPointCloudMapStream returns the latest point cloud map available GetPointCloudMapStream(*GetPointCloudMapStreamRequest, SLAMService_GetPointCloudMapStreamServer) error // Deprecated: Do not use. // TODO (RSDK-1066): This will be renamed to GetInternalState // GetInternalStateStream returns the internal map as defined by the specified slam // algorithm required to continue mapping/localizing. // This endpoint is not intended for end users. GetInternalStateStream(*GetInternalStateStreamRequest, SLAMService_GetInternalStateStreamServer) error // DoCommand sends/receives arbitrary commands DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error) // contains filtered or unexported methods }
SLAMServiceServer is the server API for SLAMService service. All implementations must embed UnimplementedSLAMServiceServer for forward compatibility
type SLAMService_GetInternalStateClient ¶ added in v0.1.98
type SLAMService_GetInternalStateClient interface { Recv() (*GetInternalStateResponse, error) grpc.ClientStream }
type SLAMService_GetInternalStateServer ¶ added in v0.1.98
type SLAMService_GetInternalStateServer interface { Send(*GetInternalStateResponse) error grpc.ServerStream }
type SLAMService_GetInternalStateStreamClient ¶ added in v0.1.78
type SLAMService_GetInternalStateStreamClient interface { Recv() (*GetInternalStateStreamResponse, error) grpc.ClientStream }
type SLAMService_GetInternalStateStreamServer ¶ added in v0.1.78
type SLAMService_GetInternalStateStreamServer interface { Send(*GetInternalStateStreamResponse) error grpc.ServerStream }
type SLAMService_GetPointCloudMapClient ¶ added in v0.1.98
type SLAMService_GetPointCloudMapClient interface { Recv() (*GetPointCloudMapResponse, error) grpc.ClientStream }
type SLAMService_GetPointCloudMapServer ¶ added in v0.1.98
type SLAMService_GetPointCloudMapServer interface { Send(*GetPointCloudMapResponse) error grpc.ServerStream }
type SLAMService_GetPointCloudMapStreamClient ¶ added in v0.1.78
type SLAMService_GetPointCloudMapStreamClient interface { Recv() (*GetPointCloudMapStreamResponse, error) grpc.ClientStream }
type SLAMService_GetPointCloudMapStreamServer ¶ added in v0.1.78
type SLAMService_GetPointCloudMapStreamServer interface { Send(*GetPointCloudMapStreamResponse) error grpc.ServerStream }
type UnimplementedSLAMServiceServer ¶
type UnimplementedSLAMServiceServer struct { }
UnimplementedSLAMServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSLAMServiceServer) DoCommand ¶ added in v0.1.80
func (UnimplementedSLAMServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
func (UnimplementedSLAMServiceServer) GetInternalState ¶ added in v0.1.42
func (UnimplementedSLAMServiceServer) GetInternalState(*GetInternalStateRequest, SLAMService_GetInternalStateServer) error
func (UnimplementedSLAMServiceServer) GetInternalStateStream ¶ added in v0.1.78
func (UnimplementedSLAMServiceServer) GetInternalStateStream(*GetInternalStateStreamRequest, SLAMService_GetInternalStateStreamServer) error
func (UnimplementedSLAMServiceServer) GetPointCloudMap ¶ added in v0.1.42
func (UnimplementedSLAMServiceServer) GetPointCloudMap(*GetPointCloudMapRequest, SLAMService_GetPointCloudMapServer) error
func (UnimplementedSLAMServiceServer) GetPointCloudMapStream ¶ added in v0.1.78
func (UnimplementedSLAMServiceServer) GetPointCloudMapStream(*GetPointCloudMapStreamRequest, SLAMService_GetPointCloudMapStreamServer) error
func (UnimplementedSLAMServiceServer) GetPosition ¶
func (UnimplementedSLAMServiceServer) GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error)
func (UnimplementedSLAMServiceServer) GetPositionNew ¶ added in v0.1.42
func (UnimplementedSLAMServiceServer) GetPositionNew(context.Context, *GetPositionNewRequest) (*GetPositionNewResponse, error)
type UnsafeSLAMServiceServer ¶
type UnsafeSLAMServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSLAMServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SLAMServiceServer will result in compilation errors.