@viamrobotics/sdk 0.0.8 → 0.0.9
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/components/base/Base.d.ts +8 -0
- package/dist/components/base/Client.d.ts +13 -0
- package/dist/components/camera/Client.d.ts +3 -2
- package/dist/components/motor/Client.d.ts +19 -0
- package/dist/components/motor/Motor.d.ts +14 -0
- package/dist/gen/common/v1/common_pb.d.ts +6 -0
- package/dist/gen/common/v1/common_pb.esm.d.ts +6 -0
- package/dist/gen/component/arm/v1/arm_pb.d.ts +40 -0
- package/dist/gen/component/arm/v1/arm_pb.esm.d.ts +40 -0
- package/dist/gen/component/arm/v1/arm_pb_service.d.ts +19 -0
- package/dist/gen/component/arm/v1/arm_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/base/v1/base_pb.d.ts +40 -0
- package/dist/gen/component/base/v1/base_pb.esm.d.ts +40 -0
- package/dist/gen/component/base/v1/base_pb_service.d.ts +19 -0
- package/dist/gen/component/base/v1/base_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/gantry/v1/gantry_pb.d.ts +40 -0
- package/dist/gen/component/gantry/v1/gantry_pb.esm.d.ts +40 -0
- package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +19 -0
- package/dist/gen/component/gantry/v1/gantry_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/gripper/v1/gripper_pb.d.ts +40 -0
- package/dist/gen/component/gripper/v1/gripper_pb.esm.d.ts +40 -0
- package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +19 -0
- package/dist/gen/component/gripper/v1/gripper_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/motor/v1/motor_pb.d.ts +40 -0
- package/dist/gen/component/motor/v1/motor_pb.esm.d.ts +40 -0
- package/dist/gen/component/motor/v1/motor_pb_service.d.ts +19 -0
- package/dist/gen/component/motor/v1/motor_pb_service.esm.d.ts +19 -0
- package/dist/gen/component/servo/v1/servo_pb.d.ts +40 -0
- package/dist/gen/component/servo/v1/servo_pb.esm.d.ts +40 -0
- package/dist/gen/component/servo/v1/servo_pb_service.d.ts +19 -0
- package/dist/gen/component/servo/v1/servo_pb_service.esm.d.ts +19 -0
- package/dist/gen/google/rpc/error_details_pb.d.ts +27 -27
- package/dist/gen/robot/v1/robot_pb.d.ts +10 -14
- package/dist/gen/robot/v1/robot_pb.esm.d.ts +10 -14
- package/dist/main.d.ts +5 -1
- package/dist/main.es.js +23064 -16977
- package/dist/main.umd.js +55 -49
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { baseApi, commonApi } from '../../main';
|
|
2
|
+
export interface Base {
|
|
3
|
+
moveStraight(distanceMm: number, mmPerSec: number, extra?: Map<string, any>): Promise<baseApi.MoveStraightResponse>;
|
|
4
|
+
spin(angleDeg: number, degsPerSec: number, extra?: Map<string, any>): Promise<baseApi.SpinResponse>;
|
|
5
|
+
setPower(linear: commonApi.Vector3, angular: commonApi.Vector3, extra?: Map<string, any>): Promise<baseApi.SetPowerResponse>;
|
|
6
|
+
setVelocity(linear: commonApi.Vector3, angular: commonApi.Vector3, extra?: Map<string, any>): Promise<baseApi.SetVelocityResponse>;
|
|
7
|
+
stop(extra?: Map<string, any>): Promise<baseApi.StopResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Client, baseApi, commonApi } from '../../main';
|
|
2
|
+
import type { Base } from './Base';
|
|
3
|
+
export declare class BaseClient implements Base {
|
|
4
|
+
private client;
|
|
5
|
+
private name;
|
|
6
|
+
constructor(client: Client, name: string);
|
|
7
|
+
private get baseService();
|
|
8
|
+
moveStraight(distanceMm: number, mmPerSec: number, extra?: {}): Promise<baseApi.MoveStraightResponse>;
|
|
9
|
+
spin(angleDeg: number, degsPerSec: number, extra?: {}): Promise<baseApi.SpinResponse>;
|
|
10
|
+
setPower(linear: commonApi.Vector3, angular: commonApi.Vector3, extra?: {}): Promise<baseApi.SetPowerResponse>;
|
|
11
|
+
setVelocity(linear: commonApi.Vector3, angular: commonApi.Vector3, extra?: {}): Promise<baseApi.SetVelocityResponse>;
|
|
12
|
+
stop(extra?: {}): Promise<baseApi.StopResponse>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type Camera, MimeType
|
|
1
|
+
import { type Camera, MimeType } from './Camera';
|
|
2
2
|
import type Client from '../../Client';
|
|
3
|
+
import pb from '../../gen/component/camera/v1/camera_pb.esm';
|
|
3
4
|
export declare class CameraClient implements Camera {
|
|
4
5
|
private client;
|
|
5
6
|
private readonly name;
|
|
@@ -8,5 +9,5 @@ export declare class CameraClient implements Camera {
|
|
|
8
9
|
getImage(mimeType: MimeType): Promise<Uint8Array>;
|
|
9
10
|
renderFrame(mimeType: MimeType): Promise<Blob>;
|
|
10
11
|
getPointCloud(): Promise<Uint8Array>;
|
|
11
|
-
getProperties(): Promise<
|
|
12
|
+
getProperties(): Promise<pb.GetPropertiesResponse.AsObject>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type Client from '../../Client';
|
|
2
|
+
import type { Motor } from './Motor';
|
|
3
|
+
import { motorApi } from '../../main';
|
|
4
|
+
export declare class MotorClient implements Motor {
|
|
5
|
+
private client;
|
|
6
|
+
private name;
|
|
7
|
+
constructor(client: Client, name: string);
|
|
8
|
+
private get motorService();
|
|
9
|
+
setPower(power: number, extra?: {}): Promise<motorApi.SetPowerResponse>;
|
|
10
|
+
goFor(rpm: number, revolutions: number, extra?: {}): Promise<motorApi.GoForResponse>;
|
|
11
|
+
goTo(rpm: number, positionRevolutions: number, extra?: {}): Promise<motorApi.GoToResponse>;
|
|
12
|
+
resetZeroPosition(offset: number, extra?: {}): Promise<motorApi.ResetZeroPositionResponse>;
|
|
13
|
+
motorStop(extra?: {}): Promise<motorApi.StopResponse>;
|
|
14
|
+
getProperties(extra?: {}): Promise<{
|
|
15
|
+
positionReporting: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
getPosition(extra?: {}): Promise<number>;
|
|
18
|
+
isPowered(extra?: {}): Promise<readonly [boolean, number]>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { motorApi } from '../../main';
|
|
2
|
+
export interface Properties {
|
|
3
|
+
positionReporting: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface Motor {
|
|
6
|
+
setPower(power: number, extra?: Map<string, any>): Promise<motorApi.SetPowerResponse>;
|
|
7
|
+
goFor(rpm: number, revolutions: number, extra?: Map<string, any>): Promise<motorApi.GoForResponse>;
|
|
8
|
+
goTo(rpm: number, positionRevolutions: number, extra?: Map<string, any>): Promise<motorApi.GoToResponse>;
|
|
9
|
+
resetZeroPosition(offset: number, extra?: Map<string, any>): Promise<motorApi.ResetZeroPositionResponse>;
|
|
10
|
+
motorStop(extra?: Map<string, any>): Promise<motorApi.StopResponse>;
|
|
11
|
+
getProperties(extra?: Map<string, any>): Promise<Properties>;
|
|
12
|
+
getPosition(extra?: Map<string, any>): Promise<number>;
|
|
13
|
+
isPowered(extra?: Map<string, any>): Promise<readonly [boolean, number]>;
|
|
14
|
+
}
|
|
@@ -402,6 +402,11 @@ export class Transform extends jspb.Message {
|
|
|
402
402
|
getPoseInObserverFrame(): PoseInFrame | undefined;
|
|
403
403
|
setPoseInObserverFrame(value?: PoseInFrame): void;
|
|
404
404
|
|
|
405
|
+
hasPhysicalObject(): boolean;
|
|
406
|
+
clearPhysicalObject(): void;
|
|
407
|
+
getPhysicalObject(): Geometry | undefined;
|
|
408
|
+
setPhysicalObject(value?: Geometry): void;
|
|
409
|
+
|
|
405
410
|
serializeBinary(): Uint8Array;
|
|
406
411
|
toObject(includeInstance?: boolean): Transform.AsObject;
|
|
407
412
|
static toObject(includeInstance: boolean, msg: Transform): Transform.AsObject;
|
|
@@ -416,6 +421,7 @@ export namespace Transform {
|
|
|
416
421
|
export type AsObject = {
|
|
417
422
|
referenceFrame: string,
|
|
418
423
|
poseInObserverFrame?: PoseInFrame.AsObject,
|
|
424
|
+
physicalObject?: Geometry.AsObject,
|
|
419
425
|
}
|
|
420
426
|
}
|
|
421
427
|
|
|
@@ -402,6 +402,11 @@ export class Transform extends jspb.Message {
|
|
|
402
402
|
getPoseInObserverFrame(): PoseInFrame | undefined;
|
|
403
403
|
setPoseInObserverFrame(value?: PoseInFrame): void;
|
|
404
404
|
|
|
405
|
+
hasPhysicalObject(): boolean;
|
|
406
|
+
clearPhysicalObject(): void;
|
|
407
|
+
getPhysicalObject(): Geometry | undefined;
|
|
408
|
+
setPhysicalObject(value?: Geometry): void;
|
|
409
|
+
|
|
405
410
|
serializeBinary(): Uint8Array;
|
|
406
411
|
toObject(includeInstance?: boolean): Transform.AsObject;
|
|
407
412
|
static toObject(includeInstance: boolean, msg: Transform): Transform.AsObject;
|
|
@@ -416,6 +421,7 @@ export namespace Transform {
|
|
|
416
421
|
export type AsObject = {
|
|
417
422
|
referenceFrame: string,
|
|
418
423
|
poseInObserverFrame?: PoseInFrame.AsObject,
|
|
424
|
+
physicalObject?: Geometry.AsObject,
|
|
419
425
|
}
|
|
420
426
|
}
|
|
421
427
|
|
|
@@ -300,3 +300,43 @@ export namespace Status {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
export class IsMovingRequest extends jspb.Message {
|
|
304
|
+
getName(): string;
|
|
305
|
+
setName(value: string): void;
|
|
306
|
+
|
|
307
|
+
serializeBinary(): Uint8Array;
|
|
308
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
309
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
310
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
311
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
312
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
313
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
314
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export namespace IsMovingRequest {
|
|
318
|
+
export type AsObject = {
|
|
319
|
+
name: string,
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export class IsMovingResponse extends jspb.Message {
|
|
324
|
+
getIsMoving(): boolean;
|
|
325
|
+
setIsMoving(value: boolean): void;
|
|
326
|
+
|
|
327
|
+
serializeBinary(): Uint8Array;
|
|
328
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
329
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
330
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
331
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
332
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
333
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
334
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace IsMovingResponse {
|
|
338
|
+
export type AsObject = {
|
|
339
|
+
isMoving: boolean,
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
@@ -300,3 +300,43 @@ export namespace Status {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
export class IsMovingRequest extends jspb.Message {
|
|
304
|
+
getName(): string;
|
|
305
|
+
setName(value: string): void;
|
|
306
|
+
|
|
307
|
+
serializeBinary(): Uint8Array;
|
|
308
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
309
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
310
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
311
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
312
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
313
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
314
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export namespace IsMovingRequest {
|
|
318
|
+
export type AsObject = {
|
|
319
|
+
name: string,
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export class IsMovingResponse extends jspb.Message {
|
|
324
|
+
getIsMoving(): boolean;
|
|
325
|
+
setIsMoving(value: boolean): void;
|
|
326
|
+
|
|
327
|
+
serializeBinary(): Uint8Array;
|
|
328
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
329
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
330
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
331
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
332
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
333
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
334
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace IsMovingResponse {
|
|
338
|
+
export type AsObject = {
|
|
339
|
+
isMoving: boolean,
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
@@ -49,6 +49,15 @@ type ArmServiceStop = {
|
|
|
49
49
|
readonly responseType: typeof component_arm_v1_arm_pb.StopResponse;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type ArmServiceIsMoving = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof ArmService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof component_arm_v1_arm_pb.IsMovingRequest;
|
|
58
|
+
readonly responseType: typeof component_arm_v1_arm_pb.IsMovingResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class ArmService {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly GetEndPosition: ArmServiceGetEndPosition;
|
|
@@ -56,6 +65,7 @@ export class ArmService {
|
|
|
56
65
|
static readonly GetJointPositions: ArmServiceGetJointPositions;
|
|
57
66
|
static readonly MoveToJointPositions: ArmServiceMoveToJointPositions;
|
|
58
67
|
static readonly Stop: ArmServiceStop;
|
|
68
|
+
static readonly IsMoving: ArmServiceIsMoving;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class ArmServiceClient {
|
|
|
135
145
|
requestMessage: component_arm_v1_arm_pb.StopRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.StopResponse|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
isMoving(
|
|
149
|
+
requestMessage: component_arm_v1_arm_pb.IsMovingRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.IsMovingResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
isMoving(
|
|
154
|
+
requestMessage: component_arm_v1_arm_pb.IsMovingRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.IsMovingResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -49,6 +49,15 @@ type ArmServiceStop = {
|
|
|
49
49
|
readonly responseType: typeof component_arm_v1_arm_pb.StopResponse;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type ArmServiceIsMoving = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof ArmService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof component_arm_v1_arm_pb.IsMovingRequest;
|
|
58
|
+
readonly responseType: typeof component_arm_v1_arm_pb.IsMovingResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class ArmService {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly GetEndPosition: ArmServiceGetEndPosition;
|
|
@@ -56,6 +65,7 @@ export class ArmService {
|
|
|
56
65
|
static readonly GetJointPositions: ArmServiceGetJointPositions;
|
|
57
66
|
static readonly MoveToJointPositions: ArmServiceMoveToJointPositions;
|
|
58
67
|
static readonly Stop: ArmServiceStop;
|
|
68
|
+
static readonly IsMoving: ArmServiceIsMoving;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class ArmServiceClient {
|
|
|
135
145
|
requestMessage: component_arm_v1_arm_pb.StopRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.StopResponse|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
isMoving(
|
|
149
|
+
requestMessage: component_arm_v1_arm_pb.IsMovingRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.IsMovingResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
isMoving(
|
|
154
|
+
requestMessage: component_arm_v1_arm_pb.IsMovingRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: component_arm_v1_arm_pb.IsMovingResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -256,3 +256,43 @@ export namespace SetVelocityResponse {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
export class IsMovingRequest extends jspb.Message {
|
|
260
|
+
getName(): string;
|
|
261
|
+
setName(value: string): void;
|
|
262
|
+
|
|
263
|
+
serializeBinary(): Uint8Array;
|
|
264
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
265
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
266
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
267
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
268
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
269
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
270
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export namespace IsMovingRequest {
|
|
274
|
+
export type AsObject = {
|
|
275
|
+
name: string,
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export class IsMovingResponse extends jspb.Message {
|
|
280
|
+
getIsMoving(): boolean;
|
|
281
|
+
setIsMoving(value: boolean): void;
|
|
282
|
+
|
|
283
|
+
serializeBinary(): Uint8Array;
|
|
284
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
285
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
286
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
287
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
288
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
289
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
290
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export namespace IsMovingResponse {
|
|
294
|
+
export type AsObject = {
|
|
295
|
+
isMoving: boolean,
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
@@ -256,3 +256,43 @@ export namespace SetVelocityResponse {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
export class IsMovingRequest extends jspb.Message {
|
|
260
|
+
getName(): string;
|
|
261
|
+
setName(value: string): void;
|
|
262
|
+
|
|
263
|
+
serializeBinary(): Uint8Array;
|
|
264
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
265
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
266
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
267
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
268
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
269
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
270
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export namespace IsMovingRequest {
|
|
274
|
+
export type AsObject = {
|
|
275
|
+
name: string,
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export class IsMovingResponse extends jspb.Message {
|
|
280
|
+
getIsMoving(): boolean;
|
|
281
|
+
setIsMoving(value: boolean): void;
|
|
282
|
+
|
|
283
|
+
serializeBinary(): Uint8Array;
|
|
284
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
285
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
286
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
287
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
288
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
289
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
290
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export namespace IsMovingResponse {
|
|
294
|
+
export type AsObject = {
|
|
295
|
+
isMoving: boolean,
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
@@ -49,6 +49,15 @@ type BaseServiceStop = {
|
|
|
49
49
|
readonly responseType: typeof component_base_v1_base_pb.StopResponse;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type BaseServiceIsMoving = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof BaseService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof component_base_v1_base_pb.IsMovingRequest;
|
|
58
|
+
readonly responseType: typeof component_base_v1_base_pb.IsMovingResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class BaseService {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly MoveStraight: BaseServiceMoveStraight;
|
|
@@ -56,6 +65,7 @@ export class BaseService {
|
|
|
56
65
|
static readonly SetPower: BaseServiceSetPower;
|
|
57
66
|
static readonly SetVelocity: BaseServiceSetVelocity;
|
|
58
67
|
static readonly Stop: BaseServiceStop;
|
|
68
|
+
static readonly IsMoving: BaseServiceIsMoving;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class BaseServiceClient {
|
|
|
135
145
|
requestMessage: component_base_v1_base_pb.StopRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.StopResponse|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
isMoving(
|
|
149
|
+
requestMessage: component_base_v1_base_pb.IsMovingRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.IsMovingResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
isMoving(
|
|
154
|
+
requestMessage: component_base_v1_base_pb.IsMovingRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.IsMovingResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -49,6 +49,15 @@ type BaseServiceStop = {
|
|
|
49
49
|
readonly responseType: typeof component_base_v1_base_pb.StopResponse;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type BaseServiceIsMoving = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof BaseService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof component_base_v1_base_pb.IsMovingRequest;
|
|
58
|
+
readonly responseType: typeof component_base_v1_base_pb.IsMovingResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class BaseService {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly MoveStraight: BaseServiceMoveStraight;
|
|
@@ -56,6 +65,7 @@ export class BaseService {
|
|
|
56
65
|
static readonly SetPower: BaseServiceSetPower;
|
|
57
66
|
static readonly SetVelocity: BaseServiceSetVelocity;
|
|
58
67
|
static readonly Stop: BaseServiceStop;
|
|
68
|
+
static readonly IsMoving: BaseServiceIsMoving;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class BaseServiceClient {
|
|
|
135
145
|
requestMessage: component_base_v1_base_pb.StopRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.StopResponse|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
isMoving(
|
|
149
|
+
requestMessage: component_base_v1_base_pb.IsMovingRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.IsMovingResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
isMoving(
|
|
154
|
+
requestMessage: component_base_v1_base_pb.IsMovingRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: component_base_v1_base_pb.IsMovingResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -230,3 +230,43 @@ export namespace Status {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
export class IsMovingRequest extends jspb.Message {
|
|
234
|
+
getName(): string;
|
|
235
|
+
setName(value: string): void;
|
|
236
|
+
|
|
237
|
+
serializeBinary(): Uint8Array;
|
|
238
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
239
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
240
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
241
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
242
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
243
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
244
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export namespace IsMovingRequest {
|
|
248
|
+
export type AsObject = {
|
|
249
|
+
name: string,
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export class IsMovingResponse extends jspb.Message {
|
|
254
|
+
getIsMoving(): boolean;
|
|
255
|
+
setIsMoving(value: boolean): void;
|
|
256
|
+
|
|
257
|
+
serializeBinary(): Uint8Array;
|
|
258
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
259
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
260
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
261
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
262
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
263
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
264
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export namespace IsMovingResponse {
|
|
268
|
+
export type AsObject = {
|
|
269
|
+
isMoving: boolean,
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
@@ -230,3 +230,43 @@ export namespace Status {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
export class IsMovingRequest extends jspb.Message {
|
|
234
|
+
getName(): string;
|
|
235
|
+
setName(value: string): void;
|
|
236
|
+
|
|
237
|
+
serializeBinary(): Uint8Array;
|
|
238
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
239
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
240
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
241
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
242
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
243
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
244
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export namespace IsMovingRequest {
|
|
248
|
+
export type AsObject = {
|
|
249
|
+
name: string,
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export class IsMovingResponse extends jspb.Message {
|
|
254
|
+
getIsMoving(): boolean;
|
|
255
|
+
setIsMoving(value: boolean): void;
|
|
256
|
+
|
|
257
|
+
serializeBinary(): Uint8Array;
|
|
258
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
259
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
260
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
261
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
262
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
263
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
264
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export namespace IsMovingResponse {
|
|
268
|
+
export type AsObject = {
|
|
269
|
+
isMoving: boolean,
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
@@ -40,12 +40,22 @@ type GantryServiceStop = {
|
|
|
40
40
|
readonly responseType: typeof component_gantry_v1_gantry_pb.StopResponse;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
type GantryServiceIsMoving = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof GantryService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof component_gantry_v1_gantry_pb.IsMovingRequest;
|
|
49
|
+
readonly responseType: typeof component_gantry_v1_gantry_pb.IsMovingResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
43
52
|
export class GantryService {
|
|
44
53
|
static readonly serviceName: string;
|
|
45
54
|
static readonly GetPosition: GantryServiceGetPosition;
|
|
46
55
|
static readonly MoveToPosition: GantryServiceMoveToPosition;
|
|
47
56
|
static readonly GetLengths: GantryServiceGetLengths;
|
|
48
57
|
static readonly Stop: GantryServiceStop;
|
|
58
|
+
static readonly IsMoving: GantryServiceIsMoving;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -116,5 +126,14 @@ export class GantryServiceClient {
|
|
|
116
126
|
requestMessage: component_gantry_v1_gantry_pb.StopRequest,
|
|
117
127
|
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.StopResponse|null) => void
|
|
118
128
|
): UnaryResponse;
|
|
129
|
+
isMoving(
|
|
130
|
+
requestMessage: component_gantry_v1_gantry_pb.IsMovingRequest,
|
|
131
|
+
metadata: grpc.Metadata,
|
|
132
|
+
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.IsMovingResponse|null) => void
|
|
133
|
+
): UnaryResponse;
|
|
134
|
+
isMoving(
|
|
135
|
+
requestMessage: component_gantry_v1_gantry_pb.IsMovingRequest,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.IsMovingResponse|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
119
138
|
}
|
|
120
139
|
|
|
@@ -40,12 +40,22 @@ type GantryServiceStop = {
|
|
|
40
40
|
readonly responseType: typeof component_gantry_v1_gantry_pb.StopResponse;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
type GantryServiceIsMoving = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof GantryService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof component_gantry_v1_gantry_pb.IsMovingRequest;
|
|
49
|
+
readonly responseType: typeof component_gantry_v1_gantry_pb.IsMovingResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
43
52
|
export class GantryService {
|
|
44
53
|
static readonly serviceName: string;
|
|
45
54
|
static readonly GetPosition: GantryServiceGetPosition;
|
|
46
55
|
static readonly MoveToPosition: GantryServiceMoveToPosition;
|
|
47
56
|
static readonly GetLengths: GantryServiceGetLengths;
|
|
48
57
|
static readonly Stop: GantryServiceStop;
|
|
58
|
+
static readonly IsMoving: GantryServiceIsMoving;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -116,5 +126,14 @@ export class GantryServiceClient {
|
|
|
116
126
|
requestMessage: component_gantry_v1_gantry_pb.StopRequest,
|
|
117
127
|
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.StopResponse|null) => void
|
|
118
128
|
): UnaryResponse;
|
|
129
|
+
isMoving(
|
|
130
|
+
requestMessage: component_gantry_v1_gantry_pb.IsMovingRequest,
|
|
131
|
+
metadata: grpc.Metadata,
|
|
132
|
+
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.IsMovingResponse|null) => void
|
|
133
|
+
): UnaryResponse;
|
|
134
|
+
isMoving(
|
|
135
|
+
requestMessage: component_gantry_v1_gantry_pb.IsMovingRequest,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: component_gantry_v1_gantry_pb.IsMovingResponse|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
119
138
|
}
|
|
120
139
|
|
|
@@ -142,3 +142,43 @@ export namespace StopResponse {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
export class IsMovingRequest extends jspb.Message {
|
|
146
|
+
getName(): string;
|
|
147
|
+
setName(value: string): void;
|
|
148
|
+
|
|
149
|
+
serializeBinary(): Uint8Array;
|
|
150
|
+
toObject(includeInstance?: boolean): IsMovingRequest.AsObject;
|
|
151
|
+
static toObject(includeInstance: boolean, msg: IsMovingRequest): IsMovingRequest.AsObject;
|
|
152
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
153
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
154
|
+
static serializeBinaryToWriter(message: IsMovingRequest, writer: jspb.BinaryWriter): void;
|
|
155
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingRequest;
|
|
156
|
+
static deserializeBinaryFromReader(message: IsMovingRequest, reader: jspb.BinaryReader): IsMovingRequest;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace IsMovingRequest {
|
|
160
|
+
export type AsObject = {
|
|
161
|
+
name: string,
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class IsMovingResponse extends jspb.Message {
|
|
166
|
+
getIsMoving(): boolean;
|
|
167
|
+
setIsMoving(value: boolean): void;
|
|
168
|
+
|
|
169
|
+
serializeBinary(): Uint8Array;
|
|
170
|
+
toObject(includeInstance?: boolean): IsMovingResponse.AsObject;
|
|
171
|
+
static toObject(includeInstance: boolean, msg: IsMovingResponse): IsMovingResponse.AsObject;
|
|
172
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
173
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
174
|
+
static serializeBinaryToWriter(message: IsMovingResponse, writer: jspb.BinaryWriter): void;
|
|
175
|
+
static deserializeBinary(bytes: Uint8Array): IsMovingResponse;
|
|
176
|
+
static deserializeBinaryFromReader(message: IsMovingResponse, reader: jspb.BinaryReader): IsMovingResponse;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export namespace IsMovingResponse {
|
|
180
|
+
export type AsObject = {
|
|
181
|
+
isMoving: boolean,
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|