From da6e2e8f71bff034abee7f83dd4fb2760e5b4639 Mon Sep 17 00:00:00 2001 From: Cutshion Date: Thu, 26 Nov 2026 10:35:11 +0900 Subject: [PATCH] Update gripper look Co-Authored-By: Claude Opus 5.5 --- sim/sorting/build.py | 33 ++++++++++++++++++++++++++--- sim/sorting/sorting.xml | 46 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 72 insertions(+), 7 deletions(-) diff --git a/sim/sorting/build.py b/sim/sorting/build.py index cf33674..44e5dbb 100644 --- a/sim/sorting/build.py +++ b/sim/sorting/build.py @@ -255,6 +255,17 @@ def gripper_xml(): f' ', f' ', f' '] + # looks only (owner's photos 2026-11-25): the aluminium adapter's chamfered rim and two screws, the Zimmer's two + # housings with the seam between them, its white side cover, the label, the cable plug and the jaw guides + mid = top + 0.070 # the seam between the motor housing and the jaw housing + L += [f' ', + *[f' ' for y in (-0.016, 0.016)], + f' ', + f' ', + f' ', + f' ', + f' '] for side, s in (("l", +1), ("r", -1)): y_in = GAP_CLOSED / 2 # gripping face, closed ys = lambda a, b: (s * a, s * b) @@ -266,6 +277,14 @@ def gripper_xml(): L.append(f' ') L.append(f' ') L.append(f' ') + yc = s * (y_in + (PAD_T + FINGER_T) / 2) + L += [f' ', + f' ', + f' ', + *[f' ' + for z in [PAD_Z[0] + 0.004 + 0.006 * k for k in range(8)]]] L.append(' ') L.append('') return L @@ -309,11 +328,18 @@ def build(): x.append(' ') x.append(' ') x.append(' ') - for name, rgba in (("white", "0.92 0.93 0.94 1"), ("black", "0.08 0.08 0.09 1"), ("alu", "0.75 0.76 0.78 1"), - ("zimmer", "0.10 0.10 0.11 1"), ("steel", "0.70 0.70 0.72 1"), ("finger", "0.12 0.12 0.13 1"), + for name, rgba in (("white", "0.92 0.93 0.94 1"), ("black", "0.08 0.08 0.09 1"), ("alu", "0.80 0.81 0.83 1"), + ("zimmer", "0.07 0.07 0.08 1"), ("steel", "0.74 0.75 0.77 1"), ("finger", "0.09 0.09 0.10 1"), ("pad", "0.05 0.05 0.05 1"), ("table", "0.55 0.56 0.58 1"), ("tray", "0.36 0.22 0.15 1"), ("box", "0.94 0.94 0.92 1")): - x.append(f' ') + shiny = {"alu": ' specular="0.8" shininess="0.7"', "steel": ' specular="1" shininess="0.9"'}.get(name, "") + x.append(f' ') + # the gripper's finishes (owner's photos): brushed aluminium, shiny steel, matte black print, a light label + for name, rgba, spec, shine in (("screw", "0.55 0.56 0.58 1", 0.9, 0.9), ("seam", "0.02 0.02 0.02 1", 0.1, 0.1), + ("cover", "0.86 0.87 0.88 1", 0.3, 0.4), ("label", "0.93 0.90 0.86 1", 0.1, 0.2), + ("zlogo", "0.10 0.35 0.75 1", 0.1, 0.2), ("slot", "0.62 0.63 0.65 1", 0.6, 0.6), + ("pad_rib", "0.16 0.16 0.17 1", 0.05, 0.1)): + x.append(f' ') x.append(' ') x.append(' ') x.append(' ') @@ -321,6 +347,7 @@ def build(): # first link sits inside the column's collision cylinder x.append(' ') x.append(' ') + x.append(' ') x.append(' ') x.append(' ') x.append(' ') diff --git a/sim/sorting/sorting.xml b/sim/sorting/sorting.xml index e740d99..bc85ab4 100644 --- a/sim/sorting/sorting.xml +++ b/sim/sorting/sorting.xml @@ -76,19 +76,27 @@ - - - - + + + + + + + + + + + + @@ -164,6 +172,14 @@ + + + + + + + + @@ -171,6 +187,17 @@ + + + + + + + + + + + @@ -179,6 +206,17 @@ + + + + + + + + + + +