Marker Spin

This commit is contained in:
chk
2026-06-15 23:06:04 +02:00
parent 487d35473a
commit e8b48d17b5
2 changed files with 4 additions and 4 deletions

View File

@@ -406,7 +406,7 @@ function buildSkeletonFK(robot, angles) {
if (c0) {
const obsCorner0W = new THREE.Vector3(c0[0], c0[2], -c0[1]);
gArmMarkers.add(makeLine(obsPosW, obsCorner0W, obsCol, 0.85));
gArmMarkers.add(makeSphere(obsCorner0W, 0.006, obsCol));
gArmMarkers.add(makeSphere(obsCorner0W, 0.0012, obsCol));
}
// Beobachtungs-Normale (weißer Pfeil)
@@ -416,7 +416,7 @@ function buildSkeletonFK(robot, angles) {
const arrowLen = (modelM.size ?? 25) * S * 1.5;
const obsNormalEnd = obsPosW.clone().add(obsNormalW.multiplyScalar(arrowLen));
gArmMarkers.add(makeLine(obsPosW, obsNormalEnd, 0xffffff, 0.55));
gArmMarkers.add(makeSphere(obsNormalEnd, 0.005, 0xffffff));
gArmMarkers.add(makeSphere(obsNormalEnd, 0.001, 0xffffff));
}
}
}

View File

@@ -292,8 +292,8 @@
},
"skeleton": {"from": [0, 0, 0], "to": [0, -250, 0], "radius": 4, "color": [0.2, 0.2, 0.9]},
"markers": [
{"id": 198, "name": "aruco_198", "position": [0, -160, 35], "normal": [0, 0, 1], "size": 25, "spin": 0},
{"id": 229, "name": "aruco_229", "position": [0, -250, 35], "normal": [0, 0, 1], "size": 25, "spin": 0},
{"id": 198, "name": "aruco_198", "position": [0, -160, 35], "normal": [0, 0, 1], "size": 25, "spin": 90},
{"id": 229, "name": "aruco_229", "position": [0, -250, 35], "normal": [0, 0, 1], "size": 25, "spin": 90},
{"id": 242, "name": "aruco_242", "position": [0, -250, -35], "normal": [0, 0, -1], "size": 25, "spin": 0},
{"id": 243, "name": "aruco_243", "position": [0, -285, 0], "normal": [0, -1, 0], "size": 25, "spin": 0},
{"id": 197, "name": "aruco_198", "position": [-35, -250, 0], "normal": [-1, 0, 0], "size": 25, "spin": 0}