@viamrobotics/sdk 0.2.2-rc.0 → 0.2.3-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ import * as jspb from "google-protobuf";
5
5
  import * as common_v1_common_pb from "../../../common/v1/common_pb";
6
6
  import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
7
7
  import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
8
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
9
 
9
10
  export class GetPositionRequest extends jspb.Message {
10
11
  getName(): string;
@@ -142,3 +143,45 @@ export namespace GetInternalStateResponse {
142
143
  }
143
144
  }
144
145
 
146
+ export class GetLatestMapInfoRequest extends jspb.Message {
147
+ getName(): string;
148
+ setName(value: string): void;
149
+
150
+ serializeBinary(): Uint8Array;
151
+ toObject(includeInstance?: boolean): GetLatestMapInfoRequest.AsObject;
152
+ static toObject(includeInstance: boolean, msg: GetLatestMapInfoRequest): GetLatestMapInfoRequest.AsObject;
153
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
154
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
155
+ static serializeBinaryToWriter(message: GetLatestMapInfoRequest, writer: jspb.BinaryWriter): void;
156
+ static deserializeBinary(bytes: Uint8Array): GetLatestMapInfoRequest;
157
+ static deserializeBinaryFromReader(message: GetLatestMapInfoRequest, reader: jspb.BinaryReader): GetLatestMapInfoRequest;
158
+ }
159
+
160
+ export namespace GetLatestMapInfoRequest {
161
+ export type AsObject = {
162
+ name: string,
163
+ }
164
+ }
165
+
166
+ export class GetLatestMapInfoResponse extends jspb.Message {
167
+ hasLastMapUpdate(): boolean;
168
+ clearLastMapUpdate(): void;
169
+ getLastMapUpdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
170
+ setLastMapUpdate(value?: google_protobuf_timestamp_pb.Timestamp): void;
171
+
172
+ serializeBinary(): Uint8Array;
173
+ toObject(includeInstance?: boolean): GetLatestMapInfoResponse.AsObject;
174
+ static toObject(includeInstance: boolean, msg: GetLatestMapInfoResponse): GetLatestMapInfoResponse.AsObject;
175
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
176
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
177
+ static serializeBinaryToWriter(message: GetLatestMapInfoResponse, writer: jspb.BinaryWriter): void;
178
+ static deserializeBinary(bytes: Uint8Array): GetLatestMapInfoResponse;
179
+ static deserializeBinaryFromReader(message: GetLatestMapInfoResponse, reader: jspb.BinaryReader): GetLatestMapInfoResponse;
180
+ }
181
+
182
+ export namespace GetLatestMapInfoResponse {
183
+ export type AsObject = {
184
+ lastMapUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
185
+ }
186
+ }
187
+
@@ -32,6 +32,15 @@ type SLAMServiceGetInternalState = {
32
32
  readonly responseType: typeof service_slam_v1_slam_pb.GetInternalStateResponse;
33
33
  };
34
34
 
35
+ type SLAMServiceGetLatestMapInfo = {
36
+ readonly methodName: string;
37
+ readonly service: typeof SLAMService;
38
+ readonly requestStream: false;
39
+ readonly responseStream: false;
40
+ readonly requestType: typeof service_slam_v1_slam_pb.GetLatestMapInfoRequest;
41
+ readonly responseType: typeof service_slam_v1_slam_pb.GetLatestMapInfoResponse;
42
+ };
43
+
35
44
  type SLAMServiceDoCommand = {
36
45
  readonly methodName: string;
37
46
  readonly service: typeof SLAMService;
@@ -46,6 +55,7 @@ export class SLAMService {
46
55
  static readonly GetPosition: SLAMServiceGetPosition;
47
56
  static readonly GetPointCloudMap: SLAMServiceGetPointCloudMap;
48
57
  static readonly GetInternalState: SLAMServiceGetInternalState;
58
+ static readonly GetLatestMapInfo: SLAMServiceGetLatestMapInfo;
49
59
  static readonly DoCommand: SLAMServiceDoCommand;
50
60
  }
51
61
 
@@ -92,6 +102,15 @@ export class SLAMServiceClient {
92
102
  ): UnaryResponse;
93
103
  getPointCloudMap(requestMessage: service_slam_v1_slam_pb.GetPointCloudMapRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetPointCloudMapResponse>;
94
104
  getInternalState(requestMessage: service_slam_v1_slam_pb.GetInternalStateRequest, metadata?: grpc.Metadata): ResponseStream<service_slam_v1_slam_pb.GetInternalStateResponse>;
105
+ getLatestMapInfo(
106
+ requestMessage: service_slam_v1_slam_pb.GetLatestMapInfoRequest,
107
+ metadata: grpc.Metadata,
108
+ callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetLatestMapInfoResponse|null) => void
109
+ ): UnaryResponse;
110
+ getLatestMapInfo(
111
+ requestMessage: service_slam_v1_slam_pb.GetLatestMapInfoRequest,
112
+ callback: (error: ServiceError|null, responseMessage: service_slam_v1_slam_pb.GetLatestMapInfoResponse|null) => void
113
+ ): UnaryResponse;
95
114
  doCommand(
96
115
  requestMessage: common_v1_common_pb.DoCommandRequest,
97
116
  metadata: grpc.Metadata,