{
 "made_by": "so101/sim/look_391/fit_391.py (依頼 391)",
 "how": "依頼 391: 箱の上・離す・戻る の手首の絵で 箱の縁 (実機の Canny の縁) と シムの箱の縁 (box_391 で写した線) を合わせ,\n(1) コマごとの 箱のずれ (画素の平行移動) と 段階ごとの手首カメラの位置・向きのずれ,\n(2) 関節の角度のずれ (joint_offset_342 からの足し分) を 形を変えて当てはめる (偶数の 25 本で決め 奇数の 25 本で確かめる. 依頼 369 と同じ).\n\n- シムの手首カメラ = MuJoCo (export_372 と同じ用意. 依頼 372 の poses.json の手首カメラと差 0 を確かめた) に\n  実機の読んだ角度 + joint_offset_342 + 足し分 Δ を入れたもの. 箱は poses.json の box_floor (render_368 と同じ置き方)\n- 合わせの値: 縁の点ごとの 実機の縁までの距離 (頭打ち T px) の二乗の平均. 絵の外に出た点は T. 見える点は 足し分 0 のときで決めて固定\n  T は 40 → 20 → 12 と小さくする (遠い所から寄せる). 段階 (箱の上・離す・戻る) ごとに 重みを等しく\n- 形:\n  const   5 つの関節に 一定の足し分 (肩の回転・肩・肘・手首の曲げ・手首の回転)\n  grav    一定 + 重さの回転力 (MuJoCo の qfrc_bias. 速さ 0) に比例 (肩・肘・手首の曲げ. 重さで沈む)\n  lin     一定 + その関節の角度に比例 (肩・肘・手首の曲げ. 目盛りの倍率のずれ)\n  lag     絵と角度の時間のずれ (コマ. 角度を前後のコマで補間) だけ / lag+const\n- 確かめ: 奇数の本の 段階ごとの 縁の距離の中央値 (px. 点ごとの距離 12px 頭打ち の平均の コマの中央値) と\n  コマごとの 箱の画素のずれ (平行移動で合わせた量) の中央値\n\n使い方 (conda の lerobot 環境で): python so101/sim/look_391/fit_391.py → look_391/fit_391.json",
 "joint_offset_342": {
  "wrist_roll": -6.6,
  "wrist_flex": -3.4
 },
 "joints": [
  "shoulder_pan",
  "shoulder_lift",
  "elbow_flex",
  "wrist_flex",
  "wrist_roll"
 ],
 "frames": {
  "even": 657,
  "odd": 656
 },
 "fits": {
  "const": {
   "p": [
    0.6793,
    -2.0304,
    1.1829,
    0.9504,
    -1.1188
   ],
   "even": {
    "ABOVE_BOX": {
     "frames": 307,
     "edge_median_px": 7.146,
     "shift_median_dx": 5.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 8.1,
     "shift_within15": 0.655
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.232,
     "shift_median_dx": -1.0,
     "shift_median_dy": 5.0,
     "shift_norm_median": 6.3,
     "shift_within15": 0.594
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.763,
     "shift_median_dx": -57.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 65.6,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 657,
     "edge_median_px": 8.866,
     "shift_median_dx": 1.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 19.1,
     "shift_within15": 0.464
    }
   },
   "odd": {
    "ABOVE_BOX": {
     "frames": 306,
     "edge_median_px": 7.196,
     "shift_median_dx": 5.0,
     "shift_median_dy": 4.0,
     "shift_norm_median": 7.8,
     "shift_within15": 0.65
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.29,
     "shift_median_dx": -2.0,
     "shift_median_dy": 5.0,
     "shift_norm_median": 6.7,
     "shift_within15": 0.589
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.751,
     "shift_median_dx": -58.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 68.2,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 656,
     "edge_median_px": 8.762,
     "shift_median_dx": 1.0,
     "shift_median_dy": 4.0,
     "shift_norm_median": 19.4,
     "shift_within15": 0.46
    }
   }
  },
  "grav": {
   "p": [
    0.9387,
    -0.0975,
    3.5035,
    -0.3636,
    -1.9028,
    6.6085,
    1.8242,
    -4.8822
   ],
   "even": {
    "ABOVE_BOX": {
     "frames": 307,
     "edge_median_px": 7.339,
     "shift_median_dx": 7.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 8.5,
     "shift_within15": 0.642
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.636,
     "shift_median_dx": -1.0,
     "shift_median_dy": 2.0,
     "shift_norm_median": 6.1,
     "shift_within15": 0.606
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.433,
     "shift_median_dx": -62.0,
     "shift_median_dy": 14.0,
     "shift_norm_median": 68.2,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 657,
     "edge_median_px": 9.126,
     "shift_median_dx": 1.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 19.6,
     "shift_within15": 0.461
    }
   },
   "odd": {
    "ABOVE_BOX": {
     "frames": 306,
     "edge_median_px": 7.332,
     "shift_median_dx": 6.0,
     "shift_median_dy": 2.0,
     "shift_norm_median": 8.2,
     "shift_within15": 0.647
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.782,
     "shift_median_dx": -2.0,
     "shift_median_dy": 2.0,
     "shift_norm_median": 6.7,
     "shift_within15": 0.589
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.562,
     "shift_median_dx": -65.0,
     "shift_median_dy": 13.0,
     "shift_norm_median": 72.4,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 656,
     "edge_median_px": 8.846,
     "shift_median_dx": 1.0,
     "shift_median_dy": 4.0,
     "shift_norm_median": 21.1,
     "shift_within15": 0.459
    }
   }
  },
  "lin": {
   "p": [
    0.9783,
    -5.2524,
    4.2629,
    0.3266,
    -1.1424,
    -0.3641,
    5.3523,
    -3.8126
   ],
   "even": {
    "ABOVE_BOX": {
     "frames": 307,
     "edge_median_px": 7.181,
     "shift_median_dx": 6.0,
     "shift_median_dy": -2.0,
     "shift_norm_median": 8.5,
     "shift_within15": 0.642
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.529,
     "shift_median_dx": 0.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 5.8,
     "shift_within15": 0.617
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.262,
     "shift_median_dx": -62.0,
     "shift_median_dy": 24.0,
     "shift_norm_median": 74.0,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 657,
     "edge_median_px": 8.898,
     "shift_median_dx": 2.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 20.8,
     "shift_within15": 0.464
    }
   },
   "odd": {
    "ABOVE_BOX": {
     "frames": 306,
     "edge_median_px": 7.133,
     "shift_median_dx": 6.0,
     "shift_median_dy": -1.0,
     "shift_norm_median": 8.0,
     "shift_within15": 0.647
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 6.618,
     "shift_median_dx": -1.0,
     "shift_median_dy": 4.0,
     "shift_norm_median": 6.7,
     "shift_within15": 0.594
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.363,
     "shift_median_dx": -65.0,
     "shift_median_dy": 23.0,
     "shift_norm_median": 76.7,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 656,
     "edge_median_px": 8.991,
     "shift_median_dx": 2.0,
     "shift_median_dy": 2.0,
     "shift_norm_median": 20.8,
     "shift_within15": 0.46
    }
   }
  },
  "lag": {
   "p": [
    -0.4878
   ],
   "even": {
    "ABOVE_BOX": {
     "frames": 307,
     "edge_median_px": 7.929,
     "shift_median_dx": -5.0,
     "shift_median_dy": -8.0,
     "shift_norm_median": 12.0,
     "shift_within15": 0.658
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 8.038,
     "shift_median_dx": -10.0,
     "shift_median_dy": -7.0,
     "shift_norm_median": 15.3,
     "shift_within15": 0.474
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.776,
     "shift_median_dx": -50.0,
     "shift_median_dy": -8.0,
     "shift_norm_median": 58.3,
     "shift_within15": 0.006
    },
    "all": {
     "frames": 657,
     "edge_median_px": 8.864,
     "shift_median_dx": -8.0,
     "shift_median_dy": -7.0,
     "shift_norm_median": 17.9,
     "shift_within15": 0.435
    }
   },
   "odd": {
    "ABOVE_BOX": {
     "frames": 306,
     "edge_median_px": 7.845,
     "shift_median_dx": -6.0,
     "shift_median_dy": -7.0,
     "shift_norm_median": 12.0,
     "shift_within15": 0.65
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 8.146,
     "shift_median_dx": -10.0,
     "shift_median_dy": -7.0,
     "shift_norm_median": 15.7,
     "shift_within15": 0.469
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 11.771,
     "shift_median_dx": -49.0,
     "shift_median_dy": -8.0,
     "shift_norm_median": 60.3,
     "shift_within15": 0.0
    },
    "all": {
     "frames": 656,
     "edge_median_px": 8.916,
     "shift_median_dx": -8.0,
     "shift_median_dy": -7.0,
     "shift_norm_median": 18.0,
     "shift_within15": 0.428
    }
   }
  },
  "lag_const": {
   "p": [
    -1.2876,
    0.7359,
    -2.3871,
    1.5219,
    0.3994,
    0.1923
   ],
   "even": {
    "ABOVE_BOX": {
     "frames": 307,
     "edge_median_px": 6.594,
     "shift_median_dx": 4.0,
     "shift_median_dy": 0.0,
     "shift_norm_median": 5.0,
     "shift_within15": 0.805
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 5.898,
     "shift_median_dx": 4.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 6.0,
     "shift_within15": 0.966
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 10.749,
     "shift_median_dx": -15.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 27.0,
     "shift_within15": 0.32
    },
    "all": {
     "frames": 657,
     "edge_median_px": 7.095,
     "shift_median_dx": 3.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 6.3,
     "shift_within15": 0.718
    }
   },
   "odd": {
    "ABOVE_BOX": {
     "frames": 306,
     "edge_median_px": 6.594,
     "shift_median_dx": 4.0,
     "shift_median_dy": 0.0,
     "shift_norm_median": 5.0,
     "shift_within15": 0.797
    },
    "RELEASE": {
     "frames": 175,
     "edge_median_px": 5.859,
     "shift_median_dx": 4.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 6.1,
     "shift_within15": 0.954
    },
    "RETURN": {
     "frames": 175,
     "edge_median_px": 10.983,
     "shift_median_dx": -17.0,
     "shift_median_dy": 3.0,
     "shift_norm_median": 28.2,
     "shift_within15": 0.303
    },
    "all": {
     "frames": 656,
     "edge_median_px": 6.992,
     "shift_median_dx": 3.0,
     "shift_median_dy": 1.0,
     "shift_norm_median": 6.6,
     "shift_within15": 0.707
    }
   }
  }
 },
 "zero": {
  "even": {
   "ABOVE_BOX": {
    "frames": 307,
    "edge_median_px": 8.037,
    "shift_median_dx": -4.0,
    "shift_median_dy": -8.0,
    "shift_norm_median": 13.5,
    "shift_within15": 0.567
   },
   "RELEASE": {
    "frames": 175,
    "edge_median_px": 8.314,
    "shift_median_dx": -12.0,
    "shift_median_dy": -7.0,
    "shift_norm_median": 17.9,
    "shift_within15": 0.337
   },
   "RETURN": {
    "frames": 175,
    "edge_median_px": 11.626,
    "shift_median_dx": -68.0,
    "shift_median_dy": -14.0,
    "shift_norm_median": 74.6,
    "shift_within15": 0.0
   },
   "all": {
    "frames": 657,
    "edge_median_px": 9.347,
    "shift_median_dx": -9.0,
    "shift_median_dy": -8.0,
    "shift_norm_median": 21.6,
    "shift_within15": 0.355
   }
  },
  "odd": {
   "ABOVE_BOX": {
    "frames": 306,
    "edge_median_px": 8.046,
    "shift_median_dx": -4.0,
    "shift_median_dy": -7.0,
    "shift_norm_median": 12.9,
    "shift_within15": 0.569
   },
   "RELEASE": {
    "frames": 175,
    "edge_median_px": 8.447,
    "shift_median_dx": -12.0,
    "shift_median_dy": -7.0,
    "shift_norm_median": 17.9,
    "shift_within15": 0.377
   },
   "RETURN": {
    "frames": 175,
    "edge_median_px": 11.628,
    "shift_median_dx": -72.0,
    "shift_median_dy": -13.0,
    "shift_norm_median": 78.9,
    "shift_within15": 0.0
   },
   "all": {
    "frames": 656,
    "edge_median_px": 9.358,
    "shift_median_dx": -9.0,
    "shift_median_dy": -8.0,
    "shift_norm_median": 22.4,
    "shift_within15": 0.366
   }
  }
 }
}
