From e8b48d17b545e323429f57622fd21143d218cb7c Mon Sep 17 00:00:00 2001 From: chk <79915315+ChKendel@users.noreply.github.com> Date: Mon, 15 Jun 2026 23:06:04 +0200 Subject: [PATCH] Marker Spin --- public/boardViewer.html | 4 ++-- scripts/robot_1781069752019.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/boardViewer.html b/public/boardViewer.html index 491bb09..403e9a6 100644 --- a/public/boardViewer.html +++ b/public/boardViewer.html @@ -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)); } } } diff --git a/scripts/robot_1781069752019.json b/scripts/robot_1781069752019.json index 8a2885f..dee59b2 100644 --- a/scripts/robot_1781069752019.json +++ b/scripts/robot_1781069752019.json @@ -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}