@viamrobotics/sdk 0.0.3 → 0.0.5
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/Client.d.ts +76 -0
- package/dist/main.es.js +1 -1
- package/dist/main.umd.js +1 -1
- package/package.json +3 -2
package/dist/Client.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Credentials } from '@viamrobotics/rpc/src/dial';
|
|
2
|
+
import { ArmServiceClient } from './gen/component/arm/v1/arm_pb_service.esm';
|
|
3
|
+
import { BaseServiceClient } from './gen/component/base/v1/base_pb_service.esm';
|
|
4
|
+
import { BoardServiceClient } from './gen/component/board/v1/board_pb_service.esm';
|
|
5
|
+
import { CameraServiceClient } from './gen/component/camera/v1/camera_pb_service.esm';
|
|
6
|
+
import { GantryServiceClient } from './gen/component/gantry/v1/gantry_pb_service.esm';
|
|
7
|
+
import { GenericServiceClient } from './gen/component/generic/v1/generic_pb_service.esm';
|
|
8
|
+
import { GripperServiceClient } from './gen/component/gripper/v1/gripper_pb_service.esm';
|
|
9
|
+
import { InputControllerServiceClient } from './gen/component/inputcontroller/v1/input_controller_pb_service.esm';
|
|
10
|
+
import { MotionServiceClient } from './gen/service/motion/v1/motion_pb_service.esm';
|
|
11
|
+
import { MotorServiceClient } from './gen/component/motor/v1/motor_pb_service.esm';
|
|
12
|
+
import { MovementSensorServiceClient } from './gen/component/movementsensor/v1/movementsensor_pb_service.esm';
|
|
13
|
+
import { NavigationServiceClient } from './gen/service/navigation/v1/navigation_pb_service.esm';
|
|
14
|
+
import { RobotServiceClient } from './gen/robot/v1/robot_pb_service.esm';
|
|
15
|
+
import { SLAMServiceClient } from './gen/service/slam/v1/slam_pb_service.esm';
|
|
16
|
+
import { SensorsServiceClient } from './gen/service/sensors/v1/sensors_pb_service.esm';
|
|
17
|
+
import { ServoServiceClient } from './gen/component/servo/v1/servo_pb_service.esm';
|
|
18
|
+
import { StreamServiceClient } from './gen/proto/stream/v1/stream_pb_service.esm';
|
|
19
|
+
import { VisionServiceClient } from './gen/service/vision/v1/vision_pb_service.esm';
|
|
20
|
+
interface WebRTCOptions {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
host: string;
|
|
23
|
+
signalingAddress: string;
|
|
24
|
+
rtcConfig: RTCConfiguration | undefined;
|
|
25
|
+
}
|
|
26
|
+
export default class Client {
|
|
27
|
+
private readonly serviceHost;
|
|
28
|
+
private readonly webrtcOptions;
|
|
29
|
+
private peerConn;
|
|
30
|
+
private transportFactory;
|
|
31
|
+
private connecting;
|
|
32
|
+
private connectResolve;
|
|
33
|
+
private savedAuthEntity;
|
|
34
|
+
private savedCreds;
|
|
35
|
+
private streamServiceClient;
|
|
36
|
+
private robotServiceClient;
|
|
37
|
+
private armServiceClient;
|
|
38
|
+
private baseServiceClient;
|
|
39
|
+
private boardServiceClient;
|
|
40
|
+
private cameraServiceClient;
|
|
41
|
+
private gantryServiceClient;
|
|
42
|
+
private genericServiceClient;
|
|
43
|
+
private gripperServiceClient;
|
|
44
|
+
private movementSensorServiceClient;
|
|
45
|
+
private inputControllerServiceClient;
|
|
46
|
+
private motorServiceClient;
|
|
47
|
+
private navigationServiceClient;
|
|
48
|
+
private motionServiceClient;
|
|
49
|
+
private visionServiceClient;
|
|
50
|
+
private sensorsServiceClient;
|
|
51
|
+
private servoServiceClient;
|
|
52
|
+
private slamServiceClient;
|
|
53
|
+
constructor(serviceHost: string, webrtcOptions?: WebRTCOptions);
|
|
54
|
+
private static readonly notConnectedYetStr;
|
|
55
|
+
get streamService(): StreamServiceClient;
|
|
56
|
+
get robotService(): RobotServiceClient;
|
|
57
|
+
get armService(): ArmServiceClient;
|
|
58
|
+
get baseService(): BaseServiceClient;
|
|
59
|
+
get boardService(): BoardServiceClient;
|
|
60
|
+
get cameraService(): CameraServiceClient;
|
|
61
|
+
get gantryService(): GantryServiceClient;
|
|
62
|
+
get genericService(): GenericServiceClient;
|
|
63
|
+
get gripperService(): GripperServiceClient;
|
|
64
|
+
get movementSensorService(): MovementSensorServiceClient;
|
|
65
|
+
get inputControllerService(): InputControllerServiceClient;
|
|
66
|
+
get motorService(): MotorServiceClient;
|
|
67
|
+
get navigationService(): NavigationServiceClient;
|
|
68
|
+
get motionService(): MotionServiceClient;
|
|
69
|
+
get visionService(): VisionServiceClient;
|
|
70
|
+
get sensorsService(): SensorsServiceClient;
|
|
71
|
+
get servoService(): ServoServiceClient;
|
|
72
|
+
get slamService(): SLAMServiceClient;
|
|
73
|
+
disconnect(): Promise<void>;
|
|
74
|
+
connect(authEntity?: string | undefined, creds?: Credentials | undefined): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
package/dist/main.es.js
CHANGED
|
@@ -7337,7 +7337,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
7337
7337
|
var l = n.call(this, p) || this;
|
|
7338
7338
|
return Object.setPrototypeOf(l, g.prototype), l;
|
|
7339
7339
|
}
|
|
7340
|
-
return s.__extends(g, n), Object.defineProperty(g, "
|
|
7340
|
+
return s.__extends(g, n), Object.defineProperty(g, "isError", { enumerable: !1, configurable: !0, writable: !0, value: function(p) {
|
|
7341
7341
|
return p instanceof g || (typeof p == "string" ? p === "Response closed without headers" : p instanceof Error && p.message === "Response closed without headers");
|
|
7342
7342
|
} }), g;
|
|
7343
7343
|
}(Error);
|