@wandelbots/wandelbots-js-react-components 2.5.1 → 2.6.0-pr.bugfix-remove-test-for-6-axis.223.8d0120f
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wandelbots/wandelbots-js-react-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0-pr.bugfix-remove-test-for-6-axis.223.8d0120f",
|
|
4
4
|
"description": "React UI toolkit for building applications on top of the Wandelbots platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,12 +48,6 @@ export function parseRobotModel(gltf: GLTF, filename: string): { gltf: GLTF } {
|
|
|
48
48
|
let flange: Object3D | undefined
|
|
49
49
|
const joints: Object3D[] = []
|
|
50
50
|
|
|
51
|
-
function isSixJoints(
|
|
52
|
-
joints: Object3D[],
|
|
53
|
-
): joints is [Object3D, Object3D, Object3D, Object3D, Object3D, Object3D] {
|
|
54
|
-
return joints.length === 6
|
|
55
|
-
}
|
|
56
|
-
|
|
57
51
|
function parseNode(node: Object3D) {
|
|
58
52
|
if (isFlange(node)) {
|
|
59
53
|
if (flange) {
|
|
@@ -74,12 +68,6 @@ export function parseRobotModel(gltf: GLTF, filename: string): { gltf: GLTF } {
|
|
|
74
68
|
|
|
75
69
|
parseNode(gltf.scene)
|
|
76
70
|
|
|
77
|
-
if (!isSixJoints(joints)) {
|
|
78
|
-
throw Error(
|
|
79
|
-
`Expected to find 6 joint groups in robot model ${filename} with names _J01, _J02 etc, found ${joints.length}. Only 6-joint robot models are currently supported.`,
|
|
80
|
-
)
|
|
81
|
-
}
|
|
82
|
-
|
|
83
71
|
if (!flange) {
|
|
84
72
|
throw Error(
|
|
85
73
|
`No flange group found in robot model ${filename}. Flange must be identified with a name ending in _FLG.`,
|