@viamrobotics/sdk 0.2.3 → 0.2.4
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.
- package/dist/gen/common/v1/common_pb.d.ts +35 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +88 -0
- package/dist/gen/component/camera/v1/camera_pb_service.d.ts +19 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +48 -0
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +19 -0
- package/dist/main.es.js +1540 -1056
- package/dist/main.umd.js +3 -3
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
|
|
6
6
|
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
7
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
8
|
|
|
8
9
|
export class ResourceName extends jspb.Message {
|
|
9
10
|
getNamespace(): string;
|
|
@@ -533,6 +534,28 @@ export namespace ActuatorStatus {
|
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
536
|
|
|
537
|
+
export class ResponseMetadata extends jspb.Message {
|
|
538
|
+
hasCapturedAt(): boolean;
|
|
539
|
+
clearCapturedAt(): void;
|
|
540
|
+
getCapturedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
541
|
+
setCapturedAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
542
|
+
|
|
543
|
+
serializeBinary(): Uint8Array;
|
|
544
|
+
toObject(includeInstance?: boolean): ResponseMetadata.AsObject;
|
|
545
|
+
static toObject(includeInstance: boolean, msg: ResponseMetadata): ResponseMetadata.AsObject;
|
|
546
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
547
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
548
|
+
static serializeBinaryToWriter(message: ResponseMetadata, writer: jspb.BinaryWriter): void;
|
|
549
|
+
static deserializeBinary(bytes: Uint8Array): ResponseMetadata;
|
|
550
|
+
static deserializeBinaryFromReader(message: ResponseMetadata, reader: jspb.BinaryReader): ResponseMetadata;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export namespace ResponseMetadata {
|
|
554
|
+
export type AsObject = {
|
|
555
|
+
capturedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
536
559
|
export class DoCommandRequest extends jspb.Message {
|
|
537
560
|
getName(): string;
|
|
538
561
|
setName(value: string): void;
|
|
@@ -585,6 +608,11 @@ export class GetKinematicsRequest extends jspb.Message {
|
|
|
585
608
|
getName(): string;
|
|
586
609
|
setName(value: string): void;
|
|
587
610
|
|
|
611
|
+
hasExtra(): boolean;
|
|
612
|
+
clearExtra(): void;
|
|
613
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
614
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
615
|
+
|
|
588
616
|
serializeBinary(): Uint8Array;
|
|
589
617
|
toObject(includeInstance?: boolean): GetKinematicsRequest.AsObject;
|
|
590
618
|
static toObject(includeInstance: boolean, msg: GetKinematicsRequest): GetKinematicsRequest.AsObject;
|
|
@@ -598,6 +626,7 @@ export class GetKinematicsRequest extends jspb.Message {
|
|
|
598
626
|
export namespace GetKinematicsRequest {
|
|
599
627
|
export type AsObject = {
|
|
600
628
|
name: string,
|
|
629
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
601
630
|
}
|
|
602
631
|
}
|
|
603
632
|
|
|
@@ -631,6 +660,11 @@ export class GetGeometriesRequest extends jspb.Message {
|
|
|
631
660
|
getName(): string;
|
|
632
661
|
setName(value: string): void;
|
|
633
662
|
|
|
663
|
+
hasExtra(): boolean;
|
|
664
|
+
clearExtra(): void;
|
|
665
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
666
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
667
|
+
|
|
634
668
|
serializeBinary(): Uint8Array;
|
|
635
669
|
toObject(includeInstance?: boolean): GetGeometriesRequest.AsObject;
|
|
636
670
|
static toObject(includeInstance: boolean, msg: GetGeometriesRequest): GetGeometriesRequest.AsObject;
|
|
@@ -644,6 +678,7 @@ export class GetGeometriesRequest extends jspb.Message {
|
|
|
644
678
|
export namespace GetGeometriesRequest {
|
|
645
679
|
export type AsObject = {
|
|
646
680
|
name: string,
|
|
681
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
647
682
|
}
|
|
648
683
|
}
|
|
649
684
|
|
|
@@ -56,6 +56,84 @@ export namespace GetImageResponse {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
export class GetImagesRequest extends jspb.Message {
|
|
60
|
+
getName(): string;
|
|
61
|
+
setName(value: string): void;
|
|
62
|
+
|
|
63
|
+
serializeBinary(): Uint8Array;
|
|
64
|
+
toObject(includeInstance?: boolean): GetImagesRequest.AsObject;
|
|
65
|
+
static toObject(includeInstance: boolean, msg: GetImagesRequest): GetImagesRequest.AsObject;
|
|
66
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
67
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
68
|
+
static serializeBinaryToWriter(message: GetImagesRequest, writer: jspb.BinaryWriter): void;
|
|
69
|
+
static deserializeBinary(bytes: Uint8Array): GetImagesRequest;
|
|
70
|
+
static deserializeBinaryFromReader(message: GetImagesRequest, reader: jspb.BinaryReader): GetImagesRequest;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace GetImagesRequest {
|
|
74
|
+
export type AsObject = {
|
|
75
|
+
name: string,
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class GetImagesResponse extends jspb.Message {
|
|
80
|
+
clearImagesList(): void;
|
|
81
|
+
getImagesList(): Array<Image>;
|
|
82
|
+
setImagesList(value: Array<Image>): void;
|
|
83
|
+
addImages(value?: Image, index?: number): Image;
|
|
84
|
+
|
|
85
|
+
hasResponseMetadata(): boolean;
|
|
86
|
+
clearResponseMetadata(): void;
|
|
87
|
+
getResponseMetadata(): common_v1_common_pb.ResponseMetadata | undefined;
|
|
88
|
+
setResponseMetadata(value?: common_v1_common_pb.ResponseMetadata): void;
|
|
89
|
+
|
|
90
|
+
serializeBinary(): Uint8Array;
|
|
91
|
+
toObject(includeInstance?: boolean): GetImagesResponse.AsObject;
|
|
92
|
+
static toObject(includeInstance: boolean, msg: GetImagesResponse): GetImagesResponse.AsObject;
|
|
93
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
94
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
95
|
+
static serializeBinaryToWriter(message: GetImagesResponse, writer: jspb.BinaryWriter): void;
|
|
96
|
+
static deserializeBinary(bytes: Uint8Array): GetImagesResponse;
|
|
97
|
+
static deserializeBinaryFromReader(message: GetImagesResponse, reader: jspb.BinaryReader): GetImagesResponse;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace GetImagesResponse {
|
|
101
|
+
export type AsObject = {
|
|
102
|
+
imagesList: Array<Image.AsObject>,
|
|
103
|
+
responseMetadata?: common_v1_common_pb.ResponseMetadata.AsObject,
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class Image extends jspb.Message {
|
|
108
|
+
getSourceName(): string;
|
|
109
|
+
setSourceName(value: string): void;
|
|
110
|
+
|
|
111
|
+
getFormat(): FormatMap[keyof FormatMap];
|
|
112
|
+
setFormat(value: FormatMap[keyof FormatMap]): void;
|
|
113
|
+
|
|
114
|
+
getImage(): Uint8Array | string;
|
|
115
|
+
getImage_asU8(): Uint8Array;
|
|
116
|
+
getImage_asB64(): string;
|
|
117
|
+
setImage(value: Uint8Array | string): void;
|
|
118
|
+
|
|
119
|
+
serializeBinary(): Uint8Array;
|
|
120
|
+
toObject(includeInstance?: boolean): Image.AsObject;
|
|
121
|
+
static toObject(includeInstance: boolean, msg: Image): Image.AsObject;
|
|
122
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
123
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
124
|
+
static serializeBinaryToWriter(message: Image, writer: jspb.BinaryWriter): void;
|
|
125
|
+
static deserializeBinary(bytes: Uint8Array): Image;
|
|
126
|
+
static deserializeBinaryFromReader(message: Image, reader: jspb.BinaryReader): Image;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace Image {
|
|
130
|
+
export type AsObject = {
|
|
131
|
+
sourceName: string,
|
|
132
|
+
format: FormatMap[keyof FormatMap],
|
|
133
|
+
image: Uint8Array | string,
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
59
137
|
export class RenderFrameRequest extends jspb.Message {
|
|
60
138
|
getName(): string;
|
|
61
139
|
setName(value: string): void;
|
|
@@ -340,3 +418,13 @@ export namespace DistortionParameters {
|
|
|
340
418
|
}
|
|
341
419
|
}
|
|
342
420
|
|
|
421
|
+
export interface FormatMap {
|
|
422
|
+
FORMAT_UNSPECIFIED: 0;
|
|
423
|
+
FORMAT_RAW_RGBA: 1;
|
|
424
|
+
FORMAT_RAW_DEPTH: 2;
|
|
425
|
+
FORMAT_JPEG: 3;
|
|
426
|
+
FORMAT_PNG: 4;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export const Format: FormatMap;
|
|
430
|
+
|
|
@@ -15,6 +15,15 @@ type CameraServiceGetImage = {
|
|
|
15
15
|
readonly responseType: typeof component_camera_v1_camera_pb.GetImageResponse;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
type CameraServiceGetImages = {
|
|
19
|
+
readonly methodName: string;
|
|
20
|
+
readonly service: typeof CameraService;
|
|
21
|
+
readonly requestStream: false;
|
|
22
|
+
readonly responseStream: false;
|
|
23
|
+
readonly requestType: typeof component_camera_v1_camera_pb.GetImagesRequest;
|
|
24
|
+
readonly responseType: typeof component_camera_v1_camera_pb.GetImagesResponse;
|
|
25
|
+
};
|
|
26
|
+
|
|
18
27
|
type CameraServiceRenderFrame = {
|
|
19
28
|
readonly methodName: string;
|
|
20
29
|
readonly service: typeof CameraService;
|
|
@@ -63,6 +72,7 @@ type CameraServiceGetGeometries = {
|
|
|
63
72
|
export class CameraService {
|
|
64
73
|
static readonly serviceName: string;
|
|
65
74
|
static readonly GetImage: CameraServiceGetImage;
|
|
75
|
+
static readonly GetImages: CameraServiceGetImages;
|
|
66
76
|
static readonly RenderFrame: CameraServiceRenderFrame;
|
|
67
77
|
static readonly GetPointCloud: CameraServiceGetPointCloud;
|
|
68
78
|
static readonly GetProperties: CameraServiceGetProperties;
|
|
@@ -111,6 +121,15 @@ export class CameraServiceClient {
|
|
|
111
121
|
requestMessage: component_camera_v1_camera_pb.GetImageRequest,
|
|
112
122
|
callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImageResponse|null) => void
|
|
113
123
|
): UnaryResponse;
|
|
124
|
+
getImages(
|
|
125
|
+
requestMessage: component_camera_v1_camera_pb.GetImagesRequest,
|
|
126
|
+
metadata: grpc.Metadata,
|
|
127
|
+
callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImagesResponse|null) => void
|
|
128
|
+
): UnaryResponse;
|
|
129
|
+
getImages(
|
|
130
|
+
requestMessage: component_camera_v1_camera_pb.GetImagesRequest,
|
|
131
|
+
callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImagesResponse|null) => void
|
|
132
|
+
): UnaryResponse;
|
|
114
133
|
renderFrame(
|
|
115
134
|
requestMessage: component_camera_v1_camera_pb.RenderFrameRequest,
|
|
116
135
|
metadata: grpc.Metadata,
|
|
@@ -314,6 +314,54 @@ export namespace RemoveWaypointResponse {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
export class GetObstaclesRequest extends jspb.Message {
|
|
318
|
+
getName(): string;
|
|
319
|
+
setName(value: string): void;
|
|
320
|
+
|
|
321
|
+
hasExtra(): boolean;
|
|
322
|
+
clearExtra(): void;
|
|
323
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
324
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
325
|
+
|
|
326
|
+
serializeBinary(): Uint8Array;
|
|
327
|
+
toObject(includeInstance?: boolean): GetObstaclesRequest.AsObject;
|
|
328
|
+
static toObject(includeInstance: boolean, msg: GetObstaclesRequest): GetObstaclesRequest.AsObject;
|
|
329
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
330
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
331
|
+
static serializeBinaryToWriter(message: GetObstaclesRequest, writer: jspb.BinaryWriter): void;
|
|
332
|
+
static deserializeBinary(bytes: Uint8Array): GetObstaclesRequest;
|
|
333
|
+
static deserializeBinaryFromReader(message: GetObstaclesRequest, reader: jspb.BinaryReader): GetObstaclesRequest;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export namespace GetObstaclesRequest {
|
|
337
|
+
export type AsObject = {
|
|
338
|
+
name: string,
|
|
339
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export class GetObstaclesResponse extends jspb.Message {
|
|
344
|
+
clearObstaclesList(): void;
|
|
345
|
+
getObstaclesList(): Array<common_v1_common_pb.GeoObstacle>;
|
|
346
|
+
setObstaclesList(value: Array<common_v1_common_pb.GeoObstacle>): void;
|
|
347
|
+
addObstacles(value?: common_v1_common_pb.GeoObstacle, index?: number): common_v1_common_pb.GeoObstacle;
|
|
348
|
+
|
|
349
|
+
serializeBinary(): Uint8Array;
|
|
350
|
+
toObject(includeInstance?: boolean): GetObstaclesResponse.AsObject;
|
|
351
|
+
static toObject(includeInstance: boolean, msg: GetObstaclesResponse): GetObstaclesResponse.AsObject;
|
|
352
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
353
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
354
|
+
static serializeBinaryToWriter(message: GetObstaclesResponse, writer: jspb.BinaryWriter): void;
|
|
355
|
+
static deserializeBinary(bytes: Uint8Array): GetObstaclesResponse;
|
|
356
|
+
static deserializeBinaryFromReader(message: GetObstaclesResponse, reader: jspb.BinaryReader): GetObstaclesResponse;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export namespace GetObstaclesResponse {
|
|
360
|
+
export type AsObject = {
|
|
361
|
+
obstaclesList: Array<common_v1_common_pb.GeoObstacle.AsObject>,
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
317
365
|
export interface ModeMap {
|
|
318
366
|
MODE_UNSPECIFIED: 0;
|
|
319
367
|
MODE_MANUAL: 1;
|
|
@@ -59,6 +59,15 @@ type NavigationServiceRemoveWaypoint = {
|
|
|
59
59
|
readonly responseType: typeof service_navigation_v1_navigation_pb.RemoveWaypointResponse;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
+
type NavigationServiceGetObstacles = {
|
|
63
|
+
readonly methodName: string;
|
|
64
|
+
readonly service: typeof NavigationService;
|
|
65
|
+
readonly requestStream: false;
|
|
66
|
+
readonly responseStream: false;
|
|
67
|
+
readonly requestType: typeof service_navigation_v1_navigation_pb.GetObstaclesRequest;
|
|
68
|
+
readonly responseType: typeof service_navigation_v1_navigation_pb.GetObstaclesResponse;
|
|
69
|
+
};
|
|
70
|
+
|
|
62
71
|
type NavigationServiceDoCommand = {
|
|
63
72
|
readonly methodName: string;
|
|
64
73
|
readonly service: typeof NavigationService;
|
|
@@ -76,6 +85,7 @@ export class NavigationService {
|
|
|
76
85
|
static readonly GetWaypoints: NavigationServiceGetWaypoints;
|
|
77
86
|
static readonly AddWaypoint: NavigationServiceAddWaypoint;
|
|
78
87
|
static readonly RemoveWaypoint: NavigationServiceRemoveWaypoint;
|
|
88
|
+
static readonly GetObstacles: NavigationServiceGetObstacles;
|
|
79
89
|
static readonly DoCommand: NavigationServiceDoCommand;
|
|
80
90
|
}
|
|
81
91
|
|
|
@@ -165,6 +175,15 @@ export class NavigationServiceClient {
|
|
|
165
175
|
requestMessage: service_navigation_v1_navigation_pb.RemoveWaypointRequest,
|
|
166
176
|
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.RemoveWaypointResponse|null) => void
|
|
167
177
|
): UnaryResponse;
|
|
178
|
+
getObstacles(
|
|
179
|
+
requestMessage: service_navigation_v1_navigation_pb.GetObstaclesRequest,
|
|
180
|
+
metadata: grpc.Metadata,
|
|
181
|
+
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.GetObstaclesResponse|null) => void
|
|
182
|
+
): UnaryResponse;
|
|
183
|
+
getObstacles(
|
|
184
|
+
requestMessage: service_navigation_v1_navigation_pb.GetObstaclesRequest,
|
|
185
|
+
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.GetObstaclesResponse|null) => void
|
|
186
|
+
): UnaryResponse;
|
|
168
187
|
doCommand(
|
|
169
188
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
170
189
|
metadata: grpc.Metadata,
|