@viamrobotics/sdk 0.6.0-rc.0 → 0.7.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.
- package/dist/app/data-client.d.ts +12 -2
- package/dist/components/movement-sensor/client.d.ts +2 -2
- package/dist/components/movement-sensor/movement-sensor.d.ts +4 -11
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +3 -3
- package/dist/components/power-sensor/power-sensor.d.ts +2 -6
- package/dist/components/powersensor.d.ts +1 -1
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +15 -6
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +40 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +19 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +0 -8
- package/dist/gen/app/v1/robot_pb.d.ts +46 -0
- package/dist/gen/common/v1/common_pb.d.ts +45 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +19 -0
- package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +19 -0
- package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -46
- package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +6 -6
- package/dist/gen/robot/v1/robot_pb.d.ts +6 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +33 -5
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +75 -0
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +19 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.es.js +688 -329
- package/dist/main.umd.js +5 -5
- package/dist/services/motion/types.d.ts +1 -0
- package/dist/services/motion.d.ts +1 -1
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +2 -2
|
@@ -141,11 +141,39 @@ export namespace MoveOnMapResponse {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
export class ObstacleDetector extends jspb.Message {
|
|
145
|
+
hasVisionService(): boolean;
|
|
146
|
+
clearVisionService(): void;
|
|
147
|
+
getVisionService(): common_v1_common_pb.ResourceName | undefined;
|
|
148
|
+
setVisionService(value?: common_v1_common_pb.ResourceName): void;
|
|
149
|
+
|
|
150
|
+
hasCamera(): boolean;
|
|
151
|
+
clearCamera(): void;
|
|
152
|
+
getCamera(): common_v1_common_pb.ResourceName | undefined;
|
|
153
|
+
setCamera(value?: common_v1_common_pb.ResourceName): void;
|
|
154
|
+
|
|
155
|
+
serializeBinary(): Uint8Array;
|
|
156
|
+
toObject(includeInstance?: boolean): ObstacleDetector.AsObject;
|
|
157
|
+
static toObject(includeInstance: boolean, msg: ObstacleDetector): ObstacleDetector.AsObject;
|
|
158
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
159
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
160
|
+
static serializeBinaryToWriter(message: ObstacleDetector, writer: jspb.BinaryWriter): void;
|
|
161
|
+
static deserializeBinary(bytes: Uint8Array): ObstacleDetector;
|
|
162
|
+
static deserializeBinaryFromReader(message: ObstacleDetector, reader: jspb.BinaryReader): ObstacleDetector;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export namespace ObstacleDetector {
|
|
166
|
+
export type AsObject = {
|
|
167
|
+
visionService?: common_v1_common_pb.ResourceName.AsObject,
|
|
168
|
+
camera?: common_v1_common_pb.ResourceName.AsObject,
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
144
172
|
export class MotionConfiguration extends jspb.Message {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
173
|
+
clearObstacleDetectorsList(): void;
|
|
174
|
+
getObstacleDetectorsList(): Array<ObstacleDetector>;
|
|
175
|
+
setObstacleDetectorsList(value: Array<ObstacleDetector>): void;
|
|
176
|
+
addObstacleDetectors(value?: ObstacleDetector, index?: number): ObstacleDetector;
|
|
149
177
|
|
|
150
178
|
hasPositionPollingFrequencyHz(): boolean;
|
|
151
179
|
clearPositionPollingFrequencyHz(): void;
|
|
@@ -184,7 +212,7 @@ export class MotionConfiguration extends jspb.Message {
|
|
|
184
212
|
|
|
185
213
|
export namespace MotionConfiguration {
|
|
186
214
|
export type AsObject = {
|
|
187
|
-
|
|
215
|
+
obstacleDetectorsList: Array<ObstacleDetector.AsObject>,
|
|
188
216
|
positionPollingFrequencyHz: number,
|
|
189
217
|
obstaclePollingFrequencyHz: number,
|
|
190
218
|
planDeviationM: number,
|
|
@@ -366,10 +366,85 @@ export namespace GetObstaclesResponse {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
+
export class Path extends jspb.Message {
|
|
370
|
+
getDestinationWaypointId(): string;
|
|
371
|
+
setDestinationWaypointId(value: string): void;
|
|
372
|
+
|
|
373
|
+
clearGeopointsList(): void;
|
|
374
|
+
getGeopointsList(): Array<common_v1_common_pb.GeoPoint>;
|
|
375
|
+
setGeopointsList(value: Array<common_v1_common_pb.GeoPoint>): void;
|
|
376
|
+
addGeopoints(value?: common_v1_common_pb.GeoPoint, index?: number): common_v1_common_pb.GeoPoint;
|
|
377
|
+
|
|
378
|
+
serializeBinary(): Uint8Array;
|
|
379
|
+
toObject(includeInstance?: boolean): Path.AsObject;
|
|
380
|
+
static toObject(includeInstance: boolean, msg: Path): Path.AsObject;
|
|
381
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
382
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
383
|
+
static serializeBinaryToWriter(message: Path, writer: jspb.BinaryWriter): void;
|
|
384
|
+
static deserializeBinary(bytes: Uint8Array): Path;
|
|
385
|
+
static deserializeBinaryFromReader(message: Path, reader: jspb.BinaryReader): Path;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export namespace Path {
|
|
389
|
+
export type AsObject = {
|
|
390
|
+
destinationWaypointId: string,
|
|
391
|
+
geopointsList: Array<common_v1_common_pb.GeoPoint.AsObject>,
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export class GetPathsRequest extends jspb.Message {
|
|
396
|
+
getName(): string;
|
|
397
|
+
setName(value: string): void;
|
|
398
|
+
|
|
399
|
+
hasExtra(): boolean;
|
|
400
|
+
clearExtra(): void;
|
|
401
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
402
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
403
|
+
|
|
404
|
+
serializeBinary(): Uint8Array;
|
|
405
|
+
toObject(includeInstance?: boolean): GetPathsRequest.AsObject;
|
|
406
|
+
static toObject(includeInstance: boolean, msg: GetPathsRequest): GetPathsRequest.AsObject;
|
|
407
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
408
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
409
|
+
static serializeBinaryToWriter(message: GetPathsRequest, writer: jspb.BinaryWriter): void;
|
|
410
|
+
static deserializeBinary(bytes: Uint8Array): GetPathsRequest;
|
|
411
|
+
static deserializeBinaryFromReader(message: GetPathsRequest, reader: jspb.BinaryReader): GetPathsRequest;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export namespace GetPathsRequest {
|
|
415
|
+
export type AsObject = {
|
|
416
|
+
name: string,
|
|
417
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export class GetPathsResponse extends jspb.Message {
|
|
422
|
+
clearPathsList(): void;
|
|
423
|
+
getPathsList(): Array<Path>;
|
|
424
|
+
setPathsList(value: Array<Path>): void;
|
|
425
|
+
addPaths(value?: Path, index?: number): Path;
|
|
426
|
+
|
|
427
|
+
serializeBinary(): Uint8Array;
|
|
428
|
+
toObject(includeInstance?: boolean): GetPathsResponse.AsObject;
|
|
429
|
+
static toObject(includeInstance: boolean, msg: GetPathsResponse): GetPathsResponse.AsObject;
|
|
430
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
431
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
432
|
+
static serializeBinaryToWriter(message: GetPathsResponse, writer: jspb.BinaryWriter): void;
|
|
433
|
+
static deserializeBinary(bytes: Uint8Array): GetPathsResponse;
|
|
434
|
+
static deserializeBinaryFromReader(message: GetPathsResponse, reader: jspb.BinaryReader): GetPathsResponse;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export namespace GetPathsResponse {
|
|
438
|
+
export type AsObject = {
|
|
439
|
+
pathsList: Array<Path.AsObject>,
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
369
443
|
export interface ModeMap {
|
|
370
444
|
MODE_UNSPECIFIED: 0;
|
|
371
445
|
MODE_MANUAL: 1;
|
|
372
446
|
MODE_WAYPOINT: 2;
|
|
447
|
+
MODE_EXPLORE: 3;
|
|
373
448
|
}
|
|
374
449
|
|
|
375
450
|
export const Mode: ModeMap;
|
|
@@ -68,6 +68,15 @@ type NavigationServiceGetObstacles = {
|
|
|
68
68
|
readonly responseType: typeof service_navigation_v1_navigation_pb.GetObstaclesResponse;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
type NavigationServiceGetPaths = {
|
|
72
|
+
readonly methodName: string;
|
|
73
|
+
readonly service: typeof NavigationService;
|
|
74
|
+
readonly requestStream: false;
|
|
75
|
+
readonly responseStream: false;
|
|
76
|
+
readonly requestType: typeof service_navigation_v1_navigation_pb.GetPathsRequest;
|
|
77
|
+
readonly responseType: typeof service_navigation_v1_navigation_pb.GetPathsResponse;
|
|
78
|
+
};
|
|
79
|
+
|
|
71
80
|
type NavigationServiceDoCommand = {
|
|
72
81
|
readonly methodName: string;
|
|
73
82
|
readonly service: typeof NavigationService;
|
|
@@ -86,6 +95,7 @@ export class NavigationService {
|
|
|
86
95
|
static readonly AddWaypoint: NavigationServiceAddWaypoint;
|
|
87
96
|
static readonly RemoveWaypoint: NavigationServiceRemoveWaypoint;
|
|
88
97
|
static readonly GetObstacles: NavigationServiceGetObstacles;
|
|
98
|
+
static readonly GetPaths: NavigationServiceGetPaths;
|
|
89
99
|
static readonly DoCommand: NavigationServiceDoCommand;
|
|
90
100
|
}
|
|
91
101
|
|
|
@@ -184,6 +194,15 @@ export class NavigationServiceClient {
|
|
|
184
194
|
requestMessage: service_navigation_v1_navigation_pb.GetObstaclesRequest,
|
|
185
195
|
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.GetObstaclesResponse|null) => void
|
|
186
196
|
): UnaryResponse;
|
|
197
|
+
getPaths(
|
|
198
|
+
requestMessage: service_navigation_v1_navigation_pb.GetPathsRequest,
|
|
199
|
+
metadata: grpc.Metadata,
|
|
200
|
+
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.GetPathsResponse|null) => void
|
|
201
|
+
): UnaryResponse;
|
|
202
|
+
getPaths(
|
|
203
|
+
requestMessage: service_navigation_v1_navigation_pb.GetPathsRequest,
|
|
204
|
+
callback: (error: ServiceError|null, responseMessage: service_navigation_v1_navigation_pb.GetPathsResponse|null) => void
|
|
205
|
+
): UnaryResponse;
|
|
187
206
|
doCommand(
|
|
188
207
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
189
208
|
metadata: grpc.Metadata,
|
package/dist/main.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export { type Motor, MotorClient } from './components/motor';
|
|
|
114
114
|
* @group Raw Protobufs
|
|
115
115
|
*/
|
|
116
116
|
export { default as movementSensorApi } from './gen/component/movementsensor/v1/movementsensor_pb';
|
|
117
|
-
export { type MovementSensor, type MovementSensorProperties, type MovementSensorPosition,
|
|
117
|
+
export { type MovementSensor, type MovementSensorProperties, type MovementSensorPosition, MovementSensorClient, } from './components/movementsensor';
|
|
118
118
|
/**
|
|
119
119
|
* Raw Protobuf interfaces for a PowerSensor component.
|
|
120
120
|
*
|
|
@@ -125,7 +125,7 @@ export { type MovementSensor, type MovementSensorProperties, type MovementSensor
|
|
|
125
125
|
* @group Raw Protobufs
|
|
126
126
|
*/
|
|
127
127
|
export { default as powerSensorApi } from './gen/component/powersensor/v1/powersensor_pb';
|
|
128
|
-
export { type PowerSensor,
|
|
128
|
+
export { type PowerSensor, PowerSensorClient } from './components/powersensor';
|
|
129
129
|
/**
|
|
130
130
|
* Raw Protobuf interfaces generated with
|
|
131
131
|
* https://github.com/improbable-eng/grpc-web for a Sensor component.
|
|
@@ -253,7 +253,7 @@ export { default as inputControllerApi } from './gen/component/inputcontroller/v
|
|
|
253
253
|
* @group Raw Protobufs
|
|
254
254
|
*/
|
|
255
255
|
export { default as motionApi } from './gen/service/motion/v1/motion_pb';
|
|
256
|
-
export { type Motion, type Constraints, type LinearConstraint, type OrientationConstraint, type CollisionSpecification, type MotionConfiguration, MotionClient, } from './services/motion';
|
|
256
|
+
export { type Motion, type Constraints, type LinearConstraint, type ObstacleDetector, type OrientationConstraint, type CollisionSpecification, type MotionConfiguration, MotionClient, } from './services/motion';
|
|
257
257
|
export { type DataManager, DataManagerClient } from './services/data-manager';
|
|
258
258
|
/**
|
|
259
259
|
* Raw Protobuf interfaces for a Navigation service.
|