urdf-loader 0.12.5 → 0.12.6
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/package.json +1 -1
- package/src/URDFClasses.d.ts +23 -19
- package/src/URDFLoader.d.ts +1 -1
package/package.json
CHANGED
package/src/URDFClasses.d.ts
CHANGED
|
@@ -1,52 +1,56 @@
|
|
|
1
1
|
import { Object3D, Vector3 } from 'three';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare class URDFBase extends Object3D {
|
|
4
4
|
|
|
5
|
-
isURDFCollider: true;
|
|
6
5
|
urdfNode: Element | null;
|
|
6
|
+
urdfName: string;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class URDFCollider extends URDFBase {
|
|
11
|
+
|
|
12
|
+
isURDFCollider: true;
|
|
7
13
|
|
|
8
14
|
}
|
|
9
15
|
|
|
10
|
-
export
|
|
16
|
+
export class URDFVisual extends URDFBase {
|
|
11
17
|
|
|
12
18
|
isURDFVisual: true;
|
|
13
|
-
urdfNode: Element | null;
|
|
14
19
|
|
|
15
20
|
}
|
|
16
21
|
|
|
17
|
-
export
|
|
22
|
+
export class URDFLink extends URDFBase {
|
|
18
23
|
|
|
19
24
|
isURDFLink: true;
|
|
20
|
-
urdfNode: Element | null;
|
|
21
25
|
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
export
|
|
28
|
+
export class URDFJoint extends URDFBase {
|
|
25
29
|
|
|
26
30
|
isURDFJoint: true;
|
|
27
31
|
|
|
28
32
|
urdfNode: Element | null;
|
|
29
33
|
axis: Vector3;
|
|
30
34
|
jointType: 'fixed' | 'continuous' | 'revolute' | 'planar' | 'prismatic' | 'floating';
|
|
31
|
-
angle:
|
|
32
|
-
jointValue:
|
|
33
|
-
limit: { lower:
|
|
34
|
-
ignoreLimits:
|
|
35
|
+
angle: number;
|
|
36
|
+
jointValue: number[];
|
|
37
|
+
limit: { lower: number, upper: number }; // TODO: add more
|
|
38
|
+
ignoreLimits: boolean;
|
|
35
39
|
mimicJoints: URDFMimicJoint[];
|
|
36
40
|
|
|
37
41
|
setJointValue(...values: (number | null)[]): boolean;
|
|
38
42
|
|
|
39
43
|
}
|
|
40
44
|
|
|
41
|
-
export
|
|
45
|
+
export class URDFMimicJoint extends URDFJoint {
|
|
42
46
|
|
|
43
|
-
mimicJoint
|
|
44
|
-
offset:
|
|
45
|
-
multiplier:
|
|
47
|
+
mimicJoint: string;
|
|
48
|
+
offset: number;
|
|
49
|
+
multiplier: number;
|
|
46
50
|
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
export
|
|
53
|
+
export class URDFRobot extends URDFLink {
|
|
50
54
|
|
|
51
55
|
isURDFRobot: true;
|
|
52
56
|
|
|
@@ -59,8 +63,8 @@ export interface URDFRobot extends URDFLink {
|
|
|
59
63
|
visual: { [ key: string ]: URDFVisual };
|
|
60
64
|
frames: { [ key: string ]: Object3D };
|
|
61
65
|
|
|
62
|
-
setJointValue(jointName:
|
|
63
|
-
setJointValues(values: { [ key: string ]:
|
|
64
|
-
getFrame(name:
|
|
66
|
+
setJointValue(jointName: string, ...values: number[]): boolean;
|
|
67
|
+
setJointValues(values: { [ key: string ]: number | number[] }): boolean;
|
|
68
|
+
getFrame(name: string): Object3D;
|
|
65
69
|
|
|
66
70
|
}
|