@formant/data-sdk 0.0.54 → 0.0.58
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.
|
@@ -24,11 +24,17 @@ export interface Command {
|
|
|
24
24
|
topic?: string;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
export interface IJointState {
|
|
28
|
+
name: string[];
|
|
29
|
+
position: number[];
|
|
30
|
+
velocity?: number[];
|
|
31
|
+
effort?: number[];
|
|
32
|
+
}
|
|
27
33
|
export interface TelemetryStream {
|
|
28
34
|
name: string;
|
|
29
35
|
onDemand: boolean;
|
|
30
36
|
}
|
|
31
|
-
export declare type
|
|
37
|
+
export declare type RealtimeMessage = {
|
|
32
38
|
header: {
|
|
33
39
|
created: number;
|
|
34
40
|
stream: {
|
|
@@ -38,7 +44,8 @@ export declare type RealtimeListener = (peerId: string, message: {
|
|
|
38
44
|
};
|
|
39
45
|
};
|
|
40
46
|
payload: any;
|
|
41
|
-
}
|
|
47
|
+
};
|
|
48
|
+
export declare type RealtimeListener = (peerId: string, message: RealtimeMessage) => void;
|
|
42
49
|
export declare type RealtimeVideoStream = {
|
|
43
50
|
name: string;
|
|
44
51
|
};
|
|
@@ -28,4 +28,5 @@ export declare class Fleet {
|
|
|
28
28
|
static getTelemetry(deviceIdOrDeviceIds: string | string[], streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
|
|
29
29
|
[key in string]: string[];
|
|
30
30
|
}): Promise<TelemetryResult[]>;
|
|
31
|
+
static getFileUrl(uuid: string): Promise<string>;
|
|
31
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Device, RealtimeDataStream } from "./Device";
|
|
1
|
+
import { Device, RealtimeDataStream, IJointState, RealtimeMessage } from "./Device";
|
|
2
2
|
export declare type RealtimeManipulatorConfig = {
|
|
3
3
|
currentJointStateStream: RealtimeDataStream;
|
|
4
4
|
plannedJointStateStream?: RealtimeDataStream;
|
|
@@ -11,6 +11,10 @@ export declare type RealtimeManipulatorConfig = {
|
|
|
11
11
|
export declare class Manipulator {
|
|
12
12
|
private device;
|
|
13
13
|
private config;
|
|
14
|
+
currentListeners: ((js: IJointState) => void)[];
|
|
14
15
|
constructor(device: Device, config: RealtimeManipulatorConfig);
|
|
15
16
|
synchronize(): Promise<void>;
|
|
17
|
+
desynchronize(): Promise<void>;
|
|
18
|
+
onRealtimeMessage: (_peerId: string, message: RealtimeMessage) => void;
|
|
19
|
+
addCurrentJointStateListener(listener: (js: IJointState) => void): Promise<void>;
|
|
16
20
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"require": "./dist/data-sdk.umd.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.58",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite --port 9146",
|
|
24
24
|
"build": "tsc && vite build",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@types/google-protobuf": "^3.15.5",
|
|
37
|
-
"@formant/realtime-sdk": "0.0.
|
|
37
|
+
"@formant/realtime-sdk": "0.0.5"
|
|
38
38
|
}
|
|
39
39
|
}
|