@viamrobotics/sdk 0.3.3-rc.0 → 0.4.0-rc.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.
Files changed (31) hide show
  1. package/dist/app/data-client.d.ts +24 -0
  2. package/dist/app/viam-client.d.ts +11 -0
  3. package/dist/app/viam-transport.d.ts +10 -0
  4. package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +494 -0
  5. package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +177 -0
  6. package/dist/gen/app/data/v1/data_pb.d.ts +1342 -0
  7. package/dist/gen/app/data/v1/data_pb_service.d.ts +386 -0
  8. package/dist/gen/app/dataset/v1/dataset_pb.d.ts +246 -0
  9. package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +139 -0
  10. package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +425 -0
  11. package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +85 -0
  12. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +270 -0
  13. package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +120 -0
  14. package/dist/gen/app/packages/v1/packages_pb.d.ts +368 -0
  15. package/dist/gen/app/packages/v1/packages_pb_service.d.ts +112 -0
  16. package/dist/gen/app/v1/app_pb.d.ts +3801 -0
  17. package/dist/gen/app/v1/app_pb_service.d.ts +1225 -0
  18. package/dist/gen/app/v1/billing_pb.d.ts +753 -0
  19. package/dist/gen/app/v1/billing_pb_service.d.ts +207 -0
  20. package/dist/gen/app/v1/end_user_pb.d.ts +81 -0
  21. package/dist/gen/app/v1/end_user_pb_service.d.ts +82 -0
  22. package/dist/gen/app/v1/robot_pb.d.ts +1245 -0
  23. package/dist/gen/app/v1/robot_pb_service.d.ts +120 -0
  24. package/dist/gen/service/mlmodel/v1/mlmodel_pb.d.ts +0 -12
  25. package/dist/gen/service/motion/v1/motion_pb.d.ts +442 -0
  26. package/dist/gen/service/motion/v1/motion_pb_service.d.ts +76 -0
  27. package/dist/main.d.ts +12 -0
  28. package/dist/main.es.js +35569 -25557
  29. package/dist/main.umd.js +20 -18
  30. package/dist/robot/dial.d.ts +9 -0
  31. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ // package: viam.app.v1
