@viamrobotics/sdk 0.0.27-alpha.7 → 0.0.28
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/component/board/v1/board_pb.d.ts +61 -0
- package/dist/gen/component/board/v1/board_pb.esm.d.ts +61 -0
- package/dist/gen/component/board/v1/board_pb_service.d.ts +19 -0
- package/dist/gen/component/board/v1/board_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/generic/v1/generic_pb.d.ts +1 -49
- package/dist/gen/component/generic/v1/generic_pb.esm.d.ts +1 -49
- package/dist/gen/component/generic/v1/generic_pb_service.d.ts +7 -6
- package/dist/gen/component/generic/v1/generic_pb_service.esm.d.ts +7 -6
- package/dist/gen/service/motion/v1/motion_pb.d.ts +6 -0
- package/dist/gen/service/motion/v1/motion_pb.esm.d.ts +6 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +9755 -6522
- package/dist/main.umd.js +66 -66
- package/dist/robot.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
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
|
+
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
7
8
|
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
8
9
|
|
|
9
10
|
export class StatusRequest extends jspb.Message {
|
|
@@ -454,3 +455,63 @@ export namespace GetDigitalInterruptValueResponse {
|
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
457
|
|
|
458
|
+
export class SetPowerModeRequest extends jspb.Message {
|
|
459
|
+
getName(): string;
|
|
460
|
+
setName(value: string): void;
|
|
461
|
+
|
|
462
|
+
getPowerMode(): PowerModeMap[keyof PowerModeMap];
|
|
463
|
+
setPowerMode(value: PowerModeMap[keyof PowerModeMap]): void;
|
|
464
|
+
|
|
465
|
+
hasDuration(): boolean;
|
|
466
|
+
clearDuration(): void;
|
|
467
|
+
getDuration(): google_protobuf_duration_pb.Duration | undefined;
|
|
468
|
+
setDuration(value?: google_protobuf_duration_pb.Duration): void;
|
|
469
|
+
|
|
470
|
+
hasExtra(): boolean;
|
|
471
|
+
clearExtra(): void;
|
|
472
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
473
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
474
|
+
|
|
475
|
+
serializeBinary(): Uint8Array;
|
|
476
|
+
toObject(includeInstance?: boolean): SetPowerModeRequest.AsObject;
|
|
477
|
+
static toObject(includeInstance: boolean, msg: SetPowerModeRequest): SetPowerModeRequest.AsObject;
|
|
478
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
479
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
480
|
+
static serializeBinaryToWriter(message: SetPowerModeRequest, writer: jspb.BinaryWriter): void;
|
|
481
|
+
static deserializeBinary(bytes: Uint8Array): SetPowerModeRequest;
|
|
482
|
+
static deserializeBinaryFromReader(message: SetPowerModeRequest, reader: jspb.BinaryReader): SetPowerModeRequest;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export namespace SetPowerModeRequest {
|
|
486
|
+
export type AsObject = {
|
|
487
|
+
name: string,
|
|
488
|
+
powerMode: PowerModeMap[keyof PowerModeMap],
|
|
489
|
+
duration?: google_protobuf_duration_pb.Duration.AsObject,
|
|
490
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export class SetPowerModeResponse extends jspb.Message {
|
|
495
|
+
serializeBinary(): Uint8Array;
|
|
496
|
+
toObject(includeInstance?: boolean): SetPowerModeResponse.AsObject;
|
|
497
|
+
static toObject(includeInstance: boolean, msg: SetPowerModeResponse): SetPowerModeResponse.AsObject;
|
|
498
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
499
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
500
|
+
static serializeBinaryToWriter(message: SetPowerModeResponse, writer: jspb.BinaryWriter): void;
|
|
501
|
+
static deserializeBinary(bytes: Uint8Array): SetPowerModeResponse;
|
|
502
|
+
static deserializeBinaryFromReader(message: SetPowerModeResponse, reader: jspb.BinaryReader): SetPowerModeResponse;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export namespace SetPowerModeResponse {
|
|
506
|
+
export type AsObject = {
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface PowerModeMap {
|
|
511
|
+
POWER_MODE_UNSPECIFIED: 0;
|
|
512
|
+
POWER_MODE_NORMAL: 1;
|
|
513
|
+
POWER_MODE_OFFLINE_DEEP: 2;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export const PowerMode: PowerModeMap;
|
|
517
|
+
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
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
|
+
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
7
8
|
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
8
9
|
|
|
9
10
|
export class StatusRequest extends jspb.Message {
|
|
@@ -454,3 +455,63 @@ export namespace GetDigitalInterruptValueResponse {
|
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
457
|
|
|
458
|
+
export class SetPowerModeRequest extends jspb.Message {
|
|
459
|
+
getName(): string;
|
|
460
|
+
setName(value: string): void;
|
|
461
|
+
|
|
462
|
+
getPowerMode(): PowerModeMap[keyof PowerModeMap];
|
|
463
|
+
setPowerMode(value: PowerModeMap[keyof PowerModeMap]): void;
|
|
464
|
+
|
|
465
|
+
hasDuration(): boolean;
|
|
466
|
+
clearDuration(): void;
|
|
467
|
+
getDuration(): google_protobuf_duration_pb.Duration | undefined;
|
|
468
|
+
setDuration(value?: google_protobuf_duration_pb.Duration): void;
|
|
469
|
+
|
|
470
|
+
hasExtra(): boolean;
|
|
471
|
+
clearExtra(): void;
|
|
472
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
473
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
474
|
+
|
|
475
|
+
serializeBinary(): Uint8Array;
|
|
476
|
+
toObject(includeInstance?: boolean): SetPowerModeRequest.AsObject;
|
|
477
|
+
static toObject(includeInstance: boolean, msg: SetPowerModeRequest): SetPowerModeRequest.AsObject;
|
|
478
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
479
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
480
|
+
static serializeBinaryToWriter(message: SetPowerModeRequest, writer: jspb.BinaryWriter): void;
|
|
481
|
+
static deserializeBinary(bytes: Uint8Array): SetPowerModeRequest;
|
|
482
|
+
static deserializeBinaryFromReader(message: SetPowerModeRequest, reader: jspb.BinaryReader): SetPowerModeRequest;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export namespace SetPowerModeRequest {
|
|
486
|
+
export type AsObject = {
|
|
487
|
+
name: string,
|
|
488
|
+
powerMode: PowerModeMap[keyof PowerModeMap],
|
|
489
|
+
duration?: google_protobuf_duration_pb.Duration.AsObject,
|
|
490
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export class SetPowerModeResponse extends jspb.Message {
|
|
495
|
+
serializeBinary(): Uint8Array;
|
|
496
|
+
toObject(includeInstance?: boolean): SetPowerModeResponse.AsObject;
|
|
497
|
+
static toObject(includeInstance: boolean, msg: SetPowerModeResponse): SetPowerModeResponse.AsObject;
|
|
498
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
499
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
500
|
+
static serializeBinaryToWriter(message: SetPowerModeResponse, writer: jspb.BinaryWriter): void;
|
|
501
|
+
static deserializeBinary(bytes: Uint8Array): SetPowerModeResponse;
|
|
502
|
+
static deserializeBinaryFromReader(message: SetPowerModeResponse, reader: jspb.BinaryReader): SetPowerModeResponse;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export namespace SetPowerModeResponse {
|
|
506
|
+
export type AsObject = {
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface PowerModeMap {
|
|
511
|
+
POWER_MODE_UNSPECIFIED: 0;
|
|
512
|
+
POWER_MODE_NORMAL: 1;
|
|
513
|
+
POWER_MODE_OFFLINE_DEEP: 2;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export const PowerMode: PowerModeMap;
|
|
517
|
+
|
|
@@ -95,6 +95,15 @@ type BoardServiceGetDigitalInterruptValue = {
|
|
|
95
95
|
readonly responseType: typeof component_board_v1_board_pb.GetDigitalInterruptValueResponse;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
+
type BoardServiceSetPowerMode = {
|
|
99
|
+
readonly methodName: string;
|
|
100
|
+
readonly service: typeof BoardService;
|
|
101
|
+
readonly requestStream: false;
|
|
102
|
+
readonly responseStream: false;
|
|
103
|
+
readonly requestType: typeof component_board_v1_board_pb.SetPowerModeRequest;
|
|
104
|
+
readonly responseType: typeof component_board_v1_board_pb.SetPowerModeResponse;
|
|
105
|
+
};
|
|
106
|
+
|
|
98
107
|
export class BoardService {
|
|
99
108
|
static readonly serviceName: string;
|
|
100
109
|
static readonly Status: BoardServiceStatus;
|
|
@@ -107,6 +116,7 @@ export class BoardService {
|
|
|
107
116
|
static readonly DoCommand: BoardServiceDoCommand;
|
|
108
117
|
static readonly ReadAnalogReader: BoardServiceReadAnalogReader;
|
|
109
118
|
static readonly GetDigitalInterruptValue: BoardServiceGetDigitalInterruptValue;
|
|
119
|
+
static readonly SetPowerMode: BoardServiceSetPowerMode;
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -231,5 +241,14 @@ export class BoardServiceClient {
|
|
|
231
241
|
requestMessage: component_board_v1_board_pb.GetDigitalInterruptValueRequest,
|
|
232
242
|
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.GetDigitalInterruptValueResponse|null) => void
|
|
233
243
|
): UnaryResponse;
|
|
244
|
+
setPowerMode(
|
|
245
|
+
requestMessage: component_board_v1_board_pb.SetPowerModeRequest,
|
|
246
|
+
metadata: grpc.Metadata,
|
|
247
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.SetPowerModeResponse|null) => void
|
|
248
|
+
): UnaryResponse;
|
|
249
|
+
setPowerMode(
|
|
250
|
+
requestMessage: component_board_v1_board_pb.SetPowerModeRequest,
|
|
251
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.SetPowerModeResponse|null) => void
|
|
252
|
+
): UnaryResponse;
|
|
234
253
|
}
|
|
235
254
|
|
|
@@ -95,6 +95,15 @@ type BoardServiceGetDigitalInterruptValue = {
|
|
|
95
95
|
readonly responseType: typeof component_board_v1_board_pb.GetDigitalInterruptValueResponse;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
+
type BoardServiceSetPowerMode = {
|
|
99
|
+
readonly methodName: string;
|
|
100
|
+
readonly service: typeof BoardService;
|
|
101
|
+
readonly requestStream: false;
|
|
102
|
+
readonly responseStream: false;
|
|
103
|
+
readonly requestType: typeof component_board_v1_board_pb.SetPowerModeRequest;
|
|
104
|
+
readonly responseType: typeof component_board_v1_board_pb.SetPowerModeResponse;
|
|
105
|
+
};
|
|
106
|
+
|
|
98
107
|
export class BoardService {
|
|
99
108
|
static readonly serviceName: string;
|
|
100
109
|
static readonly Status: BoardServiceStatus;
|
|
@@ -107,6 +116,7 @@ export class BoardService {
|
|
|
107
116
|
static readonly DoCommand: BoardServiceDoCommand;
|
|
108
117
|
static readonly ReadAnalogReader: BoardServiceReadAnalogReader;
|
|
109
118
|
static readonly GetDigitalInterruptValue: BoardServiceGetDigitalInterruptValue;
|
|
119
|
+
static readonly SetPowerMode: BoardServiceSetPowerMode;
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -231,5 +241,14 @@ export class BoardServiceClient {
|
|
|
231
241
|
requestMessage: component_board_v1_board_pb.GetDigitalInterruptValueRequest,
|
|
232
242
|
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.GetDigitalInterruptValueResponse|null) => void
|
|
233
243
|
): UnaryResponse;
|
|
244
|
+
setPowerMode(
|
|
245
|
+
requestMessage: component_board_v1_board_pb.SetPowerModeRequest,
|
|
246
|
+
metadata: grpc.Metadata,
|
|
247
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.SetPowerModeResponse|null) => void
|
|
248
|
+
): UnaryResponse;
|
|
249
|
+
setPowerMode(
|
|
250
|
+
requestMessage: component_board_v1_board_pb.SetPowerModeRequest,
|
|
251
|
+
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.SetPowerModeResponse|null) => void
|
|
252
|
+
): UnaryResponse;
|
|
234
253
|
}
|
|
235
254
|
|
|
@@ -2,54 +2,6 @@
|
|
|
2
2
|
// file: component/generic/v1/generic.proto
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as common_v1_common_pb from "../../../common/v1/common_pb";
|
|
5
6
|
import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
|
|
6
|
-
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
7
|
-
|
|
8
|
-
export class DoCommandRequest extends jspb.Message {
|
|
9
|
-
getName(): string;
|
|
10
|
-
setName(value: string): void;
|
|
11
|
-
|
|
12
|
-
hasCommand(): boolean;
|
|
13
|
-
clearCommand(): void;
|
|
14
|
-
getCommand(): google_protobuf_struct_pb.Struct | undefined;
|
|
15
|
-
setCommand(value?: google_protobuf_struct_pb.Struct): void;
|
|
16
|
-
|
|
17
|
-
serializeBinary(): Uint8Array;
|
|
18
|
-
toObject(includeInstance?: boolean): DoCommandRequest.AsObject;
|
|
19
|
-
static toObject(includeInstance: boolean, msg: DoCommandRequest): DoCommandRequest.AsObject;
|
|
20
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
21
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
22
|
-
static serializeBinaryToWriter(message: DoCommandRequest, writer: jspb.BinaryWriter): void;
|
|
23
|
-
static deserializeBinary(bytes: Uint8Array): DoCommandRequest;
|
|
24
|
-
static deserializeBinaryFromReader(message: DoCommandRequest, reader: jspb.BinaryReader): DoCommandRequest;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export namespace DoCommandRequest {
|
|
28
|
-
export type AsObject = {
|
|
29
|
-
name: string,
|
|
30
|
-
command?: google_protobuf_struct_pb.Struct.AsObject,
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export class DoCommandResponse extends jspb.Message {
|
|
35
|
-
hasResult(): boolean;
|
|
36
|
-
clearResult(): void;
|
|
37
|
-
getResult(): google_protobuf_struct_pb.Struct | undefined;
|
|
38
|
-
setResult(value?: google_protobuf_struct_pb.Struct): void;
|
|
39
|
-
|
|
40
|
-
serializeBinary(): Uint8Array;
|
|
41
|
-
toObject(includeInstance?: boolean): DoCommandResponse.AsObject;
|
|
42
|
-
static toObject(includeInstance: boolean, msg: DoCommandResponse): DoCommandResponse.AsObject;
|
|
43
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
44
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
45
|
-
static serializeBinaryToWriter(message: DoCommandResponse, writer: jspb.BinaryWriter): void;
|
|
46
|
-
static deserializeBinary(bytes: Uint8Array): DoCommandResponse;
|
|
47
|
-
static deserializeBinaryFromReader(message: DoCommandResponse, reader: jspb.BinaryReader): DoCommandResponse;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export namespace DoCommandResponse {
|
|
51
|
-
export type AsObject = {
|
|
52
|
-
result?: google_protobuf_struct_pb.Struct.AsObject,
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
7
|
|
|
@@ -2,54 +2,6 @@
|
|
|
2
2
|
// file: component/generic/v1/generic.proto
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as common_v1_common_pb from "../../../common/v1/common_pb";
|
|
5
6
|
import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
|
|
6
|
-
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
7
|
-
|
|
8
|
-
export class DoCommandRequest extends jspb.Message {
|
|
9
|
-
getName(): string;
|
|
10
|
-
setName(value: string): void;
|
|
11
|
-
|
|
12
|
-
hasCommand(): boolean;
|
|
13
|
-
clearCommand(): void;
|
|
14
|
-
getCommand(): google_protobuf_struct_pb.Struct | undefined;
|
|
15
|
-
setCommand(value?: google_protobuf_struct_pb.Struct): void;
|
|
16
|
-
|
|
17
|
-
serializeBinary(): Uint8Array;
|
|
18
|
-
toObject(includeInstance?: boolean): DoCommandRequest.AsObject;
|
|
19
|
-
static toObject(includeInstance: boolean, msg: DoCommandRequest): DoCommandRequest.AsObject;
|
|
20
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
21
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
22
|
-
static serializeBinaryToWriter(message: DoCommandRequest, writer: jspb.BinaryWriter): void;
|
|
23
|
-
static deserializeBinary(bytes: Uint8Array): DoCommandRequest;
|
|
24
|
-
static deserializeBinaryFromReader(message: DoCommandRequest, reader: jspb.BinaryReader): DoCommandRequest;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export namespace DoCommandRequest {
|
|
28
|
-
export type AsObject = {
|
|
29
|
-
name: string,
|
|
30
|
-
command?: google_protobuf_struct_pb.Struct.AsObject,
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export class DoCommandResponse extends jspb.Message {
|
|
35
|
-
hasResult(): boolean;
|
|
36
|
-
clearResult(): void;
|
|
37
|
-
getResult(): google_protobuf_struct_pb.Struct | undefined;
|
|
38
|
-
setResult(value?: google_protobuf_struct_pb.Struct): void;
|
|
39
|
-
|
|
40
|
-
serializeBinary(): Uint8Array;
|
|
41
|
-
toObject(includeInstance?: boolean): DoCommandResponse.AsObject;
|
|
42
|
-
static toObject(includeInstance: boolean, msg: DoCommandResponse): DoCommandResponse.AsObject;
|
|
43
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
44
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
45
|
-
static serializeBinaryToWriter(message: DoCommandResponse, writer: jspb.BinaryWriter): void;
|
|
46
|
-
static deserializeBinary(bytes: Uint8Array): DoCommandResponse;
|
|
47
|
-
static deserializeBinaryFromReader(message: DoCommandResponse, reader: jspb.BinaryReader): DoCommandResponse;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export namespace DoCommandResponse {
|
|
51
|
-
export type AsObject = {
|
|
52
|
-
result?: google_protobuf_struct_pb.Struct.AsObject,
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
7
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// file: component/generic/v1/generic.proto
|
|
3
3
|
|
|
4
4
|
import * as component_generic_v1_generic_pb from "../../../component/generic/v1/generic_pb";
|
|
5
|
+
import * as common_v1_common_pb from "../../../common/v1/common_pb";
|
|
5
6
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
7
|
|
|
7
8
|
type GenericServiceDoCommand = {
|
|
@@ -9,8 +10,8 @@ type GenericServiceDoCommand = {
|
|
|
9
10
|
readonly service: typeof GenericService;
|
|
10
11
|
readonly requestStream: false;
|
|
11
12
|
readonly responseStream: false;
|
|
12
|
-
readonly requestType: typeof
|
|
13
|
-
readonly responseType: typeof
|
|
13
|
+
readonly requestType: typeof common_v1_common_pb.DoCommandRequest;
|
|
14
|
+
readonly responseType: typeof common_v1_common_pb.DoCommandResponse;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export class GenericService {
|
|
@@ -51,13 +52,13 @@ export class GenericServiceClient {
|
|
|
51
52
|
|
|
52
53
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
53
54
|
doCommand(
|
|
54
|
-
requestMessage:
|
|
55
|
+
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
55
56
|
metadata: grpc.Metadata,
|
|
56
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
57
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void
|
|
57
58
|
): UnaryResponse;
|
|
58
59
|
doCommand(
|
|
59
|
-
requestMessage:
|
|
60
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
60
|
+
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
61
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void
|
|
61
62
|
): UnaryResponse;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// file: component/generic/v1/generic.proto
|
|
3
3
|
|
|
4
4
|
import * as component_generic_v1_generic_pb from "../../../component/generic/v1/generic_pb";
|
|
5
|
+
import * as common_v1_common_pb from "../../../common/v1/common_pb";
|
|
5
6
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
7
|
|
|
7
8
|
type GenericServiceDoCommand = {
|
|
@@ -9,8 +10,8 @@ type GenericServiceDoCommand = {
|
|
|
9
10
|
readonly service: typeof GenericService;
|
|
10
11
|
readonly requestStream: false;
|
|
11
12
|
readonly responseStream: false;
|
|
12
|
-
readonly requestType: typeof
|
|
13
|
-
readonly responseType: typeof
|
|
13
|
+
readonly requestType: typeof common_v1_common_pb.DoCommandRequest;
|
|
14
|
+
readonly responseType: typeof common_v1_common_pb.DoCommandResponse;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export class GenericService {
|
|
@@ -51,13 +52,13 @@ export class GenericServiceClient {
|
|
|
51
52
|
|
|
52
53
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
53
54
|
doCommand(
|
|
54
|
-
requestMessage:
|
|
55
|
+
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
55
56
|
metadata: grpc.Metadata,
|
|
56
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
57
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void
|
|
57
58
|
): UnaryResponse;
|
|
58
59
|
doCommand(
|
|
59
|
-
requestMessage:
|
|
60
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
60
|
+
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
61
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void
|
|
61
62
|
): UnaryResponse;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -30,6 +30,11 @@ export class MoveRequest extends jspb.Message {
|
|
|
30
30
|
getConstraints(): Constraints | undefined;
|
|
31
31
|
setConstraints(value?: Constraints): void;
|
|
32
32
|
|
|
33
|
+
hasSlamServiceName(): boolean;
|
|
34
|
+
clearSlamServiceName(): void;
|
|
35
|
+
getSlamServiceName(): common_v1_common_pb.ResourceName | undefined;
|
|
36
|
+
setSlamServiceName(value?: common_v1_common_pb.ResourceName): void;
|
|
37
|
+
|
|
33
38
|
hasExtra(): boolean;
|
|
34
39
|
clearExtra(): void;
|
|
35
40
|
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
@@ -52,6 +57,7 @@ export namespace MoveRequest {
|
|
|
52
57
|
componentName?: common_v1_common_pb.ResourceName.AsObject,
|
|
53
58
|
worldState?: common_v1_common_pb.WorldState.AsObject,
|
|
54
59
|
constraints?: Constraints.AsObject,
|
|
60
|
+
slamServiceName?: common_v1_common_pb.ResourceName.AsObject,
|
|
55
61
|
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -30,6 +30,11 @@ export class MoveRequest extends jspb.Message {
|
|
|
30
30
|
getConstraints(): Constraints | undefined;
|
|
31
31
|
setConstraints(value?: Constraints): void;
|
|
32
32
|
|
|
33
|
+
hasSlamServiceName(): boolean;
|
|
34
|
+
clearSlamServiceName(): void;
|
|
35
|
+
getSlamServiceName(): common_v1_common_pb.ResourceName | undefined;
|
|
36
|
+
setSlamServiceName(value?: common_v1_common_pb.ResourceName): void;
|
|
37
|
+
|
|
33
38
|
hasExtra(): boolean;
|
|
34
39
|
clearExtra(): void;
|
|
35
40
|
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
@@ -52,6 +57,7 @@ export namespace MoveRequest {
|
|
|
52
57
|
componentName?: common_v1_common_pb.ResourceName.AsObject,
|
|
53
58
|
worldState?: common_v1_common_pb.WorldState.AsObject,
|
|
54
59
|
constraints?: Constraints.AsObject,
|
|
60
|
+
slamServiceName?: common_v1_common_pb.ResourceName.AsObject,
|
|
55
61
|
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
56
62
|
}
|
|
57
63
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import servoApi from './gen/component/servo/v1/servo_pb.esm';
|
|
|
19
19
|
import slamApi from './gen/service/slam/v1/slam_pb.esm';
|
|
20
20
|
import streamApi from './gen/proto/stream/v1/stream_pb.esm';
|
|
21
21
|
import visionApi from './gen/service/vision/v1/vision_pb.esm';
|
|
22
|
-
export { type Robot, RobotClient, createRobotClient } from './robot';
|
|
22
|
+
export { type Robot, type DialDirectConf, type DialWebRTCConf, RobotClient, createRobotClient, } from './robot';
|
|
23
23
|
export { type Arm, ArmClient } from './components/arm';
|
|
24
24
|
export { type Base, BaseClient } from './components/base';
|
|
25
25
|
export { type Board, BoardClient } from './components/board';
|