@viamrobotics/sdk 0.8.2 → 0.9.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.
@@ -77,6 +77,76 @@ export namespace MoveResponse {
77
77
  }
78
78
  }
79
79
 
80
+ export class MoveOnMapNewRequest extends jspb.Message {
81
+ getName(): string;
82
+ setName(value: string): void;
83
+
84
+ hasDestination(): boolean;
85
+ clearDestination(): void;
86
+ getDestination(): common_v1_common_pb.Pose | undefined;
87
+ setDestination(value?: common_v1_common_pb.Pose): void;
88
+
89
+ hasComponentName(): boolean;
90
+ clearComponentName(): void;
91
+ getComponentName(): common_v1_common_pb.ResourceName | undefined;
92
+ setComponentName(value?: common_v1_common_pb.ResourceName): void;
93
+
94
+ hasSlamServiceName(): boolean;
95
+ clearSlamServiceName(): void;
96
+ getSlamServiceName(): common_v1_common_pb.ResourceName | undefined;
97
+ setSlamServiceName(value?: common_v1_common_pb.ResourceName): void;
98
+
99
+ hasMotionConfiguration(): boolean;
100
+ clearMotionConfiguration(): void;
101
+ getMotionConfiguration(): MotionConfiguration | undefined;
102
+ setMotionConfiguration(value?: MotionConfiguration): void;
103
+
104
+ hasExtra(): boolean;
105
+ clearExtra(): void;
106
+ getExtra(): google_protobuf_struct_pb.Struct | undefined;
107
+ setExtra(value?: google_protobuf_struct_pb.Struct): void;
108
+
109
+ serializeBinary(): Uint8Array;
110
+ toObject(includeInstance?: boolean): MoveOnMapNewRequest.AsObject;
111
+ static toObject(includeInstance: boolean, msg: MoveOnMapNewRequest): MoveOnMapNewRequest.AsObject;
112
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
113
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
114
+ static serializeBinaryToWriter(message: MoveOnMapNewRequest, writer: jspb.BinaryWriter): void;
115
+ static deserializeBinary(bytes: Uint8Array): MoveOnMapNewRequest;
116
+ static deserializeBinaryFromReader(message: MoveOnMapNewRequest, reader: jspb.BinaryReader): MoveOnMapNewRequest;
117
+ }
118
+
119
+ export namespace MoveOnMapNewRequest {
120
+ export type AsObject = {
121
+ name: string,
122
+ destination?: common_v1_common_pb.Pose.AsObject,
123
+ componentName?: common_v1_common_pb.ResourceName.AsObject,
124
+ slamServiceName?: common_v1_common_pb.ResourceName.AsObject,
125
+ motionConfiguration?: MotionConfiguration.AsObject,
126
+ extra?: google_protobuf_struct_pb.Struct.AsObject,
127
+ }
128
+ }
129
+
130
+ export class MoveOnMapNewResponse extends jspb.Message {
131
+ getExecutionId(): string;
132
+ setExecutionId(value: string): void;
133
+
134
+ serializeBinary(): Uint8Array;
135
+ toObject(includeInstance?: boolean): MoveOnMapNewResponse.AsObject;
136
+ static toObject(includeInstance: boolean, msg: MoveOnMapNewResponse): MoveOnMapNewResponse.AsObject;
137
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
138
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
139
+ static serializeBinaryToWriter(message: MoveOnMapNewResponse, writer: jspb.BinaryWriter): void;
140
+ static deserializeBinary(bytes: Uint8Array): MoveOnMapNewResponse;
141
+ static deserializeBinaryFromReader(message: MoveOnMapNewResponse, reader: jspb.BinaryReader): MoveOnMapNewResponse;
142
+ }
143
+
144
+ export namespace MoveOnMapNewResponse {
145
+ export type AsObject = {
146
+ executionId: string,
147
+ }
148
+ }
149
+
80
150
  export class MoveOnMapRequest extends jspb.Message {
81
151
  getName(): string;
82
152
  setName(value: string): void;
@@ -284,8 +354,8 @@ export namespace MoveOnGlobeRequest {
284
354
  }
285
355
 
286
356
  export class MoveOnGlobeResponse extends jspb.Message {
287
- getSuccess(): boolean;
288
- setSuccess(value: boolean): void;
357
+ getExecutionId(): string;
358
+ setExecutionId(value: string): void;
289
359
 
290
360
  serializeBinary(): Uint8Array;
291
361
  toObject(includeInstance?: boolean): MoveOnGlobeResponse.AsObject;
@@ -298,88 +368,6 @@ export class MoveOnGlobeResponse extends jspb.Message {
298
368
  }
299
369
 
300
370
  export namespace MoveOnGlobeResponse {
301
- export type AsObject = {
302
- success: boolean,
303
- }
304
- }
305
-
306
- export class MoveOnGlobeNewRequest extends jspb.Message {
307
- getName(): string;
308
- setName(value: string): void;
309
-
310
- hasDestination(): boolean;
311
- clearDestination(): void;
312
- getDestination(): common_v1_common_pb.GeoPoint | undefined;
313
- setDestination(value?: common_v1_common_pb.GeoPoint): void;
314
-
315
- hasHeading(): boolean;
316
- clearHeading(): void;
317
- getHeading(): number;
318
- setHeading(value: number): void;
319
-
320
- hasComponentName(): boolean;
321
- clearComponentName(): void;
322
- getComponentName(): common_v1_common_pb.ResourceName | undefined;
323
- setComponentName(value?: common_v1_common_pb.ResourceName): void;
324
-
325
- hasMovementSensorName(): boolean;
326
- clearMovementSensorName(): void;
327
- getMovementSensorName(): common_v1_common_pb.ResourceName | undefined;
328
- setMovementSensorName(value?: common_v1_common_pb.ResourceName): void;
329
-
330
- clearObstaclesList(): void;
331
- getObstaclesList(): Array<common_v1_common_pb.GeoObstacle>;
332
- setObstaclesList(value: Array<common_v1_common_pb.GeoObstacle>): void;
333
- addObstacles(value?: common_v1_common_pb.GeoObstacle, index?: number): common_v1_common_pb.GeoObstacle;
334
-
335
- hasMotionConfiguration(): boolean;
336
- clearMotionConfiguration(): void;
337
- getMotionConfiguration(): MotionConfiguration | undefined;
338
- setMotionConfiguration(value?: MotionConfiguration): void;
339
-
340
- hasExtra(): boolean;
341
- clearExtra(): void;
342
- getExtra(): google_protobuf_struct_pb.Struct | undefined;
343
- setExtra(value?: google_protobuf_struct_pb.Struct): void;
344
-
345
- serializeBinary(): Uint8Array;
346
- toObject(includeInstance?: boolean): MoveOnGlobeNewRequest.AsObject;
347
- static toObject(includeInstance: boolean, msg: MoveOnGlobeNewRequest): MoveOnGlobeNewRequest.AsObject;
348
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
349
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
350
- static serializeBinaryToWriter(message: MoveOnGlobeNewRequest, writer: jspb.BinaryWriter): void;
351
- static deserializeBinary(bytes: Uint8Array): MoveOnGlobeNewRequest;
352
- static deserializeBinaryFromReader(message: MoveOnGlobeNewRequest, reader: jspb.BinaryReader): MoveOnGlobeNewRequest;
353
- }
354
-
355
- export namespace MoveOnGlobeNewRequest {
356
- export type AsObject = {
357
- name: string,
358
- destination?: common_v1_common_pb.GeoPoint.AsObject,
359
- heading: number,
360
- componentName?: common_v1_common_pb.ResourceName.AsObject,
361
- movementSensorName?: common_v1_common_pb.ResourceName.AsObject,
362
- obstaclesList: Array<common_v1_common_pb.GeoObstacle.AsObject>,
363
- motionConfiguration?: MotionConfiguration.AsObject,
364
- extra?: google_protobuf_struct_pb.Struct.AsObject,
365
- }
366
- }
367
-
368
- export class MoveOnGlobeNewResponse extends jspb.Message {
369
- getExecutionId(): string;
370
- setExecutionId(value: string): void;
371
-
372
- serializeBinary(): Uint8Array;
373
- toObject(includeInstance?: boolean): MoveOnGlobeNewResponse.AsObject;
374
- static toObject(includeInstance: boolean, msg: MoveOnGlobeNewResponse): MoveOnGlobeNewResponse.AsObject;
375
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
376
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
377
- static serializeBinaryToWriter(message: MoveOnGlobeNewResponse, writer: jspb.BinaryWriter): void;
378
- static deserializeBinary(bytes: Uint8Array): MoveOnGlobeNewResponse;
379
- static deserializeBinaryFromReader(message: MoveOnGlobeNewResponse, reader: jspb.BinaryReader): MoveOnGlobeNewResponse;
380
- }
381
-
382
- export namespace MoveOnGlobeNewResponse {
383
371
  export type AsObject = {
384
372
  executionId: string,
385
373
  }
@@ -23,22 +23,22 @@ type MotionServiceMoveOnMap = {
23
23
  readonly responseType: typeof service_motion_v1_motion_pb.MoveOnMapResponse;
24
24
  };
25
25
 
26
- type MotionServiceMoveOnGlobe = {
26
+ type MotionServiceMoveOnMapNew = {
27
27
  readonly methodName: string;
28
28
  readonly service: typeof MotionService;
29
29
  readonly requestStream: false;
30
30
  readonly responseStream: false;
31
- readonly requestType: typeof service_motion_v1_motion_pb.MoveOnGlobeRequest;
32
- readonly responseType: typeof service_motion_v1_motion_pb.MoveOnGlobeResponse;
31
+ readonly requestType: typeof service_motion_v1_motion_pb.MoveOnMapNewRequest;
32
+ readonly responseType: typeof service_motion_v1_motion_pb.MoveOnMapNewResponse;
33
33
  };
34
34
 
35
- type MotionServiceMoveOnGlobeNew = {
35
+ type MotionServiceMoveOnGlobe = {
36
36
  readonly methodName: string;
37
37
  readonly service: typeof MotionService;
38
38
  readonly requestStream: false;
39
39
  readonly responseStream: false;
40
- readonly requestType: typeof service_motion_v1_motion_pb.MoveOnGlobeNewRequest;
41
- readonly responseType: typeof service_motion_v1_motion_pb.MoveOnGlobeNewResponse;
40
+ readonly requestType: typeof service_motion_v1_motion_pb.MoveOnGlobeRequest;
41
+ readonly responseType: typeof service_motion_v1_motion_pb.MoveOnGlobeResponse;
42
42
  };
43
43
 
44
44
  type MotionServiceGetPose = {
@@ -90,8 +90,8 @@ export class MotionService {
90
90
  static readonly serviceName: string;
91
91
  static readonly Move: MotionServiceMove;
92
92
  static readonly MoveOnMap: MotionServiceMoveOnMap;
93
+ static readonly MoveOnMapNew: MotionServiceMoveOnMapNew;
93
94
  static readonly MoveOnGlobe: MotionServiceMoveOnGlobe;
94
- static readonly MoveOnGlobeNew: MotionServiceMoveOnGlobeNew;
95
95
  static readonly GetPose: MotionServiceGetPose;
96
96
  static readonly StopPlan: MotionServiceStopPlan;
97
97
  static readonly ListPlanStatuses: MotionServiceListPlanStatuses;
@@ -149,6 +149,15 @@ export class MotionServiceClient {
149
149
  requestMessage: service_motion_v1_motion_pb.MoveOnMapRequest,
150
150
  callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnMapResponse|null) => void
151
151
  ): UnaryResponse;
152
+ moveOnMapNew(
153
+ requestMessage: service_motion_v1_motion_pb.MoveOnMapNewRequest,
154
+ metadata: grpc.Metadata,
155
+ callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnMapNewResponse|null) => void
156
+ ): UnaryResponse;
157
+ moveOnMapNew(
158
+ requestMessage: service_motion_v1_motion_pb.MoveOnMapNewRequest,
159
+ callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnMapNewResponse|null) => void
160
+ ): UnaryResponse;
152
161
  moveOnGlobe(
153
162
  requestMessage: service_motion_v1_motion_pb.MoveOnGlobeRequest,
154
163
  metadata: grpc.Metadata,
@@ -158,15 +167,6 @@ export class MotionServiceClient {
158
167
  requestMessage: service_motion_v1_motion_pb.MoveOnGlobeRequest,
159
168
  callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnGlobeResponse|null) => void
160
169
  ): UnaryResponse;
161
- moveOnGlobeNew(
162
- requestMessage: service_motion_v1_motion_pb.MoveOnGlobeNewRequest,
163
- metadata: grpc.Metadata,
164
- callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnGlobeNewResponse|null) => void
165
- ): UnaryResponse;
166
- moveOnGlobeNew(
167
- requestMessage: service_motion_v1_motion_pb.MoveOnGlobeNewRequest,
168
- callback: (error: ServiceError|null, responseMessage: service_motion_v1_motion_pb.MoveOnGlobeNewResponse|null) => void
169
- ): UnaryResponse;
170
170
  getPose(
171
171
  requestMessage: service_motion_v1_motion_pb.GetPoseRequest,
172
172
  metadata: grpc.Metadata,
package/dist/main.d.ts CHANGED
@@ -254,7 +254,7 @@ export { default as inputControllerApi } from './gen/component/inputcontroller/v
254
254
  * @group Raw Protobufs
255
255
  */
256
256
  export { default as motionApi } from './gen/service/motion/v1/motion_pb';
257
- export { type Motion, type Constraints, type LinearConstraint, type ObstacleDetector, type OrientationConstraint, type CollisionSpecification, type MotionConfiguration, MotionClient, } from './services/motion';
257
+ export { type CollisionSpecification, type Constraints, type GetPlanResponse, type LinearConstraint, type ListPlanStatusesResponse, type Motion, type MotionConfiguration, type ObstacleDetector, type OrientationConstraint, type PlanState, MotionClient, } from './services/motion';
258
258
  export { type DataManager, DataManagerClient } from './services/data-manager';
259
259
  /**
260
260
  * Raw Protobuf interfaces for a Navigation service.
@@ -266,7 +266,7 @@ export { type DataManager, DataManagerClient } from './services/data-manager';
266
266
  * @group Raw Protobufs
267
267
  */
268
268
  export { default as navigationApi } from './gen/service/navigation/v1/navigation_pb';
269
- export { type ModeMap, type Waypoint, type NavigationPosition, NavigationClient, } from './services/navigation';
269
+ export { type ModeMap, type Waypoint, type NavigationPosition, type Path, NavigationClient, } from './services/navigation';
270
270
  /**
271
271
  * Raw Protobuf interfaces for a Servo component.
272
272
  *
@@ -337,3 +337,4 @@ export { default as commonApi } from './gen/common/v1/common_pb';
337
337
  */
338
338
  export type { ResponseStream, ServiceError, } from './gen/robot/v1/robot_pb_service';
339
339
  export * from './types';
340
+ export { doCommandFromClient } from './utils';