From be2b33e542b6e686d162dc2c85a72cbcd401ab60 Mon Sep 17 00:00:00 2001 From: Cutshion Date: Thu, 26 Nov 2026 10:34:59 +0900 Subject: [PATCH] Use app look in scene Co-Authored-By: Claude Opus 5.5 --- sim/sorting/build.py | 39 +++++++++++--- sim/sorting/sorting.xml | 115 ++++++++++++++++++++++++++++++++-------- 2 files changed, 125 insertions(+), 29 deletions(-) diff --git a/sim/sorting/build.py b/sim/sorting/build.py index e3531ee..cc899de 100644 --- a/sim/sorting/build.py +++ b/sim/sorting/build.py @@ -7,8 +7,10 @@ readings and taught points carry over without conversion. - Arm joints: the fitted kinematics (data/arm_kinematics.json, robot/kinematics.py): each joint's frame and zero corrected to the controller's own answers (0.2 mm). A joint's qpos is the controller's angle in radians. -- Arm meshes: JAKA's MiniCobo STEP (sim/sorting/assets/minicobo, the same files the Lumi app draws), placed with the - app's link chain (Lumi-app src/lib/armFrame.ts, fitted to the controller within ~1 mm). +- Look: the Lumi app's own 3D model (app_look.py: shell, trim, visor, red bands, green ring, JAKA lettering, + cutshion logo, cameras, lamp), each part in its link's frame; the arm's parts placed with the app's link chain + (Lumi-app src/lib/armFrame.ts, fitted to the controller within ~1 mm). +- Arm collision: JAKA's MiniCobo STEP meshes (sim/sorting/assets/minicobo, the arm in the app model). - Torso, lift, head, base: the vendor URDF meshes, placed from the arm through the URDF chain at the sorting pose (lift LIFT_M, waist WAIST_RAD, head straight). - Torso camera: the hand-eye calibration (data/camera_extrinsics.json), fovy from the factory intrinsics. @@ -26,6 +28,8 @@ from pathlib import Path import mujoco import numpy as np +import app_look + HERE = Path(__file__).resolve().parent SIM = HERE.parent REPO = SIM.parent @@ -276,12 +280,25 @@ def build(): x.append(' ') x.append(' ') x.append('