2
+ // file: app/v1/robot.proto
3
+
4
+ import * as app_v1_robot_pb from "../../app/v1/robot_pb";
5
+ import {grpc} from "@improbable-eng/grpc-web";
6
+
7
+ type RobotServiceConfig = {
8
+ readonly methodName: string;
9
+ readonly service: typeof RobotService;
10
+ readonly requestStream: false;
11
+ readonly responseStream: false;
12
+ readonly requestType: typeof app_v1_robot_pb.ConfigRequest;
13
+ readonly responseType: typeof app_v1_robot_pb.ConfigResponse;
14
+ };
15
+
16
+ type RobotServiceCertificate = {
17
+ readonly methodName: string;
18
+ readonly service: typeof RobotService;
19
+ readonly requestStream: false;
20
+ readonly responseStream: false;
21
+ readonly requestType: typeof app_v1_robot_pb.CertificateRequest;
22
+ readonly responseType: typeof app_v1_robot_pb.CertificateResponse;
23
+ };
24
+
25
+ type RobotServiceLog = {
26
+ readonly methodName: string;
27
+ readonly service: typeof RobotService;
28
+ readonly requestStream: false;
29
+ readonly responseStream: false;
30
+ readonly requestType: typeof app_v1_robot_pb.LogRequest;
31
+ readonly responseType: typeof app_v1_robot_pb.LogResponse;
32
+ };
33
+
34
+ type RobotServiceNeedsRestart = {
35
+ readonly methodName: string;
36
+ readonly service: typeof RobotService;
37
+ readonly requestStream: false;
38
+ readonly responseStream: false;
39
+ readonly requestType: typeof app_v1_robot_pb.NeedsRestartRequest;
40
+ readonly responseType: typeof app_v1_robot_pb.NeedsRestartResponse;
41
+ };
42
+
43
+ export class RobotService {
44
+ static readonly serviceName: string;
45
+ static readonly Config: RobotServiceConfig;
46
+ static readonly Certificate: RobotServiceCertificate;
47
+ static readonly Log: RobotServiceLog;
48
+ static readonly NeedsRestart: RobotServiceNeedsRestart;
49
+ }
50
+
51
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
52
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
53
+
54
+ interface UnaryResponse {
55
+ cancel(): void;
56
+ }
57
+ interface ResponseStream<T> {
58
+ cancel(): void;
59
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
60
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
61
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
62
+ }
63
+ interface RequestStream<T> {
64
+ write(message: T): RequestStream<T>;
65
+ end(): void;
66
+ cancel(): void;
67
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
68
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
69
+ }
70
+ interface BidirectionalStream<ReqT, ResT> {
71
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
72
+ end(): void;
73
+ cancel(): void;
74
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
75
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
76
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
77
+ }
78
+
79
+ export class RobotServiceClient {
80
+ readonly serviceHost: string;
81
+
82
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
83
+ config(
84
+ requestMessage: app_v1_robot_pb.ConfigRequest,
85
+ metadata: grpc.Metadata,
86
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.ConfigResponse|null) => void
87
+ ): UnaryResponse;
88
+ config(
89
+ requestMessage: app_v1_robot_pb.ConfigRequest,
90
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.ConfigResponse|null) => void
91
+ ): UnaryResponse;
92
+ certificate(
93
+ requestMessage: app_v1_robot_pb.CertificateRequest,
94
+ metadata: grpc.Metadata,
95
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.CertificateResponse|null) => void
96
+ ): UnaryResponse;
97
+ certificate(
98
+ requestMessage: app_v1_robot_pb.CertificateRequest,
99
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.CertificateResponse|null) => void
100
+ ): UnaryResponse;
101
+ log(
102
+ requestMessage: app_v1_robot_pb.LogRequest,
103
+ metadata: grpc.Metadata,
104
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.LogResponse|null) => void
105
+ ): UnaryResponse;
106
+ log(
107
+ requestMessage: app_v1_robot_pb.LogRequest,
108
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.LogResponse|null) => void
109
+ ): UnaryResponse;
110
+ needsRestart(
111
+ requestMessage: app_v1_robot_pb.NeedsRestartRequest,
112
+ metadata: grpc.Metadata,
113
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.NeedsRestartResponse|null) => void
114
+ ): UnaryResponse;
115
+ needsRestart(
116
+ requestMessage: app_v1_robot_pb.NeedsRestartRequest,
117
+ callback: (error: ServiceError|null, responseMessage: app_v1_robot_pb.NeedsRestartResponse|null) => void
118
+ ): UnaryResponse;
119
+ }
120
+
@@ -9,11 +9,6 @@ export class InferRequest extends jspb.Message {
9
9
  getName(): string;
10
10
  setName(value: string): void;
11
11
 
12
- hasInputData(): boolean;
13
- clearInputData(): void;
14
- getInputData(): google_protobuf_struct_pb.Struct | undefined;
15
- setInputData(value?: google_protobuf_struct_pb.Struct): void;
16
-
17
12
  hasInputTensors(): boolean;
18
13
  clearInputTensors(): void;
19
14
  getInputTensors(): FlatTensors | undefined;
@@ -37,18 +32,12 @@ export class InferRequest extends jspb.Message {
37
32
  export namespace InferRequest {
38
33
  export type AsObject = {
39
34
  name: string,
40
- inputData?: google_protobuf_struct_pb.Struct.AsObject,
41
35
  inputTensors?: FlatTensors.AsObject,
42
36
  extra?: google_protobuf_struct_pb.Struct.AsObject,
43
37
  }
44
38
  }
45
39
 
46
40
  export class InferResponse extends jspb.Message {
47
- hasOutputData(): boolean;
48
- clearOutputData(): void;
49
- getOutputData(): google_protobuf_struct_pb.Struct | undefined;
50
- setOutputData(value?: google_protobuf_struct_pb.Struct): void;
51
-
52
41
  hasOutputTensors(): boolean;
53
42
  clearOutputTensors(): void;
54
43
  getOutputTensors(): FlatTensors | undefined;
@@ -66,7 +55,6 @@ export class InferResponse extends jspb.Message {
66
55
 
67
56
  export namespace InferResponse {
68
57
  export type AsObject = {
69
- outputData?: google_protobuf_struct_pb.Struct.AsObject,
70
58
  outputTensors?: FlatTensors.AsObject,
71
59
  }
72
60
  }
@@ -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 MoveRequest extends jspb.Message {
10
11
  getName(): string;
@@ -274,6 +275,88 @@ export namespace MoveOnGlobeResponse {
274
275
  }
275
276
  }
276
277
 
278
+ export class MoveOnGlobeNewRequest extends jspb.Message {
279
+ getName(): string;
280
+ setName(value: string): void;
281
+
282
+ hasDestination(): boolean;
283
+ clearDestination(): void;
284
+ getDestination(): common_v1_common_pb.GeoPoint | undefined;
285
+ setDestination(value?: common_v1_common_pb.GeoPoint): void;
286
+
287
+ hasHeading(): boolean;
288
+ clearHeading(): void;
289
+ getHeading(): number;
290
+ setHeading(value: number): void;
291
+
292
+ hasComponentName(): boolean;
293
+ clearComponentName(): void;
294
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
295
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
296
+
297
+ hasMovementSensorName(): boolean;
298
+ clearMovementSensorName(): void;
299
+ getMovementSensorName(): common_v1_common_pb.ResourceName | undefined;
300
+ setMovementSensorName(value?: common_v1_common_pb.ResourceName): void;
301
+
302
+ clearObstaclesList(): void;
303
+ getObstaclesList(): Array<common_v1_common_pb.GeoObstacle>;
304
+ setObstaclesList(value: Array<common_v1_common_pb.GeoObstacle>): void;
305
+ addObstacles(value?: common_v1_common_pb.GeoObstacle, index?: number): common_v1_common_pb.GeoObstacle;
306
+
307
+ hasMotionConfiguration(): boolean;
308
+ clearMotionConfiguration(): void;
309
+ getMotionConfiguration(): MotionConfiguration | undefined;
310
+ setMotionConfiguration(value?: MotionConfiguration): void;
311
+
312
+ hasExtra(): boolean;
313
+ clearExtra(): void;
314
+ getExtra(): google_protobuf_struct_pb.Struct | undefined;
315
+ setExtra(value?: google_protobuf_struct_pb.Struct): void;
316
+
317
+ serializeBinary(): Uint8Array;
318
+ toObject(includeInstance?: boolean): MoveOnGlobeNewRequest.AsObject;
319
+ static toObject(includeInstance: boolean, msg: MoveOnGlobeNewRequest): MoveOnGlobeNewRequest.AsObject;
320
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
321
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
322
+ static serializeBinaryToWriter(message: MoveOnGlobeNewRequest, writer: jspb.BinaryWriter): void;
323
+ static deserializeBinary(bytes: Uint8Array): MoveOnGlobeNewRequest;
324
+ static deserializeBinaryFromReader(message: MoveOnGlobeNewRequest, reader: jspb.BinaryReader): MoveOnGlobeNewRequest;
325
+ }
326
+
327
+ export namespace MoveOnGlobeNewRequest {
328
+ export type AsObject = {
329
+ name: string,
330
+ destination?: common_v1_common_pb.GeoPoint.AsObject,
331
+ heading: number,
332
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
333
+ movementSensorName?: common_v1_common_pb.ResourceName.AsObject,
334
+ obstaclesList: Array<common_v1_common_pb.GeoObstacle.AsObject>,
335
+ motionConfiguration?: MotionConfiguration.AsObject,
336
+ extra?: google_protobuf_struct_pb.Struct.AsObject,
337
+ }
338
+ }
339
+
340
+ export class MoveOnGlobeNewResponse extends jspb.Message {
341
+ getExecutionId(): string;
342
+ setExecutionId(value: string): void;
343
+
344
+ serializeBinary(): Uint8Array;
345
+ toObject(includeInstance?: boolean): MoveOnGlobeNewResponse.AsObject;
346
+ static toObject(includeInstance: boolean, msg: MoveOnGlobeNewResponse): MoveOnGlobeNewResponse.AsObject;
347
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
348
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
349
+ static serializeBinaryToWriter(message: MoveOnGlobeNewResponse, writer: jspb.BinaryWriter): void;
350
+ static deserializeBinary(bytes: Uint8Array): MoveOnGlobeNewResponse;
351
+ static deserializeBinaryFromReader(message: MoveOnGlobeNewResponse, reader: jspb.BinaryReader): MoveOnGlobeNewResponse;
352
+ }
353
+
354
+ export namespace MoveOnGlobeNewResponse {
355
+ export type AsObject = {
356
+ executionId: string,
357
+ }
358
+ }
359
+
277
360
  export class GetPoseRequest extends jspb.Message {
278
361
  getName(): string;
279
362
  setName(value: string): void;
@@ -338,6 +421,176 @@ export namespace GetPoseResponse {
338
421
  }
339
422
  }
340
423
 
424
+ export class StopPlanRequest extends jspb.Message {
425
+ getName(): string;
426
+ setName(value: string): void;
427
+
428
+ hasComponentName(): boolean;
429
+ clearComponentName(): void;
430
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
431
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
432
+
433
+ hasExtra(): boolean;
434
+ clearExtra(): void;
435
+ getExtra(): google_protobuf_struct_pb.Struct | undefined;
436
+ setExtra(value?: google_protobuf_struct_pb.Struct): void;
437
+
438
+ serializeBinary(): Uint8Array;
439
+ toObject(includeInstance?: boolean): StopPlanRequest.AsObject;
440
+ static toObject(includeInstance: boolean, msg: StopPlanRequest): StopPlanRequest.AsObject;
441
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
442
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
443
+ static serializeBinaryToWriter(message: StopPlanRequest, writer: jspb.BinaryWriter): void;
444
+ static deserializeBinary(bytes: Uint8Array): StopPlanRequest;
445
+ static deserializeBinaryFromReader(message: StopPlanRequest, reader: jspb.BinaryReader): StopPlanRequest;
446
+ }
447
+
448
+ export namespace StopPlanRequest {
449
+ export type AsObject = {
450
+ name: string,
451
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
452
+ extra?: google_protobuf_struct_pb.Struct.AsObject,
453
+ }
454
+ }
455
+
456
+ export class StopPlanResponse extends jspb.Message {
457
+ serializeBinary(): Uint8Array;
458
+ toObject(includeInstance?: boolean): StopPlanResponse.AsObject;
459
+ static toObject(includeInstance: boolean, msg: StopPlanResponse): StopPlanResponse.AsObject;
460
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
461
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
462
+ static serializeBinaryToWriter(message: StopPlanResponse, writer: jspb.BinaryWriter): void;
463
+ static deserializeBinary(bytes: Uint8Array): StopPlanResponse;
464
+ static deserializeBinaryFromReader(message: StopPlanResponse, reader: jspb.BinaryReader): StopPlanResponse;
465
+ }
466
+
467
+ export namespace StopPlanResponse {
468
+ export type AsObject = {
469
+ }
470
+ }
471
+
472
+ export class ListPlanStatusesRequest extends jspb.Message {
473
+ getName(): string;
474
+ setName(value: string): void;
475
+
476
+ getOnlyActivePlans(): boolean;
477
+ setOnlyActivePlans(value: boolean): void;
478
+
479
+ hasExtra(): boolean;
480
+ clearExtra(): void;
481
+ getExtra(): google_protobuf_struct_pb.Struct | undefined;
482
+ setExtra(value?: google_protobuf_struct_pb.Struct): void;
483
+
484
+ serializeBinary(): Uint8Array;
485
+ toObject(includeInstance?: boolean): ListPlanStatusesRequest.AsObject;
486
+ static toObject(includeInstance: boolean, msg: ListPlanStatusesRequest): ListPlanStatusesRequest.AsObject;
487
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
488
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
489
+ static serializeBinaryToWriter(message: ListPlanStatusesRequest, writer: jspb.BinaryWriter): void;
490
+ static deserializeBinary(bytes: Uint8Array): ListPlanStatusesRequest;
491
+ static deserializeBinaryFromReader(message: ListPlanStatusesRequest, reader: jspb.BinaryReader): ListPlanStatusesRequest;
492
+ }
493
+
494
+ export namespace ListPlanStatusesRequest {
495
+ export type AsObject = {
496
+ name: string,
497
+ onlyActivePlans: boolean,
498
+ extra?: google_protobuf_struct_pb.Struct.AsObject,
499
+ }
500
+ }
501
+
502
+ export class ListPlanStatusesResponse extends jspb.Message {
503
+ clearPlanStatusesWithIdsList(): void;
504
+ getPlanStatusesWithIdsList(): Array<PlanStatusWithID>;
505
+ setPlanStatusesWithIdsList(value: Array<PlanStatusWithID>): void;
506
+ addPlanStatusesWithIds(value?: PlanStatusWithID, index?: number): PlanStatusWithID;
507
+
508
+ serializeBinary(): Uint8Array;
509
+ toObject(includeInstance?: boolean): ListPlanStatusesResponse.AsObject;
510
+ static toObject(includeInstance: boolean, msg: ListPlanStatusesResponse): ListPlanStatusesResponse.AsObject;
511
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
512
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
513
+ static serializeBinaryToWriter(message: ListPlanStatusesResponse, writer: jspb.BinaryWriter): void;
514
+ static deserializeBinary(bytes: Uint8Array): ListPlanStatusesResponse;
515
+ static deserializeBinaryFromReader(message: ListPlanStatusesResponse, reader: jspb.BinaryReader): ListPlanStatusesResponse;
516
+ }
517
+
518
+ export namespace ListPlanStatusesResponse {
519
+ export type AsObject = {
520
+ planStatusesWithIdsList: Array<PlanStatusWithID.AsObject>,
521
+ }
522
+ }
523
+
524
+ export class GetPlanRequest extends jspb.Message {
525
+ getName(): string;
526
+ setName(value: string): void;
527
+
528
+ hasComponentName(): boolean;
529
+ clearComponentName(): void;
530
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
531
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
532
+
533
+ getLastPlanOnly(): boolean;
534
+ setLastPlanOnly(value: boolean): void;
535
+
536
+ hasExecutionId(): boolean;
537
+ clearExecutionId(): void;
538
+ getExecutionId(): string;
539
+ setExecutionId(value: string): void;
540
+
541
+ hasExtra(): boolean;
542
+ clearExtra(): void;
543
+ getExtra(): google_protobuf_struct_pb.Struct | undefined;
544
+ setExtra(value?: google_protobuf_struct_pb.Struct): void;
545
+
546
+ serializeBinary(): Uint8Array;
547
+ toObject(includeInstance?: boolean): GetPlanRequest.AsObject;
548
+ static toObject(includeInstance: boolean, msg: GetPlanRequest): GetPlanRequest.AsObject;
549
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
550
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
551
+ static serializeBinaryToWriter(message: GetPlanRequest, writer: jspb.BinaryWriter): void;
552
+ static deserializeBinary(bytes: Uint8Array): GetPlanRequest;
553
+ static deserializeBinaryFromReader(message: GetPlanRequest, reader: jspb.BinaryReader): GetPlanRequest;
554
+ }
555
+
556
+ export namespace GetPlanRequest {
557
+ export type AsObject = {
558
+ name: string,
559
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
560
+ lastPlanOnly: boolean,
561
+ executionId: string,
562
+ extra?: google_protobuf_struct_pb.Struct.AsObject,
563
+ }
564
+ }
565
+
566
+ export class GetPlanResponse extends jspb.Message {
567
+ hasCurrentPlanWithStatus(): boolean;
568
+ clearCurrentPlanWithStatus(): void;
569
+ getCurrentPlanWithStatus(): PlanWithStatus | undefined;
570
+ setCurrentPlanWithStatus(value?: PlanWithStatus): void;
571
+
572
+ clearReplanHistoryList(): void;
573
+ getReplanHistoryList(): Array<PlanWithStatus>;
574
+ setReplanHistoryList(value: Array<PlanWithStatus>): void;
575
+ addReplanHistory(value?: PlanWithStatus, index?: number): PlanWithStatus;
576
+
577
+ serializeBinary(): Uint8Array;
578
+ toObject(includeInstance?: boolean): GetPlanResponse.AsObject;
579
+ static toObject(includeInstance: boolean, msg: GetPlanResponse): GetPlanResponse.AsObject;
580
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
581
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
582
+ static serializeBinaryToWriter(message: GetPlanResponse, writer: jspb.BinaryWriter): void;
583
+ static deserializeBinary(bytes: Uint8Array): GetPlanResponse;
584
+ static deserializeBinaryFromReader(message: GetPlanResponse, reader: jspb.BinaryReader): GetPlanResponse;
585
+ }
586
+
587
+ export namespace GetPlanResponse {
588
+ export type AsObject = {
589
+ currentPlanWithStatus?: PlanWithStatus.AsObject,
590
+ replanHistoryList: Array<PlanWithStatus.AsObject>,
591
+ }
592
+ }
593
+
341
594
  export class Constraints extends jspb.Message {
342
595
  clearLinearConstraintList(): void;
343
596
  getLinearConstraintList(): Array<LinearConstraint>;
@@ -468,3 +721,192 @@ export namespace CollisionSpecification {
468
721
  }
469
722
  }
470
723
 
724
+ export class PlanWithStatus extends jspb.Message {
725
+ hasPlan(): boolean;
726
+ clearPlan(): void;
727
+ getPlan(): Plan | undefined;
728
+ setPlan(value?: Plan): void;
729
+
730
+ hasStatus(): boolean;
731
+ clearStatus(): void;
732
+ getStatus(): PlanStatus | undefined;
733
+ setStatus(value?: PlanStatus): void;
734
+
735
+ clearStatusHistoryList(): void;
736
+ getStatusHistoryList(): Array<PlanStatus>;
737
+ setStatusHistoryList(value: Array<PlanStatus>): void;
738
+ addStatusHistory(value?: PlanStatus, index?: number): PlanStatus;
739
+
740
+ serializeBinary(): Uint8Array;
741
+ toObject(includeInstance?: boolean): PlanWithStatus.AsObject;
742
+ static toObject(includeInstance: boolean, msg: PlanWithStatus): PlanWithStatus.AsObject;
743
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
744
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
745
+ static serializeBinaryToWriter(message: PlanWithStatus, writer: jspb.BinaryWriter): void;
746
+ static deserializeBinary(bytes: Uint8Array): PlanWithStatus;
747
+ static deserializeBinaryFromReader(message: PlanWithStatus, reader: jspb.BinaryReader): PlanWithStatus;
748
+ }
749
+
750
+ export namespace PlanWithStatus {
751
+ export type AsObject = {
752
+ plan?: Plan.AsObject,
753
+ status?: PlanStatus.AsObject,
754
+ statusHistoryList: Array<PlanStatus.AsObject>,
755
+ }
756
+ }
757
+
758
+ export class PlanStatusWithID extends jspb.Message {
759
+ getPlanId(): string;
760
+ setPlanId(value: string): void;
761
+
762
+ hasComponentName(): boolean;
763
+ clearComponentName(): void;
764
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
765
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
766
+
767
+ getExecutionId(): string;
768
+ setExecutionId(value: string): void;
769
+
770
+ hasStatus(): boolean;
771
+ clearStatus(): void;
772
+ getStatus(): PlanStatus | undefined;
773
+ setStatus(value?: PlanStatus): void;
774
+
775
+ serializeBinary(): Uint8Array;
776
+ toObject(includeInstance?: boolean): PlanStatusWithID.AsObject;
777
+ static toObject(includeInstance: boolean, msg: PlanStatusWithID): PlanStatusWithID.AsObject;
778
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
779
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
780
+ static serializeBinaryToWriter(message: PlanStatusWithID, writer: jspb.BinaryWriter): void;
781
+ static deserializeBinary(bytes: Uint8Array): PlanStatusWithID;
782
+ static deserializeBinaryFromReader(message: PlanStatusWithID, reader: jspb.BinaryReader): PlanStatusWithID;
783
+ }
784
+
785
+ export namespace PlanStatusWithID {
786
+ export type AsObject = {
787
+ planId: string,
788
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
789
+ executionId: string,
790
+ status?: PlanStatus.AsObject,
791
+ }
792
+ }
793
+
794
+ export class PlanStatus extends jspb.Message {
795
+ getState(): PlanStateMap[keyof PlanStateMap];
796
+ setState(value: PlanStateMap[keyof PlanStateMap]): void;
797
+
798
+ hasTimestamp(): boolean;
799
+ clearTimestamp(): void;
800
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
801
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void;
802
+
803
+ hasReason(): boolean;
804
+ clearReason(): void;
805
+ getReason(): string;
806
+ setReason(value: string): void;
807
+
808
+ serializeBinary(): Uint8Array;
809
+ toObject(includeInstance?: boolean): PlanStatus.AsObject;
810
+ static toObject(includeInstance: boolean, msg: PlanStatus): PlanStatus.AsObject;
811
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
812
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
813
+ static serializeBinaryToWriter(message: PlanStatus, writer: jspb.BinaryWriter): void;
814
+ static deserializeBinary(bytes: Uint8Array): PlanStatus;
815
+ static deserializeBinaryFromReader(message: PlanStatus, reader: jspb.BinaryReader): PlanStatus;
816
+ }
817
+
818
+ export namespace PlanStatus {
819
+ export type AsObject = {
820
+ state: PlanStateMap[keyof PlanStateMap],
821
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
822
+ reason: string,
823
+ }
824
+ }
825
+
826
+ export class Plan extends jspb.Message {
827
+ getId(): string;
828
+ setId(value: string): void;
829
+
830
+ hasComponentName(): boolean;
831
+ clearComponentName(): void;
832
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
833
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
834
+
835
+ getExecutionId(): string;
836
+ setExecutionId(value: string): void;
837
+
838
+ clearStepsList(): void;
839
+ getStepsList(): Array<PlanStep>;
840
+ setStepsList(value: Array<PlanStep>): void;
841
+ addSteps(value?: PlanStep, index?: number): PlanStep;
842
+
843
+ serializeBinary(): Uint8Array;
844
+ toObject(includeInstance?: boolean): Plan.AsObject;
845
+ static toObject(includeInstance: boolean, msg: Plan): Plan.AsObject;
846
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
847
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
848
+ static serializeBinaryToWriter(message: Plan, writer: jspb.BinaryWriter): void;
849
+ static deserializeBinary(bytes: Uint8Array): Plan;
850
+ static deserializeBinaryFromReader(message: Plan, reader: jspb.BinaryReader): Plan;
851
+ }
852
+
853
+ export namespace Plan {
854
+ export type AsObject = {
855
+ id: string,
856
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
857
+ executionId: string,
858
+ stepsList: Array<PlanStep.AsObject>,
859
+ }
860
+ }
861
+
862
+ export class PlanStep extends jspb.Message {
863
+ getStepMap(): jspb.Map<string, ComponentState>;
864
+ clearStepMap(): void;
865
+ serializeBinary(): Uint8Array;
866
+ toObject(includeInstance?: boolean): PlanStep.AsObject;
867
+ static toObject(includeInstance: boolean, msg: PlanStep): PlanStep.AsObject;
868
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
869
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
870
+ static serializeBinaryToWriter(message: PlanStep, writer: jspb.BinaryWriter): void;
871
+ static deserializeBinary(bytes: Uint8Array): PlanStep;
872
+ static deserializeBinaryFromReader(message: PlanStep, reader: jspb.BinaryReader): PlanStep;
873
+ }
874
+
875
+ export namespace PlanStep {
876
+ export type AsObject = {
877
+ stepMap: Array<[string, ComponentState.AsObject]>,
878
+ }
879
+ }
880
+
881
+ export class ComponentState extends jspb.Message {
882
+ hasPose(): boolean;
883
+ clearPose(): void;
884
+ getPose(): common_v1_common_pb.Pose | undefined;
885
+ setPose(value?: common_v1_common_pb.Pose): void;
886
+
887
+ serializeBinary(): Uint8Array;
888
+ toObject(includeInstance?: boolean): ComponentState.AsObject;
889
+ static toObject(includeInstance: boolean, msg: ComponentState): ComponentState.AsObject;
890
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
891
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
892
+ static serializeBinaryToWriter(message: ComponentState, writer: jspb.BinaryWriter): void;
893
+ static deserializeBinary(bytes: Uint8Array): ComponentState;
894
+ static deserializeBinaryFromReader(message: ComponentState, reader: jspb.BinaryReader): ComponentState;
895
+ }
896
+
897
+ export namespace ComponentState {
898
+ export type AsObject = {
899
+ pose?: common_v1_common_pb.Pose.AsObject,
900
+ }
901
+ }
902
+
903
+ export interface PlanStateMap {
904
+ PLAN_STATE_UNSPECIFIED: 0;
905
+ PLAN_STATE_IN_PROGRESS: 1;
906
+ PLAN_STATE_STOPPED: 2;
907
+ PLAN_STATE_SUCCEEDED: 3;
908
+ PLAN_STATE_FAILED: 4;
909
+ }
910
+
911
+ export const PlanState: PlanStateMap;
912
+