---
title: "SO-101 失敗から学ぶアームを作る Log#30 | 回したブロックの爪のずれを1つの式で直し、22回すべてつかんだ"
slug: so101-one-model-grasp-offset-22-of-22
date: 2026-12-02
day: 628
meta_description: "ロボットアーム SO-101 で回したブロックをつかむとき、爪の位置のずれを場所ごとの補正ではなく1つの式で直すと、コードだけの実機22回をすべてつかめた。学び直した π0.5（so101j）も33回試した。"
tags: [SO-101, LeRobot, 把持, 実機評価, 手首カメラ, π0.5, Physical Intelligence, Hugging Face]
series: "フィジカルAI研究室"
---

**ロボットアーム [SO-101](https://github.com/TheRobotStudio/SO-ARM100) で斜めに回して置いたブロックを、AI を使わないコードだけで実機23回つかませ、結果を記録した22回すべてでつかめた。** 爪がずれる原因は2つあった。手首の関節の角度のずれと、手首を回したときに爪先が一緒にずれて動くことだ。置き場所ごとの補正をやめ、この2つを1つの計算式に入れて直した結果である。同じ日に、斜めの置き方のお手本を足して学び直した AI モデル（Physical Intelligence の [π0.5](https://www.physicalintelligence.company/blog/pi05)、名前は so101j）も実機で33回試し、箱まで運べたのは23回だった。

1つの式に直したことで、次の3つが変わった。

- 補正が置き場所に縛られなくなった。前の回（LOG626）の補正は、机の上の置き場所2〜5 の4か所それぞれに専用の直線式を当てはめたもので、その4か所の近くでしか使えなかった。今回の式は、どの場所でも、手首をどの角度に回しても、同じ計算でつかむ位置を決める。式を作るのに使わなかった19回の実機の記録に当てはめても、平均 3mm ほどの差で当たった。
- 爪の向きのずれも減った。前の補正はつかむ位置だけを直していたため、爪はブロックに対して約 8° 斜めのままつかんでいた。今回の式で、その斜めのうち 6° ほどが手首の関節のずれで説明でき、残るずれは平均 2.7° になった。
- 直すのにかかった時間は、案を決めてから実機の22回を終えるまで約1時間20分だった。15:35 に依頼を置き、計算を作って確かめるのに約45分、実機を動かしたのは 16:22〜16:47 の約25分だ。

これまで困っていたのは、前の回の補正が当たっていても、なぜ当たるのかが分からないことだった。手首のカメラに写るブロックの高さが、手首を回した角度と直線的に変わるという見立てだけで合わせていた。その見立ては置き場所ごとに別の直線になるため、試していない場所の間や外側ではどう動くか分からない。今回は、ずれの元そのものを計算に入れた。手首の関節が実物と計算で 6.6° と 3.4° ずれていること、そして手首を回すときに爪先が 2cm ほどずれて一緒に動くことを、そのまま式に組み込んだ。

| やったこと | なぜ | 結果 |
|---|---|---|
| 前の回の補正の19回を、実際に置かれたブロックの向きで比べ直し、手首のカメラ画像で補正後の位置を測った | 補正が本当に効いたのかを、記録で確かめ直すため | 18回はブロックをつかめる範囲の真ん中近くに入っていた。1回はその範囲の端で、補正が足りていなかった。前の回の報告の数え方にも2つ誤りがあった |
| ずれの元を計算に入れた1つの式を作り、56回の実機の記録で当てはめた（依頼429） | 場所ごとの直線をやめ、どこでも使える計算にするため | 1回分のデータだけを外して式を作り、外した1回に当たるかを確かめる1つ抜き検証で、実際の位置との差は x 3.0mm・y 2.2mm だった |
| 1つの式で、AI を使わないコードだけで実機に23回流した | 場所ごとの補正なしで、前の補正と同じかそれ以上につかめるかを見るため | 結果を記録した22回すべてつかめた |
| 斜めの置き方のお手本を足した π0.5（so101j）を学習し、実機で33回試した（依頼424・430） | 前のモデルが外していた場所5 の +40° 前後をつかめるかを見るため | 場所5 の +40° 前後は5回挟めた。箱まで運べたのは全体で23回 |
| so101j がつかめたのに途中で止まった回の原因を調べた（依頼431・432） | 止まらなくてよい所で止めていたため | ブロックを持ち上げる軌道が、手首を腕の届かない角度まで曲げる形になっていた。止める許しを広げて流した6回は、全部箱まで運べた |

GPU を買うか借りるかの判断は、Runpod で実際に借りて学習させた費用をもとに、別のページにまとめています。

【バナー】gpu-buy-or-rent

【図解】LOG628_three_fixes_wrist_view.html


## 作業ログ ― この記事に出てくる言葉

ここから下は、実機のロボットアームを動かした作業ログになる。作業の依頼文と報告、アームを動かしたときのターミナルの記録、測ったデータとコードを省かずに載せる。数字は、ことわりがなければ外付けの SSD である KIOXIA の `lab/so101_Log12/so101_trials.csv` と各回の `trial.json` から取った。測った値には実際の数字を書き、まだ測っていないことには見込みと書く。

作業は Claude と [Claude Code](https://www.anthropic.com/claude-code) で役割を分けて進めた。Claude が依頼文を書き、Mac の上の Claude Code がコードを書いて試し、報告を返す。依頼文を置くと Claude Code が順に拾って動かす仕組みを、依頼箱と呼んでいる。実機のアームを動かすのは人のエイイチで、ブロックを置いて Enter を押し、つかめたかどうかを y / n で打つ。

この記事で何度も出てくる言葉を、先にまとめる。

| 言葉 | ふだんの言葉で |
|---|---|
| コードだけ（rule_401） | AI を使わず、決まった計算だけでアームを動かす方法。爪を開き、動かない側の爪（固定側の爪）をブロックから12mm 離して真下に下り、閉じてつかむ |
| 場所2〜5 | 机の上にブロックを置く目印。場所5 はアームの手首を大きく回す必要がある、いちばん端の場所 |
| 置いた向き | 上から見たブロックの回り具合。左回りが＋で、机の上のカメラが読む。立方体なので +45° と −45° は同じ置き方になる。そのため、置くように示した向きとカメラが読んだ向きが 90° ずれて出ることがある |
| 手首の回り・手首の曲げ | アームの先の、手首をねじる関節と、手首を上下に曲げる関節の角度 |
| 面 | 立方体のどの2面を挟むか。0 が通常で、±90 は90°ずらした面を挟む |
| 手首のカメラ | 爪の付け根に付いたカメラ。爪と一緒に回るので、爪から見たブロックの位置がそのまま写る |
| 写る高さ（y） | 手首のカメラの絵（縦480画素）で、赤いブロックの真ん中が写った縦の位置。小さいほど爪の先の向こう、大きいほど爪の根もと側になる。これまでの161回で、290〜365 に写った回は全部つかめていた。この記事では、この範囲を帯と呼ぶ |
| 場所ごとの補正（依頼427・案A） | 前の回の直し方。手首を回した角度と写る高さが直線で結べる関係を使い、場所ごとに計算して、つかむ位置をあらかじめずらす |
| 1つの式（依頼429・案B） | 今回の直し方。手首の関節のずれと、爪と一緒に回って生じるずれを、つかむ位置の計算そのものに組み込む |
| 切り替え方式 | ブロックの上 50mm まではコードが運び、下りて閉じる所だけを AI（π0.5）に任せる。閉じたあとの持ち上げ・運ぶ・戻るはまたコードが受け持つ形 |

### Hugging Face は、AI のモデルとデータを置いて配るサービス

[Hugging Face](https://huggingface.co/) は、学習した AI のモデルやデータセットを置いておき、ほかのマシンから取りに行けるようにするサービス。このプロジェクトでは、クラウドの GPU である [Runpod](https://www.runpod.io/) で学習したモデルを非公開で置く。実機のアームを動かすとき、動きを計算する推論用の GPU がそこからモデルを取りに行く。

| この記事で使う言葉 | 中身 |
|---|---|
| 非公開のリポジトリ | 自分だけが読めるモデルの置き場所。モデル1つで約 6.3GB ある |
| 非公開の容量 | 無料のアカウントで置ける非公開のモデルの合計の上限。今回、ここが満杯になった |
| 原本 | 大元のモデルは外付けの SSD である KIOXIA の `checkpoints/` にある。Hugging Face に置いてあるのは、Runpod 上のマシン（Pod）が取りに行くための写し |


## 前の回の補正の19回を、置かれた向きで比べ直した

前の回（LOG626）では、ロボットアームがブロックをつかむ位置を場所ごとに直す補正（依頼427）を19回試し、19回ともつかめたと報告した。この回の始めに、Claude のモデルを Fable 5.2 に切り替え、その報告をもう一度、実験の台帳と記録から数え直した。前の報告をそのまま信じず、記録で確かめるためだ。

数え直すと、前の報告に2つ誤りがあった。

- 補正を入れる前（依頼425）の場所2 でつかめたのは、9回中2回ではなく8回中2回だった。別の直し方（依頼426）で試した1回を混ぜて数えていた
- 場所2 の −30° の回は、補正で悪くなっていないかを見るための回だった。しかし机のカメラは −41.7° と読み、アームは立方体のつかむ面を切り替えて面 +90 でつかんでいた。425 で成功していた形（面 0、手首の回転角である手首の回り −39° 前後）は、1回も試せていなかった

机の上にブロックを置く向きは、手順で案内したとおりにならないことがある。立方体なので、±45° に近い置き方をすると、カメラは 90° 折り返した角度として読む。そこで、案内した向きではなく、カメラが実際に読んだ向き、アームが選んだ面、手首の回りの3つで、425 の回と比べ直した。

| 場所 | 425 で外した条件（手首の回り） | 427 で同じ条件を流した回 |
|---|---|---|
| 2 | +18〜+36°（6回とも外した） | 7回とも成功 |
| 3 | +10〜+21°（4回とも外した） | 3回とも成功 |
| 4 | +34°・−50°・−62°（4回とも外した） | 4回とも成功 |
| 5 | 向き +36°（1回外した） | 1回成功（425 とは違う面でつかんだ） |

残りの4回は 425 で成功していた条件だった。場所3 が2回、場所4 と場所5 が1回ずつで、どれも成功した。

続けて、19回の手首のカメラの絵で、補正のあとにブロックが画面のどこに写ったかを測った（測り方は前の回の161回と同じで、`measure_427.py` を使う）。ブロックを全部つかめる範囲は 290〜365 画素の帯になる。18回は 326〜347 画素で、帯の真ん中近くに入っていた。予想した位置との差は最大14画素（約4mm）だった。

1回だけ余裕がなかった。場所5 の +32.5°（面 −90、手首の回り −46°）は 364 画素で、帯の端だった。予想は 338 画素だったので、補正が足りていない。補正の計算を当てはめるのに使った手首の回りが −38° までで、この回はその外だったためだ。つかむことには成功したが、ぎりぎりだった。

【画像】LOG628_01_wrist_425_427_429.jpg 手首のカメラの絵を3つの直し方で並べた。上が場所2 の +36〜+42°、下が場所4 の −44°。左が直す前（外した）、中が場所ごとの補正、右が場所を分けずに直す1つの式。白い2本の線が、全部つかめる帯（290〜365 画素）

- ねらい：前の回の結果を、思い込みではなく記録で確かめ直す
- 変わったこと：場所2 の −30° 前後と、場所5 で面を切り替える置き方が、まだ確かめられていないと分かった
- 見込める効果：次の依頼（1つの式）の実機で、この2つの置き方を必ず流すようにできた。実際に流し、どちらもつかめた


## 1つの式で、ずれの元を計算に入れた（依頼429）

ブロックをつかむとき、ロボットアームの爪とブロックの位置にはずれが出る。前の回の調べ（依頼426）で、そのずれは2つの足し算で表せることがおおよそ分かっていた。机の上でいつも一定に出るずれ（3.3, 10.4）mm と、爪にくっついて一緒に回るずれ（−2.5, 17.9, 11.6）mm だ。爪にくっついて回るずれは、手首を回すと向きが変わる。そのため手首の回りがプラス側になると、2つのずれが打ち消し合わなくなり、爪がブロックの横をかすっていた。

爪の向きも約 8° 斜めになっていた。このうち 6.6° は、手首の関節のずれで説明できた。実物の関節は、計算に比べて回りが −6.6°、曲げが −3.4° ずれている。これはシム（シミュレーション）のために 11月28日に決めた値だ。ところが、プログラムの計算だけでアームを動かす手順（rule_401）は、この関節のずれを使っていなかった。

依頼429 では、この2つを計算に入れた。

1. どの関節角でアームの先がどこに来るかを出す腕の計算に、手首の関節のずれを入れる
2. 爪の間の点の位置（c）と、机で一定のずれ（e0）を、実機の記録から合わせ直す。爪にくっついて回るずれは、c の中に入る

式の値を合わせるには、手首に付いたカメラの画像（手首の絵）を合わせて56回分使った。内訳は依頼426 の37回と、前の回の補正（依頼427）の19回だ。どの形の式が一番よいかは、56回から1回ずつ抜いて残りの55回で式を作り、抜いた1回の位置を予想して実際の位置との差を比べる方法（1つ抜き）で確かめた。

| 式の形 | 項の数 | 1つ抜きの差 x / y（mm） | 426 の37回だけで作り、427 の19回を予想した差 x / y（最大） |
|---|---|---|---|
| 一定のずれだけ | 2 | 4.47 / 11.65 | 5.03 / 12.12（22.1） |
| **机で一定＋爪に付いて回る（選んだ形）** | **5** | **3.00 / 2.18** | **3.28 / 2.96（7.1）** |
| 肩の回りのずらし＋爪に付いて回る | 4 | 2.98 / 4.15 | 3.75 / 4.79（10.4） |
| 肩の回りのずらし＋机で一定＋爪に付いて回る | 6 | 2.52 / 2.45 | 2.89 / 3.08（6.6） |

選んだのは、差がいちばん小さい形から 0.3mm 以内に収まり、なおかつ項がいちばん少ない形だ。**426 の37回だけで作った式が、作るのに使わなかった427 の19回にも、平均 3mm ほどの差で当たった。** 机の置き場所ごとに別々の直線で補正しなくても、手首の回りがプラス側の回まで、同じ1つの式でつかむ位置を予想できたことになる。

決まった値は次のとおり。爪の間の点 c は（−4.80, −14.12, −12.33）mm（前は −10.14, −17.87, −4.77）、机で一定のずれ e0 は（3.56, 11.55）mm、肩の回りのずらしは 0°（前は −1.589°）になった。爪の向きの斜めは、関節のずれを入れても平均 2.7° 残った。

実機のアームを動かさず、この新しい式で出した動きを、前の補正で成功した19回と計算上で比べた。すると、つかむ所の差は 2.6〜8.1mm（中央 3.8mm）になり、爪の閉じる向きは +6.1〜+8.7° 回った。前の補正は、爪を斜めにしたままつかんでいたことになる。依頼425・427・429 で使ったブロックの置き方68本分の計算は、どれも今の安全確認（ガード）を通った。

【画像】LOG628_02_jaw_block_topview_429.png 上から見た爪とブロックの真ん中（依頼429 の報告の図）。場所ごとに、青の×が425 で外した回（爪の先の向こうにずれている）、橙が427 の補正のあとの実機、緑のひし形が1つの式の計算で出した予想。灰色の四角が427 で成功した回のブロックの真ん中

- ねらい：置き場所ごとの直線による補正をやめ、ずれの元を計算に入れて、どこでも同じ計算でつかむ位置を決める
- 変わったこと：置き場所ごとの4本の直線が、5つの値を持つ1つの式になった。爪の向きの斜めは平均約 8° から 2.7° になった
- 見込める効果：目印の間や外に置いたブロックでも、同じ計算でつかむ位置を出せる見込み。目印でない所は、アームなしの計算上の予想では補正の量がなめらかにつながったが、実機ではまだ確かめていない


## 1つの式で、コードだけで実機に23回流した

新しい1つの式を使い、プログラムの計算だけで実機のアームを23回動かした。依頼429 の22回分の手順ファイル（`session_429.sh`）に、前の回で確かめられていなかったブロックの置き方として、場所2 の −35° と、場所5 の +40°・+45° を足してある。16:22〜16:47 に、エイイチが実機で流した。

| 置き方 | 回数 | つかめた |
|---|---|---|
| 前の補正と同じ19の置き方 | 19 | 19 |
| 場所2 の −30°・−35°（面 0・手首の回り −38°・−41°） | 2（19 に含む1回と足した1回） | 2 |
| 場所5 の +40°・+45° | 2 | 2 |
| 場所5 の −30°（読んだ向き −39°） | 1 | 結果を記録しなかった |

全部で23回動かし、結果を記録した22回はすべてつかめた。場所5 の −30° の1回は、結果を打たずに Enter で進めてしまったため、台帳の結果が空になっている。すぐあとに同じ置き方で流し直し、成功している。

手首のカメラの画像で測ると、23回のブロックが写る高さは 295〜367 画素だった。前の補正の 326〜364 より幅は広いが、目安の帯（290〜365）の中にほぼ収まっている。外に出た1回は、場所3 で手首を −64° 回した回の 367 画素で、この回も問題なくつかめた。

途中で2回、アームを動かす前に止まった。どちらも手首のカメラから画像が読めなかったためで、ブロックを置き直して流し直している。1つの式とは関係ない。

前の補正（場所ごとの直線）と比べて、つかめた数は同じだった。違うのは、場所ごとに当てはめた直線を使っていないことと、爪の向きの斜めを直したことだ。


## so101j の学習と、Hugging Face が満杯で止まったこと（依頼424・430）

新しいモデル so101j を学習させた。前のモデル so101i は、机の上の決められた位置である場所5 に置いたブロックを、向きが +39° より大きいときに2回つかみ損ねていた。そこで so101i に使ったお手本データ110本に、場所5 で面を切り替えてつかみ、成功した10本を足して学び直した。足した10本は、AI ではなく制御コードだけで動かして成功した記録だ。

学習には、クラウドで借りた計算機 Runpod の A40 を使った。ベースとなる AI モデル π0.5 から始めて、学習を3000ステップ回している。09:37 に計算機（Pod）を借り、10:03 に学習を始め、16:11 に終わった。最後の学習の誤差（loss）は、2950ステップ目の記録で 0.0017 だった。

学習は終わったが、できたモデルをネット上の置き場である Hugging Face に送る所で止まった。非公開エリアの容量が満杯になっていたからだ。学習用のスクリプト lab_train.sh は、送れなかったときに備えて、Pod から手元の保存先 KIOXIA へ直接モデルを移す作りになっている。16:34 に移し終え、Pod もそこで削除された。借りていた時間は 417分47秒（6.96時間）で、費用は約4.11ドル（約649円）だった。

実際のアームを動かす推論のサーバーは、Hugging Face からモデルを読み込む作りになっている。このままでは so101j を実機で動かせない。そこで、実機での成績が良くなかった2つのモデルを Hugging Face から消すことにした。理想の道だけで学んだ so101d と、つかみ直しを足した so101g だ。どちらも原本は KIOXIA に残っており、消す前にファイル名とバイト数がすべて一致することを確かめた。消したあと、KIOXIA の原本から so101j を上げ直した（依頼430）。

| 時点 | リポジトリの数 | 合計 |
|---|---|---|
| 消す前（so101j は途中まで入っていた） | 16 | 約 97.9GB |
| so101d・so101g を消したあと | 14 | 約 85.3GB |
| so101j を上げたあと | 14 | 約 88.7GB |

容量の上限は、自動で情報を取る窓口（API）からは取得できなかった。97.9GB に約3.4GB を足そうとして止まったので、上限は 100GB くらいとみている（推測）。そうだとすると、モデルはあと1つしか入らない。次の学習の前に、また消すものを決める必要がある。

## so101j を切り替え方式で、実機に33回流した

so101j を実際のアームに載せ、切り替え方式で合計33回動かした。17:08〜17:58 に場所5 を中心に27回試し、そのあと止める許し（動作を止める判定の幅）を広げて6回足した（下の節）。場所5 では、so101i が外していた +40° 前後の向きと、まっすぐ置いたブロックを試した。場所2〜4 では、ブロックを −25°、+20°、まっすぐの順に置いて1周し、そのあと場所3 と場所4 のマイナス側の向きを足している。アームを動かす計算は、新しい1つの式（依頼429）を入れず、今までのコードのままにした。so101j のお手本を今までのコードで録ったため、モデルへ渡す所を変えずに、モデルそのものの実力を見るためだ。

| 結果（17:08〜17:58 の27回） | 回数 |
|---|---|
| 箱まで運んだ | 17 |
| つかめたのに、コードの確かめで止めた | 5 |
| 外した・8秒たっても閉じなかった | 5 |

【図解】LOG628_so101j_33runs.html

場所5 の +37〜+41° は6回試し、5回挟めた。前のモデル so101i が外していた置き方だ。挟めた5回は、どれも面 −90（面を切り替えるつかみ方）が選ばれていた。外した1回（+37.1°）は、面 0 と手首の回り +54° が選ばれた回で、コードだけで動かして外したときと同じ形だった。

場所2 は3回とも箱まで運べた。場所4 は6回のうち5回運べた。一方で、場所3 のマイナス側（−22〜−32°）は苦手で、7回のうち1回目で挟めたのは2回だけだった。外した回のうち2回は、やり直しの2回目で挟めた。

外した回について、エイイチの見立てはこうだ。アームがブロックの奥側をつかもうとしたとき、閉じてくる動く爪がブロックを弾いた。ブロックはアームの後ろから見て左（固定側の爪の側）へ 20cm ほど飛んだ。爪の面が机に対して斜めになっているため、弾かれたブロックが横へ押し出されたのだ。場所4 のマイナス側は、決まりのつかみ方のままだと爪の面が 13〜20° 傾くので、毎回別の面に選び直していた回だ。12月1日に場所5 で、爪が傾いていてブロックが滑ったと見立てたのと同じ形になる。

これまで、つかみ損ねてもブロックは元の位置から半径 50mm ほどしか動かない前提で、やり直しの仕組みを作っていた。今回の2回は、ブロックが大きく飛んだせいで、やり直しのときに机のカメラが目印から 128 画素、176 画素離れていると読み取った。ズレの許し（許容範囲）は 40 画素なので、アームに渡し直さず、そのまま終わっている。


## so101j がつかめたのに止まった原因（依頼431・432）

ロボットアームを動かすAIモデル so101j で27回流した。そのうち5回は、アームがブロックを挟めていて、爪のセンサーの読みも挟んだと出ていたのに、そのあとのコードの確かめで動きが止まっていた。見ていたエイイチから、危険でもないのに止めるのはやめてほしい、全部外してほしいという指示があった。

動きを止めた確かめは3つあった。

| 止めた確かめ | 回数 | 中身 |
|---|---|---|
| 持ち上げの姿勢の解けた差 | 2 | 計算で解けた持ち上げの姿勢が、ねらいから 1.1mm ずれていた。許しが 1.0mm に決め打ちされていた |
| 持ち上げの道の範囲 | 2 | 手首の曲げが 112°・117° を求めていた。範囲は、お手本の関節の幅に ±10° を足した値で決めていた |
| 追従の差 | 1 | 道を送る間、実際の関節と予想の差が 10.2° になった。許しが 10° |

1つ目の持ち上げの姿勢のずれは、依頼431 で、許しをプログラムの外から変えられる設定値（環境変数）にした。許しを 3mm に広げると、止まった回の姿勢のまま持ち上げから箱までの道が作れ、残りの確かめもすべて通った。この回の中で、許しを 3mm にしてから場所5 を実機で流し直し、箱まで運べた。

2つ目の持ち上げの道の範囲と、3つ目の追従の差は、依頼432 で調べると同じ原因だった。**手首の曲げは、実物の腕では 99.4° までしか曲がらない。持ち上げの道（爪の向きを変えずに真上へ 80mm 上げる）は、場所3・4 のマイナス側で、手首を 102.7〜117.1° まで曲げる形を求めていた。** 指令が 102.7〜112.1° だった5回は、実際の関節が 99.38° で止まったまま動き、そのうち4回は箱まで運べていた。届かない分は、腕が頭打ちになるだけだった。追従の差 10.2° で止まった1回も、指令 112.1° に対して実際が 99.4° だったためだ。

最初、この2つ目を「腕の限界ではない、AI が決めた範囲で止めている」と説明していたのは誤りだった。12月1日に手で動かして測った腕の範囲（手首の曲げの上限 100.53°）で確かめると、2回の持ち上げの姿勢はそもそも腕の届かない所にあった。依頼432 では、つかんだあとのコードの道を、この測った腕の範囲で確かめる口も作ったが、手首の曲げの上限が 100.5° なので、使うとかえって止まる回が増える（22回の挟んだ回のうち7回）。この口は使わないことにした。

もう1つ、8秒たっても爪が閉じなかった2回がある。これは、AI の π0.5 に任せる時間の上限（8秒）で止めた回だ。これも決め打ちの値で、依頼432 で環境変数で変えられるようにした。

そこで、止める許しを広げて実機をもう一度流した。追従の差の許しを 30°、π0.5 に任せる時間の上限を 15秒、持ち上げの姿勢の許しを 3mm にして、場所3・4 のマイナス側を各3回流した（18:08〜18:17）。

| 場所 | 読んだ向き | 結果 |
|---|---|---|
| 3 | −17.4° | 1回目で挟んで運んだ |
| 4 | −18.7° | 1回目で挟んで運んだ |
| 3 | −37.0° | 1回目で挟んで運んだ |
| 4 | −35.1° | 1回目は空振り、2回目で挟んで運んだ |
| 3 | −38.2° | 1回目で挟んで運んだ |
| 4 | −36.9° | 1回目は空振り、2回目で挟んで運んだ |

**6回とも箱まで運べ、つかんだあとに止まる回は出なかった。** 苦手と見ていた場所3 のマイナス側は、−37°・−38° でも1回目で挟めた。それまでの −22〜−32° の7回で運べなかった6回のうち3回は、つかめていたのに止めた回だった。so101j が苦手だったのではなく、止める確かめが邪魔をしていた分が大きかったことになる。

動きを止める確かめの洗い出しと、全部を止めずに知らせるだけに変える口は、次の依頼（依頼433）で作っている。腕が届かない関節は、止めずに腕の範囲の端に丸めて送る形にする。つかみ損ねたあとに初期位置の HOME まで戻らず、ブロックの少し上に上がるだけで位置を読み直して渡し直す直しも、同じ依頼に入れた。結果は次の回に書く。


## 決めたことの一覧

| 決めたこと | 中身 |
|---|---|
| 場所ごとの補正（案A）が効いたので、1つの式（案B）に進む | 依頼429 |
| 1つの式で、コードだけの実機を流す | 22回の案内に、場所2 の −35° と場所5 の +40°・+45° を足した |
| so101j の試しは、今までの計算のままで流す | 渡す所を変えずに、モデルそのものを見るため |
| 切り替え方式に1つの式を入れるかは、so101j の結果を見てから決める | まだ決めていない |
| Hugging Face から so101d・so101g を消し、so101j を上げ直す | 依頼430。原本は KIOXIA に残す |
| 持ち上げの姿勢の許しを環境変数で変えられるようにする | 依頼431。実機では 3mm で流した |
| 433 を待たずに、止める許しを広げて流す | 追従の差 30°・上限 15秒・持ち上げ 3mm |
| 危険でない確かめで止めるのを全部やめる | 依頼433（次の回） |
| 外したあと HOME まで戻らず、ブロックの少し上で読み直して渡し直す | 依頼433（次の回） |


## 依頼文と報告、コード、ターミナルの記録（全量）

ここから下は、依頼箱に置いた依頼文、開発用の AI である Claude Code の報告、足したコード、実機のターミナルの記録を、そのまま載せる。報告の中の見出しは、記事の見出しとぶつからないように2段下げた。



## 依頼429：1つの式でつかむ位置を決める

### 依頼429 の依頼文

```markdown
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts/so101/par
上限時間: 150
---
# 依頼429：SO-101 のコードだけの道（rule_401）の計算に、手首の関節のずれと爪に付いて回るずれを入れて、爪の位置のずれを根本から直す（案B・付けたときだけ効く・アームは動かさない）

作業は `cd ..` して so101/ の下で行う（コード2 の列の決まり）。
16:20 ごろから、エイイチが実機で so101j の試しを流す。Mac が重くならないよう、並べて回す計算は 4 本までにする。

## なぜ
- 依頼425 の実機 27 回（成功 12・失敗 15）で、エイイチの見立ては「爪の位置がずれていて、ブロックの横をかすっている」
- 依頼426（`so101/check_426/REPORT.md`）で、ずれの形が分かった
  - ずれは「机で一定 (3.3, 10.4) mm」＋「gripper で一定 (−2.5, 17.9, 11.6) mm（手首の回り・爪の傾きで向きが変わる）」で表せる（37 回・1 つ抜きの残り 2.9 / 1.8 mm）
  - 角度のずれ +8.4° のうち +6.6° は、rule_401 が手首の関節のずれ（`joint_offset_342.json`：手首の回り −6.6°・手首の曲げ −3.4°）を使っていないため
  - rule_401 の「爪の間の点」c (−10.1, −17.9, −4.8) mm と肩の回りのずらし −1.6° は、校正の点（手首の回り −51〜+25°・多くは −側）で合わせた値で、そこから離れるとずれを打ち消せない（仮）
- 依頼427（案A。`so101/check_427/REPORT.md`）の補正を付けて、エイイチが実機で 19 回流し、**19 回とも成功**（2026-12-02 14:32〜15:13。台帳の model は `code_rule401_corr427`）
- Claude（Fable）が、その 19 回の手首の絵で補正のあとの実際の位置を測った：`PixelstoMotors/依頼箱/_資料/fable_427_調べ/`（`wrist_block_pos_427_19runs.json`・`measure_427.py`・`README.md`）
  - 18 回は 326〜347 画素（成功の帯 290〜365 の真ん中近く）。予想との差は −8〜+14 画素
  - 場所5 +32.5°（面 −90・手首の回り −46°）だけ 364 画素で帯の端。補正が足りない（当てはめに使った手首の回りは −38° まで）
  - 場所2 の向き −30° 前後（面 0・手首の回り −39° 前後。補正が +13mm と逆向きにかかる条件）は、1 回も流れていない（−30° の回は −41.7° と読まれ、面 +90 でつかんだ）
- 案A は、場所ごとの直線に当てはめて合わせているだけ。場所2〜5 の目印の近くでしか使えず、当てはめの範囲の外で足りなくなり、角度のずれ（約 8°）は残る

エイイチの決定（2026-12-02）：**案A が効いたので、案B（計算の根本の直し）に進む。**
依頼426 の「決めてほしいこと 2」（手首の関節のずれを rule_401 の腕の計算に入れる。校正の点で合わせた c・肩の回りのずらしを合わせ直すことになる）は、この決定で進めてよい。

## エイイチの決定（守ること）
- codex・ほかの AI にレビューを頼まない
- 限界・余裕・ガードの値を AI が新しく決めない・足さない。既定は変えない（「実機が全て」）
- アームは動かさない（実機はエイイチが流す）
- MASTER と r2r2r-scripts の CLAUDE.md に従う。今の機体は SO-101。mechArm の値や決まりは使い回さない

## 1. 作るもの：ずれの元を計算に入れた腕の計算（`so101/check_429/`）
ねらいは、場所ごとの直線ではなく、**場所・手首の回り・爪の傾き・面がどれでも同じ 1 つの計算**で、ブロックが両方の爪の間のねらいの所に来る道を作ること。案A の補正（R427_CORR）なしで、427 と同じかそれより良い位置に爪が行くようにする。

- rule_401 が道を作るときの腕の計算に、手首の関節のずれ（`joint_offset_342.json`）を入れる
- そのうえで、爪の間の点 c と肩の回りのずらし（必要なら、426 の B の「机で一定」「gripper で一定」に当たる項）を合わせ直す。何を自由にして何を固定するかは、下のデータで 1 つ抜きの残りがいちばん小さく、かつ項が少ない形を選び、選んだ理由を報告に書く
- 合わせ直しに使えるデータ（どれも読むだけ）
  - 校正の点（rule_401 の今の c・肩の回りのずらしを合わせたときのもの）
  - 依頼426 の測定 37 回（`check_426/measure_426.json`・`fit_426.json`）
  - 依頼427 の実機 19 回（補正つきで全部成功。trial.json の関節・`corr427` と、Fable の測定 `wrist_block_pos_427_19runs.json`）。必要なら measure_426.py と同じ測り方でこの 19 回も測る
  - 手首の絵の 161 回（`check_427/wrist_block_pos_161runs.json`・`fit_427_rows.json`）
- 426 の見立て F（「机で一定」は机のカメラと腕の座標のずれ、「gripper で一定」は手首カメラの当てはめの奥行きの誤差を含むかもしれない）は、427 の 19 回が足されたことで分けられるかを見る。分けられなければ、分けられないと書く（無理に決めない）
- 腕が重さで下がる分（426 の 2-2。机が 13.5〜22.1 mm 近く見える件）は、この依頼では直さない。関わりが見えたら報告に書くだけにする

## 2. 入れ方
- 環境変数 `R429_MODEL=1` を付けたときだけ効く。付けなければ 1 コマも変わらない
- `check_401/run_rule401.py`・`check_405/`・`check_425/`・`check_427/`・`lib_399.py`・`rule_401.py`・`ideal_var/var_lib_314.py` は書き換えない。427 と同じやり方（このプロセスの中だけ差し替える）で作る。どうしても既存のファイルに口が要るときは、名前を挙げて報告し、付けないときにバイトが同じになることを確かめる
- `R427_CORR`・`R426_CORR` と一緒に付いていたら止める（どれが効いたか分からなくなるため）
- ガードは今と同じもの（clear_345・範囲・1 コマの変化・押し付け −14/−14・status）にそのまま通す。値は変えない・足さない。通らない回は今と同じく理由を出して動かさない
- trial.json の rule401 に、`model429_on` と、使った値（関節のずれ・c・肩の回りのずらし・ほかの項）、その値のファイルの SHA-256、手首の絵での予想の y を残す
- 台帳の model は `code_rule401_model429`
- `so101_kinematics.md` と既定の値は書き換えない（実機で確かめてから、エイイチが別に決める）
- 切り替え方式（`check_405/`。π0.5 に渡す形）には入れない

## 3. 確かめ（アームなし）
1. 当てはめの確からしさ：1 つ抜きの残り（mm）を、426 の B（2.9 / 1.8 mm）と並べる。外れが大きい回は名前を挙げる
2. 427 で実機が成功した 19 回との比べ：同じ置き方（読んだ画素・向き）で `R429_MODEL=1`（R427_CORR なし）の道を作り、つかむ所（GRASP_OPEN）の爪の位置・向きが、427 で実際に成功した道とどれだけ違うか（mm・度）を表にする。面・手首の回りが変わる回は印を付ける
3. 425 の 27 回の置き方でも同じ表を作る。手首の絵の予想の y（`check_427/wristpx_427.py`）が成功の帯 290〜365 に入るか、426 の測り方の予想の a・b・角度がどうなるかを並べる
4. 427 で足りなかった所（場所5 +32.5°・面 −90・手首の回り −46°。実際 364 画素）と、流れていない所（場所2 −30°・−35°・面 0・手首の回り −39° 前後）で、429 の道がどこをねらうかを書く
5. 場所2〜5 の間や外でも使えるかの目安として、目印でない所（例：場所2 と 3 の間、場所4 と 5 の間）で道を作り、補正の量がなめらかにつながるかを見る（実機のデータがないので、予想だけと明記する）
6. 付けないとき：場所3 0°・場所4 +10°・場所5 +30°・場所2 −20° の道のバイトが、変える前と同じ
7. 既存のテストが全部通ること
8. 図を 1 枚作る（`check_429/` に png）：上から見た机に、425 の爪の位置・427 の補正のあと・429 の計算の 3 つを、ブロックと並べて描く（外した回と成功した回が分かるように）。言葉だけだと何が直ったか分からないため

## 4. 実機で流す案内（`so101/check_429/session_429.sh`）
session_427.sh と同じ流れ・同じ環境変数（R427_CORR は外し、`R429_MODEL=1` を付ける）。`--first`・`--dry`・`--dry-fake` を付け、台帳で済んだ回から続ける。毎回、置く向きを大きく出す。
- 回す 22 回
  - 427 と同じ 19 回（同じ順）
  - 場所2 −35°（面 0・手首の回り −側になる置き方。−30° と合わせて、427 で流れなかった条件を見る）
  - 場所5 +40°・+45°（面を切り替えてつかむ置き方）
- 机のカメラが読んだ向きが、案内した向きと 10° より大きく違うときは、Enter のあと・送る前に、読んだ向きと選んだ面・手首の回りを 1 行大きく出す（止めない。違う条件で流れたことにあとで気づけるようにするだけ）
- `--dry-fake` で 22 回の表（面・手首の回り・爪の傾き・予想の y・status）を出す

## しないこと
アームを動かす、学習、既定の変更、既存の記録・データセット・台帳の行の上書き、so101_kinematics.md の書き換え、切り替え方式（check_405）の変更、mechArm の値や決まりを使う

## 報告（`so101/check_429/REPORT.md`）
- いちばん大事なこと：何を計算に入れたか（値）、1 つ抜きの残り、427 で成功した 19 回の道との差、ガードで動かせない回があるか
- 途中経過：当てはめが終わった所で、`check_429/progress_429.md` に 1 回書く（値と残り）
- 実機で打つコマンド（`cd ~/r2r2r-scripts && …` から書く。`--first` の 1 行と続きの 1 行）と時間の見込み
- 決めてほしいこと（AI が決めるべきでないことに当たったら、止めずにここへ書く）
- commit（自分のファイルだけを個別に add。index.lock があれば少し待ってやり直す。`git add .`・`git clean` は使わない）
- 最後の 1 行に「判定：合格／止めた（決めてほしいことあり）／失敗」
```


### 依頼429 の途中経過（progress_429.md）

```markdown
# 依頼 429 途中経過 (当てはめが終わった所. 2026-12-02 16 時ごろ)

- 427 の実機 19 回を 426 と同じ測り方で測った (measure_429.py → measure_429.json. IoU 0.81〜0.98・6 コマのばらつき 0.4〜2.9 mm)。
  19 回とも 爪に直角の向き b (爪の先から) +2.5〜+16.7 mm (1 回 −5.2: 場所3 −45・爪の傾き +43)。425 で外れた回は +23〜+35 mm
- 腕の計算 (URDF の手先) に 関節のずれ (手首の曲げ −3.4°・手首の回り −6.6°) を入れて、ブロックの所の形を 56 回 (426 の 37 + 427 の 19) で当てはめた (fit_429.py → fit_429.json)

| 形 | 項 | 1 つ抜き x / y (mm) | 426 の 37 回だけで当てはめ → 427 の 19 回 x / y (最大) |
|---|---|---|---|
| 一定 (e0) | 2 | 4.47 / 11.65 | 5.03 / 12.12 (22.1) |
| **426 の B (e0 + v)** | 5 | **3.00 / 2.18** | **3.28 / 2.96 (7.1)** |
| φ + v | 4 | 2.98 / 4.15 | 3.75 / 4.79 (10.4) |
| φ + e0 + v | 6 | 2.52 / 2.45 | 2.89 / 3.08 (6.6) |
| e0 + v (高さの向きなし) | 4 | 3.36 / 2.71 | 3.80 / 3.56 (14.2) |

- 選んだ形: 426 の B (e0 + v)。φ + e0 + v より 0.2 mm 大きいだけで 項が 1 つ少ない (選び方: いちばん小さいものから 0.3 mm 以内で 項がいちばん少ない形)
- 値: e0 = (3.56, 11.55) mm・v = (−17.85, 1.55, −12.05) mm (手先の座標)・肩の回りのずらし 0° (今は −1.589°)
- 爪の間の点 c (成功 41 回のブロックの所に 爪の間の点が来る c. 最小二乗) = (−4.80, −14.12, −12.33) mm (今は −10.14, −17.87, −4.77)。
  1 つ抜きの残り 閉じる向き a 2.55・直角の向き b 5.45 mm (成功の回のブロックの所そのもののばらつき)。校正の点で同じ式から出すと (−7.37, −1.23, −10.89): b に効く x・z は 2.6・1.4 mm の差、a に効く y は 13 mm 違う (a は rule_401 のすき間 12 mm の寄せで決まる)
- 手先の高さ 11.99 mm・爪の傾きの一次式 (−5.27, 0.1189) は 校正の点で 今と同じ作り方 (関節のずれあり) で出し直した
- 角度: 関節のずれを入れても 平均 +2.7° (ばらつき 2.2) 残る。手首の回り −側 +1.4°・+側 +4.0°。角度の項は足していない
- 外れが大きい回: 場所3 の 爪の傾き +17〜+43 の 5 回 (130813・150509・130425・130614・150606. 1 つ抜き b +5.7〜+9.4 mm)。426 の 2-2 の 机が近く見える分 (重さで下がる分か奥行きの誤差) と同じ向き。この依頼では直さない
```


### 依頼429 の報告（REPORT.md）

````markdown
# 依頼 429 (案 B): SO-101 の rule_401 の腕の計算に 手首の関節のずれを入れ、爪の間の点 c・肩の回りのずらし・机で一定のずれを合わせ直した (R429_MODEL=1 のときだけ効く。アームは動かしていない)

## いちばん大事なこと
- **計算に入れたもの (model_429.json)**:
  - 関節のずれ (joint_offset_342.json): 手首の曲げ −3.4°・手首の回り −6.6°。rule_401 の腕の計算 (CalcGraspMap の `_q`) に足した。つかむ所の位置・爪の閉じる向き・爪の傾き・爪の面の傾き・寄せと下げ (Shifter)・候補の並べ方 (min_elev) が、全部 ずれを入れた腕で解かれる
  - 道を作る式: 手先 t(q + ずれ) + R(q + ずれ) **c** = Rz(−肩の回りのずらし)(B + **e0**)
  - **c = (−4.80, −14.12, −12.33) mm** (今は −10.14, −17.87, −4.77)・**肩の回りのずらし 0°** (今は −1.589°)・**机で一定 e0 = (3.56, 11.55) mm** (今はなし)
  - 手先の高さ 11.99 mm・爪の傾きの一次式 (−5.27, 0.1189): 校正の点から 今と同じ作り方で、ずれを入れて出し直した
  - 校正の点の直し (calc_corr。最大 5 mm) は 429 では使わない (代わりに e0)。理由は 1-3
- **1 つ抜きの残り**: 位置の形 (426 の B と同じ「机で一定 + gripper で一定」) を 56 回 (426 の 37 回 + 427 の 19 回) で当てはめて **x 3.00 / y 2.18 mm** (426 の B は 2.9 / 1.8 mm。回が 19 増えた)。
  **426 の 37 回だけで当てはめて 427 の 19 回 (当てはめに入れていない) を予想しても 3.28 / 2.96 mm・最大 7.1 mm**。場所ごとの直線を使わずに、手首の回りが +側の 427 の回まで同じ 1 つの式で当たる
- **427 で成功した 19 回の道との差** (同じ読んだ画素・向き。GRASP_OPEN の爪の間の点): **2.6〜8.1 mm (中央 3.8 mm)**。爪の閉じる向きは **+6.1〜+8.7°** 回る (関節のずれ 6.6° と 肩の回りのずらしの分。427 の道は ずれを入れた腕で見ると +6〜+9° 斜めだった)。
  19 回中 5 回は 選ばれる面か手首の回りが変わる (場所3 −30・−35・−45・+30、場所4 −45・−30)。429 の式で見ると 427 の道のブロックは ねらいから b で −7.5〜+8.4 mm、429 の道は ±1.0 mm
- **ガードで動かせない回は 0**。session の 22 回・427 の 19 回・425 の 27 回の置き方の 68 本が 全部、今と同じガード (clear_345・範囲・1 コマの変化・押し付け −14/−14・status は conflict と deep_at_zero を許す) を通った。手首の絵の予想の y は 68 本とも 309〜342 画素 (帯 290〜365 の中。ただし予想のばらつきは約 19 画素。3)
- 付けないとき: 4 本の道のバイトが 変える前と同じ (6)。既存のテストも全部通る (7)

## 1. 当てはめ (fit_429.py → fit_429.json・model_429.json。途中経過は progress_429.md)
### 1-1. データ (どれも読むだけ)
- 427 の実機 19 回を 426 と同じ測り方で測った (`measure_429.py` は check_426/measure_426.measure をそのまま呼ぶ → measure_429.json・sheets/)。IoU 0.81〜0.98・6 コマのばらつき 0.4〜2.9 mm。
  爪の先からの b は 19 回とも +2.5〜+16.7 mm (1 回 −5.2: 場所3 −45・爪の傾き +43)。Fable の手首の絵の y と、この測り方の y の差は 平均 −1.8・ばらつき 2.2 画素で合う
- 426 の 37 回 (measure_426.json)、校正の点 (calib_points_315.json)。427 の 161 回の y (wrist_block_pos_161runs.json) は 予想の y の目安にだけ使った
### 1-2. 位置の形の比べ (1 つ抜き。腕の計算は 関節のずれあり)
| 形 | 項の数 | 1 つ抜き x / y (mm) | 426 の 37 回 → 427 の 19 回 x / y (最大) |
|---|---|---|---|
| 一定 (e0) | 2 | 4.47 / 11.65 | 5.03 / 12.12 (22.1) |
| **426 の B (e0 + v)** | **5** | **3.00 / 2.18** | **3.28 / 2.96 (7.1)** |
| 肩の回りのずらし + v | 4 | 2.98 / 4.15 | 3.75 / 4.79 (10.4) |
| 肩の回りのずらし + e0 + v | 6 | 2.52 / 2.45 | 2.89 / 3.08 (6.6) |
| e0 + v (高さの向きなし) | 4 | 3.36 / 2.71 | 3.80 / 3.56 (14.2) |
| (比べる用) 426 の B・関節のずれなし | 5 | 2.96 / 2.08 | 3.26 / 2.88 (6.6) |

- **選んだ形: 426 の B (机で一定 e0 + gripper で一定 v。肩の回りのずらしは 0 に固定)**。選び方: 1 つ抜きの残り (x・y の二乗平均の大きさ) が いちばん小さい形 (6 項 3.51 mm) から 0.3 mm 以内のうち、項がいちばん少ない形 (5 項 3.71 mm)。肩の回りのずらしを足しても 0.2 mm しか減らない
- 位置だけなら 関節のずれを入れても入れなくても残りはほぼ同じ (v が吸う)。関節のずれが効くのは 角度 (下の 1-4)
- **外れが大きい回**: 場所3 の 爪の傾き +17〜+43 の 5 回 (130813・150509・130425・130614・150606。1 つ抜き b +5.7〜+9.4 mm)、427 の 151124 (場所5 +32.5。b +4.8 mm)。どれも 426 の 2-2 の「机が 13〜22 mm 近く見える分」が 爪の傾きで b に出る向き (腕が重さで下がる分か 手首カメラの奥行きか。この依頼では直していない)
### 1-3. c と e0 の決め方
- 道を作る式に 位置の形をそのまま入れた: ブロックの本当の所 = B + e0、手首の絵の所 = B + e0 + R v。ねらいは「成功した 41 回 (425 の 12・LOG625 の 10・427 の 19) で ブロックが爪に対してあった所」 = c + v。c は 成功の 41 回で t + R c が (手首の絵の所 − R v) に来る最小二乗。c の 1 つ抜き a 2.55・b 5.45 mm (成功の回の所そのもののばらつき)
- v が「手首カメラの当てはめの誤差」でも「爪の付き方の誤差」でも、道を作る式は同じになる (c = ねらい − v)。**426 の見立て F (机で一定・gripper で一定の中身) は、427 の 19 回を足しても分けられない**: 19 回は 427 の補正で手首の回り +側・b がそろった回で、同じ置き方で手首の回りだけを変えた組がない。分けなくても道は同じなので決めていない
- 校正の点で同じ式から c を出すと (−7.37, −1.23, −10.89) mm。b に効く x・z は 成功から出した c と 2.6・1.4 mm の差、a に効く y は 13 mm 違う (人が合わせた所は 閉じる向きに 13 mm ずれている)。a は rule_401 の「固定側のすき間 12 mm の寄せ」(lib_399。ずれなしの MuJoCo の場面) が決め直すので、c の a は道にほとんど効かない
- 校正の点の直し (calc_corr。最大 5 mm) は、人が合わせた所に寄せる直しで、成功の所に合わせた c と別の答えを足すので 429 では使わない (correction() は e0 だけを返す)
### 1-4. 角度
- 関節のずれを入れると、427 の 19 回の道は ずれを入れた腕で +6.1〜+8.7° 斜め (426 の D)。429 の道は 0°
- 入れても残る角度 (測った角度 − 指令 + ずれ の爪と読んだ向き の角度): 56 回で **平均 +2.7°・ばらつき 2.2°**。手首の回り −側 +1.4°・+側 +4.0° と 手首の回りで違う (机のカメラは腕と関係なく読むので、手首の回りの側で変わるのは 手首の回りの読みか手首カメラの付き方の分の見込み。仮)。角度の項は足していない

## 2. 入れ方
- **R429_MODEL=1 のときだけ効く**。`model_429.install(W)` が run_rule401.world() の答えの `W.w.gmap` (CalcGraspMap) 1 つだけを このプロセスの中で差し替える (`_q`・`_gpt`・`correction`・c・pan_off・grasp_z・tilt_ab)。uninstall で元に戻る (テストで確かめた)
- 既存のファイルは 1 つも書き換えていない (run_rule401.py・check_405/・check_425/・check_427/・lib_399.py・rule_401.py・var_lib_314.py・so101_kinematics.md・切り替え方式)。既存のファイルに口は足していない
- 変えていない所: ガードの値と当て方・rule_401 の すき間 12 mm の寄せと 下げ (lib_399 の MuJoCo の場面。ずれなし)・ブロックの上 (真上 50 mm) と持ち上げの作り方
- `run_429.py`: check_425/run_425.py をそのまま呼ぶ (台帳の model を **code_rule401_model429**、飛ばした回を `model429_skipped.jsonl`)。**R427_CORR か R426_CORR と一緒なら止める**
- trial.json の rule401 に `model429_on`、`model429` (関節のずれ・c・肩の回りのずらし・e0・v・手先の高さ・爪の傾きの一次式・model_429.json と joint_offset_342.json の SHA-256・GRASP_OPEN での予想: ねらいからのずれ a・b mm・角度・手首の絵の予想の y)
- 読んだ向きが 案内した向きと 10° より大きく違うときは、道ができたあと・送る前に「読んだ向き・選んだ面・手首の回り」を 1 行大きく出す (止めない。trial.json に `yaw_read_off_429`)

## 3. 確かめ (アームなし。表は table_429.md、数は table_429/*.json)
1. 当てはめの確からしさ: 1-2 の表。426 の B (2.9 / 1.8) と並べて 3.00 / 2.18 mm。外れが大きい回は 1-2 に名前
2. **427 で成功した 19 回との比べ** (同じ読んだ画素・向き): 爪の間の点の差 2.6〜8.1 mm (中央 3.8)・爪の向き +6.1〜+8.7°・爪の傾き −6.4〜+1.4°。
   場所2 の 7 回は b −2.8〜−6.5 mm (爪が根もと側へ。429 の式では 427 の道のブロックは ねらいより b −3〜−7 mm)、場所4 は +2.2〜+6.5 mm。
   面・手首の回りが変わる ★ は 5 回: 場所3 −30・−35 (面 +90 → 0、手首 +14〜+20 → −57〜−63°)・−45 と +30 (手首 −2〜−7 → +1〜+5°、爪の傾き 25〜47°)・場所4 −45・−30 (面 0・手首 +29〜+30 → 面 −90・手首 −50〜−51°)
3. **425 の 27 回の置き方**: 27 本とも作れて ガードを通った。予想の y は 309〜342 (全部帯の中)。425 で外した 15 回の道は 429 の式で b +10.5〜+16.5 mm (場所4 の −側の 3 回は −9.3〜−10.9 mm) と出て、429 の道は b ±1.0 mm。
   場所4 の 手首の回り −50〜−62° で外した 3 回 (426 の G。原因不明) は 429 の式では 成功した 427 の場所4 より b が約 10 mm 小さい所 (根もと側) にあった、と出る (b のずれで説明できるかは 実機で見ないと分からない)
   - 予想の y の確からしさ: 427 の 19 回で 429 の式の予想 (指令の関節・腕の動きの予想・机の高さ 16.3 mm) と実際の y の差は 平均 −1.9・**ばらつき 19 画素** (約 5 mm)。帯の中か外かの目安にしかならない
4. **427 で足りなかった所・流れていない所**:
   - 場所5 +32.5° (151124 の読んだ画素・向き。427 の道は 面 −90・手首の回り −46°。実際 364 画素): 429 の道は 面 −90・爪 23°・手首の回り −37.3°・deep_at_zero。427 の道との差 a −2.4 / b −1.0 mm・向き +7.5°。予想の y 314。
     ただし 1 つ抜きで この回の b は 4.8 mm 外れていた (427 の道は 429 の式では ねらいどおり (b 0.0) と出るのに 実際は 364 画素)。この所は 429 の式でも 5 mm ほど確かでない
   - 場所2 −30°・−35° (目印・向きどおり読んだとき): 面 0・爪 21°・手首の回り −39.1°・−43.9°・conflict / deep_at_zero。予想 b +0.3・+0.4 mm、予想の y 336・334。
     425 で成功した 125055 (−30。手首 −41.2°) の道と比べて 爪を b −7.9 mm (根もと側) へ動かす。427 の補正なら同じ向きに 13.1 mm だった
5. **目印でない所** (予想だけ。実機のデータはない。場所2〜3・4〜5 の間を画素で 1/3 ずつ。外へ 1/3): 面・手首の回りが変わらない並びでは 直しの量がなめらかにつながる
   (例 場所4〜5 −30: b −7.8 → −7.1 → −6.8 → −5.3 mm、場所2〜3 +30: b +11.0 → +9.3 → (爪の傾き 49° に変わる所 +14.4) → +11.0 mm)。
   飛ぶのは 選ばれる面・手首の回りが変わる所だけ (★)。外へ 1/3 の 4 か所は 付けないときも 429 も 道が作れない (候補 0。校正の点が囲む範囲の外)
6. **付けないとき** (same_bytes_429.sh・same_bytes_429.log): 場所3 0°・場所4 +10°・場所5 +30° (min_elev)・場所2 −20° (min_elev) を run_rule401.py・run_425.py・run_427.py (R427_CORR なし)・run_429.py (R429_MODEL なし) で作り、
   道の SHA-256 の先頭 16 字が **4 本とも 4 つ同じ** (6cb921c7…・1fff1619…・b89fc135…・e4502af8…。427 の報告と同じ値)。R429_MODEL=1 では 4 本とも違う
7. テスト: test_run_rule401 52・test_406 24・test_410 18・test_track_stop_422 2・test_switch_405 18・test_412 12・test_425 9・test_426 5・test_427 9・**新しい test_429 9 件 OK**
8. 図: **fig_429.png** (上から見た 爪の座標での ブロックの真ん中。場所ごと。青 = 425 の実機 (● 成功・× 外した)、橙 = 427 の補正のあとの実機 (全部成功)、緑 ◆ = 429 の計算の道 (427・425 と同じ置き方。予想))。
   425 で外した回は 爪の先の向こう (b +24〜+35) に、427 と 429 は灰色のブロック (427 の成功の真ん中) のまわりに集まる。爪の線は測った回の中央の目安。点は fig_429_points.json

## 4. 実機で打つコマンド (アームを動かす。打つのはエイイチ)
```
cd ~/r2r2r-scripts && ./so101/check_429/session_429.sh --first
cd ~/r2r2r-scripts && ./so101/check_429/session_429.sh
```
- 回す順 (22 回): 場所2 +30・+35・+40・+45・−40・−45・−30 → 場所3 −30・−35・−40・−45・+30 → 場所4 −40・+40・−45・+45・−30 → 場所5 +35・−30 (ここまで 427 と同じ 19 回) → 場所2 −35 → 場所5 +40・+45。毎回 置く向きを大きく出す
- 環境変数は session_427.sh と同じ (R401_PICK=min_elev・選び直し・TRACK_STOP 15・PUSH −14/−14・画素 40・向き 40・HOME 25・conflict と deep_at_zero を許す) + `R429_MODEL=1` (既定)。R427_CORR・R426_CORR は外す
- 台帳で済んだ回と飛ばした回の次から続ける。`--dry` (机のカメラで読む・送らない)・`--dry-fake` (カメラも開かない)
- `--dry-fake` の 22 回: **22 / 22 送れる** (dry_fake_429.log。表は table_429.md の「session_429.sh の 22 回」)。status は ok 12・conflict 4・deep_at_zero 6 (毎回 yes を打つ回がある)
- **時間の見込み: 30〜40 分**。道を作る時間は 1 回 3〜37 秒 (4 本並べて回した時間。22 回で合計 約 6 分)。これに 1 回あたり 置く・Enter・道 8.4 秒・結果を打つ で 1 分ほど

## 足したファイル (so101/check_429/。既存のファイルは変えていない)
measure_429.py・measure_429.json・sheets/ (19 回の手首の絵)・fit_429.py・fit_429.json・model_429.json・model_429.py・run_429.py・session_429.sh・
table_429.py・table_429/ (14 本の JSON と log)・table_429.md・same_bytes_429.sh・same_bytes_429.log・dry_fake_429.log・test_429.py・fig_429.py・fig_429_points.json・fig_429.png・progress_429.md・REPORT.md

## 決めてほしいこと (作業は止めていない)
1. **爪の向きが 427 の成功した道から +6〜+9° 回る**。426 の D で説明された「関節のずれの分」を直した結果で、19 回の成功はこの斜め (測ると +8〜+18°) のままで出ていた。直した向きで流してよいか
2. **ねらい = 成功した 41 回のブロックの所 (平均)** にした。427 のねらい (成功の y の中央 338.5) と同じ考え方だが、rule_401 がもともと想定した所 (b 0) より 約 9 mm 爪の先側。また a (閉じる向き) は rule_401 の すき間 12 mm の寄せ (ずれなしの場面) のままなので、本当のすき間は今と同じ 0〜11 mm (測った値) で 12 mm ではない。本当のすき間を 12 mm にするかは決めていない
3. 選ばれる面・手首の回りが 427 と変わる回がある (19 回中 5 回。場所3 −30・−35 は 手首 −57〜−63°、場所4 −45・−30 は 面 −90・手首 −50°)。場所4 の 手首の回り −50〜−62° は 425 で原因の分からない失敗が 3 回あった所 (426 の G)。429 の式では b のずれで説明できる見込みがあるが、確かではない
4. 予想の y のばらつきは約 19 画素 (5 mm) と大きい。帯の中か外かの目安にしかならない (面の選び直しや b の予想の確かさは 実機で見るしかない)
5. 爪の傾きが大きい所 (場所3 の +17〜+47°・場所5 +32.5) では 1 つ抜きで b が 5〜9 mm 外れる。腕が重さで下がる分 (426 の 2-2) と同じ向きで、この依頼では直していない。直すかは別に決める
6. 実機で確かめたあと、値 (model_429.json) を so101_kinematics.md や既定に入れるかは エイイチが決める (今は入れていない)

## commit
92a57b0 (依頼 429 の本体。check_429/ の自分のファイルだけを個別に add)。この行を書き足した commit は REPORT.md の後追い

判定：合格
````


### 依頼429 の確かめの表（table_429.md）

```markdown
# 依頼 429: R429_MODEL=1 (R427_CORR なし) で作った道

道の作り方は session_429.sh と同じ (R401_PICK=min_elev・選び直し・ROLL -67,58・押し付け −14/−14・conflict と deep_at_zero を許す・画素 40・向き 40).
物差し: 429 の腕の計算 (関節のずれあり) の 爪の間の点 t + R c と 爪の閉じる向き. 差 a・b = 比べる道の 爪の閉じる向き a・それに直角で根もとから外へ b に分けた mm.
429 の予想 = その道の GRASP_OPEN で 429 の形が予想する ブロック − ねらい (a・b mm) と 爪とブロックの角度. 手首の絵の予想の y は ばらつき約 19 画素 (REPORT.md の 3). ○ = 290〜365.
★ = 比べる道と 面 か 手首の回りの +/− (か 20° より大きい差) が変わった回. 爪の向きの差は 立方体なので 90° で折った値.

## 確かめ 2: 427 で成功した 19 回 (同じ読んだ画素・向き)

| 回 | 場所 | 向き 案内 / 読んだ | 427 の道 (面・手首) | 実機の y | 427 の道の 429 予想 a / b・角度 | 429 の道 | 爪の差 a / b mm・向き°・傾き° | 429 予想 a / b・角度 | 予想の y | 印 |
|---|---|---|---|---|---|---|---|---|---|---|
| 143214 | 2 | +30 / +36.5 | 面+0・+23.6° | 337 | +2.2 / -4.4・+8.4° | 面+0・爪17°・面傾-9.5°・手首+32.0°・conflict | +0.0 / -3.8・+8.4・-3.4 | +2.2 / -0.3・+0.0° | 317 ○ |  |
| 143743 | 2 | +35 / +28.8 | 面+0・+15.9° | 333 | +2.4 / -3.1・+8.2° | 面+0・爪18°・面傾-7.5°・手首+24.1°・ok | +1.1 / -2.8・+8.2・-2.4 | +1.2 / -0.1・+0.0° | 320 ○ |  |
| 143917 | 2 | +40 / +34.0 | 面+0・+20.0° | 334 | +2.2 / -3.4・+8.3° | 面+0・爪18°・面傾-8.7°・手首+28.2°・ok | +1.0 / -3.1・+8.3・-3.4 | +1.2 / -0.1・+0.0° | 319 ○ |  |
| 144040 | 2 | +45 / +36.4 | 面+0・+22.9° | 334 | +2.2 / -4.0・+8.4° | 面+0・爪18°・面傾-9.6°・手首+31.1°・ok | +1.0 / -3.7・+8.4・-3.4 | +1.2 / -0.1・+0.0° | 318 ○ |  |
| 144911 | 2 | -40 / -42.5 | 面+90・+33.8° | 342 | +1.6 / -6.5・+8.7° | 面+90・爪16°・面傾-11.7°・手首+42.3°・ok | +0.7 / -6.3・+8.7・-4.4 | +1.0 / -0.1・+0.0° | 316 ○ |  |
| 145338 | 2 | -45 / +36.2 | 面+0・+22.0° | 334 | +2.1 / -3.9・+8.4° | 面+0・爪17°・面傾-9.0°・手首+30.2°・ok | +0.9 / -3.6・+8.4・-3.4 | +1.2 / -0.1・+0.0° | 318 ○ |  |
| 145926 | 2 | -30 / -41.7 | 面+90・+34.8° | 343 | +1.5 / -6.8・+8.7° | 面+90・爪16°・面傾-12.0°・手首+43.4°・ok | +0.5 / -6.5・+8.7・-4.4 | +1.0 / -0.1・-0.0° | 316 ○ |  |
| 150159 | 3 | -30 / -26.9 | 面+90・+20.3° | 347 | -4.6 / -7.5・+8.2° | 面+0・爪4°・面傾+0.4°・手首-57.4°・ok | -3.3 / -2.7・+8.2・-0.7 | -5.0 / +0.6・+0.0° | 341 ○ | ★面・手首 |
| 150321 | 3 | -35 / -32.9 | 面+90・+14.5° | 345 | -4.3 / -6.6・+8.2° | 面+0・爪3°・面傾-0.4°・手首-63.0°・ok | -2.9 / -1.3・+8.2・-2.7 | -5.5 / +0.6・-0.0° | 342 ○ | ★面・手首 |
| 150410 | 3 | -40 / -44.0 | 面+90・+3.8° | 341 | -3.3 / -3.5・+8.4° | 面+90・爪0°・面傾-3.2°・手首+12.3°・ok | -0.6 / -4.2・+8.4・-3.6 | -2.7 / +0.3・-0.0° | 328 ○ |  |
| 150509 | 3 | -45 / +39.1 | 面+0・-2.0° | 342 | -2.8 / +7.1・+6.1° | 面+0・爪47°・面傾-1.1°・手首+4.7°・ok | +6.0 / +5.4・+6.1・+0.6 | -9.0 / +0.8・-0.0° | 334 ○ | ★手首 |
| 150606 | 3 | +30 / +34.0 | 面+0・-6.9° | 337 | -2.9 / +6.0・+7.2° | 面+0・爪25°・面傾-0.0°・手首+1.4°・ok | +1.0 / +5.1・+7.1・-6.4 | -4.0 / +0.4・+0.0° | 326 ○ | ★手首 |
| 150736 | 4 | -40 / -36.4 | 面+0・-45.5° | 340 | -4.6 / +3.7・+8.1° | 面+0・爪5°・面傾+0.4°・手首-37.1°・ok | -1.0 / +2.8・+8.1・-3.4 | -3.7 / +0.4・-0.0° | 336 ○ |  |
| 150827 | 4 | +40 / +33.9 | 面-90・-65.9° | 326 | -8.0 / +8.4・+8.1° | 面-90・爪4°・面傾+0.4°・手首-56.7°・ok | -0.8 / +6.5・+8.1・-3.4 | -7.5 / +0.9・-0.0° | 341 ○ |  |
| 150907 | 4 | -45 / +41.9 | 面+0・+30.1° | 332 | +1.4 / -3.6・+8.2° | 面-90・爪4°・面傾+0.2°・手首-50.0°・ok | +3.0 / +2.2・+8.2・+1.4 | -6.0 / +0.7・+0.0° | 339 ○ | ★面・手首 |
| 150949 | 4 | +45 / -44.8 | 面+0・-55.6° | 327 | -6.1 / +6.0・+8.1° | 面+0・爪4°・面傾+0.1°・手首-46.8°・ok | -1.0 / +4.6・+8.1・-3.4 | -5.2 / +0.6・-0.0° | 338 ○ |  |
| 151037 | 4 | -30 / +40.4 | 面+0・+29.0° | 330 | +1.5 / -3.6・+8.2° | 面-90・爪4°・面傾+0.2°・手首-51.0°・ok | +3.1 / +2.4・+8.2・+1.4 | -6.2 / +0.7・+0.0° | 340 ○ | ★面・手首 |
| 151124 | 5 | +35 / +32.5 | 面-90・-45.8° | 364 | -6.8 / +0.0・+7.5° | 面-90・爪23°・面傾+13.2°・手首-37.3°・deep_at_zero | -2.4 / -1.0・+7.5・-6.4 | -4.5 / +0.5・-0.0° | 314 ○ |  |
| 151320 | 5 | -30 / -33.0 | 面+0・-19.8° | 334 | -0.4 / -3.2・+7.5° | 面+0・爪20°・面傾+4.2°・手首-11.8°・deep_at_zero | -1.4 / -3.0・+7.5・-3.1 | +1.0 / -0.0・-0.0° | 310 ○ |  |

## 確かめ 3: 425 の 27 回の置き方 (読んだ画素・向き)

| 回 | 場所 | 向き 案内 / 読んだ | 425 の結果 | 425 の道 (面・手首) | 実機の y | 425 の道の 429 予想 a / b・角度 | 429 の道 | 爪の差 a / b mm・向き° | 429 予想 a / b・角度 | 予想の y | 印 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 125055 | 2 | -30 / -28.1 | 成功 | 面+0・-41.2° | 366 | -3.8 / -7.5・+7.7° | 面+0・爪18°・面傾+9.1°・手首-34.1°・deep_at_zero | -2.3 / -7.9・+7.7 | -1.5 / +0.2・+0.0° | 328 ○ |  |
| 125315 | 2 | +30 / +30.7 | 失敗 | 面+0・+16.3° | 273 | +3.0 / +10.9・+8.4° | 面+0・爪17°・面傾-7.5°・手首+24.9°・ok | +1.8 / +11.2・+8.4 | +1.2 / -0.1・+0.0° | 320 ○ |  |
| 125503 | 2 | -35 / -27.5 | 成功 | 面+0・-41.7° | 373 | -3.8 / -7.5・+7.7° | 面+0・爪18°・面傾+9.2°・手首-34.7°・deep_at_zero | -2.3 / -7.8・+7.7 | -1.5 / +0.2・+0.0° | 326 ○ |  |
| 125629 | 2 | +35 / +29.0 | 失敗 | 面+0・+14.9° | 277 | +2.8 / +10.5・+8.4° | 面+0・爪17°・面傾-7.1°・手首+23.6°・conflict | +0.6 / +11.1・+8.4 | +2.2 / -0.3・+0.0° | 319 ○ |  |
| 125810 | 2 | -40 / -43.7 | 失敗 | 面+90・+33.9° | 247 | +3.7 / +16.5・+8.6° | 面+90・爪16°・面傾-11.6°・手首+41.7°・conflict | +2.0 / +17.0・+8.6 | +1.7 / -0.2・+0.0° | 316 ○ |  |
| 125924 | 2 | +40 / +36.3 | 失敗 | 面+0・+23.8° | 260 | +3.4 / +13.3・+8.5° | 面+0・爪17°・面傾-9.5°・手首+32.2°・conflict | +1.3 / +13.9・+8.5 | +2.2 / -0.3・+0.0° | 317 ○ |  |
| 130052 | 2 | -45 / +42.9 | 失敗 | 面+0・+29.8° | 256 | +3.4 / +15.3・+8.5° | 面+0・爪15°・面傾-10.1°・手首+37.7°・conflict | +1.5 / +15.8・+8.5 | +2.0 / -0.2・+0.0° | 318 ○ |  |
| 130210 | 2 | +45 / +44.9 | 失敗 | 面+0・+32.0° | 249 | +3.5 / +15.9・+8.6° | 面+0・爪15°・面傾-10.6°・手首+39.7°・conflict | +1.8 / +16.4・+8.6 | +1.7 / -0.2・-0.0° | 317 ○ |  |
| 130340 | 3 | -30 / -30.9 | 失敗 | 面+90・+18.1° | 266 | -2.1 / +15.4・+8.2° | 面+0・爪3°・面傾-0.4°・手首-60.9°・ok | -0.8 / +20.5・+8.2 | -5.2 / +0.6・-0.0° | 342 ○ | ★面・手首 |
| 130425 | 3 | +30 / +32.7 | 成功 | 面+0・-8.4° | 304 | -2.3 / +13.9・+7.4° | 面+0・爪22°・面傾-0.0°・手首+0.5°・ok | +1.1 / +13.1・+7.4 | -3.5 / +0.4・-0.0° | 325 ○ | ★手首 |
| 130517 | 3 | -35 / -35.6 | 失敗 | 面+90・+13.4° | 275 | -1.8 / +14.5・+8.3° | 面+90・爪-1°・面傾-3.0°・手首+21.4°・ok | +1.1 / +13.7・+8.3 | -3.0 / +0.3・-0.0° | 329 ○ |  |
| 130614 | 3 | +35 / +30.0 | 成功 | 面+0・-11.2° | 303 | -2.1 / +12.3・+7.7° | 面+0・爪17°・面傾+0.1°・手首-2.4°・ok | +1.1 / +11.5・+7.7 | -3.2 / +0.4・-0.0° | 325 ○ |  |
| 130714 | 3 | -40 / -41.9 | 失敗 | 面+90・+6.5° | 281 | -1.8 / +13.2・+8.3° | 面+90・爪0°・面傾-3.2°・手首+14.9°・ok | +0.8 / +12.4・+8.3 | -2.7 / +0.3・+0.0° | 327 ○ |  |
| 130813 | 3 | +40 / +36.1 | 成功 | 面+0・-6.3° | 302 | -2.7 / +16.1・+6.7° | 面+0・爪30°・面傾-0.0°・手首+2.5°・ok | +1.9 / +15.0・+6.7 | -4.7 / +0.5・+0.0° | 328 ○ | ★手首 |
| 130855 | 3 | -45 / -40.6 | 失敗 | 面+90・+7.6° | 280 | -2.0 / +13.5・+8.3° | 面+90・爪-1°・面傾-3.1°・手首+15.9°・ok | +0.9 / +12.7・+8.3 | -3.0 / +0.3・-0.0° | 328 ○ |  |
| 130953 | 3 | +45 / +42.2 | 成功 | 面+0・+0.5° | 288 | -1.9 / +11.9・+8.4° | 面+0・爪-1°・面傾-3.2°・手首+9.2°・ok | +0.6 / +11.2・+8.4 | -2.5 / +0.3・-0.0° | 329 ○ |  |
| 131054 | 4 | -30 / -30.7 | 成功 | 面+0・-39.8° | 384 | -4.3 / -7.0・+8.1° | 面+0・爪5°・面傾+0.1°・手首-33.2°・ok | -1.4 / -7.7・+8.1 | -3.0 / +0.3・-0.0° | 335 ○ |  |
| 131143 | 4 | +30 / +24.8 | 成功 | 面+0・+13.4° | 295 | +2.4 / +7.2・+8.3° | 面-90・爪3°・面傾-0.3°・手首-66.1°・ok | +4.8 / +15.9・+8.3 | -8.9 / +1.0・+0.0° | 342 ○ | ★面・手首 |
| 131228 | 4 | -35 / -34.2 | 成功 | 面+0・-43.2° | 376 | -5.3 / -7.7・+8.1° | 面+0・爪5°・面傾+0.3°・手首-36.8°・ok | -1.6 / -8.6・+8.1 | -3.7 / +0.4・-0.0° | 336 ○ |  |
| 131311 | 4 | +35 / +23.1 | 成功 | 面+0・+11.6° | 301 | +2.4 / +6.8・+8.3° | 面+0・爪-1°・面傾-3.1°・手首+19.8°・ok | +0.5 / +7.3・+8.3 | +2.0 / -0.2・-0.0° | 330 ○ |  |
| 131408 | 4 | -40 / -43.6 | 失敗 | 面+0・-51.5° | 385 | -7.1 / -9.3・+8.1° | 面+0・爪4°・面傾+0.0°・手首-45.7°・ok | -2.0 / -10.6・+8.1 | -5.2 / +0.6・-0.0° | 338 ○ |  |
| 131444 | 4 | +40 / +33.5 | 失敗 | 面-90・-62.9° | 386 | -9.7 / -10.9・+8.1° | 面-90・爪4°・面傾+0.4°・手首-57.8°・ok | -2.4 / -12.8・+8.1 | -7.5 / +0.9・-0.0° | 342 ○ |  |
| 131523 | 4 | -45 / +40.1 | 失敗 | 面+0・+30.7° | 279 | +3.3 / +12.4・+8.2° | 面-90・爪4°・面傾+0.2°・手首-51.1°・ok | +4.9 / +18.5・+8.2 | -6.2 / +0.7・-0.0° | 340 ○ | ★面・手首 |
| 131601 | 4 | +45 / -43.7 | 失敗 | 面+0・-51.5° | 399 | -7.1 / -9.3・+8.1° | 面+0・爪4°・面傾+0.0°・手首-45.7°・ok | -2.0 / -10.7・+8.1 | -5.2 / +0.6・+0.0° | 338 ○ |  |
| 131646 | 5 | -30 / -31.2 | 成功 | 面+0・-17.6° | 346 | -0.2 / -5.6・+7.6° | 面+0・爪20°・面傾+3.5°・手首-9.8°・deep_at_zero | -1.4 / -5.3・+7.6 | +1.2 / -0.1・+0.0° | 309 ○ |  |
| 131745 | 5 | -35 / +35.9 | 失敗 | 面+0・+52.2° | 267 | +7.4 / +12.8・+8.8° | 面-90・爪23°・面傾+12.4°・手首-34.2°・conflict | +8.3 / +16.4・+8.8 | -3.7 / +0.4・+0.0° | 320 ○ | ★面・手首 |
| 131904 | 5 | -40 / -43.6 | 成功 | 面+0・-30.3° | 354 | -3.1 / -7.5・+7.4° | 面+0・爪21°・面傾+7.9°・手首-22.8°・deep_at_zero | -1.9 / -7.9・+7.4 | -1.2 / +0.2・-0.0° | 312 ○ |  |

## session_429.sh の 22 回 (目印の画素・置く向き)

| # | 場所 | 向き | 429 の道 | 429 予想 a / b・角度 | 予想の y | ガード |
|---|---|---|---|---|---|---|
| 1 | 2 | +30 | 面+0・爪19°・面傾-7.4°・手首+23.0°・ok | +1.0 / -0.1・-0.0° | 321 ○ | 送れる |
| 2 | 2 | +35 | 面+0・爪18°・面傾-8.7°・手首+28.3°・conflict | +2.0 / -0.2・-0.0° | 317 ○ | 送れる |
| 3 | 2 | +40 | 面+0・爪19°・面傾-10.7°・手首+33.5°・ok | +1.0 / -0.1・+0.0° | 318 ○ | 送れる |
| 4 | 2 | +45 | 面+90・爪19°・面傾-12.2°・手首+38.8°・conflict | +1.5 / -0.2・-0.0° | 315 ○ | 送れる |
| 5 | 2 | -40 | 面+90・爪19°・面傾-13.7°・手首+43.8°・deep_at_zero | +1.0 / -0.1・-0.0° | 314 ○ | 送れる |
| 6 | 2 | -45 | 面+90・爪19°・面傾-12.2°・手首+38.8°・conflict | +1.5 / -0.2・-0.0° | 315 ○ | 送れる |
| 7 | 2 | -30 | 面+0・爪21°・面傾+12.3°・手首-39.1°・conflict | -3.2 / +0.3・+0.0° | 336 ○ | 送れる |
| 8 | 3 | -30 | 面+0・爪3°・面傾-0.4°・手首-62.9°・ok | -5.2 / +0.6・-0.0° | 342 ○ | 送れる |
| 9 | 3 | -35 | 面+90・爪-2°・面傾-2.9°・手首+18.3°・ok | -3.7 / +0.4・-0.0° | 330 ○ | 送れる |
| 10 | 3 | -40 | 面+90・爪-1°・面傾-3.1°・手首+13.5°・ok | -3.2 / +0.4・+0.0° | 328 ○ | 送れる |
| 11 | 3 | -45 | 面+90・爪2°・面傾-3.2°・手首+8.7°・ok | -3.2 / +0.4・-0.0° | 325 ○ | 送れる |
| 12 | 3 | +30 | 面+0・爪13°・面傾+0.1°・手首-5.8°・ok | -3.5 / +0.4・-0.0° | 326 ○ | 送れる |
| 13 | 4 | -40 | 面+0・爪4°・面傾-0.1°・手首-43.7°・ok | -4.7 / +0.6・+0.0° | 338 ○ | 送れる |
| 14 | 4 | +40 | 面-90・爪4°・面傾+0.3°・手首-53.3°・ok | -6.5 / +0.8・-0.0° | 340 ○ | 送れる |
| 15 | 4 | -45 | 面+0・爪4°・面傾+0.1°・手首-48.5°・ok | -5.5 / +0.6・-0.0° | 339 ○ | 送れる |
| 16 | 4 | +45 | 面+0・爪4°・面傾+0.1°・手首-48.5°・ok | -5.5 / +0.6・-0.0° | 339 ○ | 送れる |
| 17 | 4 | -30 | 面+0・爪5°・面傾+0.2°・手首-34.0°・ok | -3.0 / +0.3・-0.0° | 335 ○ | 送れる |
| 18 | 5 | +35 | 面-90・爪24°・面傾+13.8°・手首-36.8°・deep_at_zero | -4.2 / +0.4・-0.0° | 313 ○ | 送れる |
| 19 | 5 | -30 | 面+0・爪21°・面傾+4.0°・手首-10.4°・deep_at_zero | +1.2 / -0.1・+0.0° | 309 ○ | 送れる |
| 20 | 2 | -35 | 面+0・爪21°・面傾+13.5°・手首-43.9°・deep_at_zero | -3.5 / +0.4・-0.0° | 334 ○ | 送れる |
| 21 | 5 | +40 | 面-90・爪23°・面傾+11.6°・手首-31.6°・deep_at_zero | -3.0 / +0.3・+0.0° | 312 ○ | 送れる |
| 22 | 5 | +45 | 面+0・爪22°・面傾+9.5°・手首-26.3°・deep_at_zero | -1.7 / +0.2・+0.0° | 312 ○ | 送れる |

## 確かめ 5: 目印でない所 (予想だけ. 実機のデータはない)

割合 = 場所 A の目印 (0) から 場所 B の目印 (1) へ 画素で内分・外分した所. 直しの量 = 429 の道の爪 − 付けないときの道の爪 (付けないときの道の a・b mm・向き°).

| 間 | 向き | 割合 | 画素 | 付けないとき (面・手首) | 429 の道 | 直しの量 a / b mm・向き° | 付けないときの 429 予想 b | 429 予想 a / b・角度 | 予想の y | 印 |
|---|---|---|---|---|---|---|---|---|---|---|
| 2〜3 | -30 | -0.33 | 258, 120 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面・爪の傾きがない | — | — | — | — | |
| 2〜3 | -30 | +0.00 | 233, 169 | 面+90・+46.9° | 面+0・爪21°・面傾+12.3°・手首-39.1°・conflict | +4.0 / +23.9・+8.7 | +20.7 | -3.2 / +0.3・+0.0° | 336 ○ | ★面・手首 |
| 2〜3 | -30 | +0.33 | 208, 217 | 面+0・-51.0° | 面+0・爪8°・面傾+3.2°・手首-44.6°・ok | -0.4 / -8.4・+8.0 | -7.2 | -4.5 / +0.5・+0.0° | 342 ○ |  |
| 2〜3 | -30 | +0.67 | 183, 267 | 面+0・-59.4° | 面+0・爪5°・面傾+1.2°・手首-52.9°・ok | -1.1 / -6.5・+8.1 | -5.2 | -5.0 / +0.6・+0.0° | 342 ○ |  |
| 2〜3 | -30 | +1.00 | 158, 315 | 面+90・+15.5° | 面+0・爪3°・面傾-0.4°・手首-62.9°・ok | -1.5 / +20.3・+8.2 | +15.2 | -5.2 / +0.6・-0.0° | 342 ○ | ★面・手首 |
| 2〜3 | +30 | -0.33 | 258, 120 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面・爪の傾きがない | — | — | — | — | |
| 2〜3 | +30 | +0.00 | 233, 169 | 面+0・+14.4° | 面+0・爪19°・面傾-7.4°・手首+23.0°・ok | +1.6 / +11.0・+8.3 | +10.7 | +1.0 / -0.1・-0.0° | 321 ○ |  |
| 2〜3 | +30 | +0.33 | 208, 217 | 面+0・+6.6° | 面+0・爪9°・面傾-4.0°・手首+15.1°・conflict | +0.5 / +9.3・+8.4 | +9.0 | +1.2 / -0.1・+0.0° | 322 ○ |  |
| 2〜3 | +30 | +0.67 | 183, 267 | 面+0・-3.1° | 面+0・爪49°・面傾-0.3°・手首+5.4°・conflict | +3.0 / +14.4・+6.0 | +15.3 | -4.7 / +0.4・+0.0° | 300 ○ | ★手首 |
| 2〜3 | +30 | +1.00 | 158, 315 | 面+0・-14.7° | 面+0・爪13°・面傾+0.1°・手首-5.8°・ok | +0.9 / +11.0・+7.9 | +11.9 | -3.5 / +0.4・-0.0° | 326 ○ |  |
| 4〜5 | -30 | +0.00 | 275, 253 | 面+0・-40.6° | 面+0・爪5°・面傾+0.2°・手首-34.0°・ok | -1.3 / -7.8・+8.1 | -7.0 | -3.0 / +0.3・-0.0° | 335 ○ |  |
| 4〜5 | -30 | +0.33 | 318, 220 | 面+0・-31.7° | 面+0・爪6°・面傾+0.1°・手首-24.6°・ok | -1.4 / -7.1・+8.1 | -6.6 | -2.0 / +0.2・+0.0° | 324 ○ |  |
| 4〜5 | -30 | +0.67 | 364, 187 | 面+0・-23.9° | 面+0・爪9°・面傾+0.7°・手首-16.5°・conflict | -1.4 / -6.8・+8.0 | -6.8 | -0.0 / +0.0・-0.0° | 311 ○ |  |
| 4〜5 | -30 | +1.00 | 407, 155 | 面+0・-18.1° | 面+0・爪21°・面傾+4.0°・手首-10.4°・deep_at_zero | -1.2 / -5.3・+7.5 | -5.7 | +1.2 / -0.1・+0.0° | 309 ○ |  |
| 4〜5 | -30 | +1.33 | 451, 123 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面・爪の傾きがない | — | — | — | — | |
| 4〜5 | +30 | +0.00 | 275, 253 | 面+0・+17.4° | 面-90・爪3°・面傾-0.4°・手首-62.7°・ok | +4.7 / +16.9・+8.3 | +8.9 | -8.2 / +0.9・-0.0° | 342 ○ | ★面・手首 |
| 4〜5 | +30 | +0.33 | 318, 220 | 面-90・-59.2° | 面-90・爪4°・面傾+0.3°・手首-53.8°・ok | -2.6 / -13.0・+8.1 | -11.1 | -7.5 / +0.9・-0.0° | 325 ○ |  |
| 4〜5 | +30 | +0.67 | 364, 187 | 面+0・+36.6° | 面-90・爪11°・面傾+5.8°・手首-46.3°・conflict | +7.2 / +14.2・+8.5 | +9.1 | -5.2 / +0.6・-0.0° | 316 ○ | ★面・手首 |
| 4〜5 | +30 | +1.00 | 407, 155 | 面+0・+44.4° | 面+0・爪17°・面傾-14.4°・手首+52.1°・ok | +2.0 / +12.2・+8.7 | +10.8 | +5.2 / -0.7・-0.0° | 334 ○ |  |
| 4〜5 | +30 | +1.33 | 451, 123 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面 | 止まる: 爪の面の傾きの小さい順に 候補 0 通りを試しても 道が作れない・ガードに当たる. rule_351 の選び方で作れる面・爪の傾きがない | — | — | — | — | |
```


### 依頼429 で決まった値（model_429.json）

```json
{
 "request": 429,
 "made_by": "so101/check_429/fit_429.py",
 "time": "2026-12-02T15:49:58",
 "what": "rule_401 の腕の計算 (CalcGraspMap) に 関節のずれを入れ, 爪の間の点 c・肩の回りのずらし pan_off・机で一定のずれ e0 を合わせ直した値. 道を作るときの式: 手先 t(q + ずれ) + R(q + ずれ) c = Rz(−pan_off)(B + e0) (x・y). 手先の高さ・爪の傾きの一次式は 校正の点で同じ作り方 (ずれあり)",
 "joint_offset_deg": {
  "wrist_flex": -3.4,
  "wrist_roll": -6.6
 },
 "joint_offset_file": "so101/sim/joint_offset_342.json",
 "joint_offset_sha256": "122c5048a32e41bc1b21094f866f227bf138b194acc633290216fcc239639778",
 "form": "B426",
 "form_text": "426 の B (e0 + v)",
 "c_mm": [
  -4.801,
  -14.119,
  -12.333
 ],
 "pan_off_deg": 0.0,
 "e0_xy_mm": [
  3.562,
  11.546
 ],
 "v_gripper_mm": [
  -17.851,
  1.546,
  -12.048
 ],
 "grasp_z_mm": 11.991,
 "tilt_ab": [
  -5.26549,
  0.11895
 ],
 "wrist_y_z0_mm": 16.32,
 "wrist_y_what": "手首の絵での予想の y (記録・表に出すだけ. 道は変えない) に使う 机の高さ (手首の絵で当てはめた z0 の 56 回の中央. 426 の 2-2 の 机が近く見える分)",
 "corr": false,
 "corr_why": "校正の点の 人の合わせ方に寄せる直し (calc_corr. 最大 5 mm) は 429 の当てはめと別の答えを足すので使わない",
 "data": {
  "measure_426": "1c1a8e9df494e6cb9795a0b6c1f00f4942d21db23cd4f263bdf3a9025461552f",
  "measure_429": "85620eb80d16074460165cddeeb5d79bb2e6835733ee18a742372e49d7f8f45d",
  "calib": "d9797e5490ec6356da5f975fabd03d939d0260b8dce5f33bff130d85a3976e48"
 }
}
```


### model_429.py

```python
"""依頼 429 (案 B): rule_401 が道を作るときの腕の計算 (CalcGraspMap. W.w.gmap) に 手首の関節のずれ (joint_offset_342) を入れ,
爪の間の点 c・肩の回りのずらし pan_off・机で一定のずれ e0・手先の高さ・爪の傾きの一次式を model_429.json (fit_429.py が作る) の値にする.
環境変数 R429_MODEL=1 を付けたときだけ効く. install(W) が このプロセスの中の W.w.gmap 1 つだけを差し替える
(var_lib_314・rule_401・lib_399・run_rule401 のファイルは変えない).

差し替える所 (CalcGraspMap の中だけ):
  _q(q)          : 肩の回り + pan_off, 手首の曲げ + ずれ, 手首の回り + ずれ (今は 肩の回り + pan_off だけ)
                   → つかむ所の位置・爪の閉じる向き・爪の傾き・爪の面の傾き・Shifter (寄せ・下げ) が 全部 ずれを入れた腕で解かれる
  correction(B)  : 校正の点の直し (calc_corr. 最大 5 mm) の代わりに 机で一定のずれ e0 (爪の間の点のねらい = B + e0. 高さは足さない)
  c・pan_off・grasp_z・tilt_ab : model_429.json の値
変えない所: ガード (clear_345・範囲・1 コマの変化・押し付け・status)・rule_401 の すき間 12 mm の寄せと 下げ dz (lib_399 の MuJoCo の場面.
  ずれなし) は 今と同じものが そのまま当たる. ブロックの上 (above_pose)・持ち上げ は 今と同じ作り方 (URDF. ずれなし).
"""
import hashlib
import json
import os
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
for _p in (SO101 / "ideal_var", SO101 / "check_399", SO101 / "sim"):
    if str(_p) not in sys.path:
        sys.path.insert(0, str(_p))

ENV = "R429_MODEL"
MODEL_JSON = HERE / "model_429.json"
OFF_IDX = {"wrist_flex": 3, "wrist_roll": 4}
STATE = {"installed": False, "m": None, "orig": None}


def on():
    v = os.environ.get(ENV, "").strip()
    if v not in ("", "0", "1"):
        raise ValueError(f"{ENV} は 1 (付ける) か 0・空 (付けない) だけ: {v!r}")
    return v == "1"


def check_alone():
    """R427_CORR・R426_CORR と一緒なら 理由 (文字). なければ None"""
    bad = [k for k in ("R427_CORR", "R426_CORR") if os.environ.get(k, "").strip() not in ("", "0")]
    return f"{ENV}=1 と {'・'.join(bad)} を一緒に付けない (どれが効いたか分からなくなる)" if bad else None


def sha(p):
    return hashlib.sha256(Path(p).read_bytes()).hexdigest()


def load(path=MODEL_JSON):
    p = Path(path)
    d = json.loads(p.read_text())
    for k in ("c_mm", "pan_off_deg", "e0_xy_mm", "grasp_z_mm", "tilt_ab", "joint_offset_deg"):
        if k not in d:
            raise ValueError(f"{p} に {k} がない")
    if len(d["c_mm"]) != 3 or len(d["e0_xy_mm"]) != 2 or len(d["tilt_ab"]) != 2:
        raise ValueError(f"{p} の値の数が違う")
    jo = json.loads((SO101.parent / d["joint_offset_file"]).read_text())["offset_deg"]
    for k in OFF_IDX:
        if abs(float(jo.get(k, 0.0)) - float(d["joint_offset_deg"][k])) > 1e-9:
            raise ValueError(f"関節のずれ {k} が {d['joint_offset_file']} と model_429.json で違う")
    off = np.zeros(5)
    for k, i in OFF_IDX.items():
        off[i] = float(d["joint_offset_deg"][k])
    d["_off"] = off
    d["_sha256"] = sha(p)
    d["_joint_offset_sha256"] = sha(SO101.parent / d["joint_offset_file"])
    d["_path"] = str(p.relative_to(SO101.parent)) if p.is_relative_to(SO101.parent) else str(p)
    return d


def record(m):
    """trial.json の rule401 に残す 使った値"""
    return {"model_file": m["_path"], "model_sha256": m["_sha256"], "form": m.get("form"),
            "joint_offset_deg": m["joint_offset_deg"], "joint_offset_file": m["joint_offset_file"],
            "joint_offset_sha256": m["_joint_offset_sha256"], "c_mm": m["c_mm"], "pan_off_deg": m["pan_off_deg"],
            "e0_xy_mm": m["e0_xy_mm"], "v_gripper_mm": m.get("v_gripper_mm"), "grasp_z_mm": m["grasp_z_mm"], "tilt_ab": m["tilt_ab"],
            "calib_corr": False}


def make_class(V):
    class Model429Map(V.CalcGraspMap):
        """CalcGraspMap の腕の計算に 関節のずれを足し, 直しを 机で一定のずれ e0 にしたもの (依頼 429)"""

        def _q(self, q):
            qq = np.asarray(q, np.float64)[:V.J5].copy()
            qq[0] += self.pan_off
            qq += self._m429_off
            return qq

        def _gpt(self, q, c, pan_off):
            qq = np.asarray(q, np.float64)[:V.J5].copy()
            qq[0] += pan_off
            qq += self._m429_off
            t, R = V.tcp_arm(self.chain, qq)
            return t + R @ c

        def correction(self, bxy):
            return np.r_[self._m429_e0, 0.0]

        def describe(self):
            d = super().describe()
            d.update(model429=True, e0_xy_mm=self._m429_e0.round(3).tolist(), joint_offset=self._m429_off.round(3).tolist())
            return d
    return Model429Map


def install(W, m=None):
    """W (run_rule401.world() の答え) の W.w.gmap を 429 の計算にする (このプロセスだけ). → 読んだ model_429.json"""
    import var_lib_314 as V
    m = load() if m is None else m
    gm = W.w.gmap
    if type(gm) is not V.CalcGraspMap:
        raise ValueError(f"つかむ所の作り方が CalcGraspMap ではない: {type(gm).__name__}")
    if not gm.level:
        raise ValueError("つかむ所の作り方が level ではない (割り振りの grasp_mode が違う)")
    STATE["orig"] = {"cls": type(gm), "c": gm.c.copy(), "pan_off": gm.pan_off, "grasp_z": gm.grasp_z, "tilt_ab": gm.tilt_ab.copy(),
                     "corr": gm.corr}
    gm.__class__ = make_class(V)
    gm._m429_off = np.asarray(m["_off"], float)
    gm._m429_e0 = np.asarray(m["e0_xy_mm"], float)
    gm.c = np.asarray(m["c_mm"], float)
    gm.pan_off = float(m["pan_off_deg"])
    gm.grasp_z = float(m["grasp_z_mm"])
    gm.tilt_ab = np.asarray(m["tilt_ab"], float)
    gm.corr = True          # solve・level_candidates が correction() を呼ぶように (中身は e0 だけ. 校正の点の直しは使わない)
    STATE.update(installed=True, m=m, W=W)
    return m


def uninstall():
    if STATE["installed"]:
        gm = STATE["W"].w.gmap
        o = STATE["orig"]
        gm.__class__ = o["cls"]
        gm.c, gm.pan_off, gm.grasp_z, gm.tilt_ab, gm.corr = o["c"], o["pan_off"], o["grasp_z"], o["tilt_ab"], o["corr"]
        for k in ("_m429_off", "_m429_e0"):
            gm.__dict__.pop(k, None)
        STATE.update(installed=False, m=None, orig=None, W=None)


# ---- 予想 (道を作ったあとに 記録・表に出すだけ. 道は変えない) ---------------------------------------------
def predict(W, m, q5, bxy, yaw):
    """つかむ所 q5 (指令の関節 5 つ) で 429 の形が予想する ブロックの所 (本当の所 = B + e0) と 爪の間の点 (t + R c) の差 (爪の閉じる向き a・
    直角で根もとから外へ b. mm) と 爪とブロックの角度 (度. ずれを入れた腕の爪の閉じる向き − 読んだ向き. 90° で折る)"""
    import var_lib_314 as V
    import yaw_lib_343 as Y
    qq = np.asarray(q5, float)[:5].copy()
    qq += m["_off"]
    t, R = V.tcp_arm(W.w.chain, qq)
    g = (t + R @ np.asarray(m["c_mm"], float))[:2]
    c, s = np.cos(np.radians(-m["pan_off_deg"])), np.sin(np.radians(-m["pan_off_deg"]))
    btrue = np.array([[c, -s], [s, c]]) @ (np.asarray(bxy, float) + np.asarray(m["e0_xy_mm"], float))
    a = (R @ Y.JAW_AXIS_TCP)[:2]
    a = a / np.linalg.norm(a)
    b = np.array([-a[1], a[0]])
    if b @ np.asarray(bxy, float) < 0:
        b = -b
    d = btrue - g
    ja = float(np.degrees(np.arctan2(a[1], a[0])))
    ang = (float(yaw) + 90.0 - ja + 45.0) % 90.0 - 45.0
    return {"block_minus_target_a_mm": round(float(d @ a), 2), "block_minus_target_b_mm": round(float(d @ b), 2),
            "angle_deg": round(ang, 2), "jaw_yaw_deg": round(ja, 2)}


_PX = {}


def wristpx():
    if "P" not in _PX:
        sys.path.insert(0, str(SO101 / "check_427"))
        import wristpx_427 as WP
        _PX["P"] = WP.WristPx()
    return _PX["P"]


def wrist_y(W, m, q_go_cmd, q_go_pred, bxy, yaw, px=None):
    """手首の絵での予想の y (640×480. 記録・表に出すだけ). 手首カメラのシム (check_427/wristpx_427. 関節のずれあり) を
    腕の動きの予想 (rule_401 の pred_path) の GRASP_OPEN の姿勢に置き, 429 の形が予想する「手首の絵で測る ブロックの所」
    (Rz(−pan_off)(B + e0) + R v. R = 指令 + ずれ の手先の向き) に 机の高さ wrist_y_z0_mm の立方体を置いた 凸包の重心の y.
    427 の 19 回で 実際の y との差は 平均 −2・ばらつき 19 画素 (REPORT.md の 3)"""
    import cv2
    import sim_330 as S
    import var_lib_314 as V
    px = wristpx() if px is None else px
    qq = np.asarray(q_go_cmd, float)[:5] + m["_off"]
    _, R = V.tcp_arm(W.w.chain, qq)
    c, s = np.cos(np.radians(-m["pan_off_deg"])), np.sin(np.radians(-m["pan_off_deg"]))
    w = np.array([[c, -s], [s, c]]) @ (np.asarray(bxy, float) + np.asarray(m["e0_xy_mm"], float))
    w = w + (R @ np.asarray(m.get("v_gripper_mm") or [0, 0, 0], float))[:2]
    z0 = float(m.get("wrist_y_z0_mm", 0.0))
    cc = S.box_corners(w, float(yaw), [21.7, 21.7], z0, z0 + 21.7)
    E = [(0, 1), (1, 2), (2, 3), (3, 0), (4, 5), (5, 6), (6, 7), (7, 4), (0, 4), (1, 5), (2, 6), (3, 7)]
    t = np.linspace(0, 1, 6)[:, None]
    pts = np.vstack([cc[a] + t * (cc[b] - cc[a]) for a, b in E])
    q6 = np.r_[np.asarray(q_go_pred, float)[:5], np.asarray(q_go_cmd, float)[5] if len(q_go_cmd) > 5 else 59.0]
    pxy, ok = px.G.project_wrist(pts, px.cam, px._T(q6))
    if not np.all(ok):
        return None
    h = cv2.convexHull(np.asarray(pxy, np.float32).reshape(-1, 1, 2))
    mm = cv2.moments(h)
    return None if mm["m00"] <= 0 else round(float(mm["m01"] / mm["m00"]), 1)


def summarize(W, m, b, with_y=True):
    """作った道 b (run_rule401.build の答え) の GRASP_OPEN で 429 の予想 (位置 a・b・角度・手首の絵の y)"""
    v = b["v"]
    go = int(v["frames"]["GRASP_OPEN"])
    path = np.asarray(b["path"], float)
    out = predict(W, m, path[go, :5], b["bxy"], b["yaw"])
    if with_y:
        qp = np.asarray(v["pred_path"], float)
        out["wrist_y_pred"] = wrist_y(W, m, path[go], qp[min(go, len(qp) - 1)], b["bxy"], b["yaw"])
    out["roll_grasp_deg"] = round(float(path[go, 4]), 2)
    return out


def text(s):
    if not s:
        return "429 の計算なし"
    y = s.get("wrist_y_pred")
    return (f"429 の計算: 手首の回り {s['roll_grasp_deg']:+.1f}°・ねらいからのずれの予想 閉じる向き {s['block_minus_target_a_mm']:+.1f} / "
            f"直角 {s['block_minus_target_b_mm']:+.1f} mm・角度 {s['angle_deg']:+.1f}°・手首の絵の予想の y {'—' if y is None else f'{y:.0f}'}")
```


### fit_429.py

```python
"""依頼 429 の 1: 手首の関節のずれ (joint_offset_342) を入れた腕の計算で, ずれの形と「爪の間の点」c・肩の回りのずらし・机で一定のずれを合わせ直す.
アームは動かさない. 計算だけ. 読むだけのデータ: check_426/measure_426.json (依頼 425 の 27 回 + LOG625 の 10 回)・
check_429/measure_429.json (依頼 427 の 19 回. measure_429.py が 依頼 426 と同じ測り方で測った)・校正の点 (calib_points_315.json).

腕の計算 (rule_401 が道を作るときと同じ URDF. 手先 = gripper_frame_link) に 関節のずれ (手首の曲げ −3.4°・手首の回り −6.6°) を足す:
  t(q), R(q) = 手先の位置・向き (関節 q + ずれ)
ブロックの所の形 (手首の絵で測った所 w を 机のカメラで読んだ所 B から予想する. 1 つ抜きで比べる):
  w ≈ Rz(−φ)(B + e0) + (R v) の x・y
    e0 : 机で一定のずれ (2)   φ : 肩の回りのずらし (= 机と腕の向きのずれ. 1)   v : gripper で一定のずれ (3)
  形の候補: 一定だけ (e0) / 426 の B (e0 + v) / φ + v / φ + e0 + v / e0 + v (v の高さの向きなし) / 関節のずれを入れない 426 の B (比べる用)
ねらい (爪の間の点 c): 成功した回のブロックの所 (測った所 w から v の分を引いた所) に 爪の間の点 t + R c が来る c を 最小二乗で出す.
  道を作るときの式は  t(q) + R(q) c = Rz(−φ)(B + e0)  (今の CalcGraspMap と同じ形. c・φ を入れ替え, e0 を足す).
  v を「手首カメラの誤差」と見ても「爪の付き方の誤差」と見ても この式は同じになる (どちらか分けられなくても道は同じ).

  python so101/check_429/fit_429.py      → check_429/model_429.json (道を作るときの値)・check_429/fit_429.json (当てはめの全部)
"""
import hashlib
import json
import sys
from datetime import datetime
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
for p in ("ideal_var", "check_377", "sim"):
    if str(SO101 / p) not in sys.path:
        sys.path.insert(0, str(SO101 / p))
import var_lib_314 as V  # noqa: E402
import yaw_lib_343 as Y  # noqa: E402

M426 = SO101 / "check_426" / "measure_426.json"
M429 = HERE / "measure_429.json"
JOINT_OFF = SO101 / "sim" / "joint_offset_342.json"
CALIB = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/315/calib_points_315.json")
MODEL_JSON = HERE / "model_429.json"
FIT_JSON = HERE / "fit_429.json"
OFF_IDX = {"wrist_flex": 3, "wrist_roll": 4}
LOG = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12")


def sha(p):
    return hashlib.sha256(Path(p).read_bytes()).hexdigest()


def joint_off():
    d = json.loads(JOINT_OFF.read_text())["offset_deg"]
    o = np.zeros(5)
    for k, i in OFF_IDX.items():
        o[i] = float(d.get(k, 0.0))
    return o


def rz(deg):
    c, s = np.cos(np.radians(deg)), np.sin(np.radians(deg))
    return np.array([[c, -s], [s, c]])


def jaw_ab(R, bxy):
    """爪の閉じる向き a (机に写す) と それに直角で 根もとから外へ向く b"""
    a = (R @ Y.JAW_AXIS_TCP)[:2]
    a = a / np.linalg.norm(a)
    b = np.array([-a[1], a[0]])
    if b @ np.asarray(bxy, float) < 0:
        b = -b
    return a, b


def load_rows(chain, off, use_off=True):
    import pandas as pd
    rows = []
    for src in (M426, M429):
        for o in json.loads(src.read_text())["trials"]:
            if "wrist" not in o:
                continue
            d = LOG / "so101" / o["trial"]
            st = np.stack(pd.read_parquet(d / "data/chunk-000/file-000.parquet")["observation.state"].values)
            q = st[o["go"], :5].astype(float) + (off if use_off else 0.0)
            t, R = V.tcp_arm(chain, q)
            B = np.asarray(o["xy_read"], float)
            a, b = jaw_ab(R, B)
            rows.append({"trial": o["trial"], "group": o["group"], "place": o["place"], "result": o["result"],
                         "roll": o["roll_grasp"], "tilt_s": o["tilt_s"], "face": o["face"], "yaw_intended": o.get("yaw_intended"),
                         "B": B, "w": np.asarray(o["wrist"]["xy"], float), "t": t, "R": R, "a": a, "b": b,
                         "w_along_b": o["wrist"]["along_b"], "w_along_a": o["wrist"]["along_a"], "w_gap_fixed": o["wrist"]["gap_fixed"],
                         "w_angle": o["wrist"]["angle"], "dyaw": o["read_err"]["dyaw"], "planoff_angle": o["plan_cmd_off"]["angle"],
                         "plan_angle": o["plan"]["angle"], "q_go": st[o["go"], :5].tolist()})
    return rows


# ---- ブロックの所の形 ------------------------------------------------------------------------------
FORMS = {
    "const": {"phi": False, "e0": True, "v": 0, "text": "一定 (e0)"},
    "B426": {"phi": False, "e0": True, "v": 3, "text": "426 の B (e0 + v)"},
    "phi_v": {"phi": True, "e0": False, "v": 3, "text": "φ + v"},
    "phi_e0_v": {"phi": True, "e0": True, "v": 3, "text": "φ + e0 + v"},
    "e0_vxy": {"phi": False, "e0": True, "v": 2, "text": "e0 + v (高さの向きなし)"},
}


def unpack(form, x):
    f = FORMS[form]
    i = 0
    phi = 0.0
    if f["phi"]:
        phi, i = float(x[0]), 1
    e0 = np.zeros(2)
    if f["e0"]:
        e0, i = np.asarray(x[i:i + 2], float), i + 2
    v = np.zeros(3)
    if f["v"]:
        v[:f["v"]] = x[i:i + f["v"]]
    return phi, e0, v


def npar(form):
    f = FORMS[form]
    return int(f["phi"]) + 2 * int(f["e0"]) + f["v"]


def pred_w(form, x, r):
    phi, e0, v = unpack(form, x)
    return rz(-phi) @ (r["B"] + e0) + (r["R"] @ v)[:2]


def fit_form(form, rs):
    def f(x):
        return np.concatenate([pred_w(form, x, r) - r["w"] for r in rs])
    return V._lm(f, np.zeros(npar(form)), iters=100)


def rms_xy(res):
    res = np.asarray(res)
    return np.sqrt((res ** 2).mean(0))


def eval_form(form, rs, train_groups=("425", "ref625")):
    x = fit_form(form, rs)
    res = np.array([pred_w(form, x, r) - r["w"] for r in rs])
    loo = []
    for i in range(len(rs)):
        xl = fit_form(form, rs[:i] + rs[i + 1:])
        loo.append(pred_w(form, xl, rs[i]) - rs[i]["w"])
    loo = np.array(loo)
    tr = [r for r in rs if r["group"] in train_groups]
    te = [r for r in rs if r["group"] not in train_groups]
    xt = fit_form(form, tr)
    oos = np.array([pred_w(form, xt, r) - r["w"] for r in te])
    ab = lambda E: np.array([[e @ r["a"], e @ r["b"]] for e, r in zip(E, rs)])  # noqa: E731
    return {"form": form, "text": FORMS[form]["text"], "n_par": npar(form), "x": x,
            "rms_xy": rms_xy(res), "rms_loo_xy": rms_xy(loo), "max_loo": float(np.linalg.norm(loo, axis=1).max()),
            "rms_loo_ab": rms_xy(ab(loo)), "loo": loo, "loo_ab": ab(loo),
            "rms_oos_xy_427": rms_xy(oos), "max_oos_427": float(np.linalg.norm(oos, axis=1).max()) if len(oos) else None}


# ---- ねらい (c) ----------------------------------------------------------------------------------
def fit_c(rows, form, x, z_tcp=None):
    """成功の回の 本当のブロックの所 (w − R v) に 爪の間の点 t + R c が来る c (3. 最小二乗). → c, 1 つ抜きの残り (a・b mm)"""
    phi, e0, v = unpack(form, x)

    def solve(rs):
        A = np.vstack([r["R"][:2, :] for r in rs])
        y = np.concatenate([r["w"] - (r["R"] @ v)[:2] - r["t"][:2] for r in rs])
        return np.linalg.lstsq(A, y, rcond=None)[0]
    c = solve(rows)
    loo = []
    for i, r in enumerate(rows):
        cl = solve(rows[:i] + rows[i + 1:])
        e = (r["t"] + r["R"] @ cl)[:2] - (r["w"] - (r["R"] @ v)[:2])     # 爪の間の点 − 本当のブロックの所 (その回を抜いた c)
        loo.append([float(e @ r["a"]), float(e @ r["b"])])
    return c, np.array(loo)


def calib_c(chain, off, pts, cam, form, x):
    """校正の点 (人が合わせたつかむ所) で 同じ式 t + R c = Rz(−φ)(B + e0) を満たす c (3. 最小二乗). 参考 (比べるだけ)"""
    phi, e0, v = unpack(form, x)
    A, y = [], []
    for p in pts:
        B = np.asarray(Y.pixel_to_desk_mm(cam, [p["u"], p["v"]], V.CALC_BLOCK_Z_MM), float)
        t, R = V.tcp_arm(chain, np.asarray(p["grasp"], float)[:5] + off)
        A.append(R[:2, :])
        y.append(rz(-phi) @ (B + e0) - t[:2])
    return np.linalg.lstsq(np.vstack(A), np.concatenate(y), rcond=None)[0]


def predict_ab(rows, c, form, x):
    """その回の実際の関節で 429 の式が想定する ブロックの所 と 測った所 の差 (a・b mm)"""
    phi, e0, v = unpack(form, x)
    out = []
    for r in rows:
        btrue = rz(-phi) @ (r["B"] + e0)
        g = (r["t"] + r["R"] @ c)[:2]
        e = (r["w"] - (r["R"] @ v)[:2]) - g          # 本当のブロック − 爪の間の点 (ねらい)
        out.append([float(e @ r["a"]), float(e @ r["b"])])
    return np.array(out)


def main():
    chain = V.load_urdf_chain(V.URDF)
    off = joint_off()
    rows = load_rows(chain, off, True)
    z0s = [o["wrist"]["z0"] for src in (M426, M429) for o in json.loads(src.read_text())["trials"] if "wrist" in o]
    rows_raw = load_rows(chain, off, False)
    print(f"回: {len(rows)} (426: {sum(r['group'] != '427' for r in rows)}, 427: {sum(r['group'] == '427' for r in rows)})")
    ev = {f: eval_form(f, rows) for f in FORMS}
    ev_raw = eval_form("B426", rows_raw)
    for f, e in list(ev.items()) + [("B426_no_offset", ev_raw)]:
        print(f"{f:16s} n{e['n_par']} rms {e['rms_xy'].round(2)} loo {e['rms_loo_xy'].round(2)} loo_ab {e['rms_loo_ab'].round(2)} "
              f"max {e['max_loo']:.1f}  426→427 {e['rms_oos_xy_427'].round(2)} max {e['max_oos_427']:.1f}  x {np.round(e['x'], 3)}")
    # 形の選び方: 1 つ抜きの残り (x・y の二乗平均の大きさ) が いちばん小さいものから 0.3 mm 以内のうち 項がいちばん少ないもの
    score = {f: float(np.linalg.norm(e["rms_loo_xy"])) for f, e in ev.items()}
    best = min(score.values())
    cand = sorted([f for f in ev if score[f] <= best + 0.3], key=lambda f: (ev[f]["n_par"], score[f]))
    form = cand[0]
    x = ev[form]["x"]
    phi, e0, v = unpack(form, x)
    succ = [r for r in rows if r["result"] == "success"]
    c, c_loo = fit_c(succ, form, x)
    import plan_377 as P377  # noqa: F401
    _, pts = V.load_calib(CALIB)
    cam = Y.desk_cam()
    c_cal = calib_c(chain, off, pts, cam, form, x)
    ab_all = predict_ab(rows, c, form, x)
    # 校正の点で 同じ式 (関節のずれあり) の 手先の高さ・爪の傾きの一次式 (CalcGraspMap と同じ作り方)
    tz = [V.tcp_arm(chain, np.asarray(p["grasp"], float)[:5] + off)[0][2] for p in pts]
    Bc = np.array([Y.pixel_to_desk_mm(cam, [p["u"], p["v"]], V.CALC_BLOCK_Z_MM) for p in pts])
    tl = np.array([Y.tool_tilt_deg(chain, np.asarray(p["grasp"], float)[:5] + off) for p in pts])
    rr = np.linalg.norm(Bc, axis=1)
    tilt_ab = np.linalg.lstsq(np.c_[np.ones(len(rr)), rr], tl, rcond=None)[0]
    grasp_z = float(np.median(tz))
    print(f"選んだ形 {form} φ {phi:+.3f} e0 {e0.round(2)} v {v.round(2)}  c {c.round(2)} (校正の点で {c_cal.round(2)})  "
          f"c の 1 つ抜き a/b rms {rms_xy(c_loo).round(2)}  grasp_z {grasp_z:.2f}  tilt_ab {tilt_ab.round(4)}")
    model = {"request": 429, "made_by": "so101/check_429/fit_429.py", "time": datetime.now().isoformat(timespec="seconds"),
             "what": "rule_401 の腕の計算 (CalcGraspMap) に 関節のずれを入れ, 爪の間の点 c・肩の回りのずらし pan_off・机で一定のずれ e0 を合わせ直した値. "
                     "道を作るときの式: 手先 t(q + ずれ) + R(q + ずれ) c = Rz(−pan_off)(B + e0) (x・y). 手先の高さ・爪の傾きの一次式は 校正の点で同じ作り方 (ずれあり)",
             "joint_offset_deg": {k: float(off[i]) for k, i in OFF_IDX.items()}, "joint_offset_file": str(JOINT_OFF.relative_to(SO101.parent)),
             "joint_offset_sha256": sha(JOINT_OFF),
             "form": form, "form_text": FORMS[form]["text"],
             "c_mm": [round(float(z), 3) for z in c], "pan_off_deg": round(float(phi), 4),
             "e0_xy_mm": [round(float(z), 3) for z in e0], "v_gripper_mm": [round(float(z), 3) for z in v],
             "grasp_z_mm": round(grasp_z, 3), "tilt_ab": [round(float(z), 5) for z in tilt_ab],
             "wrist_y_z0_mm": round(float(np.median(z0s)), 2),
             "wrist_y_what": "手首の絵での予想の y (記録・表に出すだけ. 道は変えない) に使う 机の高さ (手首の絵で当てはめた z0 の 56 回の中央. 426 の 2-2 の 机が近く見える分)",
             "corr": False, "corr_why": "校正の点の 人の合わせ方に寄せる直し (calc_corr. 最大 5 mm) は 429 の当てはめと別の答えを足すので使わない",
             "data": {"measure_426": sha(M426), "measure_429": sha(M429), "calib": sha(CALIB)}}
    MODEL_JSON.write_text(json.dumps(model, ensure_ascii=False, indent=1))
    per = []
    for i, r in enumerate(rows):
        e = ev[form]
        per.append({"trial": r["trial"], "group": r["group"], "place": r["place"], "result": r["result"], "roll": r["roll"],
                    "tilt_s": r["tilt_s"], "face": r["face"], "yaw_intended": r["yaw_intended"],
                    "loo_xy": e["loo"][i].round(2).tolist(), "loo_ab": e["loo_ab"][i].round(2).tolist(),
                    "pos_vs_target_ab": ab_all[i].round(2).tolist(),
                    "w_along_a": r["w_along_a"], "w_along_b": r["w_along_b"], "w_gap_fixed": r["w_gap_fixed"],
                    "w_angle": r["w_angle"], "dyaw": r["dyaw"], "planoff_angle": r["planoff_angle"], "plan_angle": r["plan_angle"]})
    js = lambda e: {"text": e["text"], "n_par": e["n_par"], "x": np.round(e["x"], 4).tolist(), "rms_xy": e["rms_xy"].round(2).tolist(),  # noqa: E731
                    "rms_loo_xy": e["rms_loo_xy"].round(2).tolist(), "rms_loo_ab": e["rms_loo_ab"].round(2).tolist(),
                    "max_loo_mm": round(e["max_loo"], 2), "rms_426to427_xy": e["rms_oos_xy_427"].round(2).tolist(),
                    "max_426to427_mm": round(e["max_oos_427"], 2)}
    ang = np.array([r["w_angle"] - r["planoff_angle"] for r in rows])
    out = {"time": model["time"], "made_by": "so101/check_429/fit_429.py (依頼 429)", "how": __doc__.split("  python")[0].strip(),
           "n": len(rows), "forms": {f: js(e) for f, e in ev.items()}, "B426_no_offset": js(ev_raw),
           "choose_rule": "1 つ抜きの残り (x・y の二乗平均) が いちばん小さい形から 0.3 mm 以内のうち 項がいちばん少ない形", "chosen": form,
           "c_mm": model["c_mm"], "c_loo_ab_rms": rms_xy(c_loo).round(2).tolist(), "c_loo_ab_max": np.abs(c_loo).max(0).round(2).tolist(),
           "c_from_calib_mm": c_cal.round(3).tolist(), "c_old_mm": [-10.138, -17.871, -4.771], "pan_off_old_deg": -1.589,
           "angle_resid_if_offset": {"mean": round(float(ang.mean()), 2), "sd": round(float(ang.std()), 2),
                                     "roll_neg_mean": round(float(np.mean([a for a, r in zip(ang, rows) if r["roll"] <= 0])), 2),
                                     "roll_pos_mean": round(float(np.mean([a for a, r in zip(ang, rows) if r["roll"] > 0])), 2),
                                     "what": "測った角度 − (指令 + 関節のずれ の爪と 読んだ向き の角度). 関節のずれを入れた計算でも残る角度のずれ"},
           "trials": per}
    FIT_JSON.write_text(json.dumps(out, ensure_ascii=False, indent=1))
    print("角度の残り", out["angle_resid_if_offset"])


if __name__ == "__main__":
    main()
```


### measure_429.py

```python
"""依頼 429: 依頼 427 の実機 19 回 (台帳の model code_rule401_corr427. 全部成功) を 依頼 426 と同じ測り方 (check_426/measure_426.measure) で測る.
アームは動かさない. 記録 (KIOXIA) は読むだけ. check_426 のファイルは変えない (import するだけ). 書くのは check_429/ の中だけ.

  python so101/check_429/measure_429.py                 → check_429/measure_429.json・check_429/sheets/*.jpg
  python so101/check_429/measure_429.py --only 143214   (1 回だけ. 前の答えに足す)
"""
import argparse
import json
import sys
from datetime import datetime
from pathlib import Path

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
sys.path.insert(0, str(SO101 / "check_426"))
import measure_426 as M  # noqa: E402

MODEL = "code_rule401_corr427"
OUT_JSON = HERE / "measure_429.json"


def main(argv=None):
    ap = argparse.ArgumentParser()
    ap.add_argument("--only", default="")
    a = ap.parse_args(argv)
    M.SHEETS = HERE / "sheets"
    rows = M.ledger_rows()
    todo = [r for r in rows if r["model"] == MODEL and r["execute"] == "1"]
    if a.only:
        sel = a.only.split(",")
        todo = [r for r in todo if any(r["trial"].endswith(s) for s in sel)]
    rig = M.Rig()
    prev = json.loads(OUT_JSON.read_text())["trials"] if OUT_JSON.exists() else []
    res = []
    for r in todo:
        o = M.measure(rig, r["trial"], int(r["place"]), r["result"], r["fail_reason"], "427")
        w = o.get("wrist", {})
        print(r["trial"], r["place"], o["yaw_intended"], r["result"], "a", w.get("along_a"), "b", w.get("along_b"), "fix", w.get("gap_fixed"),
              "ang", w.get("angle"), "iou", w.get("iou"), "| spread", (o.get("spread") or {}).get("xy_mm_max_dev"), flush=True)
        res.append(o)
    done = {o["trial"] for o in res}
    res = [o for o in prev if o["trial"] not in done] + res
    res.sort(key=lambda o: o["trial"])
    OUT_JSON.write_text(json.dumps({"time": datetime.now().isoformat(timespec="seconds"), "made_by": "so101/check_429/measure_429.py (依頼 429)",
                                    "how": "check_426/measure_426.measure と同じ (依頼 426 の測り方). 依頼 427 の 19 回", "trials": res},
                                   ensure_ascii=False, indent=1))


if __name__ == "__main__":
    main()
```


### run_429.py

```python
#!/usr/bin/env python3
"""依頼 429 (案 B): 依頼 425 の 1 回 (check_425/run_425.py) を, rule_401 の腕の計算に 関節のずれを入れて c・肩の回りのずらし・机で一定のずれを
合わせ直した計算 (model_429. R429_MODEL=1 のときだけ) で流す. run_rule401.py・run_425.py は変えない (このプロセスの中で差し替えるだけ).
  - 台帳の model を code_rule401_model429 にする (飛ばした回は <--log-dir>/model429_skipped.jsonl)
  - R429_MODEL=1 のとき run_rule401.world() の答えの W.w.gmap を model_429.install で差し替える. ガードは今と同じものが そのまま当たる
  - trial.json の rule401 に model429_on と model429 (使った値・model_429.json と joint_offset_342.json の SHA-256・
    GRASP_OPEN での予想: ねらいからのずれ a・b mm・角度・手首の絵の予想の y)
  - R427_CORR・R426_CORR と一緒なら 止める (どれが効いたか分からなくなる)
  - 読んだ向きが 案内した向き (--yaw) と 10° より大きく違うとき 送る前に 読んだ向き・選んだ面・手首の回りを 1 行大きく出す (止めない)
  R429_MODEL を付けなければ 道は run_425.py と同じ (model だけ code_rule401_model429)

  P=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python
  R429_MODEL=1 $P so101/check_429/run_429.py --yaw 35 --place 2 --dry-run --fake marker ...
"""
import os
import sys
from pathlib import Path

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
for p in (SO101 / "check_425", SO101 / "check_401", SO101 / "check_411", HERE):
    if str(p) not in sys.path:
        sys.path.insert(0, str(p))

MODEL_NAME = "code_rule401_model429"
SKIPPED = "model429_skipped.jsonl"
WARN_YAW_DEG = 10.0


def big(s):
    print(f"\n\033[1;33m==================================================\n  {s}\n==================================================\033[0m", flush=True)


def main(argv=None):
    argv = list(sys.argv[1:] if argv is None else argv)
    import model_429 as MD
    on = MD.on()
    if on:
        bad = MD.check_alone()
        if bad:
            sys.exit(f"[ERROR] {bad}")
    import run_425 as R5
    import wide_412 as WD
    RR = WD.RR
    m = MD.load() if on else None
    R5.MODEL_NAME, R5.SKIPPED = MODEL_NAME, SKIPPED
    yaw_int = float(argv[argv.index("--yaw") + 1]) if "--yaw" in argv else None
    orig_world, orig_prepare = RR.world, RR.prepare

    def world():
        W = orig_world()
        if on:
            MD.install(W, m)
        return W

    def prepare(W, plan, place, *a, **k):
        extra = {"model429_on": on}
        if on:
            extra["model429"] = MD.record(m)
        try:
            b, info = orig_prepare(W, plan, place, *a, **k)
        except RR.Refused as x:
            inf = getattr(x, "info", None)
            if inf is not None:
                inf.update(extra)
            raise
        info.update(extra)
        if on:
            s = MD.summarize(W, m, b)
            info["model429"]["at_grasp_open"] = s
            print(f"\033[1;33m[429   ] {MD.text(s)}\033[0m")
        yr = (info.get("block_read") or {}).get("yaw", info.get("block_yaw_deg"))
        if yaw_int is not None and yr is not None and abs(float(yr) - yaw_int) > WARN_YAW_DEG:
            info["yaw_read_off_429"] = round(float(yr) - yaw_int, 1)
            big(f"読んだ向き {float(yr):+.1f}° (案内 {yaw_int:+.0f}° と {float(yr) - yaw_int:+.1f}° 違う)・選んだ面 {info.get('face_deg')}・"
                f"手首の回り {info.get('roll_grasp_deg')}° で流れます")
        return b, info
    RR.world, RR.prepare = world, prepare
    if on:
        print(f"[429   ] 429 の計算あり ({MD.ENV}=1. {m['_path']}・sha256 {m['_sha256'][:16]}・関節のずれ {m['joint_offset_deg']}・"
              f"c {m['c_mm']}・肩の回りのずらし {m['pan_off_deg']}°・机で一定 {m['e0_xy_mm']})")
    else:
        print(f"[429   ] 429 の計算なし ({MD.ENV} を付けていない. 道は依頼 425 と同じ)")
    return R5.main(argv)


if __name__ == "__main__":
    sys.exit(main())
```


### session_429.sh

```bash
#!/bin/bash
# 依頼 429 (案 B): rule_401 の腕の計算に 関節のずれ (joint_offset_342) を入れ, 爪の間の点 c・肩の回りのずらし・机で一定のずれを合わせ直した計算
#   (R429_MODEL=1. check_429/model_429.py・model_429.json) で 実機で流す案内. エイイチの確かめのあとに使う (アームを動かす).
#   session_427.sh と同じ流れ・同じ環境変数 (R427_CORR は外し, R429_MODEL=1 を付ける). 1 回 = so101/check_429/run_429.py --execute を 1 度.
#   回す 22 回: 依頼 427 と同じ 19 回 (同じ順) + 場所2 −35 (面 0・手首の回り −側になる置き方. −30 と合わせて 427 で流れなかった条件を見る)
#     + 場所5 +40・+45 (面を切り替えてつかむ置き方)
#   台帳は KIOXIA lab/so101_Log12/so101_trials.csv (model = code_rule401_model429). trial.json の rule401 に 置く向き (yaw_intended_425)・
#   model429_on・model429 (使った値・ファイルの SHA-256・GRASP_OPEN での予想)・面・爪の傾き・爪の面の傾き・手首の回り.
#   途中で止めて打ち直すと 台帳で済んだ回 (結果のある回) と 道が作れず飛ばした回 (model429_skipped.jsonl) の次から続ける.
#   - 道が作れない回 (ガードに当たる・解けない. 終了コード 4) は 動かさずに理由を出して 次の向きへ進む
#   - 置き方で止まった回 (読めない・目印から 40 画素・HOME から 25°. 終了コード 3) は 同じ回をやり直す
#   - 読んだ向きが 案内した向きと 10° より大きく違うときは 送る前に 読んだ向き・選んだ面・手首の回りを 1 行大きく出す (止めない)
#   - 向きは 上から見て 反時計回りが + (依頼 409 と同じ). 立方体なので ±45° は同じ形 (読むと −45° 側になることがある)
#
#   ./so101/check_429/session_429.sh --first      次の回を 1 回だけ流して止める
#   ./so101/check_429/session_429.sh              22 回の残り
#   ./so101/check_429/session_429.sh --dry        アームなし (机のカメラだけ開いて 次の回を読む. 送らない. check_401/dry_run/ に書く)
#   ./so101/check_429/session_429.sh --dry-fake   アームなし・カメラなし (22 回を 目印の画素・置く向きで 全部 読んだことにする)
#
#   環境変数は session_427.sh と同じ (付ければその値): R401_TRACK_STOP_DEG=15・R401_PUSH_LIMIT_MM=-14・R401_PUSH_WINDOW_MM=-14・
#     R401_ALLOW_CONFLICT=1・R401_ALLOW_DEEP=1・R401_PIXEL_TOL_PX=40・R401_YAW_TOL_DEG=40・R401_START_TOL_DEG=25・R401_PICK=min_elev・R401_RESELECT=1
#   計算: R429_MODEL=1 (既定. R429_MODEL=0 で付けずに流すと 依頼 425 と同じ道. model は code_rule401_model429 のまま). R427_CORR・R426_CORR は外す
set -u
HERE="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$HERE" || exit 1
PY=${PY:-/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python}
LOG=/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12
MODEL=code_rule401_model429
ORDER="2:30 2:35 2:40 2:45 2:-40 2:-45 2:-30 3:-30 3:-35 3:-40 3:-45 3:30 4:-40 4:40 4:-45 4:45 4:-30 5:35 5:-30 2:-35 5:40 5:45"
N=22
MODE=run
case "${1:-}" in --first) MODE=first ;; --dry) MODE=dry ;; --dry-fake) MODE=dryfake ;; esac

export R401_TRACK_STOP_DEG=${R401_TRACK_STOP_DEG:-15}
export R401_PUSH_LIMIT_MM=${R401_PUSH_LIMIT_MM:--14}
export R401_PUSH_WINDOW_MM=${R401_PUSH_WINDOW_MM:--14}
export R401_PIXEL_TOL_PX=${R401_PIXEL_TOL_PX:-40}
export R401_YAW_TOL_DEG=${R401_YAW_TOL_DEG:-40}
export R401_START_TOL_DEG=${R401_START_TOL_DEG:-25}
export R401_PICK=${R401_PICK:-min_elev}
R401_ALLOW_CONFLICT=${R401_ALLOW_CONFLICT:-1}
R401_ALLOW_DEEP=${R401_ALLOW_DEEP:-1}
R401_RESELECT=${R401_RESELECT:-1}
export SO101_VAR_ROLL_RANGE=-67,58
R425_RANGE=${R425_RANGE:-now}
export R401_GAP_FALLBACK=${R401_GAP_FALLBACK:-}
case "$R425_RANGE" in
    now) unset SO101_RANGE_MODE ;;
    arm) export SO101_RANGE_MODE=arm ;;
    *) echo "[ERROR] R425_RANGE は now か arm: $R425_RANGE"; exit 1 ;;
esac
unset R401_ELEV_MODE R426_CORR R427_CORR
export R429_MODEL=${R429_MODEL:-1}
EXTRA=()
ST=(); [ "$R401_ALLOW_CONFLICT" = 1 ] && ST+=(conflict); [ "$R401_ALLOW_DEEP" = 1 ] && ST+=(deep_at_zero)
[ ${#ST[@]} -gt 0 ] && EXTRA+=(--allow-status "${ST[@]}")
[ "$R401_RESELECT" = 1 ] && EXTRA+=(--reselect-face)
echo "[INFO] 範囲 ${R425_RANGE}・すき間 12 mm${R401_GAP_FALLBACK:+ (作れないときだけ ${R401_GAP_FALLBACK} mm)}・R401_PICK=${R401_PICK}・TRACK_STOP ${R401_TRACK_STOP_DEG}°・"\
"PUSH_LIMIT ${R401_PUSH_LIMIT_MM}・PUSH_WINDOW ${R401_PUSH_WINDOW_MM}・画素 ${R401_PIXEL_TOL_PX}・向き ${R401_YAW_TOL_DEG}°・HOME ${R401_START_TOL_DEG}°・"\
"許す status: ${ST[*]:-なし}・選び直し ${R401_RESELECT}・計算 R429_MODEL=${R429_MODEL}"

[ -f so101/check_401/plan_401.json ] || { echo "[ERROR] 割り振りがない: so101/check_401/plan_401.json"; exit 1; }
[ -f so101/check_429/model_429.json ] || { echo "[ERROR] 429 の値がない: so101/check_429/model_429.json"; exit 1; }

turn_text() {   # 向き → 案内の文
    "$PY" -c "import sys; y=float(sys.argv[1]); print(f'{y:+.0f}° ({\"上から見て反時計回り\" if y > 0 else \"上から見て時計回り\"})')" "$1"
}

big() { printf '\n\033[1;33m==================================================\n  %s\n==================================================\033[0m\n' "$1"; }

if [ $MODE = dryfake ]; then
    i=0
    for t in $ORDER; do
        i=$((i + 1))
        p=${t%%:*}; y=${t#*:}
        echo "---- $i / $N 場所$p 向き $(turn_text "$y")"
        "$PY" so101/check_429/run_429.py --yaw "$y" --place "$p" --dry-run --fake marker ${EXTRA[@]+"${EXTRA[@]}"} | grep -E "^\[(R401|DRY|425|429) |\[429 " | grep -v '計算あり' | tail -n 8
    done
    exit 0
fi

[ -d "$LOG" ] || { echo "[ERROR] KIOXIA がつながっていない: $LOG"; exit 1; }

next_trial() {   # 台帳の code_rule401_model429 の 結果のある回 + 飛ばした回 を除いた 最初の "場所:向き" (全部済めば 空)
    "$PY" - "$LOG" "$MODEL" "$ORDER" <<'EOF'
import csv, json, sys
from pathlib import Path
sys.path.insert(0, "so101")
import run_so101_policy as R
log, model, order = Path(sys.argv[1]), sys.argv[2], sys.argv[3].split()
done = set()
try:
    with open(log / R.TRIALS_CSV, newline="") as f:
        for r in csv.DictReader(f, fieldnames=R.TRIAL_COLUMNS, restkey="_more"):
            if r["model"] == model and r["execute"] == "1" and r["result"] in ("success", "failure"):
                t = json.loads((Path(r["record_dir"]) / "trial.json").read_text())["rule401"]
                done.add((int(t["place"]), float(t["yaw_intended_425"])))
except FileNotFoundError:
    pass
sk = log / "model429_skipped.jsonl"
if sk.exists():
    done |= {(int(d["place"]), float(d["yaw"])) for d in map(json.loads, filter(str.strip, sk.read_text().splitlines()))}
left = [t for t in order if (int(t.split(":")[0]), float(t.split(":")[1])) not in done]
print(left[0] if left else "")
print(len(order) - len(left))
EOF
}

if [ $MODE = dry ]; then
    { read -r t; read -r n; } <<< "$(next_trial)"
    [ -z "$t" ] && { echo "[INFO] $N 回 全部済み"; exit 0; }
    p=${t%%:*}; y=${t#*:}
    big "dry: 場所$p の目印に 向き $(turn_text "$y") で置いて Enter"
    read -r _
    "$PY" so101/check_429/run_429.py --yaw "$y" --place "$p" --dry-run ${EXTRA[@]+"${EXTRA[@]}"}
    exit $?
fi

first=1
while :; do
    { read -r t; read -r n; } <<< "$(next_trial)"
    [ -z "$t" ] && break
    p=${t%%:*}; y=${t#*:}
    big "$((n + 1)) / $N 回目: 場所$p に $(turn_text "$y") で置いて Enter (q で終わる)"
    read -r a
    [ "$a" = q ] && exit 0
    args=(--yaw "$y" --place "$p" --log-dir "$LOG" --execute ${EXTRA[@]+"${EXTRA[@]}"})
    [ $first = 0 ] && args+=(--skip-first-confirm)
    "$PY" so101/check_429/run_429.py "${args[@]}"
    rc=$?
    first=0
    if [ $rc = 3 ]; then
        echo "[INFO] 動かさずに止まった (置き直してもう一度)"
    elif [ $rc = 4 ]; then
        echo "[INFO] 場所$p 向き ${y}° は 道が作れないので飛ばします (アームは動かしていない. $LOG/model429_skipped.jsonl)"
    elif [ $rc != 0 ]; then
        echo "[ERROR] 止まった (終了コード $rc). 続けるなら打ち直す"; exit $rc
    fi
    if [ $MODE = first ]; then
        echo "[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_429/session_429.sh"
        exit 0
    fi
done
big "済み: $N 回 (道が作れず飛ばした回は $LOG/model429_skipped.jsonl)"
```


### table_429.py

```python
#!/usr/bin/env python3
"""依頼 429 の 3 (確かめ 2〜5): R429_MODEL=1 (R427_CORR なし) で道を作り, 427 で成功した道・425 の道・付けないときの道と並べる (アームなし. 計算とシム).

  set s427   : 依頼 427 の実機 19 回 (全部成功) の 読んだ画素・向き. 427 の実際の道 (rule401_plan.json) の GRASP_OPEN と比べる
  set r425   : 依頼 425 の実機 27 回の 読んだ画素・向き. 手首の絵の予想の y・429 の予想 (a・b・角度) と 426 で測った値を並べる
  set plan22 : session_429.sh の 22 回 (目印の画素・置く向き. --dry-fake と同じ読んだことにする値)
  set between: 目印でない所 (場所2〜3・4〜5 の間と外) × 向き −30・+30. 付けないときの道とも作って 爪の位置の差 (= 直しの量) を出す
比べる物差し (どの道にも同じもの): 429 の腕の計算 (関節のずれあり) の 爪の間の点 t + R c と 爪の閉じる向き・爪の傾き.
道の作り方は session_429.sh と同じ (R401_PICK=min_elev・選び直し・ROLL -67,58・押し付け −14/−14・conflict と deep_at_zero を許す・画素 40・向き 40).

  P=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python
  $P so101/check_429/table_429.py run --set s427 --part 2      → so101/check_429/table_429/s427_2.json
  $P so101/check_429/table_429.py md                           → so101/check_429/table_429.md
"""
import argparse
import csv
import json
import os
import sys
import time
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
OUT = HERE / "table_429"
LOG = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12")
ALLOW = ("conflict", "deep_at_zero")
ENV = {"R401_PUSH_LIMIT_MM": "-14", "R401_PUSH_WINDOW_MM": "-14", "SO101_VAR_ROLL_RANGE": "-67,58", "R401_PICK": "min_elev",
       "R401_PIXEL_TOL_PX": "40", "R401_YAW_TOL_DEG": "40", "R401_TRACK_STOP_DEG": "15", "R401_START_TOL_DEG": "25"}
BAND = (290.0, 365.0)
FABLE = Path.home() / "Library/Mobile Documents/com~apple~CloudDocs/デスクトップ/ADAPT DESIGN/じぶんの/PixelstoMotors/依頼箱/_資料/fable_427_調べ"
BETWEEN = {"23": (2, 3, (-0.33, 0.0, 0.33, 0.67, 1.0)), "45": (4, 5, (0.0, 0.33, 0.67, 1.0, 1.33))}
BETWEEN_YAWS = (-30.0, 30.0)


def order22():
    s = (HERE / "session_429.sh").read_text()
    return [(int(t.split(":")[0]), float(t.split(":")[1])) for t in s.split('ORDER="')[1].split('"')[0].split()]


def ledger(model):
    out = []
    with open(LOG / "so101_trials.csv", newline="") as f:
        for r in csv.DictReader(f):
            if r["model"] != model or r["execute"] != "1" or r["result"] not in ("success", "failure"):
                continue
            d = Path(r["record_dir"])
            t = json.loads((d / "trial.json").read_text())["rule401"]
            p = json.loads((d / "rule401_plan.json").read_text())
            out.append({"trial": d.name, "place": int(t["place"]), "yaw_intended": float(t["yaw_intended_425"]), "uv": t["block_pixel"],
                        "yaw_read": float(t["block_yaw_deg"]), "result": r["result"], "face_real": t.get("face_deg"),
                        "roll_real": t.get("roll_grasp_deg"), "tilt_real": t.get("tilt_s_deg"),
                        "go_real": p["path"][int(t["keyframes"]["GRASP_OPEN"])],
                        "go_pred_real": p["pred_path"][int(t["keyframes"]["GRASP_OPEN"])]})
    return out


def setup():
    for k in ("SO101_RANGE_MODE", "R401_ELEV_MODE", "R401_ELEV_MAX_DEG", "R401_CMD_FIRST", "R401_GAP_FALLBACK", "R426_CORR", "R427_CORR"):
        os.environ.pop(k, None)
    os.environ.update(ENV)
    for p in (SO101 / "check_411", SO101 / "check_401", HERE):
        sys.path.insert(0, str(p))
    import wide_412 as WD
    import model_429 as MD
    return WD.RR, MD


def geom(W, m, q5):
    """429 の物差し: 爪の間の点 (x, y)・爪の閉じる向き (度. 180° で折る)・爪の傾き (度)・手首の回り"""
    import var_lib_314 as V
    import yaw_lib_343 as Y
    qq = np.asarray(q5, float)[:5] + m["_off"]
    t, R = V.tcp_arm(W.w.chain, qq)
    g = (t + R @ np.asarray(m["c_mm"], float))[:2]
    a = (R @ Y.JAW_AXIS_TCP)[:2]
    return {"g": g, "jaw": float(np.degrees(np.arctan2(a[1], a[0]))), "tilt": Y.tool_tilt_deg(W.w.chain, qq), "roll": float(q5[4])}


def diff(W, m, q_new, q_ref, bxy):
    """q_new の爪 − q_ref の爪 (q_ref の 閉じる向き a・直角 b に分けた mm, 向き 度, 爪の傾き 度)"""
    A, B = geom(W, m, q_new), geom(W, m, q_ref)
    p = MDp(W, m, q_ref, bxy)
    d = A["g"] - B["g"]
    dj = (A["jaw"] - B["jaw"] + 90.0) % 180.0 - 90.0
    return {"da_mm": round(float(d @ p[0]), 2), "db_mm": round(float(d @ p[1]), 2), "dpos_mm": round(float(np.linalg.norm(d)), 2),
            "djaw_deg": round(dj, 2), "dtilt_deg": round(A["tilt"] - B["tilt"], 2), "droll_deg": round(A["roll"] - B["roll"], 2)}


def MDp(W, m, q5, bxy):
    import var_lib_314 as V
    import yaw_lib_343 as Y
    qq = np.asarray(q5, float)[:5] + m["_off"]
    _, R = V.tcp_arm(W.w.chain, qq)
    a = (R @ Y.JAW_AXIS_TCP)[:2]
    a = a / np.linalg.norm(a)
    b = np.array([-a[1], a[0]])
    if b @ np.asarray(bxy, float) < 0:
        b = -b
    return a, b


def build(RR, MD, W, plan, lo, hi, place, uv, yaw, m, model_on):
    if model_on and not MD.STATE["installed"]:
        MD.install(W, m)
    if not model_on and MD.STATE["installed"]:
        MD.uninstall()
    t0 = time.time()
    try:
        b, info = RR.prepare(W, plan, place, lo, hi, None, (float(uv[0]), float(uv[1]), float(yaw)), False, ALLOW, True)
    except RR.Refused as x:
        return {"ok": False, "why": str(x)[:400], "sec": round(time.time() - t0, 1)}, None
    path = np.asarray(b["path"], float)
    go = int(b["v"]["frames"]["GRASP_OPEN"])
    r = {"ok": True, "face": info.get("face_deg"), "tilt_s": info.get("tilt_s_deg"), "elev": info.get("jaw_elev_deg"),
         "roll": round(float(path[go, 4]), 2), "status": info.get("status"), "dz": info.get("dz_mm"), "go": path[go].round(3).tolist(),
         "go_pred": np.asarray(b["v"]["pred_path"], float)[go].round(3).tolist(), "bxy": np.asarray(b["bxy"]).round(2).tolist(),
         "guards": info.get("guards"), "sec": round(time.time() - t0, 1)}
    return r, b


def run(kind, part):
    RR, MD = setup()
    plan, lo, hi = RR.load_plan()
    W = RR.world()
    m = MD.load()
    px = MD.wristpx()
    fy = {}
    if (FABLE / "wrist_block_pos_427_19runs.json").exists():
        fy = {o["run"]: round(o["c"][1], 1) for o in json.loads((FABLE / "wrist_block_pos_427_19runs.json").read_text())}
    y161 = {o["run"]: round(o["c"][1], 1) for o in json.loads((SO101 / "check_427" / "wrist_block_pos_161runs.json").read_text())}
    if kind == "s427":
        cases = [t for t in ledger("code_rule401_corr427") if t["place"] == int(part)]
    elif kind == "r425":
        cases = [t for t in ledger("code_rule401_wide425") if t["place"] == int(part)]
    elif kind == "plan22":
        e = RR.episode_of(plan, int(part))
        cases = [{"place": p, "yaw_intended": y, "uv": list(e["pixel"]), "yaw_read": y} for p, y in order22() if p == int(part)]
    else:
        os.environ["R401_PIXEL_TOL_PX"] = "1000"      # 目印でない所を作るため 置き方の画素の許しだけ外す (表を作るときだけ. 道のガードは今のまま)
        p0, p1, fr = BETWEEN[part]
        u0, u1 = np.asarray(RR.episode_of(plan, p0)["pixel"], float), np.asarray(RR.episode_of(plan, p1)["pixel"], float)
        cases = []
        for y in BETWEEN_YAWS:
            for f in fr:
                uv = u0 + f * (u1 - u0)
                # 近い方の場所の割り振りとして渡す (読んだ所はこの uv)
                cases.append({"place": p0 if f <= 0.5 else p1, "frac": f, "pair": part, "yaw_intended": y, "uv": uv.round(1).tolist(), "yaw_read": y})
    rows = []
    for cs in cases:
        r = {k: v for k, v in cs.items() if k not in ("go_real", "go_pred_real")}
        new, b = build(RR, MD, W, plan, lo, hi, cs["place"], cs["uv"], cs["yaw_read"], m, True)
        r["new"] = new
        if b is not None:
            r["new"]["pred"] = MD.predict(W, m, new["go"][:5], b["bxy"], b["yaw"])
            r["new"]["wrist_y_pred"] = MD.wrist_y(W, m, new["go"], new["go_pred"], b["bxy"], b["yaw"], px)
        bxy = np.asarray(RR_bxy(W, cs["uv"]), float)
        if kind in ("s427", "r425"):
            ref = np.asarray(cs["go_real"], float)
            r["ref"] = {"pred": MD.predict(W, m, ref[:5], bxy, cs["yaw_read"]),
                        "wrist_y_pred": MD.wrist_y(W, m, ref, np.asarray(cs["go_pred_real"], float), bxy, cs["yaw_read"], px),
                        "y_real": fy.get(cs["trial"]) if kind == "s427" else y161.get(cs["trial"][6:]),
                        "roll": round(float(ref[4]), 2), "face": cs.get("face_real"), "tilt_s": cs.get("tilt_real")}
            if new["ok"]:
                r["diff"] = diff(W, m, new["go"][:5], ref[:5], bxy)
        if kind == "between":
            old, bo = build(RR, MD, W, plan, lo, hi, cs["place"], cs["uv"], cs["yaw_read"], m, False)
            r["old"] = old
            if bo is not None:
                r["old"]["pred"] = MD.predict(W, m, old["go"][:5], bo["bxy"], bo["yaw"])
                if new["ok"]:
                    r["diff"] = diff(W, m, new["go"][:5], old["go"][:5], bxy)
        rows.append(r)
        save(kind, part, rows)
        print(json.dumps({k: r.get(k) for k in ("place", "yaw_intended", "frac")} |
                         {"ok": new["ok"], "status": new.get("status"), "roll": new.get("roll"), "y": new.get("wrist_y_pred"),
                          "diff": r.get("diff"), "sec": new["sec"]}, ensure_ascii=False), flush=True)


def RR_bxy(W, uv):
    import yaw_lib_343 as Y
    return Y.pixel_to_desk_mm(W.w.cam, uv)


def save(kind, part, rows):
    OUT.mkdir(exist_ok=True)
    tmp = OUT / f".{kind}_{part}.json.tmp"
    tmp.write_text(json.dumps({"set": kind, "part": part, "env": ENV, "rows": rows}, ensure_ascii=False, default=float) + "\n")
    tmp.replace(OUT / f"{kind}_{part}.json")


def f1(v, nd=1, sign=True):
    if v is None:
        return "—"
    return f"{v:+.{nd}f}" if sign else f"{v:.{nd}f}"


def fold90(v):
    """立方体なので 爪の向きの差は 90° で折る (面が変わった回は 印 ★面)"""
    return None if v is None else (float(v) + 45.0) % 90.0 - 45.0


def band(v):
    return "" if v is None else ("○" if BAND[0] <= v <= BAND[1] else "×")


def grip(n):
    return f"面{n['face']:+.0f}・爪{n['tilt_s']:g}°・面傾{n['elev']:+.1f}°・手首{n['roll']:+.1f}°・{n['status']}"


def changed(r):
    n, f = r["new"], r.get("ref") or r.get("old") or {}
    if not n.get("ok") or f.get("roll") is None:
        return ""
    m = []
    if f.get("face") is not None and abs(float(n["face"]) - float(f["face"])) > 1e-6:
        m.append("面")
    if np.sign(n["roll"]) != np.sign(f["roll"]) or abs(n["roll"] - f["roll"]) > 20:
        m.append("手首")
    return "★" + "・".join(m) if m else ""


def load_all():
    data = {}
    for f in sorted(OUT.glob("*_*.json")):
        d = json.loads(f.read_text())
        data.setdefault(d["set"], []).extend(d["rows"])
    return data


def md():
    data = load_all()
    L = ["# 依頼 429: R429_MODEL=1 (R427_CORR なし) で作った道", "",
         "道の作り方は session_429.sh と同じ (R401_PICK=min_elev・選び直し・ROLL -67,58・押し付け −14/−14・conflict と deep_at_zero を許す・画素 40・向き 40).",
         "物差し: 429 の腕の計算 (関節のずれあり) の 爪の間の点 t + R c と 爪の閉じる向き. 差 a・b = 比べる道の 爪の閉じる向き a・それに直角で根もとから外へ b に分けた mm.",
         "429 の予想 = その道の GRASP_OPEN で 429 の形が予想する ブロック − ねらい (a・b mm) と 爪とブロックの角度. 手首の絵の予想の y は ばらつき約 19 画素 (REPORT.md の 3). ○ = 290〜365.",
         "★ = 比べる道と 面 か 手首の回りの +/− (か 20° より大きい差) が変わった回. 爪の向きの差は 立方体なので 90° で折った値.", ""]
    if "s427" in data:
        rs = sorted(data["s427"], key=lambda r: r["trial"])
        L += ["## 確かめ 2: 427 で成功した 19 回 (同じ読んだ画素・向き)", "",
              "| 回 | 場所 | 向き 案内 / 読んだ | 427 の道 (面・手首) | 実機の y | 427 の道の 429 予想 a / b・角度 | 429 の道 | 爪の差 a / b mm・向き°・傾き° | 429 予想 a / b・角度 | 予想の y | 印 |",
              "|---|---|---|---|---|---|---|---|---|---|---|"]
        for r in rs:
            n, f, d = r["new"], r["ref"], r.get("diff") or {}
            if n["ok"]:
                L.append(f"| {r['trial'][-6:]} | {r['place']} | {r['yaw_intended']:+.0f} / {r['yaw_read']:+.1f} | 面{f['face']:+.0f}・{f['roll']:+.1f}° | {f1(f['y_real'], 0, False)} | "
                         f"{f1(f['pred']['block_minus_target_a_mm'])} / {f1(f['pred']['block_minus_target_b_mm'])}・{f1(f['pred']['angle_deg'])}° | {grip(n)} | "
                         f"{f1(d.get('da_mm'))} / {f1(d.get('db_mm'))}・{f1(fold90(d.get('djaw_deg')))}・{f1(d.get('dtilt_deg'))} | "
                         f"{f1(n['pred']['block_minus_target_a_mm'])} / {f1(n['pred']['block_minus_target_b_mm'])}・{f1(n['pred']['angle_deg'])}° | "
                         f"{f1(n['wrist_y_pred'], 0, False)} {band(n['wrist_y_pred'])} | {changed(r)} |")
            else:
                L.append(f"| {r['trial'][-6:]} | {r['place']} | {r['yaw_intended']:+.0f} / {r['yaw_read']:+.1f} | 面{f['face']:+.0f}・{f['roll']:+.1f}° | {f1(f['y_real'], 0, False)} | — | 止まる: {n['why'][:150]} | — | — | — | |")
        L.append("")
    if "r425" in data:
        rs = sorted(data["r425"], key=lambda r: r["trial"])
        L += ["## 確かめ 3: 425 の 27 回の置き方 (読んだ画素・向き)", "",
              "| 回 | 場所 | 向き 案内 / 読んだ | 425 の結果 | 425 の道 (面・手首) | 実機の y | 425 の道の 429 予想 a / b・角度 | 429 の道 | 爪の差 a / b mm・向き° | 429 予想 a / b・角度 | 予想の y | 印 |",
              "|---|---|---|---|---|---|---|---|---|---|---|---|"]
        for r in rs:
            n, f, d = r["new"], r["ref"], r.get("diff") or {}
            res = "成功" if r["result"] == "success" else "失敗"
            if n["ok"]:
                L.append(f"| {r['trial'][-6:]} | {r['place']} | {r['yaw_intended']:+.0f} / {r['yaw_read']:+.1f} | {res} | 面{f['face']:+.0f}・{f['roll']:+.1f}° | {f1(f['y_real'], 0, False)} | "
                         f"{f1(f['pred']['block_minus_target_a_mm'])} / {f1(f['pred']['block_minus_target_b_mm'])}・{f1(f['pred']['angle_deg'])}° | {grip(n)} | "
                         f"{f1(d.get('da_mm'))} / {f1(d.get('db_mm'))}・{f1(fold90(d.get('djaw_deg')))} | "
                         f"{f1(n['pred']['block_minus_target_a_mm'])} / {f1(n['pred']['block_minus_target_b_mm'])}・{f1(n['pred']['angle_deg'])}° | "
                         f"{f1(n['wrist_y_pred'], 0, False)} {band(n['wrist_y_pred'])} | {changed(r)} |")
            else:
                L.append(f"| {r['trial'][-6:]} | {r['place']} | {r['yaw_intended']:+.0f} / {r['yaw_read']:+.1f} | {res} | 面{f['face']:+.0f}・{f['roll']:+.1f}° | {f1(f['y_real'], 0, False)} | — | 止まる: {n['why'][:150]} | — | — | — | |")
        L.append("")
    if "plan22" in data:
        o = order22()
        rs = sorted(data["plan22"], key=lambda r: o.index((r["place"], r["yaw_intended"])))
        L += ["## session_429.sh の 22 回 (目印の画素・置く向き)", "",
              "| # | 場所 | 向き | 429 の道 | 429 予想 a / b・角度 | 予想の y | ガード |", "|---|---|---|---|---|---|---|"]
        for i, r in enumerate(rs, 1):
            n = r["new"]
            if n["ok"]:
                L.append(f"| {i} | {r['place']} | {r['yaw_intended']:+.0f} | {grip(n)} | {f1(n['pred']['block_minus_target_a_mm'])} / "
                         f"{f1(n['pred']['block_minus_target_b_mm'])}・{f1(n['pred']['angle_deg'])}° | {f1(n['wrist_y_pred'], 0, False)} {band(n['wrist_y_pred'])} | 送れる |")
            else:
                L.append(f"| {i} | {r['place']} | {r['yaw_intended']:+.0f} | — | — | — | 止まる: {n['why'][:160]} |")
        L.append("")
    if "between" in data:
        rs = sorted(data["between"], key=lambda r: (r["pair"], r["yaw_intended"], r["frac"]))
        L += ["## 確かめ 5: 目印でない所 (予想だけ. 実機のデータはない)", "",
              "割合 = 場所 A の目印 (0) から 場所 B の目印 (1) へ 画素で内分・外分した所. 直しの量 = 429 の道の爪 − 付けないときの道の爪 (付けないときの道の a・b mm・向き°).",
              "", "| 間 | 向き | 割合 | 画素 | 付けないとき (面・手首) | 429 の道 | 直しの量 a / b mm・向き° | 付けないときの 429 予想 b | 429 予想 a / b・角度 | 予想の y | 印 |",
              "|---|---|---|---|---|---|---|---|---|---|---|"]
        for r in rs:
            n, o, d = r["new"], r["old"], r.get("diff") or {}
            pa = BETWEEN[r["pair"]]
            od = f"面{o['face']:+.0f}・{o['roll']:+.1f}°" if o["ok"] else f"止まる: {o['why'][:60]}"
            if n["ok"]:
                L.append(f"| {pa[0]}〜{pa[1]} | {r['yaw_intended']:+.0f} | {r['frac']:+.2f} | {r['uv'][0]:.0f}, {r['uv'][1]:.0f} | {od} | {grip(n)} | "
                         f"{f1(d.get('da_mm'))} / {f1(d.get('db_mm'))}・{f1(fold90(d.get('djaw_deg')))} | "
                         f"{f1((o.get('pred') or {}).get('block_minus_target_b_mm'))} | "
                         f"{f1(n['pred']['block_minus_target_a_mm'])} / {f1(n['pred']['block_minus_target_b_mm'])}・{f1(n['pred']['angle_deg'])}° | "
                         f"{f1(n['wrist_y_pred'], 0, False)} {band(n['wrist_y_pred'])} | {changed(r)} |")
            else:
                L.append(f"| {pa[0]}〜{pa[1]} | {r['yaw_intended']:+.0f} | {r['frac']:+.2f} | {r['uv'][0]:.0f}, {r['uv'][1]:.0f} | {od} | 止まる: {n['why'][:120]} | — | — | — | — | |")
        L.append("")
    (HERE / "table_429.md").write_text("\n".join(L))
    print("\n".join(L))


if __name__ == "__main__":
    ap = argparse.ArgumentParser()
    ap.add_argument("what", choices=["run", "md"])
    ap.add_argument("--set", dest="kind", choices=["s427", "r425", "plan22", "between"])
    ap.add_argument("--part")
    a = ap.parse_args()
    run(a.kind, a.part) if a.what == "run" else md()
```


### fig_429.py

```python
#!/usr/bin/env python3
"""依頼 429 の 3-8: 上から見た 爪とブロックの図 (check_429/fig_429.png). アームなし.
場所ごとに 爪の座標 (横 = 爪の閉じる向き a・縦 = それに直角で腕から外へ b. 原点 = 爪の先. 依頼 426 の測り方と同じ) で ブロックの真ん中を描く:
  425 の実機 27 回 (手首の絵で測った所. 成功 ● / 外した ×)・427 の補正のあとの実機 19 回 (測った所. 全部成功 ●)・
  429 の計算の道 (427 の 19 回・425 の 27 回と同じ読んだ画素・向きで作った道で 429 の形が予想する所 ◆. 実機ではない)
灰色の四角 = 427 の 19 回の真ん中に置いた ブロック (一辺 21.7 mm). 縦の線 = 爪 (固定側・開いた動く爪) の内側の目安 (測った回の中央).

  (lerobot の環境で) python so101/check_429/fig_429.py points   → check_429/fig_429_points.json (シムで出す)
  (matplotlib のある python で) python3 so101/check_429/fig_429.py draw  → check_429/fig_429.png
"""
import json
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
sys.path.insert(0, str(SO101 / "check_426"))
sys.path.insert(0, str(HERE))

C425, C427, C429 = "#2a78d6", "#eb6834", "#1baf7a"
INK, MUTED, GRID = "#222222", "#6b6b66", "#e4e3df"
HALF = 21.7 / 2


def measured():
    out = []
    for src in (SO101 / "check_426" / "measure_426.json", HERE / "measure_429.json"):
        for o in json.loads(src.read_text())["trials"]:
            if "wrist" in o and o["group"] in ("425", "427"):
                w = o["wrist"]
                out.append({"group": o["group"], "place": o["place"], "ok": o["result"] == "success", "a": w["along_a"], "b": w["along_b"],
                            "gf": w["gap_fixed"], "gm": w["gap_moving"]})
    return out


def predicted(rig, m):
    import model_429 as MD
    import var_lib_314 as V
    out = []
    for kind in ("s427", "r425"):
        for f in sorted((HERE / "table_429").glob(f"{kind}_*.json")):
            for r in json.loads(f.read_text())["rows"]:
                n = r["new"]
                if not n.get("ok"):
                    continue
                go = np.asarray(n["go"], float)
                _, R = V.tcp_arm(rig.W.w.chain, go[:5] + m["_off"])
                w = np.asarray(n["bxy"], float) + np.asarray(m["e0_xy_mm"], float) + (R @ np.asarray(m["v_gripper_mm"], float))[:2]
                rel = rig.relation_w(np.asarray(n["go_pred"], float), w, float(r["yaw_read"]), off=True)
                out.append({"group": "429", "set": kind, "place": r["place"], "a": rel["along_a"], "b": rel["along_b"]})
    return out


def points():
    import measure_426 as M
    import model_429 as MD
    rig = M.Rig()
    m = MD.load()
    meas = measured()
    pred = predicted(rig, m)
    (HERE / "fig_429_points.json").write_text(json.dumps({"measured": meas, "predicted_429": pred}, ensure_ascii=False, indent=0))
    print("fig_429_points.json", len(meas), len(pred))


def draw():
    import matplotlib
    matplotlib.use("Agg")
    import matplotlib.pyplot as plt
    from matplotlib import font_manager
    for name in ("Hiragino Sans", "Hiragino Maru Gothic Pro", "AppleGothic"):
        if any(name in f.name for f in font_manager.fontManager.ttflist):
            plt.rcParams["font.family"] = name
            break
    d = json.loads((HERE / "fig_429_points.json").read_text())
    meas, pred = d["measured"], d["predicted_429"]
    m27 = [r for r in meas if r["group"] == "427"]
    ca, cb = float(np.median([r["a"] for r in m27])), float(np.median([r["b"] for r in m27]))
    fx = float(np.median([r["a"] + HALF + r["gf"] for r in meas if r["gf"] is not None]))
    mv = float(np.median([r["a"] - HALF - r["gm"] for r in meas if r["gm"] is not None]))
    fig, axs = plt.subplots(1, 4, figsize=(17, 5.6), sharey=True)
    for ax, place in zip(axs, (2, 3, 4, 5)):
        ax.set_facecolor("white")
        ax.grid(True, color=GRID, lw=0.8)
        ax.add_patch(plt.Rectangle((ca - HALF, cb - HALF), 2 * HALF, 2 * HALF, fc="#d9d8d3", ec="#b5b4ae", lw=1, zorder=0))
        for x, lab in ((fx, "固定側の爪"), (mv, "動く爪 (開き)")):
            ax.plot([x, x], [-35, 15], color=MUTED, lw=3, solid_capstyle="round", zorder=1)
            ax.text(x, 17, lab, ha="center", va="bottom", fontsize=8, color=MUTED)
        for r in meas:
            if r["place"] != place:
                continue
            col = C425 if r["group"] == "425" else C427
            if r["ok"]:
                ax.scatter(r["a"], r["b"], s=46, marker="o", color=col, edgecolor="white", lw=1.2, zorder=3)
            else:
                ax.scatter(r["a"], r["b"], s=58, marker="x", color=col, lw=2, zorder=3)
        for r in pred:
            if r["place"] == place:
                ax.scatter(r["a"], r["b"], s=48, marker="D", color=C429, edgecolor="white", lw=1.0, zorder=4)
        ax.set_title(f"場所{place}", fontsize=12, color=INK)
        ax.set_xlim(min(mv, -60) - 8, 12)
        ax.set_ylim(-40, 45)
        ax.set_aspect("equal")
        ax.set_xlabel("爪の閉じる向き a (mm. 固定側の爪へ +)", fontsize=9, color=MUTED)
        ax.tick_params(colors=MUTED, labelsize=8)
        for s in ax.spines.values():
            s.set_color(GRID)
    axs[0].set_ylabel("爪に直角 b (mm. 腕から外 = 爪の先の向こうへ +)", fontsize=9, color=MUTED)
    from matplotlib.lines import Line2D
    h = [Line2D([], [], ls="", marker="o", color=C425, mec="white", ms=8, label="425 実機・成功 (測った所)"),
         Line2D([], [], ls="", marker="x", color=C425, mew=2, ms=8, label="425 実機・外した (測った所)"),
         Line2D([], [], ls="", marker="o", color=C427, mec="white", ms=8, label="427 補正のあと 実機・成功 (測った所)"),
         Line2D([], [], ls="", marker="D", color=C429, mec="white", ms=7, label="429 の計算の道 (予想. 実機ではない)")]
    fig.legend(handles=h, loc="upper center", ncol=4, frameon=False, fontsize=10, bbox_to_anchor=(0.5, 1.0))
    fig.suptitle("上から見た 爪とブロックの真ん中 (爪の座標. 灰色 = 427 の成功の真ん中に置いたブロック)", y=0.92, fontsize=12, color=INK)
    fig.tight_layout(rect=(0, 0, 1, 0.9))
    fig.savefig(HERE / "fig_429.png", dpi=130, facecolor="white")
    print("fig_429.png", len(meas), len(pred))


if __name__ == "__main__":
    points() if sys.argv[1:] == ["points"] else draw()
```


### 付けないときに道が変わらないことの確かめ（same_bytes_429.log）

```
---- 場所3 向き 0 
  run_rule401          6cb921c72e83ed10
  run_425              6cb921c72e83ed10
  run_427 (付けない)   6cb921c72e83ed10
  run_429 (付けない)   6cb921c72e83ed10
  run_429 R429_MODEL=1 8e9530649345596f
---- 場所4 向き 10 
  run_rule401          1fff1619650e6b92
  run_425              1fff1619650e6b92
  run_427 (付けない)   1fff1619650e6b92
  run_429 (付けない)   1fff1619650e6b92
  run_429 R429_MODEL=1 577ab0826bda1e60
---- 場所5 向き 30 (R401_PICK=min_elev)
  run_rule401          b89fc1351e39a2b4
  run_425              b89fc1351e39a2b4
  run_427 (付けない)   b89fc1351e39a2b4
  run_429 (付けない)   b89fc1351e39a2b4
  run_429 R429_MODEL=1 1c615f100913e6c9
---- 場所2 向き -20 (R401_PICK=min_elev)
  run_rule401          e4502af89a6cb524
  run_425              e4502af89a6cb524
  run_427 (付けない)   e4502af89a6cb524
  run_429 (付けない)   e4502af89a6cb524
  run_429 R429_MODEL=1 ef776488f0489f61
```


### 22回を送らずに通した記録（dry_fake_429.log）

```
[INFO] 範囲 now・すき間 12 mm・R401_PICK=min_elev・TRACK_STOP 15°・PUSH_LIMIT -14・PUSH_WINDOW -14・画素 40・向き 40°・HOME 25°・許す status: conflict deep_at_zero・選び直し 1・計算 R429_MODEL=1
---- 1 / 22 場所2 向き +30° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +23.0°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 321[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き 30.0°・目印から 0.0 画素
[R401  ] 下げ -3.54 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.21・沈み最大 -26.27 mm. 下りる間 固定側 指令 10.99/予想 8.75・動く爪 30.57/28.96 mm. 持ち上げの始めの予想 -9.14 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.4, 'arm_box': 33.1, 'arm_base': 197.6, 'arm_block_pad10': 29.0, 'held_table': 69.1, 'held_box': 33.4, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161044.json
---- 2 / 22 場所2 向き +35° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +28.3°・ねらいからのずれの予想 閉じる向き +2.0 / 直角 -0.2 mm・角度 -0.0°・手首の絵の予想の y 317[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き 35.0°・目印から 0.0 画素
[R401  ] 下げ -0.74 mm (conflict). つかむ所の爪と机 指令 3.49・予想 -5.92・沈み最大 -23.42 mm. 下りる間 固定側 指令 11.08/予想 7.71・動く爪 34.35/26.73 mm. 持ち上げの始めの予想 -8.07 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.2, 'arm_box': 33.1, 'arm_base': 197.9, 'arm_block_pad10': 28.3, 'held_table': 66.2, 'held_box': 32.1, 'jaw_table_grasp': 3.5}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161102.json
---- 3 / 22 場所2 向き +40° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +33.5°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 318[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き 40.0°・目印から 0.0 画素
[R401  ] 下げ -2.9 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.15・沈み最大 -25.87 mm. 下りる間 固定側 指令 11.14/予想 9.57・動く爪 32.67/30.45 mm. 持ち上げの始めの予想 -9.1 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 192.6, 'arm_block_pad10': 28.4, 'held_table': 67.9, 'held_box': 33.0, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161120.json
---- 4 / 22 場所2 向き +45° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +38.8°・ねらいからのずれの予想 閉じる向き +1.5 / 直角 -0.2 mm・角度 +0.0°・手首の絵の予想の y 315[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ -0.08 mm (conflict). つかむ所の爪と机 指令 3.39・予想 -5.92・沈み最大 -23.25 mm. 下りる間 固定側 指令 11.3/予想 9.26・動く爪 36.22/27.53 mm. 持ち上げの始めの予想 -8.06 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 195.3, 'arm_block_pad10': 26.6, 'held_table': 65.0, 'held_box': 31.7, 'jaw_table_grasp': 3.4}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161149.json
---- 5 / 22 場所2 向き -40° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +43.8°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 -0.0°・手首の絵の予想の y 314[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き -40.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.14・予想 -6.09・沈み最大 -23.29 mm. 下りる間 固定側 指令 11.47/予想 10.07・動く爪 36.86/27.79 mm. 持ち上げの始めの予想 -8.3 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.1, 'arm_box': 33.1, 'arm_base': 192.6, 'arm_block_pad10': 26.2, 'held_table': 64.8, 'held_box': 31.8, 'jaw_table_grasp': 3.1}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161223.json
---- 6 / 22 場所2 向き -45° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +38.8°・ねらいからのずれの予想 閉じる向き +1.5 / 直角 -0.2 mm・角度 +0.0°・手首の絵の予想の y 315[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ -0.08 mm (conflict). つかむ所の爪と机 指令 3.39・予想 -5.92・沈み最大 -23.25 mm. 下りる間 固定側 指令 11.3/予想 9.26・動く爪 36.22/27.53 mm. 持ち上げの始めの予想 -8.06 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 195.3, 'arm_block_pad10': 26.6, 'held_table': 65.0, 'held_box': 31.7, 'jaw_table_grasp': 3.4}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161252.json
---- 7 / 22 場所2 向き -30° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -39.1°・ねらいからのずれの予想 閉じる向き -3.2 / 直角 +0.3 mm・角度 -0.0°・手首の絵の予想の y 336[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き -30.0°・目印から 0.0 画素
[R401  ] 下げ -0.99 mm (conflict). つかむ所の爪と机 指令 5.39・予想 -5.83・沈み最大 -24.35 mm. 下りる間 固定側 指令 9.49/予想 4.96・動く爪 25.96/27.25 mm. 持ち上げの始めの予想 -8.4 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.7, 'arm_box': 33.1, 'arm_base': 192.5, 'arm_block_pad10': 27.4, 'held_table': 69.1, 'held_box': 34.5, 'jaw_table_grasp': -3.7}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161324.json
---- 8 / 22 場所3 向き -30° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -62.9°・ねらいからのずれの予想 閉じる向き -5.2 / 直角 +0.6 mm・角度 -0.0°・手首の絵の予想の y 342[0m
[R401  ] 場所3: ブロック 画素 [157.8, 315.3]・向き -30.0°・目印から 0.0 画素
[R401  ] 下げ -4.61 mm (ok). つかむ所の爪と机 指令 0.94・予想 -2.01・沈み最大 -20.16 mm. 下りる間 固定側 指令 10.89/予想 7.04・動く爪 29.35/30.66 mm. 持ち上げの始めの予想 -3.05 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.5, 'arm_box': 33.1, 'arm_base': 113.0, 'arm_block_pad10': 29.6, 'held_table': 71.2, 'held_box': 35.3, 'jaw_table_grasp': -0.5}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_fake_20261202_161333.json
---- 9 / 22 場所3 向き -35° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +18.3°・ねらいからのずれの予想 閉じる向き -3.7 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 330[0m
[R401  ] 場所3: ブロック 画素 [157.8, 315.3]・向き -35.0°・目印から 0.0 画素
[R401  ] 下げ -5.4 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.34・沈み最大 -16.32 mm. 下りる間 固定側 指令 10.82/予想 9.4・動く爪 28.65/27.62 mm. 持ち上げの始めの予想 -3.63 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.3, 'arm_box': 33.1, 'arm_base': 143.4, 'arm_block_pad10': 30.5, 'held_table': 72.0, 'held_box': 35.9, 'jaw_table_grasp': -1.6}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_fake_20261202_161353.json
---- 10 / 22 場所3 向き -40° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +13.5°・ねらいからのずれの予想 閉じる向き -3.2 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 328[0m
[R401  ] 場所3: ブロック 画素 [157.8, 315.3]・向き -40.0°・目印から 0.0 画素
[R401  ] 下げ -5.26 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.99・沈み最大 -16.68 mm. 下りる間 固定側 指令 10.69/予想 9.01・動く爪 29.13/28.31 mm. 持ち上げの始めの予想 -3.47 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.2, 'arm_box': 33.1, 'arm_base': 144.6, 'arm_block_pad10': 30.2, 'held_table': 71.8, 'held_box': 35.8, 'jaw_table_grasp': -1.2}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_fake_20261202_161413.json
---- 11 / 22 場所3 向き -45° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り +8.7°・ねらいからのずれの予想 閉じる向き -3.2 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 325[0m
[R401  ] 場所3: ブロック 画素 [157.8, 315.3]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ -5.05 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.71・沈み最大 -17.29 mm. 下りる間 固定側 指令 10.9/予想 8.93・動く爪 29.46/28.88 mm. 持ち上げの始めの予想 -3.45 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.9, 'arm_box': 33.1, 'arm_base': 143.1, 'arm_block_pad10': 30.1, 'held_table': 71.5, 'held_box': 35.5, 'jaw_table_grasp': -0.8}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_fake_20261202_161425.json
---- 12 / 22 場所3 向き +30° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -5.8°・ねらいからのずれの予想 閉じる向き -3.5 / 直角 +0.4 mm・角度 -0.0°・手首の絵の予想の y 326[0m
[R401  ] 場所3: ブロック 画素 [157.8, 315.3]・向き 30.0°・目印から 0.0 画素
[R401  ] 下げ -4.91 mm (ok). つかむ所の爪と机 指令 0.91・予想 -3.77・沈み最大 -19.38 mm. 下りる間 固定側 指令 10.58/予想 7.65・動く爪 27.65/27.99 mm. 持ち上げの始めの予想 -7.32 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.8, 'arm_box': 33.1, 'arm_base': 130.2, 'arm_block_pad10': 30.7, 'held_table': 72.1, 'held_box': 35.0, 'jaw_table_grasp': -1.5}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_fake_20261202_161431.json
---- 13 / 22 場所4 向き -40° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -43.7°・ねらいからのずれの予想 閉じる向き -4.7 / 直角 +0.6 mm・角度 -0.0°・手首の絵の予想の y 338[0m
[R401  ] 場所4: ブロック 画素 [274.6, 252.7]・向き -40.0°・目印から 0.0 画素
[R401  ] 下げ -4.82 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.68・沈み最大 -20.26 mm. 下りる間 固定側 指令 10.9/予想 7.09・動く爪 28.68/29.69 mm. 持ち上げの始めの予想 -3.54 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 133.2, 'arm_block_pad10': 30.0, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place4_fake_20261202_161436.json
---- 14 / 22 場所4 向き +40° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -53.3°・ねらいからのずれの予想 閉じる向き -6.5 / 直角 +0.8 mm・角度 +0.0°・手首の絵の予想の y 340[0m
[R401  ] 場所4: ブロック 画素 [274.6, 252.7]・向き 40.0°・目印から 0.0 画素
[R401  ] 下げ -4.76 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.69・沈み最大 -20.64 mm. 下りる間 固定側 指令 10.93/予想 7.03・動く爪 28.63/29.76 mm. 持ち上げの始めの予想 -3.56 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 126.1, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place4_fake_20261202_161443.json
---- 15 / 22 場所4 向き -45° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -48.5°・ねらいからのずれの予想 閉じる向き -5.5 / 直角 +0.6 mm・角度 -0.0°・手首の絵の予想の y 339[0m
[R401  ] 場所4: ブロック 画素 [274.6, 252.7]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ -4.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.68・沈み最大 -20.45 mm. 下りる間 固定側 指令 10.81/予想 6.95・動く爪 28.72/29.8 mm. 持ち上げの始めの予想 -3.55 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 129.4, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place4_fake_20261202_161448.json
---- 16 / 22 場所4 向き +45° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -48.5°・ねらいからのずれの予想 閉じる向き -5.5 / 直角 +0.6 mm・角度 -0.0°・手首の絵の予想の y 339[0m
[R401  ] 場所4: ブロック 画素 [274.6, 252.7]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ -4.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.68・沈み最大 -20.45 mm. 下りる間 固定側 指令 10.81/予想 6.95・動く爪 28.72/29.8 mm. 持ち上げの始めの予想 -3.55 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 129.4, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place4_fake_20261202_161454.json
---- 17 / 22 場所4 向き -30° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -34.0°・ねらいからのずれの予想 閉じる向き -3.0 / 直角 +0.3 mm・角度 +0.0°・手首の絵の予想の y 335[0m
[R401  ] 場所4: ブロック 画素 [274.6, 252.7]・向き -30.0°・目印から 0.0 画素
[R401  ] 下げ -4.91 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.07・沈み最大 -19.96 mm. 下りる間 固定側 指令 10.64/予想 6.94・動く爪 28.58/29.43 mm. 持ち上げの始めの予想 -3.84 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.8, 'arm_box': 33.1, 'arm_base': 140.8, 'arm_block_pad10': 30.1, 'held_table': 71.8, 'held_box': 35.4, 'jaw_table_grasp': -1.3}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place4_fake_20261202_161500.json
---- 18 / 22 場所5 向き +35° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -36.8°・ねらいからのずれの予想 閉じる向き -4.2 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 313[0m
[R401  ] 場所5: ブロック 画素 [407.3, 155.1]・向き 35.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.33・予想 -11.67・沈み最大 -24.19 mm. 下りる間 固定側 指令 9.7/予想 5.27・動く爪 27.08/24.58 mm. 持ち上げの始めの予想 -13.18 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.6, 'arm_box': 33.1, 'arm_base': 194.2, 'arm_block_pad10': 27.2, 'held_table': 68.3, 'held_box': 34.0, 'jaw_table_grasp': -3.7}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place5_fake_20261202_161535.json
---- 19 / 22 場所5 向き -30° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -10.4°・ねらいからのずれの予想 閉じる向き +1.2 / 直角 -0.1 mm・角度 -0.0°・手首の絵の予想の y 309[0m
[R401  ] 場所5: ブロック 画素 [407.3, 155.1]・向き -30.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.99・予想 -7.17・沈み最大 -23.38 mm. 下りる間 固定側 指令 10.52/予想 9.36・動く爪 30.53/24.79 mm. 持ち上げの始めの予想 -10.36 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.0, 'arm_box': 33.1, 'arm_base': 195.8, 'arm_block_pad10': 28.7, 'held_table': 67.8, 'held_box': 32.0, 'jaw_table_grasp': 2.1}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place5_fake_20261202_161549.json
---- 20 / 22 場所2 向き -35° (上から見て時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -43.9°・ねらいからのずれの予想 閉じる向き -3.5 / 直角 +0.4 mm・角度 -0.0°・手首の絵の予想の y 334[0m
[R401  ] 場所2: ブロック 画素 [233.4, 168.8]・向き -35.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.23・予想 -11.11・沈み最大 -23.51 mm. 下りる間 固定側 指令 9.48/予想 -0.74・動く爪 26.65/27.29 mm. 持ち上げの始めの予想 -12.4 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.5, 'arm_box': 33.1, 'arm_base': 193.2, 'arm_block_pad10': 26.9, 'held_table': 68.3, 'held_box': 34.1, 'jaw_table_grasp': -3.6}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place2_fake_20261202_161627.json
---- 21 / 22 場所5 向き +40° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -31.6°・ねらいからのずれの予想 閉じる向き -3.0 / 直角 +0.3 mm・角度 +0.0°・手首の絵の予想の y 312[0m
[R401  ] 場所5: ブロック 画素 [407.3, 155.1]・向き 40.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.52・予想 -10.53・沈み最大 -23.94 mm. 下りる間 固定側 指令 9.99/予想 6.18・動く爪 27.93/24.68 mm. 持ち上げの始めの予想 -12.63 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.5, 'arm_box': 33.1, 'arm_base': 190.4, 'arm_block_pad10': 28.2, 'held_table': 68.1, 'held_box': 33.5, 'jaw_table_grasp': -2.0}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place5_fake_20261202_161650.json
---- 22 / 22 場所5 向き +45° (上から見て反時計回り)
[1;33m[429   ] 429 の計算: 手首の回り -26.3°・ねらいからのずれの予想 閉じる向き -1.7 / 直角 +0.2 mm・角度 +0.0°・手首の絵の予想の y 312[0m
[R401  ] 場所5: ブロック 画素 [407.3, 155.1]・向き -45.0°・目印から 0.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.4・予想 -9.42・沈み最大 -23.68 mm. 下りる間 固定側 指令 10.17/予想 7.02・動く爪 28.81/24.76 mm. 持ち上げの始めの予想 -11.29 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.4, 'arm_box': 33.1, 'arm_base': 193.0, 'arm_block_pad10': 28.3, 'held_table': 67.9, 'held_box': 33.0, 'jaw_table_grasp': -0.4}
[R401  ] 送れる
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place5_fake_20261202_161701.json
```


## 前の回の補正の19回と、1つの式の23回を手首の絵で測った

前の回の161回と同じ測り方（赤い部分のいちばん大きい塊の重心）で、つかむ所（爪を開いて下りきったコマ）の手首の絵を測った。Claude が Mac の上で動かした。

### measure_427.py（前の回の補正の19回）

```python
# 依頼427 の実機 19 回 (model code_rule401_corr427) の GRASP_OPEN のコマの手首の絵で、赤いブロックの重心の画素を測る
# (fable_425_調べ/all.py と同じ測り方。2026-12-02・Claude Fable がチャットで測った)
import cv2, json, numpy as np, os, csv, glob
K = os.path.expanduser("~/mnt/KIOXIA/r2r2r-data/lab/so101_Log12")
def cen(img):
    H, S, V = cv2.split(cv2.cvtColor(img, cv2.COLOR_BGR2HSV))
    m = (((H < 10) | (H > 165)) & (S > 70) & (V > 50)).astype(np.uint8)
    n, l, st, c = cv2.connectedComponentsWithStats(m)
    if n < 2: return None
    k = 1 + np.argmax(st[1:, 4]); return [float(c[k][0]), float(c[k][1]), int(st[k, 4])]
out = []
for r in csv.DictReader(open(f"{K}/so101_trials.csv")):
    if r["model"] != "code_rule401_corr427": continue
    d = f"{K}/so101/{r['trial']}"; p = json.load(open(d + "/rule401_plan.json")); t = json.load(open(d + "/trial.json"))
    R = t["rule401"]; c7 = R["corr427"]; go = p["keyframes"]["GRASP_OPEN"]
    v = [x for x in glob.glob(f"{d}/videos/observation.images.wrist/*/*.mp4") if "/._" not in x]
    cap = cv2.VideoCapture(v[0]); cap.set(cv2.CAP_PROP_POS_FRAMES, go); ok, img = cap.read()
    c = cen(img) if ok else None
    pose = [k["pose"] for k in p["keyframes_pose"] if k["name"] == "GRASP_OPEN"][0]
    out.append(dict(run=r["trial"], place=int(p["place"]), yaw_intended=R.get("yaw_intended_425"), yaw_read=p.get("block_yaw_deg"),
        res=r["result"], face=p.get("face_deg"), elev=p.get("jaw_elev_deg"), roll_pose=pose[4], roll_grasp=R.get("roll_grasp_deg"),
        shift_mm=c7["shift_mm"], y_before=c7["y_before"], y_pred=c7["y_after"], dy_per_mm=c7.get("dy_per_mm"), c=c,
        y_actual_minus_pred=None if c is None else round(c[1] - c7["y_after"], 1)))
json.dump(out, open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "wrist_block_pos_427_19runs.json"), "w"), ensure_ascii=False, indent=1)
d = np.array([o["y_actual_minus_pred"] for o in out if o["c"]])
print(len(out), "mean", d.mean().round(1), "rms", np.sqrt((d ** 2).mean()).round(1), "min", d.min(), "max", d.max())
```


### 前の回の補正の19回の測った値（wrist_block_pos_427_19runs.json）

```json
[
 {
  "run": "so101_20261202_143214",
  "place": 2,
  "yaw_intended": 30.0,
  "yaw_read": 36.5,
  "res": "success",
  "face": 0.0,
  "elev": -10.07,
  "roll_pose": 23.549,
  "roll_grasp": 27.23,
  "shift_mm": -18.67,
  "y_before": 266.9,
  "y_pred": 339.2,
  "dy_per_mm": -3.837,
  "c": [
   370.37097909127465,
   336.93581624447125,
   19896
  ],
  "y_actual_minus_pred": -2.3
 },
 {
  "run": "so101_20261202_143743",
  "place": 2,
  "yaw_intended": 35.0,
  "yaw_read": 28.8,
  "res": "success",
  "face": 0.0,
  "elev": -7.84,
  "roll_pose": 15.892,
  "roll_grasp": 19.2,
  "shift_mm": -14.64,
  "y_before": 281.7,
  "y_pred": 338.9,
  "dy_per_mm": -3.883,
  "c": [
   369.8572421669398,
   333.39435920353543,
   20139
  ],
  "y_actual_minus_pred": -5.5
 },
 {
  "run": "so101_20261202_143917",
  "place": 2,
  "yaw_intended": 40.0,
  "yaw_read": 34.0,
  "res": "success",
  "face": 0.0,
  "elev": -9.36,
  "roll_pose": 20.008,
  "roll_grasp": 23.47,
  "shift_mm": -16.73,
  "y_before": 273.8,
  "y_pred": 339.2,
  "dy_per_mm": -3.87,
  "c": [
   363.6334512578616,
   334.1916764937107,
   20352
  ],
  "y_actual_minus_pred": -5.0
 },
 {
  "run": "so101_20261202_144040",
  "place": 2,
  "yaw_intended": 45.0,
  "yaw_read": 36.4,
  "res": "success",
  "face": 0.0,
  "elev": -10.23,
  "roll_pose": 22.856,
  "roll_grasp": 26.46,
  "shift_mm": -18.24,
  "y_before": 268.2,
  "y_pred": 339.4,
  "dy_per_mm": -3.852,
  "c": [
   367.70253380852415,
   334.53693306644533,
   20483
  ],
  "y_actual_minus_pred": -4.9
 },
 {
  "run": "so101_20261202_144911",
  "place": 2,
  "yaw_intended": -40.0,
  "yaw_read": -42.5,
  "res": "success",
  "face": 90.0,
  "elev": -12.89,
  "roll_pose": 33.84,
  "roll_grasp": 38.19,
  "shift_mm": -24.37,
  "y_before": 246.4,
  "y_pred": 339.7,
  "dy_per_mm": -3.78,
  "c": [
   371.6953869614945,
   341.70358368280597,
   20984
  ],
  "y_actual_minus_pred": 2.0
 },
 {
  "run": "so101_20261202_145338",
  "place": 2,
  "yaw_intended": -45.0,
  "yaw_read": 36.2,
  "res": "success",
  "face": 0.0,
  "elev": -9.62,
  "roll_pose": 21.988,
  "roll_grasp": 25.57,
  "shift_mm": -17.83,
  "y_before": 269.9,
  "y_pred": 339.1,
  "dy_per_mm": -3.847,
  "c": [
   371.5560313366746,
   334.28057028855045,
   20551
  ],
  "y_actual_minus_pred": -4.8
 },
 {
  "run": "so101_20261202_145926",
  "place": 2,
  "yaw_intended": -30.0,
  "yaw_read": -41.7,
  "res": "success",
  "face": 90.0,
  "elev": -13.16,
  "roll_pose": 34.835,
  "roll_grasp": 39.28,
  "shift_mm": -24.94,
  "y_before": 244.4,
  "y_pred": 339.7,
  "dy_per_mm": -3.774,
  "c": [
   377.1470214222831,
   343.15059180279763,
   20446
  ],
  "y_actual_minus_pred": 3.5
 },
 {
  "run": "so101_20261202_150159",
  "place": 3,
  "yaw_intended": -30.0,
  "yaw_read": -26.9,
  "res": "success",
  "face": 90.0,
  "elev": -0.19,
  "roll_pose": 20.287,
  "roll_grasp": 24.85,
  "shift_mm": -23.76,
  "y_before": 260.6,
  "y_pred": 332.7,
  "dy_per_mm": -3.278,
  "c": [
   377.2438217122683,
   346.74983451015004,
   18128
  ],
  "y_actual_minus_pred": 14.0
 },
 {
  "run": "so101_20261202_150321",
  "place": 3,
  "yaw_intended": -35.0,
  "yaw_read": -32.9,
  "res": "success",
  "face": 90.0,
  "elev": -0.74,
  "roll_pose": 14.531,
  "roll_grasp": 18.56,
  "shift_mm": -21.55,
  "y_before": 269.4,
  "y_pred": 333.5,
  "dy_per_mm": -3.207,
  "c": [
   377.3458621270858,
   344.57138041463,
   17799
  ],
  "y_actual_minus_pred": 11.1
 },
 {
  "run": "so101_20261202_150410",
  "place": 3,
  "yaw_intended": -40.0,
  "yaw_read": -44.0,
  "res": "success",
  "face": 90.0,
  "elev": -2.71,
  "roll_pose": 3.81,
  "roll_grasp": 6.83,
  "shift_mm": -16.33,
  "y_before": 285.3,
  "y_pred": 335.9,
  "dy_per_mm": -3.26,
  "c": [
   367.0085010694894,
   341.18971096363737,
   18233
  ],
  "y_actual_minus_pred": 5.3
 },
 {
  "run": "so101_20261202_150509",
  "place": 3,
  "yaw_intended": -45.0,
  "yaw_read": 39.1,
  "res": "success",
  "face": 0.0,
  "elev": -1.95,
  "roll_pose": -2.038,
  "roll_grasp": 2.19,
  "shift_mm": -10.76,
  "y_before": 293.8,
  "y_pred": 340.4,
  "dy_per_mm": -4.158,
  "c": [
   370.3054098904746,
   342.5352804513774,
   15065
  ],
  "y_actual_minus_pred": 2.1
 },
 {
  "run": "so101_20261202_150606",
  "place": 3,
  "yaw_intended": 30.0,
  "yaw_read": 34.0,
  "res": "success",
  "face": 0.0,
  "elev": 0.04,
  "roll_pose": -6.896,
  "roll_grasp": -3.37,
  "shift_mm": -8.79,
  "y_before": 300.3,
  "y_pred": 339.0,
  "dy_per_mm": -4.345,
  "c": [
   371.34462164468073,
   337.0109601627617,
   15237
  ],
  "y_actual_minus_pred": -2.0
 },
 {
  "run": "so101_20261202_150736",
  "place": 4,
  "yaw_intended": -40.0,
  "yaw_read": -36.4,
  "res": "success",
  "face": 0.0,
  "elev": 0.27,
  "roll_pose": -45.542,
  "roll_grasp": -41.68,
  "shift_mm": 11.66,
  "y_before": 380.8,
  "y_pred": 336.9,
  "dy_per_mm": -3.631,
  "c": [
   387.9636989145264,
   339.6874073195326,
   16859
  ],
  "y_actual_minus_pred": 2.8
 },
 {
  "run": "so101_20261202_150827",
  "place": 4,
  "yaw_intended": 40.0,
  "yaw_read": 33.9,
  "res": "success",
  "face": -90.0,
  "elev": 0.36,
  "roll_pose": -65.897,
  "roll_grasp": -61.0,
  "shift_mm": 18.72,
  "y_before": 404.5,
  "y_pred": 333.5,
  "dy_per_mm": -3.529,
  "c": [
   407.62367123938475,
   326.07096620939484,
   16839
  ],
  "y_actual_minus_pred": -7.4
 },
 {
  "run": "so101_20261202_150907",
  "place": 4,
  "yaw_intended": -45.0,
  "yaw_read": 41.9,
  "res": "success",
  "face": 0.0,
  "elev": -0.03,
  "roll_pose": 30.107,
  "roll_grasp": 34.93,
  "shift_mm": -16.5,
  "y_before": 283.3,
  "y_pred": 336.2,
  "dy_per_mm": -3.344,
  "c": [
   366.834805753766,
   331.9638124362895,
   17658
  ],
  "y_actual_minus_pred": -4.2
 },
 {
  "run": "so101_20261202_150949",
  "place": 4,
  "yaw_intended": 45.0,
  "yaw_read": -44.8,
  "res": "success",
  "face": 0.0,
  "elev": 0.0,
  "roll_pose": -55.611,
  "roll_grasp": -51.16,
  "shift_mm": 15.17,
  "y_before": 392.5,
  "y_pred": 335.4,
  "dy_per_mm": -3.561,
  "c": [
   394.23816456064753,
   327.00384324229896,
   17173
  ],
  "y_actual_minus_pred": -8.4
 },
 {
  "run": "so101_20261202_151037",
  "place": 4,
  "yaw_intended": -30.0,
  "yaw_read": 40.4,
  "res": "success",
  "face": 0.0,
  "elev": -0.13,
  "roll_pose": 29.025,
  "roll_grasp": 33.76,
  "shift_mm": -16.07,
  "y_before": 284.9,
  "y_pred": 336.3,
  "dy_per_mm": -3.337,
  "c": [
   364.6886090744873,
   329.9892678780151,
   18822
  ],
  "y_actual_minus_pred": -6.3
 },
 {
  "run": "so101_20261202_151124",
  "place": 5,
  "yaw_intended": 35.0,
  "yaw_read": 32.5,
  "res": "success",
  "face": -90.0,
  "elev": 15.45,
  "roll_pose": -45.805,
  "roll_grasp": -43.59,
  "shift_mm": 8.73,
  "y_before": 376.2,
  "y_pred": 338.5,
  "dy_per_mm": -4.317,
  "c": [
   382.61128848346635,
   364.17594070695554,
   17540
  ],
  "y_actual_minus_pred": 25.7
 },
 {
  "run": "so101_20261202_151320",
  "place": 5,
  "yaw_intended": -30.0,
  "yaw_read": -33.0,
  "res": "success",
  "face": 0.0,
  "elev": 3.98,
  "roll_pose": -19.831,
  "roll_grasp": -18.19,
  "shift_mm": 2.74,
  "y_before": 349.8,
  "y_pred": 338.5,
  "dy_per_mm": -4.117,
  "c": [
   359.837881847196,
   334.11131374975577,
   15353
  ],
  "y_actual_minus_pred": -4.4
 }
]
```


### 測った値の説明（README.md）

```markdown
# 依頼427 の実機 19 回の調べ（2026-12-02・Claude Fable がチャットで測ったもの）

- wrist_block_pos_427_19runs.json：台帳の code_rule401_corr427 の 19 回（全部成功）。GRASP_OPEN のコマの手首の絵で、赤いブロックの重心の画素 c=[x, y, 面積]（640×480）と、
  案内した向き yaw_intended・机のカメラが読んだ向き yaw_read・面・手首の回り・補正 mm・補正の前の予想の y・補正のあとの予想の y・実際の y − 予想
- measure_427.py：上の JSON の作り方（fable_425_調べ/all.py と同じ測り方）

## 分かったこと
- 補正のあとの実際の y は、18 回が 326〜347 画素（成功の帯 290〜365 の真ん中近く）。予想との差は −8〜+14 画素
- 場所5 +32.5°（面 −90・手首の回り −46°）だけ 364 画素で帯の端。予想 338 に対して補正が足りない（当てはめに使った手首の回りは −38° まで）
- 案内した向きと読んだ向きが違う回がある（立方体なので ±45° 近くは 90° 折り返して読まれる。場所2 の −30° の回は −41.7° と読まれ、面 +90・手首の回り +39° でつかんだ）
  - 425 で失敗した条件（同じ場所・近い手首の回り）を流した回：場所2 が 7・場所3 が 3・場所4 が 4・場所5 が 1（面は 425 と違う）＝ 15 回
  - 425 で成功した条件を流した回：場所3 が 2・場所4 が 1・場所5 が 1 ＝ 4 回。**場所2 の成功した条件（向き −30° 前後・面 0・手首の回り −39° 前後。補正は +13mm）は 1 回も流れていない**
```


### measure_429_wrist.py（1つの式の23回）

```python
# 依頼429 の実機 (model code_rule401_model429) の GRASP_OPEN のコマの手首の絵で、赤いブロックの重心の画素を測る
# (fable_425_調べ/all.py・fable_427_調べ/measure_427.py と同じ測り方。2026-12-02・Claude Fable)
import cv2, json, numpy as np, os, csv, glob, sys
K = os.path.expanduser("~/mnt/KIOXIA/r2r2r-data/lab/so101_Log12")
def cen(img):
    H, S, V = cv2.split(cv2.cvtColor(img, cv2.COLOR_BGR2HSV))
    m = (((H < 10) | (H > 165)) & (S > 70) & (V > 50)).astype(np.uint8)
    n, l, st, c = cv2.connectedComponentsWithStats(m)
    if n < 2: return None
    k = 1 + np.argmax(st[1:, 4]); return [float(c[k][0]), float(c[k][1]), int(st[k, 4])]
out = []
for r in csv.DictReader(open(f"{K}/so101_trials.csv")):
    if r["model"] != "code_rule401_model429": continue
    d = f"{K}/so101/{r['trial']}"; p = json.load(open(d + "/rule401_plan.json")); t = json.load(open(d + "/trial.json"))
    R = t["rule401"]; go = p["keyframes"]["GRASP_OPEN"]
    v = [x for x in glob.glob(f"{d}/videos/observation.images.wrist/*/*.mp4") if "/._" not in x]
    cap = cv2.VideoCapture(v[0]); cap.set(cv2.CAP_PROP_POS_FRAMES, go); ok, img = cap.read()
    c = cen(img) if ok else None
    pose = [k["pose"] for k in p["keyframes_pose"] if k["name"] == "GRASP_OPEN"][0]
    m9 = R.get("model429") or {}
    out.append(dict(run=r["trial"], place=int(p["place"]), yaw_intended=R.get("yaw_intended_425"), yaw_read=p.get("block_yaw_deg"),
        res=r["result"], face=p.get("face_deg"), elev=p.get("jaw_elev_deg"), tilt=p.get("tilt_s_deg"), roll_pose=pose[4], roll_grasp=R.get("roll_grasp_deg"),
        status=R.get("status"), y_pred=m9.get("y_pred", m9.get("pred_y")), c=c))
json.dump(out, open("wrist_block_pos_429_23runs.json", "w"), ensure_ascii=False, indent=1)
ys = np.array([o["c"][1] for o in out if o["c"]]); print(len(out), "y", ys.min().round(1), ys.max().round(1), "median", np.median(ys).round(1))
print({k: v for k, v in (json.load(open(K + "/so101/" + out[0]["run"] + "/trial.json"))["rule401"].get("model429") or {}).items() if not isinstance(v, (list, dict))})
```


### 1つの式の23回の測った値（wrist_block_pos_429_23runs.json）

```json
[
 {
  "run": "so101_20261202_162256",
  "place": 2,
  "yaw_intended": 30.0,
  "yaw_read": 41.5,
  "res": "success",
  "face": 0.0,
  "elev": -10.2,
  "tilt": 16.0,
  "roll_pose": 36.224,
  "roll_grasp": 35.9,
  "status": "conflict",
  "y_pred": null,
  "c": [
   374.90016182684525,
   310.4350445023824,
   22246
  ]
 },
 {
  "run": "so101_20261202_162415",
  "place": 2,
  "yaw_intended": 35.0,
  "yaw_read": -45.0,
  "res": "success",
  "face": 90.0,
  "elev": -11.15,
  "tilt": 16.0,
  "roll_pose": 39.89,
  "roll_grasp": 39.74,
  "status": "ok",
  "y_pred": null,
  "c": [
   378.17297634470515,
   311.97711242262847,
   20841
  ]
 },
 {
  "run": "so101_20261202_162544",
  "place": 2,
  "yaw_intended": 40.0,
  "yaw_read": 43.8,
  "res": "success",
  "face": 0.0,
  "elev": -11.33,
  "tilt": 17.0,
  "roll_pose": 38.761,
  "roll_grasp": 38.6,
  "status": "ok",
  "y_pred": null,
  "c": [
   375.62356668678336,
   310.601136592235,
   19884
  ]
 },
 {
  "run": "so101_20261202_162647",
  "place": 2,
  "yaw_intended": 45.0,
  "yaw_read": -44.1,
  "res": "success",
  "face": 90.0,
  "elev": -11.34,
  "tilt": 16.0,
  "roll_pose": 40.684,
  "roll_grasp": 40.53,
  "status": "ok",
  "y_pred": null,
  "c": [
   378.30695062017315,
   310.28130119354086,
   21365
  ]
 },
 {
  "run": "so101_20261202_162802",
  "place": 2,
  "yaw_intended": -40.0,
  "yaw_read": -41.9,
  "res": "success",
  "face": 90.0,
  "elev": -13.14,
  "tilt": 18.0,
  "roll_pose": 43.777,
  "roll_grasp": 43.63,
  "status": "ok",
  "y_pred": null,
  "c": [
   363.6272638010037,
   308.72387082696923,
   18332
  ]
 },
 {
  "run": "so101_20261202_162910",
  "place": 2,
  "yaw_intended": -45.0,
  "yaw_read": 36.5,
  "res": "success",
  "face": 0.0,
  "elev": -9.49,
  "tilt": 17.0,
  "roll_pose": 32.102,
  "roll_grasp": 31.72,
  "status": "conflict",
  "y_pred": null,
  "c": [
   375.35104654940363,
   313.58170510976004,
   21547
  ]
 },
 {
  "run": "so101_20261202_163011",
  "place": 2,
  "yaw_intended": -30.0,
  "yaw_read": -31.3,
  "res": "success",
  "face": 0.0,
  "elev": 9.93,
  "tilt": 18.0,
  "roll_pose": -38.035,
  "roll_grasp": -37.73,
  "status": "deep_at_zero",
  "y_pred": null,
  "c": [
   344.46337955829483,
   329.8563944530046,
   19470
  ]
 },
 {
  "run": "so101_20261202_163205",
  "place": 3,
  "yaw_intended": -30.0,
  "yaw_read": -31.7,
  "res": "success",
  "face": 0.0,
  "elev": -0.39,
  "tilt": 3.0,
  "roll_pose": -62.071,
  "roll_grasp": -61.55,
  "status": "ok",
  "y_pred": null,
  "c": [
   381.82374275970335,
   363.3780111514102,
   18473
  ]
 },
 {
  "run": "so101_20261202_163256",
  "place": 3,
  "yaw_intended": -35.0,
  "yaw_read": -33.9,
  "res": "success",
  "face": 0.0,
  "elev": 0.6,
  "tilt": 4.0,
  "roll_pose": -63.985,
  "roll_grasp": -63.46,
  "status": "ok",
  "y_pred": null,
  "c": [
   382.9207619047619,
   366.8218775510204,
   18375
  ]
 },
 {
  "run": "so101_20261202_163348",
  "place": 3,
  "yaw_intended": -40.0,
  "yaw_read": -43.8,
  "res": "success",
  "face": 90.0,
  "elev": -3.23,
  "tilt": 0.0,
  "roll_pose": 13.201,
  "roll_grasp": 13.86,
  "status": "ok",
  "y_pred": null,
  "c": [
   369.8183268627347,
   324.86603201616765,
   18803
  ]
 },
 {
  "run": "so101_20261202_163450",
  "place": 3,
  "yaw_intended": -45.0,
  "yaw_read": 43.7,
  "res": "success",
  "face": 0.0,
  "elev": -3.23,
  "tilt": 0.0,
  "roll_pose": 9.907,
  "roll_grasp": 10.57,
  "status": "ok",
  "y_pred": null,
  "c": [
   364.6726002940559,
   324.9026465028355,
   19044
  ]
 },
 {
  "run": "so101_20261202_163553",
  "place": 3,
  "yaw_intended": 30.0,
  "yaw_read": 29.8,
  "res": "success",
  "face": 0.0,
  "elev": 0.05,
  "tilt": 16.0,
  "roll_pose": -2.907,
  "roll_grasp": -2.1,
  "status": "ok",
  "y_pred": null,
  "c": [
   362.6984047579345,
   342.7241398477016,
   17991
  ]
 },
 {
  "run": "so101_20261202_163646",
  "place": 4,
  "yaw_intended": -40.0,
  "yaw_read": -37.1,
  "res": "success",
  "face": 0.0,
  "elev": -0.27,
  "tilt": 4.0,
  "roll_pose": -39.08,
  "roll_grasp": -38.38,
  "status": "ok",
  "y_pred": null,
  "c": [
   387.5323205609201,
   339.08395350267546,
   16259
  ]
 },
 {
  "run": "so101_20261202_163730",
  "place": 4,
  "yaw_intended": 40.0,
  "yaw_read": 35.1,
  "res": "success",
  "face": -90.0,
  "elev": 0.38,
  "tilt": 4.0,
  "roll_pose": -56.211,
  "roll_grasp": -55.35,
  "status": "ok",
  "y_pred": null,
  "c": [
   397.67949859579426,
   338.21597369682854,
   14599
  ]
 },
 {
  "run": "so101_20261202_163816",
  "place": 4,
  "yaw_intended": -45.0,
  "yaw_read": -43.9,
  "res": "success",
  "face": 0.0,
  "elev": 0.01,
  "tilt": 4.0,
  "roll_pose": -45.639,
  "roll_grasp": -44.82,
  "status": "ok",
  "y_pred": null,
  "c": [
   389.15300955230754,
   340.07601565197376,
   17378
  ]
 },
 {
  "run": "so101_20261202_163901",
  "place": 4,
  "yaw_intended": 45.0,
  "yaw_read": 40.2,
  "res": "success",
  "face": -90.0,
  "elev": 0.22,
  "tilt": 4.0,
  "roll_pose": -51.155,
  "roll_grasp": -50.29,
  "status": "ok",
  "y_pred": null,
  "c": [
   398.2279436318707,
   334.7394643691979,
   14973
  ]
 },
 {
  "run": "so101_20261202_164011",
  "place": 4,
  "yaw_intended": -30.0,
  "yaw_read": -39.0,
  "res": "success",
  "face": 0.0,
  "elev": 0.51,
  "tilt": 5.0,
  "roll_pose": -39.792,
  "roll_grasp": -39.08,
  "status": "ok",
  "y_pred": null,
  "c": [
   381.4774390595286,
   341.52342534432086,
   17353
  ]
 },
 {
  "run": "so101_20261202_164101",
  "place": 5,
  "yaw_intended": 35.0,
  "yaw_read": -46.2,
  "res": "success",
  "face": 0.0,
  "elev": 9.87,
  "tilt": 23.0,
  "roll_pose": -25.989,
  "roll_grasp": -25.51,
  "status": "conflict",
  "y_pred": null,
  "c": [
   399.57137738282927,
   312.864124982084,
   13954
  ]
 },
 {
  "run": "so101_20261202_164230",
  "place": 5,
  "yaw_intended": -30.0,
  "yaw_read": -39.0,
  "res": "",
  "face": 0.0,
  "elev": 6.22,
  "tilt": 21.0,
  "roll_pose": -17.209,
  "roll_grasp": -17.21,
  "status": "deep_at_zero",
  "y_pred": null,
  "c": [
   373.44190199799084,
   299.8340774640027,
   17918
  ]
 },
 {
  "run": "so101_20261202_164330",
  "place": 5,
  "yaw_intended": -30.0,
  "yaw_read": -35.1,
  "res": "success",
  "face": 0.0,
  "elev": 5.02,
  "tilt": 20.0,
  "roll_pose": -14.463,
  "roll_grasp": -14.55,
  "status": "conflict",
  "y_pred": null,
  "c": [
   382.98430292598965,
   312.0469535283993,
   14525
  ]
 },
 {
  "run": "so101_20261202_164420",
  "place": 2,
  "yaw_intended": -35.0,
  "yaw_read": -34.0,
  "res": "success",
  "face": 0.0,
  "elev": 10.54,
  "tilt": 18.0,
  "roll_pose": -41.018,
  "roll_grasp": -40.66,
  "status": "deep_at_zero",
  "y_pred": null,
  "c": [
   341.6135087354409,
   328.7780262063228,
   19232
  ]
 },
 {
  "run": "so101_20261202_164610",
  "place": 5,
  "yaw_intended": 40.0,
  "yaw_read": 41.8,
  "res": "success",
  "face": -90.0,
  "elev": 9.36,
  "tilt": 21.0,
  "roll_pose": -28.131,
  "roll_grasp": -27.59,
  "status": "conflict",
  "y_pred": null,
  "c": [
   390.2726657645467,
   315.3965663058187,
   11824
  ]
 },
 {
  "run": "so101_20261202_164707",
  "place": 5,
  "yaw_intended": 45.0,
  "yaw_read": -45.9,
  "res": "success",
  "face": 0.0,
  "elev": 9.25,
  "tilt": 22.0,
  "roll_pose": -25.58,
  "roll_grasp": -25.3,
  "status": "deep_at_zero",
  "y_pred": null,
  "c": [
   381.0791104378959,
   294.50192784356926,
   14524
  ]
 }
]
```


### 1つの式の実機23回の窓2 のターミナルの記録（全量）

```
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % cd ~/r2r2r-scripts && ./so101/check_429/session_429.sh --first
[INFO] 範囲 now・すき間 12 mm・R401_PICK=min_elev・TRACK_STOP 15°・PUSH_LIMIT -14・PUSH_WINDOW -14・画素 40・向き 40°・HOME 25°・許す status: conflict deep_at_zero・選び直し 1・計算 R429_MODEL=1

==================================================
  1 / 22 回目: 場所2 に +30° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[40066]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1029fc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x164aa03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40066]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1029fc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x164aa03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +36.2°・ねらいからのずれの予想 閉じる向き +2.0 / 直角 -0.2 mm・角度 +0.0°・手首の絵の予想の y 317

==================================================
  読んだ向き +41.5° (案内 +30° と +11.5° 違う)・選んだ面 0.0・手首の回り 35.9° で流れます
==================================================
[R401  ] 場所2: ブロック 画素 [243.1, 170.5]・向き 41.5°・目印から 9.8 画素
[R401  ] 下げ -0.87 mm (conflict). つかむ所の爪と机 指令 3.16・予想 -5.92・沈み最大 -22.86 mm. 下りる間 固定側 指令 11.17/予想 8.79・動く爪 35.19/27.01 mm. 持ち上げの始めの予想 -7.99 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.0, 'arm_box': 33.1, 'arm_base': 190.9, 'arm_block_pad10': 28.3, 'held_table': 66.2, 'held_box': 32.5, 'jaw_table_grasp': 3.2}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -10.2° (面 +0°・爪の傾き 16.0°・手首の回り 35.9°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[40066]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1029fc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17bbc4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40066]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1029fc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17bbc47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3039.18 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
[asm level selected : up to neon_dotprod]
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162256 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_429/session_429.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % cd ~/r2r2r-scripts && ./so101/check_429/session_429.sh
[INFO] 範囲 now・すき間 12 mm・R401_PICK=min_elev・TRACK_STOP 15°・PUSH_LIMIT -14・PUSH_WINDOW -14・画素 40・向き 40°・HOME 25°・許す status: conflict deep_at_zero・選び直し 1・計算 R429_MODEL=1

==================================================
  2 / 22 回目: 場所2 に +35° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[40385]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10640c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e0783a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40385]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10640c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e0783f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +39.9°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 316
[R401  ] 場所2: ブロック 画素 [244.5, 170.6]・向き -45.0°・目印から 11.2 画素
[R401  ] 下げ -2.93 mm (ok). つかむ所の爪と机 指令 0.91・予想 -1.96・沈み最大 -24.87 mm. 下りる間 固定側 指令 11.35/予想 10.26・動く爪 33.35/31.01 mm. 持ち上げの始めの予想 -8.36 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 188.3, 'arm_block_pad10': 28.7, 'held_table': 68.0, 'held_box': 33.4, 'jaw_table_grasp': 0.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -11.15° (面 +90°・爪の傾き 16.0°・手首の回り 39.74°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[40385]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10640c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fc10778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40385]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10640c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fc107c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3244.11 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Level of Parallelism: 4
Number of PPCS 59
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162415 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  3 / 22 回目: 場所2 に +40° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[40781]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106fb43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136d283a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40781]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106fb43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136d283f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +38.8°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 316
[R401  ] 場所2: ブロック 画素 [243.5, 168.3]・向き 43.8°・目印から 10.1 画素
[R401  ] 下げ -2.81 mm (ok). つかむ所の爪と机 指令 0.94・予想 -1.99・沈み最大 -25.2 mm. 下りる間 固定側 指令 11.38/予想 10.19・動く爪 33.36/31.01 mm. 持ち上げの始めの予想 -8.56 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 190.3, 'arm_block_pad10': 28.5, 'held_table': 67.8, 'held_box': 33.2, 'jaw_table_grasp': 0.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -11.33° (面 +0°・爪の傾き 17.0°・手首の回り 38.6°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
objc[40781]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106fb43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fb48778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40781]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106fb43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fb487c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3183.58 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Level of Parallelism: 4
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Number of PPCS 59
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162544 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  4 / 22 回目: 場所2 に +45° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[40892]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10458c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1349143a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40892]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10458c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1349143f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +40.7°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 316

==================================================
  読んだ向き -44.1° (案内 +45° と -89.1° 違う)・選んだ面 90.0・手首の回り 40.53° で流れます
==================================================
[R401  ] 場所2: ブロック 画素 [243.7, 170.5]・向き -44.1°・目印から 10.4 画素
[R401  ] 下げ -2.89 mm (ok). つかむ所の爪と机 指令 0.9・予想 -1.96・沈み最大 -24.87 mm. 下りる間 固定側 指令 11.3/予想 10.26・動く爪 33.49/31.12 mm. 持ち上げの始めの予想 -8.35 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 188.2, 'arm_block_pad10': 28.6, 'held_table': 67.9, 'held_box': 33.4, 'jaw_table_grasp': 0.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -11.34° (面 +90°・爪の傾き 16.0°・手首の回り 40.53°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
objc[40892]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10458c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16efa8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[40892]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10458c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16efa87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3331.30 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162647 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  5 / 22 回目: 場所2 に -40° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41004]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026ac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13bf1c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41004]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026ac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13bf1c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +43.8°・ねらいからのずれの予想 閉じる向き +1.0 / 直角 -0.1 mm・角度 +0.0°・手首の絵の予想の y 315
[R401  ] 場所2: ブロック 画素 [245.0, 164.4]・向き -41.9°・目印から 12.4 画素
[R401  ] 下げ -2.33 mm (ok). つかむ所の爪と机 指令 0.98・予想 -2.0・沈み最大 -25.39 mm. 下りる間 固定側 指令 11.29/予想 10.42・動く爪 34.5/31.87 mm. 持ち上げの始めの予想 -8.74 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.3, 'arm_box': 33.1, 'arm_base': 189.9, 'arm_block_pad10': 28.0, 'held_table': 67.1, 'held_box': 33.0, 'jaw_table_grasp': 1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -13.14° (面 +90°・爪の傾き 18.0°・手首の回り 43.63°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
objc[41004]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026ac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fde0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41004]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026ac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fde07c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3249.91 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: -------------------------------------------
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162802 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  6 / 22 回目: 場所2 に -45° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41108]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023fc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154ba43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41108]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023fc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154ba43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +32.1°・ねらいからのずれの予想 閉じる向き +2.2 / 直角 -0.3 mm・角度 +0.0°・手首の絵の予想の y 317

==================================================
  読んだ向き +36.5° (案内 -45° と +81.5° 違う)・選んだ面 0.0・手首の回り 31.72° で流れます
==================================================
[R401  ] 場所2: ブロック 画素 [247.3, 167.5]・向き 36.5°・目印から 14.0 画素
[R401  ] 下げ -0.8 mm (conflict). つかむ所の爪と机 指令 3.32・予想 -5.92・沈み最大 -23.13 mm. 下りる間 固定側 指令 11.18/予想 8.29・動く爪 34.78/26.86 mm. 持ち上げの始めの予想 -8.08 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.1, 'arm_box': 33.1, 'arm_base': 194.2, 'arm_block_pad10': 28.3, 'held_table': 66.2, 'held_box': 32.3, 'jaw_table_grasp': 3.3}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -9.49° (面 +0°・爪の傾き 17.0°・手首の回り 31.72°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[41108]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023fc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1701ac778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41108]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023fc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1701ac7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3352.84 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162910 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  7 / 22 回目: 場所2 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41219]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14fda03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41219]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14fda03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -38.0°・ねらいからのずれの予想 閉じる向き -2.2 / 直角 +0.2 mm・角度 +0.0°・手首の絵の予想の y 329
[R401  ] 場所2: ブロック 画素 [245.6, 171.7]・向き -31.3°・目印から 12.5 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.32・予想 -9.03・沈み最大 -22.56 mm. 下りる間 固定側 指令 9.86/予想 0.4・動く爪 28.62/28.63 mm. 持ち上げの始めの予想 -11.17 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.3, 'arm_box': 33.1, 'arm_base': 185.4, 'arm_block_pad10': 26.8, 'held_table': 67.9, 'held_box': 33.4, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 9.93° (面 +0°・爪の傾き 18.0°・手首の回り -37.73°. 小さい順の 2 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[41219]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ef64778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41219]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ef647c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3262.92 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163011 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  8 / 22 回目: 場所3 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41356]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b5643a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41356]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b5643f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -62.1°・ねらいからのずれの予想 閉じる向き -5.2 / 直角 +0.6 mm・角度 +0.0°・手首の絵の予想の y 342
[R401  ] 場所3: ブロック 画素 [164.0, 305.7]・向き -31.7°・目印から 11.4 画素
[R401  ] 下げ -4.59 mm (ok). つかむ所の爪と机 指令 0.96・予想 -2.01・沈み最大 -20.37 mm. 下りる間 固定側 指令 10.86/予想 6.99・動く爪 29.37/30.64 mm. 持ち上げの始めの予想 -3.03 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.6, 'arm_box': 33.1, 'arm_base': 116.5, 'arm_block_pad10': 29.6, 'held_table': 71.2, 'held_box': 35.3, 'jaw_table_grasp': -0.4}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -0.39° (面 +0°・爪の傾き 3.0°・手首の回り -61.55°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 0.0°)
[R401  ] 送れる
objc[41356]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f9a4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41356]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f9a47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3285.48 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
[asm level selected : up to neon_dotprod]
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163205 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  9 / 22 回目: 場所3 に -35° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41472]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1050683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x134b743a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41472]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1050683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x134b743f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -64.0°・ねらいからのずれの予想 閉じる向き -5.7 / 直角 +0.7 mm・角度 +0.0°・手首の絵の予想の y 344
[R401  ] 場所3: ブロック 画素 [162.0, 301.5]・向き -33.9°・目印から 14.4 画素
[R401  ] 下げ -4.67 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.69・沈み最大 -20.97 mm. 下りる間 固定側 指令 10.91/予想 7.03・動く爪 28.64/29.94 mm. 持ち上げの始めの予想 -3.54 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.6, 'arm_box': 33.1, 'arm_base': 119.7, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.1}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.6° (面 +0°・爪の傾き 4.0°・手首の回り -63.46°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 0.0°)
[R401  ] 送れる
objc[41472]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1050683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e2a8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41472]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1050683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e2a87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3238.93 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163256 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  10 / 22 回目: 場所3 に -40° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41607]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064303a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f5603a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41607]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064303f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f5603f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +13.2°・ねらいからのずれの予想 閉じる向き -2.7 / 直角 +0.3 mm・角度 +0.0°・手首の絵の予想の y 328
[R401  ] 場所3: ブロック 画素 [165.4, 302.5]・向き -43.8°・目印から 14.9 画素
[R401  ] 下げ -5.19 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.96・沈み最大 -17.21 mm. 下りる間 固定側 指令 10.87/予想 9.11・動く爪 29.15/28.34 mm. 持ち上げの始めの予想 -3.5 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.1, 'arm_box': 33.1, 'arm_base': 148.3, 'arm_block_pad10': 30.2, 'held_table': 71.7, 'held_box': 35.7, 'jaw_table_grasp': -1.1}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -3.23° (面 +90°・爪の傾き 0.0°・手首の回り 13.86°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 0.0°)
[R401  ] 送れる
objc[41607]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064303a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x131e10778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41607]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064303f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x131e107c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3369.26 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163348 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  11 / 22 回目: 場所3 に -45° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[41878]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064b83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x148e683a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41878]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064b83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x148e683f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り +9.9°・ねらいからのずれの予想 閉じる向き -2.7 / 直角 +0.3 mm・角度 -0.0°・手首の絵の予想の y 328

==================================================
  読んだ向き +43.7° (案内 -45° と +88.7° 違う)・選んだ面 0.0・手首の回り 10.57° で流れます
==================================================
[R401  ] 場所3: ブロック 画素 [162.6, 304.6]・向き 43.7°・目印から 11.7 画素
[R401  ] 下げ -5.16 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.82・沈み最大 -17.37 mm. 下りる間 固定側 指令 10.87/予想 8.95・動く爪 29.25/28.58 mm. 持ち上げの始めの予想 -3.41 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.1, 'arm_box': 33.1, 'arm_base': 149.9, 'arm_block_pad10': 30.1, 'held_table': 71.6, 'held_box': 35.7, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -3.23° (面 +0°・爪の傾き 0.0°・手首の回り 10.57°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 0.0°)
[R401  ] 送れる
objc[41878]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064b83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fe8c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[41878]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1064b83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fe8c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 2990.45 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
-------------------------------------------
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163450 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  12 / 22 回目: 場所3 に +30° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[42648]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x145a3c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[42648]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x145a3c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -2.9°・ねらいからのずれの予想 閉じる向き -3.2 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 325
[R401  ] 場所3: ブロック 画素 [164.7, 303.5]・向き 29.8°・目印から 13.7 画素
[R401  ] 下げ -4.83 mm (ok). つかむ所の爪と机 指令 0.91・予想 -3.84・沈み最大 -19.96 mm. 下りる間 固定側 指令 10.54/予想 7.69・動く爪 26.86/26.97 mm. 持ち上げの始めの予想 -7.76 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 129.6, 'arm_block_pad10': 30.7, 'held_table': 72.1, 'held_box': 34.9, 'jaw_table_grasp': -1.4}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.05° (面 +0°・爪の傾き 16.0°・手首の回り -2.1°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 0.0°)
[R401  ] 送れる
objc[42648]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e788778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[42648]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e7887c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3428.96 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163553 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  13 / 22 回目: 場所4 に -40° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[45851]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102ce03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14bc583a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[45851]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102ce03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14bc583f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -39.1°・ねらいからのずれの予想 閉じる向き -4.0 / 直角 +0.5 mm・角度 -0.0°・手首の絵の予想の y 336
[R401  ] 場所4: ブロック 画素 [283.9, 254.0]・向き -37.1°・目印から 9.4 画素
[R401  ] 下げ -4.85 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.66・沈み最大 -19.87 mm. 下りる間 固定側 指令 10.83/予想 7.11・動く爪 28.74/29.69 mm. 持ち上げの始めの予想 -3.53 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.8, 'arm_box': 33.1, 'arm_base': 135.0, 'arm_block_pad10': 30.0, 'held_table': 71.5, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -0.27° (面 +0°・爪の傾き 4.0°・手首の回り -38.38°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 31.0°)
[R401  ] 送れる
objc[45851]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102ce03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f7a8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[45851]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102ce03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f7a87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3313.70 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163646 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  14 / 22 回目: 場所4 に +40° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[46455]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15631c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[46455]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15631c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -56.2°・ねらいからのずれの予想 閉じる向き -7.2 / 直角 +0.8 mm・角度 +0.0°・手首の絵の予想の y 341
[R401  ] 場所4: ブロック 画素 [282.7, 249.8]・向き 35.1°・目印から 8.6 画素
[R401  ] 下げ -4.73 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.69・沈み最大 -20.87 mm. 下りる間 固定側 指令 10.94/予想 7.02・動く爪 28.65/29.79 mm. 持ち上げの始めの予想 -3.57 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.6, 'arm_box': 33.1, 'arm_base': 125.7, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.38° (面 -90°・爪の傾き 4.0°・手首の回り -55.35°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 31.0°)
[R401  ] 送れる
objc[46455]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f630778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[46455]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102c383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f6307c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3292.02 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Level of Parallelism: 4
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: Number of PPCS 59
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163730 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  15 / 22 回目: 場所4 に -45° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[46704]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102d0c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x115f803a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[46704]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102d0c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x115f803f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -45.6°・ねらいからのずれの予想 閉じる向き -5.2 / 直角 +0.6 mm・角度 +0.0°・手首の絵の予想の y 338
[R401  ] 場所4: ブロック 画素 [284.1, 255.0]・向き -43.9°・目印から 9.8 画素
[R401  ] 下げ -4.81 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.66・沈み最大 -20.07 mm. 下りる間 固定側 指令 10.92/予想 7.11・動く爪 28.67/29.73 mm. 持ち上げの始めの予想 -3.54 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 128.6, 'arm_block_pad10': 30.0, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.01° (面 +0°・爪の傾き 4.0°・手首の回り -44.82°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 31.0°)
[R401  ] 送れる
objc[46704]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102d0c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f8a4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[46704]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102d0c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f8a47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3279.77 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163816 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  16 / 22 回目: 場所4 に +45° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[47015]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1074603a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1683643a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47015]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1074603f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1683643f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -51.1°・ねらいからのずれの予想 閉じる向き -6.2 / 直角 +0.7 mm・角度 +0.0°・手首の絵の予想の y 340
[R401  ] 場所4: ブロック 画素 [284.4, 253.5]・向き 40.2°・目印から 9.8 画素
[R401  ] 下げ -4.77 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.67・沈み最大 -20.4 mm. 下りる間 固定側 指令 10.89/予想 7.01・動く爪 28.69/29.81 mm. 持ち上げの始めの予想 -3.55 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.7, 'arm_box': 33.1, 'arm_base': 125.6, 'arm_block_pad10': 29.9, 'held_table': 71.6, 'held_box': 35.4, 'jaw_table_grasp': -1.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.22° (面 -90°・爪の傾き 4.0°・手首の回り -50.29°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 31.0°)
[R401  ] 送れる
objc[47015]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1074603a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17febc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47015]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1074603f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17febc7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 1793.45 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163901 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  17 / 22 回目: 場所4 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[47466]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054b43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1631403a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47466]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054b43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1631403f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
[REST] 力を入れたままポートを閉じた. フォロワーを支えてから電源を切る
[REST] camera disconnect: OpenCVCamera(1) not connected.
[REST] camera disconnect: OpenCVCamera(0) not connected.

[STOP  ] 失敗で止まりました: GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない
[R401  ] 道を送る前に止めたので 台帳に書きません (GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない)
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  17 / 22 回目: 場所4 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[48755]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103ebc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15cd483a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[48755]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103ebc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15cd483f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -39.8°・ねらいからのずれの予想 閉じる向き -4.2 / 直角 +0.5 mm・角度 +0.0°・手首の絵の予想の y 337
[R401  ] 場所4: ブロック 画素 [287.9, 243.3]・向き -39.0°・目印から 16.3 画素
[R401  ] 下げ -4.88 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.17・沈み最大 -20.74 mm. 下りる間 固定側 指令 10.72/予想 6.95・動く爪 28.45/29.39 mm. 持ち上げの始めの予想 -3.88 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.8, 'arm_box': 33.1, 'arm_base': 142.6, 'arm_block_pad10': 30.1, 'held_table': 71.8, 'held_box': 35.4, 'jaw_table_grasp': -1.4}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 0.51° (面 +0°・爪の傾き 5.0°・手首の回り -39.08°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 31.0°)
[R401  ] 送れる
objc[48755]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103ebc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17b990778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[48755]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103ebc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17b9907c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 2291.25 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164011 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  18 / 22 回目: 場所5 に +35° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[51823]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1035643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13cd843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[51823]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1035643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13cd843f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -26.0°・ねらいからのずれの予想 閉じる向き -3.0 / 直角 +0.3 mm・角度 +0.0°・手首の絵の予想の y 323
[R401  ] 場所5: ブロック 画素 [418.8, 158.5]・向き -46.2°・目印から 12.0 画素
[R401  ] 下げ -2.16 mm (conflict). つかむ所の爪と机 指令 4.28・予想 -5.85・沈み最大 -25.94 mm. 下りる間 固定側 指令 10.05/予想 10.71・動く爪 26.33/24.13 mm. 持ち上げの始めの予想 -9.22 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.4, 'arm_box': 33.1, 'arm_base': 196.7, 'arm_block_pad10': 29.4, 'held_table': 70.1, 'held_box': 34.7, 'jaw_table_grasp': -2.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 9.87° (面 +0°・爪の傾き 23.0°・手首の回り -25.51°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[51823]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1035643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17bca8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[51823]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1035643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17bca87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3053.71 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164101 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  19 / 22 回目: 場所5 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[55412]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104c5c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1459bc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[55412]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104c5c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1459bc3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
[REST] 力を入れたままポートを閉じた. フォロワーを支えてから電源を切る
[REST] camera disconnect: OpenCVCamera(1) not connected.
[REST] camera disconnect: OpenCVCamera(0) not connected.

[STOP  ] 失敗で止まりました: GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない
[R401  ] 道を送る前に止めたので 台帳に書きません (GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない)
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  19 / 22 回目: 場所5 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[56534]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106e643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1478103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[56534]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106e643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1478103f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -17.2°・ねらいからのずれの予想 閉じる向き +0.0 / 直角 +0.0 mm・角度 -0.0°・手首の絵の予想の y 312
[R401  ] 場所5: ブロック 画素 [423.6, 159.0]・向き -39.0°・目印から 16.8 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.17・予想 -7.98・沈み最大 -23.43 mm. 下りる間 固定側 指令 10.39/予想 8.48・動く爪 30.08/24.92 mm. 持ち上げの始めの予想 -10.98 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.2, 'arm_box': 33.1, 'arm_base': 196.2, 'arm_block_pad10': 28.6, 'held_table': 67.8, 'held_box': 32.4, 'jaw_table_grasp': 1.2}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 6.22° (面 +0°・爪の傾き 21.0°・手首の回り -17.21°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[56534]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106e643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x178130778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[56534]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106e643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1781307c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > 
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3191.19 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
-------------------------------------------
Svt[info]: -------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164230 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  19 / 22 回目: 場所5 に -30° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[60006]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x130ab83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[60006]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x130ab83f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -14.5°・ねらいからのずれの予想 閉じる向き +0.5 / 直角 +0.0 mm・角度 -0.0°・手首の絵の予想の y 319
[R401  ] 場所5: ブロック 画素 [414.5, 158.5]・向き -35.1°・目印から 8.0 画素
[R401  ] 下げ 0.0 mm (conflict). つかむ所の爪と机 指令 6.07・予想 -1.5・沈み最大 -23.2 mm. 下りる間 固定側 指令 10.52/予想 12.01・動く爪 30.46/27.65 mm. 持ち上げの始めの予想 -7.08 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.1, 'arm_box': 33.1, 'arm_base': 197.6, 'arm_block_pad10': 28.6, 'held_table': 67.8, 'held_box': 32.3, 'jaw_table_grasp': 1.6}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 5.02° (面 +0°・爪の傾き 20.0°・手首の回り -14.55°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[60006]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1774f4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[60006]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1774f47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3442.42 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164330 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  20 / 22 回目: 場所2 に -35° (上から見て時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[63198]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102cfc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b85c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[63198]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102cfc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b85c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -41.0°・ねらいからのずれの予想 閉じる向き -2.7 / 直角 +0.3 mm・角度 +0.0°・手首の絵の予想の y 330
[R401  ] 場所2: ブロック 画素 [244.2, 174.5]・向き -34.0°・目印から 12.2 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.31・予想 -9.32・沈み最大 -22.52 mm. 下りる間 固定側 指令 9.82/予想 -0.02・動く爪 28.39/28.74 mm. 持ち上げの始めの予想 -11.28 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.3, 'arm_box': 33.1, 'arm_base': 182.5, 'arm_block_pad10': 26.6, 'held_table': 68.0, 'held_box': 33.6, 'jaw_table_grasp': -1.5}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 10.54° (面 +0°・爪の傾き 18.0°・手首の回り -40.66°. 小さい順の 2 番目. 割り振りは 面 +0°・爪の傾き 18.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[63198]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102cfc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e86c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[63198]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x102cfc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e86c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3489.36 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164420 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  21 / 22 回目: 場所5 に +40° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[79124]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1070d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158a143a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[79124]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1070d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158a143f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -28.1°・ねらいからのずれの予想 閉じる向き -3.5 / 直角 +0.4 mm・角度 +0.0°・手首の絵の予想の y 323
[R401  ] 場所5: ブロック 画素 [415.3, 164.0]・向き 41.8°・目印から 12.0 画素
[R401  ] 下げ -2.43 mm (conflict). つかむ所の爪と机 指令 3.96・予想 -5.86・沈み最大 -25.65 mm. 下りる間 固定側 指令 10.12/予想 10.59・動く爪 26.5/24.44 mm. 持ち上げの始めの予想 -10.42 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.7, 'arm_box': 33.1, 'arm_base': 195.0, 'arm_block_pad10': 28.0, 'held_table': 70.2, 'held_box': 34.8, 'jaw_table_grasp': -2.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 9.36° (面 -90°・爪の傾き 21.0°・手首の回り -27.59°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[79124]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1070d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ffa8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[79124]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1070d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ffa87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3567.21 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164610 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  22 / 22 回目: 場所5 に +45° (上から見て反時計回り) で置いて Enter (q で終わる)
==================================================

[429   ] 429 の計算あり (R429_MODEL=1. so101/check_429/model_429.json・sha256 01b27b94b2cfe36a・関節のずれ {'wrist_flex': -3.4, 'wrist_roll': -6.6}・c [-4.801, -14.119, -12.333]・肩の回りのずらし 0.0°・机で一定 [3.562, 11.546])
objc[83408]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024a03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x127d643a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[83408]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024a03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x127d643f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[429   ] 429 の計算: 手首の回り -25.6°・ねらいからのずれの予想 閉じる向き -1.7 / 直角 +0.2 mm・角度 +0.0°・手首の絵の予想の y 311
[R401  ] 場所5: ブロック 画素 [417.4, 157.9]・向き -45.9°・目印から 10.5 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.39・予想 -9.35・沈み最大 -23.66 mm. 下りる間 固定側 指令 10.25/予想 7.24・動く爪 28.93/24.87 mm. 持ち上げの始めの予想 -11.82 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.4, 'arm_box': 33.1, 'arm_base': 192.6, 'arm_block_pad10': 28.4, 'held_table': 67.9, 'held_box': 32.9, 'jaw_table_grasp': -0.2}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 9.25° (面 +0°・爪の傾き 22.0°・手首の回り -25.3°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[83408]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024a03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ff54778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[83408]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024a03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ff547c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 251/251 [00:00<00:00, 3451.59 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164707 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  済み: 22 回 (道が作れず飛ばした回は /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/model429_skipped.jsonl)
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts %
```


## 依頼430：Hugging Face の容量を空けて so101j を上げ直す

### 依頼430 の依頼文

```markdown
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 90
---
# 依頼430：Hugging Face の非公開の容量を空けて、so101j のモデルを上げ直し、推論で使えるようにする（アームは動かさない）

## なぜ
依頼424 の so101j の学習は 2026-12-02 16:11 に 3000 ステップまで終わったが、Hugging Face へ上げる所で「Private storage limit reached for user PixelstoMotors」で失敗した（記録：`/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/lab_train_20261202_093658.txt` の 7b）。
lab_train.sh は 7c で Pod から KIOXIA の `checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/` へ scp で取っている途中（16:12 から。Pod 7du9imr2qtp7h9・A40。見張りは 19:12 まで）。
推論（lab_start.sh --model so101j）は Hugging Face から取る作りなので、このままでは実機で流せない。

## エイイチの決定（2026-12-02 16:22「消してよい」）
Hugging Face から次の 2 つのリポジトリを消してよい（実機で良くなかったモデル。原本は KIOXIA に残す）。
- so101d：`PixelstoMotors/pi05-so101-ideal-x13-only-lora-v1`（原本 checkpoints/pi05_so101_ideal_x13_only_lora_v1/）
- so101g：`PixelstoMotors/pi05-so101-ideal-var-v2-recover-lora-v1`（原本 checkpoints/pi05_so101_ideal_var_v2_recover_lora_v1/）
消してよいのはこの 2 つだけ。ほかのリポジトリ・KIOXIA のファイルは消さない。

## やること（順に）
1. 動いている lab_train.sh（so101j）が 7c を終えるのを待つ（止めない・触らない）。終わったら、KIOXIA の so101j のモデルがそろっているか（ファイルの数とバイト数。lab_train の照らし合わせの結果）を確かめる。そろっていなければ、Pod を消さずに止めて報告する
2. 消す前に、so101d と so101g の KIOXIA の原本がそろっているか（Hugging Face 側のファイルの一覧と、名前・バイト数を照らし合わせる）を確かめる。そろっていない方は消さずに報告する
3. そろっている方の Hugging Face のリポジトリを消す。消す前と後の、アカウントの非公開の使用量（分かる範囲で）を記録する
4. so101j を KIOXIA の原本から `PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1`（非公開）へ上げる（lab_train の 7b と同じ中身・同じ道具。train_state/ は上げない）。上げたあと、名前とバイト数を照らし合わせる
5. 学習の Pod（7du9imr2qtp7h9）が残っていたら、KIOXIA と Hugging Face の両方がそろったのを確かめてから削除する（停止ではなく削除）。GPU の型番・借りた時間・費用（円も）を記録に残す。lab_train.sh が自分で消していたら、そのことを確かめるだけでよい
6. `./lab_start.sh --model so101j --log so101_Log12 --serve-only` の dry-run が通ることを確かめる（Pod は借りない）
7. lab_lib.sh の so101d・so101g の定義は消さない。Hugging Face から消したこと（日付・理由・原本の場所）をコメントで 1 行ずつ足す。推論で選ばれたときに「Hugging Face にない。KIOXIA の原本から上げ直す」と分かる文を出せるなら出す（大きな作り替えはしない）
8. また満杯で止まらないように、いまの非公開のリポジトリの一覧と大きさを報告に表で書く（次に消す候補を決めるのはエイイチ。AI は消さない）

## 守ること
- アームは動かさない。codex・ほかの AI にレビューを頼まない
- Hugging Face の鍵は表示しない・ログに残さない
- `git add .`・`git clean` は使わない。commit は自分のファイルだけを個別に add
- MASTER と CLAUDE.md に従う（今の機体は SO-101）

## 報告（`so101/check_430/REPORT.md`）
- いちばん大事なこと：so101j が Hugging Face と KIOXIA の両方にそろったか、消した 2 つ、Pod を消したか・費用
- 実機で so101j を流す前に要ること（あれば）
- 非公開のリポジトリの一覧と大きさ
- 最後の 1 行に「判定：合格／止めた（決めてほしいことあり）／失敗」
```


### 依頼430 の報告（REPORT.md）

```markdown
# 依頼 430：Hugging Face の非公開の容量を空けて so101j を上げ直す（2026-12-02）

アームは動かしていない。codex・ほかの AI にはレビューを頼んでいない。Hugging Face の鍵は表示していない（`HF_TOKEN_PATH` でファイルの場所だけを渡した）。

## いちばん大事なこと
- **so101j は KIOXIA と Hugging Face の両方にそろった**
  - KIOXIA：`checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/` に 33 ファイル 6,335,872,914 バイト。lab_train.sh の 7c で Pod の一覧と名前・バイト数が全部合った（16:34）。正規化の値も sha256 が同じ。自分でも Pod の一覧（pod_files_2999.tsv）と照らし合わせ直し、同じだった
  - Hugging Face：`PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1`（非公開）に 33 ファイル 6,335,872,914 バイト。KIOXIA と名前・バイト数が全部合った（16:36）
- **消した 2 つ**（16:35。消す直前に、Hugging Face のファイルと KIOXIA の原本の名前・バイト数が全部同じことを確かめた）
  - so101d `PixelstoMotors/pi05-so101-ideal-x13-only-lora-v1`：21 ファイル 6,335,847,007 バイト（原本 `checkpoints/pi05_so101_ideal_x13_only_lora_v1/2999/`）
  - so101g `PixelstoMotors/pi05-so101-ideal-var-v2-recover-lora-v1`：29 ファイル 6,335,854,828 バイト（原本 `checkpoints/pi05_so101_ideal_var_v2_recover_lora_v1/2999/`）
  - ほかのリポジトリと KIOXIA のファイルには触っていない
- **Pod は lab_train.sh が自分で消していた**（16:34:50 に削除を送り、API の一覧から消えたのを lab_train.sh が確かめた。こちらでも `lab_pod_kind` で「gone」を確かめた）
  - GPU：NVIDIA A40・1 時間 0.59 ドル
  - 借りた時間：09:37:03〜16:34:50 の 417 分 47 秒（6.96 時間）
  - 費用：約 4.11 ドル（約 649 円。1 ドル = 158 円）

## 非公開の使用量（リポジトリのファイルの合計。アカウントの上限の値は API で取れない。無料のアカウント）
| 時点 | リポジトリ | 合計 |
|---|---|---|
| 消す前（so101j は 7b で途中まで入っていた 20 ファイル） | 16 | 97,926,958,027 バイト（約 97.9 GB） |
| so101d・so101g を消した後 | 14 | 85,255,245,568 バイト（約 85.3 GB） |
| so101j を上げた後 | 14 | 88,702,134,325 バイト（約 88.7 GB） |

7b は 97.9 GB の所に残りの約 3.4 GB を足そうとして止まったので、上限は 100 GB くらいとみられる（推測）。そうなら残りは約 11 GB で、モデル（1 つ約 6.3 GB）はあと 1 つしか入らない。

## so101j の上げ方のこと
- lab_train.sh の 7b が止まったとき、リポジトリはもう作られていて、33 ファイルのうち 20 ファイル（2,888,984,157 バイト）が入っていた（名前・バイト数は全部 Pod 側と同じ）。hf_upload_ckpt.py は「中身があれば止まる」作りなので、そのままでは使えない
- そこで `up_430.py` で、hf_upload_ckpt.py と同じ `upload_folder`・同じ中身（train_state/ なし）で上げた。違いは「前からあるファイルが全部、上げるものと名前・バイト数が同じなら続ける」ことと、KIOXIA（exFAT）の `._*`・`.DS_Store`・`train_provenance.json` を上げないことだけ
- 30 秒ほどで終わった（大きいファイルは 7b のときに送り終えていたとみられる）。上げたあと `._`・由来のファイルが入っていないことも確かめた
- `train_provenance.json`（由来）は KIOXIA にだけある。lab_train.sh は自分で上げたときだけ Hugging Face に足す作りなので、今回は足していない（推論には使わない）

## 実機で so101j を流す前に要ること
- なし（Hugging Face にそろったので、`./lab_start.sh --model so101j --log so101_Log12 --serve-only` の 3c で取れる）
- dry-run：`dry_start_430.sh`（test_lab_start.sh の偽物の Runpod・ssh を使い、Pod は借りない）で `--model so101j --log so101_Log12 --serve-only` を流し、3c で `hf download PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1` を呼び、5b の空打ちのあと「サーバー (--model so101j) は localhost:8000 で待っています」まで進むのを確かめた（記録 dry_start_430.log）
- 切り替え方式で使うときの設定は check_424 の REPORT のとおり

## lab_lib.sh
- so101d・so101g の定義は消していない。それぞれに「依頼 430: 2026-12-02 に Hugging Face から消した（実機で良くなかった・非公開の容量を空けるため）。原本は KIOXIA の checkpoints/…/2999/」のコメントを 1 行足した
- 推論で選ばれたときに出る `[MODEL ]` の行（Pod を作る前に出る）の説明の後ろに「注意: Hugging Face にない (2026-12-02 依頼 430 で消した). 使うときは KIOXIA の原本 checkpoints/…/2999/ から PixelstoMotors/… へ上げ直す」を足した。動きは変えていない（そのまま流すと 3c の hf download で止まる）
- テスト：test_lab_start.sh OK 446 / NG 0、test_lab_train.sh OK 321 / NG 0

## 非公開のリポジトリの一覧と大きさ（16:36 時点。全部 非公開。次に消す候補を決めるのはエイイチ）
| リポジトリ | モデル | ファイル | バイト | 最後に変えた日（UTC） |
|---|---|---|---|---|
| pi05-mecharm-trim-lora-v1 | trim（mechArm） | 32 | 6,335,855,217 | 2026-10-29 |
| pi05-mecharm-trim-corr-lora-v1 | corr（mechArm） | 37 | 6,335,841,169 | 2026-10-31 |
| pi05-mecharm-trim-corr-lora-v2 | corr2（mechArm） | 27 | 6,335,840,522 | 2026-11-01 |
| pi05-mecharm-trim-corr-lora-v3 | corr3（mechArm） | 36 | 6,335,852,509 | 2026-11-06 |
| pi05-mecharm-deep-even10-lora-v1 | deep1（mechArm） | 33 | 6,335,851,375 | 2026-11-09 |
| pi05-mecharm-split10-lora-v1 | split1（mechArm） | 35 | 6,335,875,452 | 2026-11-16 |
| pi05-mecharm-split10-lora-v2 | split2（mechArm） | 36 | 6,335,869,459 | 2026-11-17 |
| pi05-so101-teleop-even-lora-v1 | so101a | 27 | 6,335,862,013 | 2026-11-23 |
| pi05-so101-teleop-even-h30-lora-v1 | so101b | 33 | 6,335,880,345 | 2026-11-24 |
| pi05-so101-teleop-ideal-mix-lora-v1 | so101c | 48 | 6,335,890,208 | 2026-11-26 |
| pi05-so101-ideal-var-v2-lora-v1 | so101f | 38 | 6,335,873,294 | 2026-11-29 |
| pi05-so101-code-rule401-grasp-lora-v1 | so101h | 37 | 6,335,888,360 | 2026-12-01 |
| pi05-so101-code-rule401-rot-grasp-lora-v1 | so101i | 34 | 6,335,881,488 | 2026-12-01 |
| pi05-so101-code-rule401-flip-grasp-lora-v1 | so101j | 33 | 6,335,872,914 | 2026-12-02 |
| 合計（14） | | | 88,702,134,325 | |

（deep1b は Hugging Face にない。ファイルの数は .gitattributes を除き、由来 train_provenance.json を含む。KIOXIA に原本がそろっているかは、so101d・so101g のほかは確かめていない）

## ファイル（so101/check_430/）
- `hf_430.py`：一覧・照らし合わせ・消す（消せるのは so101d・so101g の 2 つだけに固定）
- `up_430.py`：so101j を KIOXIA から上げる
- `dry_start_430.sh`・`dry_start_430.log`：Pod を借りない dry-run
- `list_before_430.json`・`list_after_delete_430.json`・`list_after_430.json`：非公開のリポジトリの一覧（消す前・消した後・上げた後）
- `compare_so101d_430.txt`・`compare_so101g_430.txt`・`compare_so101j_430.txt`・`up_430.log`：照らし合わせ・上げた記録

## 決めてほしいこと
- 非公開の容量の残りは約 11 GB（上限 100 GB とみた場合）で、次の学習をもう 1 回すると、その次でまた満杯になる。次に消すもの（mechArm の 7 つなど）か、有料の計画にするかを決めてほしい（AI は消していない）

判定：合格
```


### hf_430.py

```python
#!/usr/bin/env python3
"""依頼 430: Hugging Face の非公開リポジトリの一覧・大きさを見る, KIOXIA の原本と照らし合わせる (Mac で動かす).

鍵は HF_TOKEN_PATH (ファイルの場所) で渡す. 鍵の中身は出さない.
  python3 hf_430.py list                      → PixelstoMotors のモデルの一覧 (非公開か・ファイル数・バイト数) を JSON で
  python3 hf_430.py compare REPO DIR          → REPO のファイル (名前・バイト数) と DIR (train_state/・._*・train_provenance.json を除く) を照らし合わせる
  python3 hf_430.py delete REPO --yes         → REPO を消す (依頼 430 で消してよいと決まった 2 つだけ受け付ける)

最後の行: H430 <結果> <説明>
"""
import json
import os
import sys

OWNER = "PixelstoMotors"
SKIP_TOP = ("train_state",)
SKIP_REMOTE = (".gitattributes", "train_provenance.json")
DELETABLE = ("PixelstoMotors/pi05-so101-ideal-x13-only-lora-v1",          # so101d (エイイチ 2026-12-02 16:22「消してよい」)
             "PixelstoMotors/pi05-so101-ideal-var-v2-recover-lora-v1")     # so101g


def api():
    from huggingface_hub import HfApi
    return HfApi()


def remote_files(a, repo):
    out = []
    for x in a.list_repo_tree(repo, recursive=True, repo_type="model"):
        size = getattr(x, "size", None)
        if size is None or x.path in SKIP_REMOTE:
            continue
        out.append((x.path, int(size)))
    return sorted(out, key=lambda x: x[0].encode())


def local_files(root):
    out = []

    def err(e):
        raise e

    for d, dirs, files in os.walk(root, onerror=err):
        rel = os.path.relpath(d, root)
        if rel == ".":
            dirs[:] = [x for x in dirs if x not in SKIP_TOP]
        dirs[:] = [x for x in dirs if not x.startswith("._")]
        for f in files:
            p = os.path.normpath(os.path.join(rel, f))
            if f.startswith("._") or f == ".DS_Store" or p in SKIP_REMOTE:      # exFAT の印・Finder の印・由来 (Mac が足す)
                continue
            out.append((p, os.path.getsize(os.path.join(d, f))))
    return sorted(out, key=lambda x: x[0].encode())


def cmd_list():
    a = api()
    rows = []
    for m in a.list_models(author=OWNER, full=True):
        info = a.model_info(m.id, files_metadata=True)
        files = [s for s in (info.siblings or []) if s.rfilename not in (".gitattributes",)]
        size = sum((s.size or 0) for s in files)
        rows.append({"repo": m.id, "private": bool(info.private), "files": len(files), "bytes": size,
                     "last_modified": str(info.last_modified)[:19] if info.last_modified else ""})
    rows.sort(key=lambda r: r["repo"])
    print(json.dumps(rows, ensure_ascii=False, indent=1))
    priv = [r for r in rows if r["private"]]
    print(f"H430 list {len(rows)} リポジトリ (非公開 {len(priv)}, 非公開の合計 {sum(r['bytes'] for r in priv):,} バイト)")
    return 0


def cmd_compare(repo, d):
    a = api()
    have = remote_files(a, repo)
    mine = local_files(d)
    dh, dm = dict(have), dict(mine)
    bad = [p for p in sorted(set(dh) | set(dm), key=str.encode) if dh.get(p) != dm.get(p)]
    for p in bad[:20]:
        print(f"  {p}: KIOXIA {dm.get(p, 'なし')} / HF {dh.get(p, 'なし')}")
    hb, mb = sum(dh.values()), sum(dm.values())
    if not have:
        print(f"H430 empty {repo} にファイルがない (KIOXIA {len(mine)} ファイル {mb:,} バイト)")
        return 1
    if bad:
        print(f"H430 mismatch {len(bad)} 件ちがう (HF {len(have)} ファイル {hb:,} / KIOXIA {len(mine)} ファイル {mb:,})")
        return 1
    print(f"H430 same HF {len(have)} ファイル {hb:,} バイト = KIOXIA {len(mine)} ファイル {mb:,} バイト (名前・バイト数が全部同じ)")
    return 0


def cmd_delete(repo, yes):
    if repo not in DELETABLE or not yes:
        print(f"H430 refuse {repo} は消してよい 2 つに入っていない (または --yes がない)")
        return 2
    api().delete_repo(repo, repo_type="model")
    print(f"H430 deleted {repo}")
    return 0


if __name__ == "__main__":
    os.environ.pop("HF_TOKEN", None)
    c = sys.argv[1] if len(sys.argv) > 1 else ""
    try:
        if c == "list":
            sys.exit(cmd_list())
        if c == "compare" and len(sys.argv) == 4:
            sys.exit(cmd_compare(sys.argv[2], sys.argv[3]))
        if c == "delete" and len(sys.argv) >= 3:
            sys.exit(cmd_delete(sys.argv[2], "--yes" in sys.argv[3:]))
    except Exception as e:      # 鍵は例外の文に入らない
        print(f"H430 error {type(e).__name__}: {str(e).splitlines()[0] if str(e) else ''}")
        sys.exit(6)
    print(__doc__)
    sys.exit(2)
```


### up_430.py

```python
#!/usr/bin/env python3
"""依頼 430: so101j を KIOXIA の原本から Hugging Face (非公開) へ上げる (Mac で動かす).

lab_train.sh の 7b (pi05/openpi_addon/hf_upload_ckpt.py) と同じ upload_folder で, 同じ中身 (train_state/ なし) を上げる.
7b が満杯で止まったとき, リポジトリに途中までのファイル (20 個) が 1 回のコミットで入っていたので,
hf_upload_ckpt.py の「中身があれば止まる」の代わりに「あるファイルが全部, 上げるものと名前・バイト数が同じなら続ける」にした.
KIOXIA (exFAT) の ._*・.DS_Store・train_provenance.json (Mac があとで足す由来) は上げない.
鍵は HF_TOKEN_PATH (ファイルの場所) で渡す. 鍵の中身は出さない.

  python3 up_430.py DIR REPO      最後の行: UP430 <ok|other_content|mismatch|not_private|error> <説明>
"""
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import hf_430  # noqa: E402

IGNORE = ["train_state/**", "train_state/*", "._*", "**/._*", ".DS_Store", "**/.DS_Store", "train_provenance.json"]


def main(d, repo):
    from huggingface_hub import HfApi
    a = HfApi()
    if not os.path.isfile(os.path.join(d, "_CHECKPOINT_METADATA")):
        print(f"UP430 error {d} に _CHECKPOINT_METADATA がない"); return 6
    mine = hf_430.local_files(d)
    print(f"[UP430 ] 上げるもの: {len(mine)} ファイル {sum(s for _, s in mine):,} バイト (train_state/ は上げない)", flush=True)
    a.create_repo(repo, repo_type="model", private=True, exist_ok=True)
    if not a.model_info(repo).private:
        print(f"UP430 not_private {repo} が非公開ではない. 上げずに止めた"); return 3
    have = hf_430.remote_files(a, repo)
    dm = dict(mine)
    bad = [p for p, s in have if dm.get(p) != s]
    if bad:
        print("\n".join(f"  {p}" for p in bad[:20]))
        print(f"UP430 other_content {repo} に上げるものと違うファイルが {len(bad)} 個ある. 上書きしないで止めた"); return 4
    print(f"[UP430 ] リポジトリに前からあるもの: {len(have)} ファイル (全部 上げるものと名前・バイト数が同じ)", flush=True)
    a.upload_folder(folder_path=d, repo_id=repo, repo_type="model", ignore_patterns=IGNORE,
                    commit_message="依頼 430: so101j step 2999 を KIOXIA の原本から上げ直す (lab_train.sh 7b が満杯で止まったため)")
    have = hf_430.remote_files(a, repo)
    if have != mine:
        dh = dict(have)
        for p in sorted(set(dh) | set(dm), key=str.encode):
            if dh.get(p) != dm.get(p):
                print(f"  {p}: KIOXIA {dm.get(p, 'なし')} / HF {dh.get(p, 'なし')}")
        print("UP430 mismatch 上げたあとのリポジトリの一覧が KIOXIA と合わない"); return 5
    print(f"UP430 ok {repo} に {len(mine)} ファイル {sum(s for _, s in mine):,} バイト. 名前・バイト数が KIOXIA と全部合った")
    return 0


if __name__ == "__main__":
    os.environ.pop("HF_TOKEN", None)
    if len(sys.argv) != 3:
        print(__doc__); sys.exit(2)
    try:
        sys.exit(main(sys.argv[1], sys.argv[2]))
    except Exception as e:      # 鍵は例外の文に入らない
        print(f"UP430 error {type(e).__name__}: {str(e).splitlines()[0] if str(e) else ''}")
        sys.exit(6)
```


### so101j の学習の見張りの記録（progress_424.md）

````markdown
# 依頼424 途中経過（so101j・so101i の 110 本 + 場所5 で面を切り替えてつかんだ成功 10 本のつかむ所）

- 12-02 09:37 見張りを始めた (lab_train.sh pid 93848. 記録 /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/nohup_lab_train_20261202_093658.txt)
- 12-02 11:37 [TRAIN ] 11:34  step 706/3000  loss 0.0077 (Step 700 の行)  経過 1:30  上限まで 5:02
- 12-02 13:37 [TRAIN ] 13:35  step 1710/3000  loss 0.0034 (Step 1700 の行)  経過 3:31  上限まで 3:01
- 12-02 15:37 [TRAIN ] 15:36  step 2720/3000  loss 0.0022 (Step 2700 の行)  経過 5:33  上限まで 1:00
- 12-02 16:35 [TRAIN ] 学習が終わりました (最後のチェックポイント 2999, loss 0.0017)

## 終わり (12-02 16:35)

```
lab_train.sh so101_Log12  2026-12-02 16:34:51
結果: 学習は終わりました (step 2999) が, Hugging Face に上げられなかった (error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)). KIOXIA には置いた (scp). Pod は消しました.
学習: pi05_so101_code_rule401_flip_grasp_lora --exp-name=so101_code_rule401_flip_grasp_v1  最後のチェックポイント 2999  最後の loss 0.0017 (Step 2950)
Hugging Face (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1): error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)
KIOXIA: /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999 に置いた (33 ファイル 6335872914 バイト. Pod 側と名前・バイト数が全部合った). assets の正規化の値は測り直したものと sha256 が同じ
ログを持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j
Pod (id 7du9imr2qtp7h9) は消した (API で確かめた)
借りていた時間 417 分 47 秒 (6.96 時間) × 1時間 0.59 ドル = 約 4.11 ドル (約 649 円. 1ドル=158円)
正規化の値 (Pod で測り直した. sha256 f8497d172ab7c1455e96299477eb313f5ddee9401f114c003577dc87c7871914): /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/norm_stats.json
由来: /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_provenance.json ・ /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/train_provenance.json
ターミナルの記録: /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/lab_train_20261202_093658.txt
```

## loss（500 ステップごと）

| step | loss |
|---|---|

## KIOXIA のチェックポイント
- /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/ 34 ファイル 6335878477 バイト
- 見張りの終わり 12-02 16:35
````


### so101j の学習のまとめ（result_20261202_093658.txt）

```
lab_train.sh so101_Log12  2026-12-02 16:34:51
結果: 学習は終わりました (step 2999) が, Hugging Face に上げられなかった (error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)). KIOXIA には置いた (scp). Pod は消しました.
学習: pi05_so101_code_rule401_flip_grasp_lora --exp-name=so101_code_rule401_flip_grasp_v1  最後のチェックポイント 2999  最後の loss 0.0017 (Step 2950)
Hugging Face (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1): error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)
KIOXIA: /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999 に置いた (33 ファイル 6335872914 バイト. Pod 側と名前・バイト数が全部合った). assets の正規化の値は測り直したものと sha256 が同じ
ログを持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j
Pod (id 7du9imr2qtp7h9) は消した (API で確かめた)
借りていた時間 417 分 47 秒 (6.96 時間) × 1時間 0.59 ドル = 約 4.11 ドル (約 649 円. 1ドル=158円)
正規化の値 (Pod で測り直した. sha256 f8497d172ab7c1455e96299477eb313f5ddee9401f114c003577dc87c7871914): /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/norm_stats.json
由来: /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_provenance.json ・ /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/train_provenance.json
ターミナルの記録: /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/lab_train_20261202_093658.txt
```


### so101j の学習のターミナルの記録（学習が終わってから Pod を消すまで）

ターミナルの記録の全体は 22,515 行あり、KIOXIA の `lab/so101_Log12/train_so101j/lab_train_20261202_093658.txt` に置いてある。ここには、Hugging Face に上げようとした所から最後までを載せる。

```
Map:   0%|          | 0/101 [00:00<?, ? examples/s]  so101_20261201_201926: 82 steps

Map: 100%|██████████| 101/101 [00:00<00:00, 943.96 examples/s]
Map: 100%|██████████| 101/101 [00:00<00:00, 919.44 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 225.71ba/s]

Map:   0%|          | 0/82 [00:00<?, ? examples/s]  so101_20261201_202009: 101 steps

Map: 100%|██████████| 82/82 [00:00<00:00, 885.58 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 148.32ba/s]
  so101_20261201_202049: 82 steps

Map:   0%|          | 0/101 [00:00<?, ? examples/s]
Map: 100%|██████████| 101/101 [00:00<00:00, 1042.15 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 198.03ba/s]
  so101_20261201_202203: 101 steps

Map:   0%|          | 0/104 [00:00<?, ? examples/s]
Map: 100%|██████████| 104/104 [00:00<00:00, 967.77 examples/s]
Map: 100%|██████████| 104/104 [00:00<00:00, 947.64 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 239.08ba/s]
  so101_20261201_202249: 104 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 874.29 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 106.57ba/s]
  so101_20261201_202331: 82 steps

Map:   0%|          | 0/106 [00:00<?, ? examples/s]
Map:  94%|█████████▍| 100/106 [00:00<00:00, 991.12 examples/s]
Map: 100%|██████████| 106/106 [00:00<00:00, 870.69 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 176.88ba/s]
  so101_20261201_202522: 106 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 843.35 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 114.85ba/s]
  so101_20261201_202610: 82 steps

Map:   0%|          | 0/103 [00:00<?, ? examples/s]
Map: 100%|██████████| 103/103 [00:00<00:00, 940.35 examples/s]
Map: 100%|██████████| 103/103 [00:00<00:00, 921.15 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 242.87ba/s]

Map:   0%|          | 0/94 [00:00<?, ? examples/s]  so101_20261201_202650: 103 steps

Map: 100%|██████████| 94/94 [00:00<00:00, 854.26 examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 836.89 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 88.45ba/s]
  so101_20261201_202729: 94 steps

Map:   0%|          | 0/94 [00:00<?, ? examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 924.13 examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 903.26 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 112.07ba/s]

Map:   0%|          | 0/103 [00:00<?, ? examples/s]  so101_20261201_202834: 94 steps

Map:  98%|█████████▊| 101/103 [00:00<00:00, 992.87 examples/s]
Map: 100%|██████████| 103/103 [00:00<00:00, 875.37 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 233.59ba/s]
  so101_20261201_202927: 103 steps

Map:   0%|          | 0/100 [00:00<?, ? examples/s]
Map: 100%|██████████| 100/100 [00:00<00:00, 927.52 examples/s]
Map: 100%|██████████| 100/100 [00:00<00:00, 906.91 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 100.02ba/s]
  so101_20261201_203010: 100 steps

Map:   0%|          | 0/96 [00:00<?, ? examples/s]
Map: 100%|██████████| 96/96 [00:00<00:00, 879.82 examples/s]
Map: 100%|██████████| 96/96 [00:00<00:00, 861.72 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 101.51ba/s]

Map:   0%|          | 0/82 [00:00<?, ? examples/s]  so101_20261201_203151: 96 steps

Map: 100%|██████████| 82/82 [00:00<00:00, 901.55 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 138.52ba/s]
  so101_20261201_203248: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 772.59 examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 756.66 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 155.55ba/s]
  so101_20261201_203332: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 809.27 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 103.78ba/s]
  so101_20261201_203600: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 792.37 examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 776.03 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 126.35ba/s]

Map:   0%|          | 0/82 [00:00<?, ? examples/s]  so101_20261201_203651: 82 steps

Map: 100%|██████████| 82/82 [00:00<00:00, 848.89 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 154.78ba/s]
  so101_20261201_203805: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 864.09 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 112.22ba/s]
  so101_20261201_203856: 82 steps

Map:   0%|          | 0/94 [00:00<?, ? examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 902.27 examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 882.94 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 107.74ba/s]

Map:   0%|          | 0/100 [00:00<?, ? examples/s]  so101_20261201_203936: 94 steps

Map:  98%|█████████▊| 98/100 [00:00<00:00, 960.95 examples/s]
Map: 100%|██████████| 100/100 [00:00<00:00, 855.35 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 85.73ba/s]
  so101_20261201_204024: 100 steps

Map:   0%|          | 0/94 [00:00<?, ? examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 911.85 examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 890.99 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 108.11ba/s]
  so101_20261201_204112: 94 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 844.47 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 131.43ba/s]

Map:   0%|          | 0/106 [00:00<?, ? examples/s]  so101_20261201_204153: 82 steps

Map:  94%|█████████▍| 100/106 [00:00<00:00, 981.48 examples/s]
Map: 100%|██████████| 106/106 [00:00<00:00, 853.84 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 167.37ba/s]
  so101_20261201_204232: 106 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 915.36 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 132.58ba/s]

Map:   0%|          | 0/98 [00:00<?, ? examples/s]  so101_20261201_204317: 82 steps

Map: 100%|██████████| 98/98 [00:00<00:00, 950.94 examples/s]
Map: 100%|██████████| 98/98 [00:00<00:00, 926.93 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 134.29ba/s]
  so101_20261201_204400: 98 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 855.19 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 118.05ba/s]

Map:   0%|          | 0/106 [00:00<?, ? examples/s]  so101_20261201_204445: 82 steps

Map:  85%|████████▍ | 90/106 [00:00<00:00, 885.70 examples/s]
Map: 100%|██████████| 106/106 [00:00<00:00, 782.31 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 188.61ba/s]
  so101_20261201_204544: 106 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 851.71 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 102.35ba/s]

Map:   0%|          | 0/108 [00:00<?, ? examples/s]  so101_20261201_204629: 82 steps

Map:  96%|█████████▋| 104/108 [00:00<00:00, 1020.80 examples/s]
Map: 100%|██████████| 108/108 [00:00<00:00, 928.14 examples/s] 

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 237.37ba/s]
  so101_20261201_204716: 108 steps

Map:   0%|          | 0/96 [00:00<?, ? examples/s]
Map: 100%|██████████| 96/96 [00:00<00:00, 950.66 examples/s]
Map: 100%|██████████| 96/96 [00:00<00:00, 838.51 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 101.20ba/s]
  so101_20261201_204806: 96 steps

Map:   0%|          | 0/98 [00:00<?, ? examples/s]
Map:  96%|█████████▌| 94/98 [00:00<00:00, 922.38 examples/s]
Map: 100%|██████████| 98/98 [00:00<00:00, 843.51 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 79.60ba/s]
  so101_20261201_205232: 98 steps

Map:   0%|          | 0/100 [00:00<?, ? examples/s]
Map: 100%|██████████| 100/100 [00:00<00:00, 905.17 examples/s]
Map: 100%|██████████| 100/100 [00:00<00:00, 885.55 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 90.25ba/s]
  so101_20261201_205506: 100 steps

Map:   0%|          | 0/98 [00:00<?, ? examples/s]
Map:  58%|█████▊    | 57/98 [00:00<00:00, 559.61 examples/s]
Map: 100%|██████████| 98/98 [00:00<00:00, 633.92 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 104.66ba/s]
  so101_20261201_205555: 98 steps

Map:   0%|          | 0/104 [00:00<?, ? examples/s]
Map:  92%|█████████▏| 96/104 [00:00<00:00, 941.57 examples/s]
Map: 100%|██████████| 104/104 [00:00<00:00, 851.86 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 176.83ba/s]
  so101_20261201_205810: 104 steps

Map:   0%|          | 0/99 [00:00<?, ? examples/s]
Map: 100%|██████████| 99/99 [00:00<00:00, 920.78 examples/s]
Map: 100%|██████████| 99/99 [00:00<00:00, 902.26 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 88.96ba/s]
  so101_20261201_210014: 99 steps

Map:   0%|          | 0/99 [00:00<?, ? examples/s]
Map:  99%|█████████▉| 98/99 [00:00<00:00, 966.42 examples/s]
Map: 100%|██████████| 99/99 [00:00<00:00, 872.50 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 80.29ba/s]
  so101_20261201_210144: 99 steps

Map:   0%|          | 0/106 [00:00<?, ? examples/s]
Map:  93%|█████████▎| 99/106 [00:00<00:00, 980.55 examples/s]
Map: 100%|██████████| 106/106 [00:00<00:00, 889.42 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 160.03ba/s]
  so101_20261201_210255: 106 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 844.89 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 114.85ba/s]
  so101_20261201_210345: 82 steps

Map:   0%|          | 0/112 [00:00<?, ? examples/s]
Map:  89%|████████▉ | 100/112 [00:00<00:00, 990.17 examples/s]
Map: 100%|██████████| 112/112 [00:00<00:00, 856.67 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 177.84ba/s]
  so101_20261201_210435: 112 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 853.82 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 97.79ba/s]
  so101_20261201_210649: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 867.68 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 122.17ba/s]
  so101_20261201_210732: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 925.58 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 157.45ba/s]
  so101_20261201_210818: 82 steps

Map:   0%|          | 0/107 [00:00<?, ? examples/s]
Map:  86%|████████▌ | 92/107 [00:00<00:00, 903.59 examples/s]
Map: 100%|██████████| 107/107 [00:00<00:00, 826.78 examples/s]

Creating parquet from Arrow format:   0%|          | 0/2 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 2/2 [00:00<00:00, 152.68ba/s]
  so101_20261201_210856: 107 steps

Map:   0%|          | 0/94 [00:00<?, ? examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 915.41 examples/s]
Map: 100%|██████████| 94/94 [00:00<00:00, 895.62 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 98.54ba/s]
  so101_20261201_210935: 94 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 839.29 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 120.64ba/s]
  so101_20261202_085509: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 868.23 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 111.59ba/s]
  so101_20261202_091135: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 815.21 examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 793.00 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 123.65ba/s]
  so101_20261202_091250: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 839.29 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 99.47ba/s]
  so101_20261202_091353: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 818.54 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 122.18ba/s]
  so101_20261202_091448: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 815.95 examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 797.62 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 110.49ba/s]

Map:   0%|          | 0/82 [00:00<?, ? examples/s]  so101_20261202_091546: 82 steps

Map: 100%|██████████| 82/82 [00:00<00:00, 816.67 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 134.39ba/s]

Map:   0%|          | 0/82 [00:00<?, ? examples/s]  so101_20261202_091639: 82 steps

Map: 100%|██████████| 82/82 [00:00<00:00, 907.70 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 135.72ba/s]
  so101_20261202_091733: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 860.73 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 110.54ba/s]
  so101_20261202_091838: 82 steps

Map:   0%|          | 0/82 [00:00<?, ? examples/s]
Map: 100%|██████████| 82/82 [00:00<00:00, 871.47 examples/s]

Creating parquet from Arrow format:   0%|          | 0/1 [00:00<?, ?ba/s]
Creating parquet from Arrow format: 100%|██████████| 1/1 [00:00<00:00, 127.04ba/s]
  so101_20261202_091929: 82 steps
done: 120 episodes / 10462 frames → /root/.cache/huggingface/lerobot/local/so101_redblock_box_code_rule401_flip_grasp_v1
CONVERTED episodes=120 frames=10462
   変換した本数・コマ数は raw_episodes と同じ (120 本・10462 コマ)
== 3b. 先の 30 コマが足りないコマを openpi (LeRobot) がどう埋めるか (check_pad_so101.py. 学習には何も足さない)

Downloading data:   0%|          | 0/120 [00:00<?, ?files/s]
Downloading data: 100%|██████████| 120/120 [00:00<00:00, 171956.43files/s]

Generating train split: 0 examples [00:00, ? examples/s]
Generating train split: 574 examples [00:00, 4512.50 examples/s]
Generating train split: 1066 examples [00:00, 4570.67 examples/s]
Generating train split: 1640 examples [00:00, 4842.39 examples/s]
Generating train split: 2296 examples [00:00, 5357.73 examples/s]
Generating train split: 2952 examples [00:00, 5697.39 examples/s]
Generating train split: 3608 examples [00:00, 5826.66 examples/s]
Generating train split: 4264 examples [00:00, 5816.94 examples/s]
Generating train split: 4867 examples [00:00, 5698.35 examples/s]
Generating train split: 5710 examples [00:01, 5071.84 examples/s]
Generating train split: 6282 examples [00:01, 4767.47 examples/s]
Generating train split: 6839 examples [00:01, 4720.23 examples/s]
Generating train split: 7455 examples [00:01, 4852.78 examples/s]
Generating train split: 8005 examples [00:01, 4892.00 examples/s]
Generating train split: 8593 examples [00:01, 5104.64 examples/s]
Generating train split: 9359 examples [00:01, 5507.39 examples/s]
Generating train split: 10052 examples [00:01, 5752.61 examples/s]
Generating train split: 10462 examples [00:01, 5309.74 examples/s]
   エピソード 0 (82 コマ) の最後のコマ: 足りない 29 / 30 コマ, 埋めた値はエピソードの最後の actions と同じ. 最後から 29 コマ目は足りない 1 コマ
   先の 30 コマが足りないコマ: 3480 / 10462 コマ (120 本 × 最後の 29 コマ)
   openpi の src で _is_pad を使うファイル: なし (損失から外さない)
PAD horizon=30 last_frame_pad=29 fill=last_action short_frames=3480/10462 openpi_uses_is_pad=no
== 4. 正規化の値をこの 120 本で測り直す (compute_norm_stats.py --config-name pi05_so101_code_rule401_flip_grasp_lora)

Computing stats:   0%|          | 0/326 [00:00<?, ?it/s]
Computing stats:   0%|          | 1/326 [00:14<1:16:31, 14.13s/it]
Computing stats:   1%|          | 3/326 [00:14<19:56,  3.71s/it]  
Computing stats:   2%|▏         | 5/326 [00:14<10:01,  1.88s/it]
Computing stats:   2%|▏         | 7/326 [00:15<06:22,  1.20s/it]
Computing stats:   3%|▎         | 9/326 [00:15<04:26,  1.19it/s]
Computing stats:   3%|▎         | 11/326 [00:16<03:20,  1.57it/s]
Computing stats:   4%|▍         | 13/326 [00:16<02:38,  1.97it/s]
Computing stats:   5%|▍         | 15/326 [00:17<02:13,  2.33it/s]
Computing stats:   5%|▌         | 17/326 [00:17<01:55,  2.68it/s]
Computing stats:   6%|▌         | 19/326 [00:18<01:43,  2.97it/s]
Computing stats:   6%|▋         | 21/326 [00:18<01:35,  3.20it/s]
Computing stats:   7%|▋         | 23/326 [00:19<01:29,  3.39it/s]
Computing stats:   8%|▊         | 25/326 [00:19<01:24,  3.56it/s]
Computing stats:   8%|▊         | 27/326 [00:20<01:22,  3.64it/s]
Computing stats:   9%|▉         | 29/326 [00:20<01:21,  3.67it/s]
Computing stats:  10%|▉         | 31/326 [00:21<01:18,  3.74it/s]
Computing stats:  10%|█         | 33/326 [00:21<01:18,  3.75it/s]
Computing stats:  11%|█         | 35/326 [00:22<01:16,  3.82it/s]
Computing stats:  11%|█▏        | 37/326 [00:22<01:16,  3.80it/s]
Computing stats:  12%|█▏        | 39/326 [00:23<01:15,  3.82it/s]
Computing stats:  13%|█▎        | 41/326 [00:23<01:12,  3.91it/s]
Computing stats:  13%|█▎        | 43/326 [00:24<01:12,  3.89it/s]
Computing stats:  14%|█▍        | 45/326 [00:24<01:09,  4.06it/s]
Computing stats:  14%|█▍        | 47/326 [00:25<01:06,  4.23it/s]
Computing stats:  15%|█▌        | 49/326 [00:25<01:06,  4.19it/s]
Computing stats:  15%|█▌        | 50/326 [00:25<01:00,  4.55it/s]
Computing stats:  16%|█▌        | 51/326 [00:26<01:08,  4.00it/s]
Computing stats:  16%|█▌        | 52/326 [00:26<01:02,  4.35it/s]
Computing stats:  16%|█▋        | 53/326 [00:26<01:10,  3.87it/s]
Computing stats:  17%|█▋        | 54/326 [00:26<01:05,  4.16it/s]
Computing stats:  17%|█▋        | 55/326 [00:27<01:11,  3.82it/s]
Computing stats:  17%|█▋        | 56/326 [00:27<01:04,  4.16it/s]
Computing stats:  17%|█▋        | 57/326 [00:27<01:10,  3.79it/s]
Computing stats:  18%|█▊        | 59/326 [00:28<01:11,  3.73it/s]
Computing stats:  19%|█▊        | 61/326 [00:28<01:09,  3.82it/s]
Computing stats:  19%|█▉        | 63/326 [00:29<01:07,  3.87it/s]
Computing stats:  20%|█▉        | 65/326 [00:29<01:07,  3.87it/s]
Computing stats:  21%|██        | 67/326 [00:30<01:10,  3.67it/s]
Computing stats:  21%|██        | 69/326 [00:30<01:08,  3.75it/s]
Computing stats:  22%|██▏       | 71/326 [00:31<01:08,  3.75it/s]
Computing stats:  22%|██▏       | 73/326 [00:31<01:06,  3.79it/s]
Computing stats:  23%|██▎       | 75/326 [00:32<01:06,  3.76it/s]
Computing stats:  24%|██▎       | 77/326 [00:33<01:06,  3.73it/s]
Computing stats:  24%|██▍       | 79/326 [00:33<01:05,  3.75it/s]
Computing stats:  25%|██▍       | 81/326 [00:34<01:05,  3.76it/s]
Computing stats:  25%|██▌       | 83/326 [00:34<01:03,  3.81it/s]
Computing stats:  26%|██▌       | 85/326 [00:35<01:05,  3.71it/s]
Computing stats:  27%|██▋       | 87/326 [00:35<01:04,  3.73it/s]
Computing stats:  27%|██▋       | 89/326 [00:36<01:01,  3.83it/s]
Computing stats:  28%|██▊       | 91/326 [00:36<01:01,  3.79it/s]
Computing stats:  29%|██▊       | 93/326 [00:37<01:00,  3.87it/s]
Computing stats:  29%|██▉       | 95/326 [00:37<01:00,  3.84it/s]
Computing stats:  30%|██▉       | 97/326 [00:38<00:58,  3.94it/s]
Computing stats:  30%|███       | 99/326 [00:38<00:55,  4.10it/s]
Computing stats:  31%|███       | 101/326 [00:39<00:58,  3.86it/s]
Computing stats:  32%|███▏      | 103/326 [00:39<00:56,  3.96it/s]
Computing stats:  32%|███▏      | 105/326 [00:40<00:58,  3.81it/s]
Computing stats:  33%|███▎      | 107/326 [00:40<00:56,  3.87it/s]
Computing stats:  33%|███▎      | 109/326 [00:41<00:54,  3.99it/s]
Computing stats:  34%|███▍      | 111/326 [00:41<00:53,  3.99it/s]
Computing stats:  35%|███▍      | 113/326 [00:42<00:55,  3.86it/s]
Computing stats:  35%|███▌      | 115/326 [00:42<00:54,  3.90it/s]
Computing stats:  36%|███▌      | 117/326 [00:43<00:53,  3.91it/s]
Computing stats:  37%|███▋      | 119/326 [00:43<00:52,  3.93it/s]
Computing stats:  37%|███▋      | 121/326 [00:44<00:52,  3.90it/s]
Computing stats:  38%|███▊      | 123/326 [00:44<00:53,  3.82it/s]
Computing stats:  38%|███▊      | 125/326 [00:45<00:51,  3.87it/s]
Computing stats:  39%|███▉      | 127/326 [00:45<00:50,  3.92it/s]
Computing stats:  40%|███▉      | 129/326 [00:46<00:50,  3.88it/s]
Computing stats:  40%|████      | 131/326 [00:46<00:49,  3.92it/s]
Computing stats:  41%|████      | 133/326 [00:47<00:49,  3.92it/s]
Computing stats:  41%|████▏     | 135/326 [00:47<00:49,  3.86it/s]
Computing stats:  42%|████▏     | 137/326 [00:48<00:48,  3.88it/s]
Computing stats:  43%|████▎     | 139/326 [00:48<00:47,  3.93it/s]
Computing stats:  43%|████▎     | 141/326 [00:49<00:50,  3.69it/s]
Computing stats:  44%|████▍     | 143/326 [00:50<00:46,  3.98it/s]
Computing stats:  44%|████▍     | 145/326 [00:50<00:44,  4.03it/s]
Computing stats:  45%|████▌     | 147/326 [00:51<00:45,  3.93it/s]
Computing stats:  46%|████▌     | 149/326 [00:51<00:46,  3.83it/s]
Computing stats:  46%|████▋     | 151/326 [00:51<00:42,  4.08it/s]
Computing stats:  47%|████▋     | 153/326 [00:52<00:43,  3.98it/s]
Computing stats:  48%|████▊     | 155/326 [00:53<00:44,  3.85it/s]
Computing stats:  48%|████▊     | 157/326 [00:53<00:43,  3.91it/s]
Computing stats:  49%|████▉     | 159/326 [00:54<00:42,  3.91it/s]
Computing stats:  49%|████▉     | 161/326 [00:54<00:44,  3.73it/s]
Computing stats:  50%|█████     | 163/326 [00:55<00:41,  3.90it/s]
Computing stats:  51%|█████     | 165/326 [00:55<00:42,  3.83it/s]
Computing stats:  51%|█████     | 167/326 [00:56<00:42,  3.78it/s]
Computing stats:  52%|█████▏    | 169/326 [00:56<00:41,  3.81it/s]
Computing stats:  52%|█████▏    | 171/326 [00:57<00:40,  3.79it/s]
Computing stats:  53%|█████▎    | 173/326 [00:57<00:40,  3.73it/s]
Computing stats:  54%|█████▎    | 175/326 [00:58<00:38,  3.93it/s]
Computing stats:  54%|█████▍    | 177/326 [00:58<00:38,  3.87it/s]
Computing stats:  55%|█████▍    | 179/326 [00:59<00:38,  3.78it/s]
Computing stats:  56%|█████▌    | 181/326 [00:59<00:37,  3.85it/s]
Computing stats:  56%|█████▌    | 183/326 [01:00<00:36,  3.90it/s]
Computing stats:  57%|█████▋    | 185/326 [01:00<00:36,  3.89it/s]
Computing stats:  57%|█████▋    | 187/326 [01:01<00:36,  3.85it/s]
Computing stats:  58%|█████▊    | 189/326 [01:01<00:36,  3.73it/s]
Computing stats:  59%|█████▊    | 191/326 [01:02<00:34,  3.96it/s]
Computing stats:  59%|█████▉    | 193/326 [01:02<00:33,  3.92it/s]
Computing stats:  60%|█████▉    | 195/326 [01:03<00:34,  3.80it/s]
Computing stats:  60%|██████    | 197/326 [01:04<00:33,  3.81it/s]
Computing stats:  61%|██████    | 199/326 [01:04<00:33,  3.74it/s]
Computing stats:  62%|██████▏   | 201/326 [01:05<00:31,  3.92it/s]
Computing stats:  62%|██████▏   | 203/326 [01:05<00:31,  3.92it/s]
Computing stats:  63%|██████▎   | 205/326 [01:06<00:32,  3.70it/s]
Computing stats:  63%|██████▎   | 207/326 [01:06<00:29,  4.03it/s]
Computing stats:  64%|██████▍   | 209/326 [01:07<00:29,  3.95it/s]
Computing stats:  65%|██████▍   | 211/326 [01:07<00:29,  3.97it/s]
Computing stats:  65%|██████▌   | 213/326 [01:08<00:28,  4.01it/s]
Computing stats:  66%|██████▌   | 215/326 [01:08<00:27,  3.98it/s]
Computing stats:  67%|██████▋   | 217/326 [01:09<00:28,  3.83it/s]
Computing stats:  67%|██████▋   | 219/326 [01:09<00:26,  4.01it/s]
Computing stats:  68%|██████▊   | 221/326 [01:10<00:26,  3.97it/s]
Computing stats:  68%|██████▊   | 223/326 [01:10<00:26,  3.93it/s]
Computing stats:  69%|██████▉   | 225/326 [01:11<00:26,  3.79it/s]
Computing stats:  70%|██████▉   | 227/326 [01:11<00:25,  3.92it/s]
Computing stats:  70%|███████   | 229/326 [01:12<00:24,  3.90it/s]
Computing stats:  71%|███████   | 231/326 [01:12<00:24,  3.84it/s]
Computing stats:  71%|███████▏  | 233/326 [01:13<00:24,  3.81it/s]
Computing stats:  72%|███████▏  | 235/326 [01:13<00:23,  3.82it/s]
Computing stats:  73%|███████▎  | 237/326 [01:14<00:24,  3.68it/s]
Computing stats:  73%|███████▎  | 239/326 [01:14<00:23,  3.75it/s]
Computing stats:  74%|███████▍  | 241/326 [01:15<00:22,  3.85it/s]
Computing stats:  75%|███████▍  | 243/326 [01:15<00:20,  4.08it/s]
Computing stats:  75%|███████▌  | 245/326 [01:16<00:20,  4.01it/s]
Computing stats:  76%|███████▌  | 247/326 [01:16<00:20,  3.90it/s]
Computing stats:  76%|███████▋  | 249/326 [01:17<00:19,  4.00it/s]
Computing stats:  77%|███████▋  | 251/326 [01:17<00:18,  3.98it/s]
Computing stats:  78%|███████▊  | 253/326 [01:18<00:19,  3.78it/s]
Computing stats:  78%|███████▊  | 255/326 [01:18<00:17,  4.06it/s]
Computing stats:  79%|███████▉  | 257/326 [01:19<00:17,  4.03it/s]
Computing stats:  79%|███████▉  | 259/326 [01:19<00:16,  3.96it/s]
Computing stats:  80%|████████  | 261/326 [01:20<00:16,  4.05it/s]
Computing stats:  81%|████████  | 263/326 [01:20<00:15,  4.09it/s]
Computing stats:  81%|████████▏ | 265/326 [01:21<00:14,  4.10it/s]
Computing stats:  82%|████████▏ | 267/326 [01:21<00:14,  4.13it/s]
Computing stats:  83%|████████▎ | 269/326 [01:22<00:14,  4.03it/s]
Computing stats:  83%|████████▎ | 271/326 [01:22<00:13,  3.99it/s]
Computing stats:  84%|████████▎ | 273/326 [01:23<00:13,  4.04it/s]
Computing stats:  84%|████████▍ | 275/326 [01:23<00:12,  3.95it/s]
Computing stats:  85%|████████▍ | 277/326 [01:24<00:12,  4.05it/s]
Computing stats:  86%|████████▌ | 279/326 [01:24<00:11,  4.13it/s]
Computing stats:  86%|████████▌ | 281/326 [01:25<00:10,  4.15it/s]
Computing stats:  87%|████████▋ | 283/326 [01:25<00:10,  4.22it/s]
Computing stats:  87%|████████▋ | 285/326 [01:26<00:09,  4.35it/s]
Computing stats:  88%|████████▊ | 287/326 [01:26<00:09,  4.29it/s]
Computing stats:  89%|████████▊ | 289/326 [01:27<00:08,  4.24it/s]
Computing stats:  89%|████████▉ | 291/326 [01:27<00:08,  4.07it/s]
Computing stats:  90%|████████▉ | 293/326 [01:28<00:08,  3.99it/s]
Computing stats:  90%|█████████ | 295/326 [01:28<00:07,  4.13it/s]
Computing stats:  91%|█████████ | 297/326 [01:29<00:07,  4.11it/s]
Computing stats:  92%|█████████▏| 299/326 [01:29<00:06,  4.05it/s]
Computing stats:  92%|█████████▏| 301/326 [01:30<00:06,  4.02it/s]
Computing stats:  93%|█████████▎| 303/326 [01:30<00:05,  4.10it/s]
Computing stats:  93%|█████████▎| 304/326 [01:30<00:05,  4.35it/s]
Computing stats:  94%|█████████▎| 305/326 [01:31<00:05,  4.02it/s]
Computing stats:  94%|█████████▍| 306/326 [01:31<00:04,  4.33it/s]
Computing stats:  94%|█████████▍| 307/326 [01:31<00:05,  3.77it/s]
Computing stats:  94%|█████████▍| 308/326 [01:31<00:04,  4.29it/s]
Computing stats:  95%|█████████▍| 309/326 [01:32<00:04,  3.65it/s]
Computing stats:  95%|█████████▌| 310/326 [01:32<00:03,  4.33it/s]
Computing stats:  95%|█████████▌| 311/326 [01:32<00:04,  3.68it/s]
Computing stats:  96%|█████████▌| 312/326 [01:32<00:03,  3.88it/s]
Computing stats:  96%|█████████▌| 313/326 [01:33<00:03,  3.98it/s]
Computing stats:  96%|█████████▋| 314/326 [01:33<00:03,  3.58it/s]
Computing stats:  97%|█████████▋| 315/326 [01:33<00:02,  4.05it/s]
Computing stats:  97%|█████████▋| 316/326 [01:33<00:02,  3.75it/s]
Computing stats:  97%|█████████▋| 317/326 [01:34<00:02,  4.45it/s]
Computing stats:  98%|█████████▊| 318/326 [01:34<00:02,  3.60it/s]
Computing stats:  98%|█████████▊| 319/326 [01:34<00:01,  4.23it/s]
Computing stats:  98%|█████████▊| 320/326 [01:34<00:01,  3.53it/s]
Computing stats:  98%|█████████▊| 321/326 [01:35<00:01,  4.14it/s]
Computing stats:  99%|█████████▉| 322/326 [01:35<00:01,  3.47it/s]
Computing stats:  99%|█████████▉| 324/326 [01:35<00:00,  3.72it/s]
Computing stats: 100%|██████████| 326/326 [01:36<00:00,  3.90it/s]
Computing stats: 100%|██████████| 326/326 [01:36<00:00,  3.38it/s]
Writing stats to: /workspace/openpi/assets/pi05_so101_code_rule401_flip_grasp_lora/local/so101_redblock_box_code_rule401_flip_grasp_v1
   /workspace/openpi/assets/pi05_so101_code_rule401_flip_grasp_lora/local/so101_redblock_box_code_rule401_flip_grasp_v1/norm_stats.json (sha256 f8497d172ab7…)
NORM sha256=f8497d172ab7c1455e96299477eb313f5ddee9401f114c003577dc87c7871914 path=assets/pi05_so101_code_rule401_flip_grasp_lora/local/so101_redblock_box_code_rule401_flip_grasp_v1/norm_stats.json
== 5. 準備できました. 学習はこのコマンドで始める (このスクリプトでは流さない):
   cd /workspace/openpi && XLA_PYTHON_CLIENT_MEM_FRACTION=0.9 uv run scripts/train.py pi05_so101_code_rule401_flip_grasp_lora --exp-name=so101_code_rule401_flip_grasp_v1 --overwrite 2>&1 | tee /workspace/logs/train_so101_code_rule401_flip_grasp_v1.log
[NORM  ] 正規化の値 (sha256 f8497d172ab7…) を持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/norm_stats.json
    (268 秒)

=== 5. 学習を始める  (10:03:37)
[TRAIN ] 学習を始めました (Pod の中で setsid nohup. Mac とのつながりが切れても続く)
         ログ /workspace/logs/train_so101_code_rule401_flip_grasp_v1.log  GPU /workspace/logs/gpu_train.csv (30 秒おき)
    (5 秒)

=== 6. 学習を見守る (5 分おき)  (10:03:42)
[TRAIN ] 10:03  step -/3000  loss -  経過 0:00  上限まで 6:33

========================================================================
 学習は Pod の中で回っています. ここまで来れば寝てかまいません.
 このターミナルは閉じない・Mac のふたは閉じない (電源につないだまま).
 終わると通知が出ます. まとめは /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/result_*.txt
========================================================================

[TRAIN ] 10:08  step -/3000  loss -  経過 0:05  上限まで 6:28
[TRAIN ] 10:13  step 34/3000  loss 0.0683 (Step 0 の行)  経過 0:10  上限まで 6:23
[TRAIN ] 10:18  step 76/3000  loss 0.0493 (Step 50 の行)  経過 0:15  上限まで 6:18
[TRAIN ] 10:23  step 118/3000  loss 0.0284 (Step 100 の行)  経過 0:20  上限まで 6:13
[TRAIN ] 10:28  step 160/3000  loss 0.0204 (Step 150 の行)  経過 0:25  上限まで 6:08
[TRAIN ] 10:34  step 200/3000  loss 0.0180 (Step 200 の行)  経過 0:30  上限まで 6:03
[TRAIN ] 10:39  step 244/3000  loss 0.0180 (Step 200 の行)  経過 0:35  上限まで 5:57
[TRAIN ] 10:44  step 286/3000  loss 0.0158 (Step 250 の行)  経過 0:40  上限まで 5:52
[TRAIN ] 10:49  step 328/3000  loss 0.0148 (Step 300 の行)  経過 0:45  上限まで 5:47
[TRAIN ] 10:54  step 370/3000  loss 0.0124 (Step 350 の行)  経過 0:50  上限まで 5:42
[TRAIN ] 10:59  step 412/3000  loss 0.0120 (Step 400 の行)  経過 0:55  上限まで 5:37
[TRAIN ] 11:04  step 454/3000  loss 0.0105 (Step 450 の行)  経過 1:00  上限まで 5:32
[TRAIN ] 11:09  step 496/3000  loss 0.0105 (Step 450 の行)  経過 1:05  上限まで 5:27
[TRAIN ] 11:14  step 538/3000  loss 0.0103 (Step 500 の行)  経過 1:10  上限まで 5:22
[TRAIN ] 11:19  step 580/3000  loss 0.0094 (Step 550 の行)  経過 1:15  上限まで 5:17
[TRAIN ] 11:24  step 622/3000  loss 0.0087 (Step 600 の行)  経過 1:20  上限まで 5:12
[TRAIN ] 11:29  step 664/3000  loss 0.0080 (Step 650 の行)  経過 1:25  上限まで 5:07
[TRAIN ] 11:34  step 706/3000  loss 0.0077 (Step 700 の行)  経過 1:30  上限まで 5:02
[TRAIN ] 11:39  step 748/3000  loss 0.0077 (Step 700 の行)  経過 1:35  上限まで 4:57
[TRAIN ] 11:44  step 790/3000  loss 0.0072 (Step 750 の行)  経過 1:40  上限まで 4:52
[TRAIN ] 11:49  step 832/3000  loss 0.0069 (Step 800 の行)  経過 1:46  上限まで 4:47
[TRAIN ] 11:54  step 874/3000  loss 0.0062 (Step 850 の行)  経過 1:51  上限まで 4:42
[TRAIN ] 11:59  step 916/3000  loss 0.0063 (Step 900 の行)  経過 1:56  上限まで 4:37
[TRAIN ] 12:04  step 958/3000  loss 0.0063 (Step 950 の行)  経過 2:01  上限まで 4:32
[TRAIN ] 12:09  step 1000/3000  loss 0.0063 (Step 950 の行)  経過 2:06  上限まで 4:27
[TRAIN ] 12:14  step 1040/3000  loss 0.0059 (Step 1000 の行)  経過 2:11  上限まで 4:22
[TRAIN ] 12:19  step 1080/3000  loss 0.0057 (Step 1050 の行)  経過 2:16  上限まで 4:17
[TRAIN ] 12:25  step 1120/3000  loss 0.0055 (Step 1100 の行)  経過 2:21  上限まで 4:12
[TRAIN ] 12:30  step 1160/3000  loss 0.0053 (Step 1150 の行)  経過 2:26  上限まで 4:06
[TRAIN ] 12:35  step 1200/3000  loss 0.0053 (Step 1200 の行)  経過 2:31  上限まで 4:01
[TRAIN ] 12:40  step 1250/3000  loss 0.0053 (Step 1200 の行)  経過 2:36  上限まで 3:56
[TRAIN ] 12:45  step 1290/3000  loss 0.0044 (Step 1250 の行)  経過 2:41  上限まで 3:51
[TRAIN ] 12:50  step 1330/3000  loss 0.0049 (Step 1300 の行)  経過 2:46  上限まで 3:46
[TRAIN ] 12:55  step 1370/3000  loss 0.0050 (Step 1350 の行)  経過 2:51  上限まで 3:41
[TRAIN ] 13:00  step 1410/3000  loss 0.0044 (Step 1400 の行)  経過 2:56  上限まで 3:36
[TRAIN ] 13:05  step 1460/3000  loss 0.0042 (Step 1450 の行)  経過 3:01  上限まで 3:31
[TRAIN ] 13:10  step 1500/3000  loss 0.0042 (Step 1450 の行)  経過 3:06  上限まで 3:26
[TRAIN ] 13:15  step 1540/3000  loss 0.0045 (Step 1500 の行)  経過 3:11  上限まで 3:21
[TRAIN ] 13:20  step 1580/3000  loss 0.0040 (Step 1550 の行)  経過 3:16  上限まで 3:16
[TRAIN ] 13:25  step 1620/3000  loss 0.0038 (Step 1600 の行)  経過 3:21  上限まで 3:11
[TRAIN ] 13:30  step 1670/3000  loss 0.0039 (Step 1650 の行)  経過 3:26  上限まで 3:06
[TRAIN ] 13:35  step 1710/3000  loss 0.0034 (Step 1700 の行)  経過 3:31  上限まで 3:01
[TRAIN ] 13:40  step 1750/3000  loss 0.0034 (Step 1700 の行)  経過 3:36  上限まで 2:56
[TRAIN ] 13:45  step 1790/3000  loss 0.0033 (Step 1750 の行)  経過 3:42  上限まで 2:51
[TRAIN ] 13:50  step 1840/3000  loss 0.0034 (Step 1800 の行)  経過 3:47  上限まで 2:46
[TRAIN ] 13:55  step 1880/3000  loss 0.0036 (Step 1850 の行)  経過 3:52  上限まで 2:41
[TRAIN ] 14:00  step 1920/3000  loss 0.0034 (Step 1900 の行)  経過 3:57  上限まで 2:36
[TRAIN ] 14:05  step 1960/3000  loss 0.0030 (Step 1950 の行)  経過 4:02  上限まで 2:31
[TRAIN ] 14:10  step 2000/3000  loss 0.0029 (Step 2000 の行)  経過 4:07  上限まで 2:26
[TRAIN ] 14:16  step 2040/3000  loss 0.0029 (Step 2000 の行)  経過 4:12  上限まで 2:21
[TRAIN ] 14:21  step 2090/3000  loss 0.0029 (Step 2050 の行)  経過 4:17  上限まで 2:16
[TRAIN ] 14:26  step 2130/3000  loss 0.0030 (Step 2100 の行)  経過 4:22  上限まで 2:10
[TRAIN ] 14:31  step 2170/3000  loss 0.0027 (Step 2150 の行)  経過 4:27  上限まで 2:05
[TRAIN ] 14:36  step 2210/3000  loss 0.0029 (Step 2200 の行)  経過 4:32  上限まで 2:00
[TRAIN ] 14:41  step 2250/3000  loss 0.0025 (Step 2250 の行)  経過 4:37  上限まで 1:55
[TRAIN ] 14:46  step 2300/3000  loss 0.0025 (Step 2250 の行)  経過 4:42  上限まで 1:50
[TRAIN ] 14:51  step 2340/3000  loss 0.0024 (Step 2300 の行)  経過 4:47  上限まで 1:45
[TRAIN ] 14:56  step 2380/3000  loss 0.0025 (Step 2350 の行)  経過 4:52  上限まで 1:40
[TRAIN ] 15:01  step 2420/3000  loss 0.0024 (Step 2400 の行)  経過 4:57  上限まで 1:35
[TRAIN ] 15:06  step 2470/3000  loss 0.0021 (Step 2450 の行)  経過 5:02  上限まで 1:30
[TRAIN ] 15:11  step 2510/3000  loss 0.0023 (Step 2500 の行)  経過 5:07  上限まで 1:25
[TRAIN ] 15:16  step 2550/3000  loss 0.0023 (Step 2500 の行)  経過 5:12  上限まで 1:20
[TRAIN ] 15:21  step 2590/3000  loss 0.0023 (Step 2550 の行)  経過 5:17  上限まで 1:15
[TRAIN ] 15:26  step 2630/3000  loss 0.0024 (Step 2600 の行)  経過 5:22  上限まで 1:10
[TRAIN ] 15:31  step 2680/3000  loss 0.0022 (Step 2650 の行)  経過 5:28  上限まで 1:05
[TRAIN ] 15:36  step 2720/3000  loss 0.0022 (Step 2700 の行)  経過 5:33  上限まで 1:00
[TRAIN ] 15:41  step 2760/3000  loss 0.0020 (Step 2750 の行)  経過 5:38  上限まで 0:55
[TRAIN ] 15:46  step 2800/3000  loss 0.0020 (Step 2800 の行)  経過 5:43  上限まで 0:50
[TRAIN ] 15:51  step 2840/3000  loss 0.0020 (Step 2800 の行)  経過 5:48  上限まで 0:45
[TRAIN ] 15:56  step 2890/3000  loss 0.0021 (Step 2850 の行)  経過 5:53  上限まで 0:40
[TRAIN ] 16:01  step 2930/3000  loss 0.0019 (Step 2900 の行)  経過 5:58  上限まで 0:35
[TRAIN ] 16:07  step 2970/3000  loss 0.0017 (Step 2950 の行)  経過 6:03  上限まで 0:30
[TRAIN ] 16:12  step 3000/3000  loss 0.0017 (Step 2950 の行)  経過 6:08  上限まで 0:24
    (22102 秒)

[TRAIN ] 学習が終わりました (最後のチェックポイント 2999, loss 0.0017)
[WATCH ] Pod 側の見張りを 19:12 まで延ばした (上げる・持ち帰る間に消えないように)

=== 7a. Pod 側の一覧 (2999)  (16:12:07)
[LIST  ] 33 ファイル 6335872914 バイト (train_state なし) → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/pod_files_2999.tsv
    (2 秒)

=== 7b. Hugging Face へ上げる (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1・非公開)  (16:12:09)
[HF    ] 上げるもの: 33 ファイル 6,335,872,914 バイト (train_state/ は上げない)
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d5-280066565a6dda7d353bcdc3;f9fc6c1f-29a8-4760-a4ac-bdfd9d3ee784)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d6-788a0e5a76f92f161effc7d3;8e755949-2c1f-4218-aa5e-e510aad72f31)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d6-403062252b69d15b5eb3f2da;3a3a77c0-434f-4f5f-b462-212772170599)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d6-34c0311b0a8b2bec02e63475;4e1fa54a-cd3d-493b-8150-3b12e976967b)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d6-10d2f7953c6d61c3443c173f;c5261aea-ef54-44df-aa16-ef0277518e5c)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
Commit of 33 files failed (BadRequestError('(Request ID: Root=1-6b0fc4d7-1de89fd41029d0845b1eb7cd;3c8736a9-e703-4bc5-ae2a-934562333f93)\n\nBad request for commit endpoint:\nPrivate storage limit reached for user PixelstoMotors, please upgrade your plan to increase your private storage limit')). Retrying in smaller chunks.
HFUP error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)
    (15 秒)

=== 7c. KIOXIA へ Pod から取る (Hugging Face に上げられなかったため)  (16:12:24)
[WATCH ] Pod 側の見張りを 19:12 まで延ばした (上げる・持ち帰る間に消えないように)
[KIOXIA] Pod から scp で取ります → /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/.incoming_2999_20261202_161226_93848
[KIOXIA] /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999 に置いた (33 ファイル 6335872914 バイト. Pod 側と名前・バイト数が全部合った). assets の正規化の値は測り直したものと sha256 が同じ
    (1306 秒)

=== 7d. ログを持ち帰る  (16:34:10)
[LOG   ] train_so101_code_rule401_flip_grasp_v1.log を持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_so101_code_rule401_flip_grasp_v1.log (1800 行)
[LOG   ] gpu_train.csv を持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/gpu_train.csv (783 行)
[LOG   ] train_run.log を持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_run.log (2 行)
[LOG   ] prep_so101.log を持ち帰った → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/prep_so101.log (21907 行)
[LOG   ] watchdog.log は Pod にない (持ち帰れなかった)
[LOG   ] Pod 側のチェックポイントの一覧 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/pod_checkpoints.tsv (228 ファイル)
    (38 秒)

=== Pod を消す (id 7du9imr2qtp7h9)  (16:34:48)
[STOP  ] 削除 (Terminate) を送った (16:34:50)
[STOP  ] Pod (id 7du9imr2qtp7h9) が消えたことを API で確かめた
[COST  ] 借りていた時間 417 分 47 秒 (6.96 時間) × 1時間 0.59 ドル = 約 4.11 ドル (約 649 円. 1ドル=158円)  GPU=NVIDIA A40

=== 由来 (train_provenance.json) を書く
[PROV  ] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_provenance.json
[PROV  ] /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/train_provenance.json
[PROV  ] 由来: /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/train_provenance.json ・ /Volumes/KIOXIA/r2r2r-data/checkpoints/pi05_so101_code_rule401_flip_grasp_lora_v1/2999/train_provenance.json

=== かかった時間
  0. 送るものと Mac の道具を確かめる      2 秒
  1. Pod を作る                          3 秒
  2. Pod が立ち上がるまで待つ     47 秒
  3a. スクリプトを送る            140 秒
  3b. huggingface_hub を入れ, 鍵を渡す     11 秒
  3c. 続きの元は取らない (π0.5 base から. 重みは学習の最初に openpi が取る)      0 秒
  3d. openpi を取る (215abfb)          842 秒
  3e. uv sync                              24 秒
  3f. addon・設定・assets               6 秒
  4a. tar を送る                       256 秒
  4b. pod_prep_so101.sh 3000 j (変換・正規化の値を測り直す)    268 秒
  5. 学習を始める                     5 秒
  6. 学習を見守る (5 分おき)   22102 秒
  7a. Pod 側の一覧 (2999)               2 秒
  7b. Hugging Face へ上げる (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1・非公開)     15 秒
  7c. KIOXIA へ Pod から取る (Hugging Face に上げられなかったため)   1306 秒
  7d. ログを持ち帰る                38 秒

[RESULT] 学習は終わりました (step 2999) が, Hugging Face に上げられなかった (error BadRequestError: (Request ID: Root=1-6b0fc4d7-1072f1611a78240e3d48ab88;b447ad55-7a3e-4c5f-aad4-6db009868d7c)). KIOXIA には置いた (scp). Pod は消しました.
[RESULT] まとめ → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/train_so101j/result_20261202_093658.txt
```


## 依頼431：持ち上げの姿勢の許しを環境変数で変えられるようにした

### 依頼431 の依頼文

```markdown
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 30
---
# 依頼431：SO-101 の切り替え方式（check_405/switch_405.py）の「持ち上げの姿勢が解けない」の許しを、環境変数で変えられるようにする（この 1 点だけ・アームは動かさない）

## なぜ
2026-12-02 17:08 の so101j の実機の 1 回目（場所5・向き +38.9°。記録 `lab/so101_Log12/so101/so101_20261202_170825`）で、so101j がつかんで判定は held（爪の読み 9.7）だったのに、
`[SW405 ] 持ち上げの道が作れない: 持ち上げ. 持ち上げの姿勢が解けない (位置 1.1 mm・向き 0.0°)` で止まった。
`switch_405.py` の `after_held_path` の `if pe >= 1.0 or ae >= 2.0` が、位置 1.1mm で止めている。持ち上げの位置が 1.1mm ずれるだけで、つかめた回が止まるのは困る。

## やること（この 1 点だけ。ほかは触らない）
- `after_held_path` の位置の許し（今 1.0 mm）と向きの許し（今 2.0°）を、環境変数 `SW405_LIFT_POS_TOL_MM`・`SW405_LIFT_ANG_TOL_DEG` で変えられるようにする。付けなければ今と同じ（1.0・2.0）
- 外したあとのやり直しの道などで同じ `lift_pose` の許しを使っている所が switch_405.py の中にあれば、同じ環境変数を当てる（あれば報告に書く）
- 使った許しと、解けた位置・向きの差を、trial.json の switch405 に残す
- 上の記録の回（挟んだ姿勢）で、`SW405_LIFT_POS_TOL_MM=3` のときに持ち上げ以降の道が作れて、1 コマの変化・範囲の今のガードを通ることを、アームなしで確かめる。位置の差がいちばん大きいコマと値も書く
- 既存のテストが通ること。付けないときの道が変える前と同じこと
- codex・ほかの AI にレビューを頼まない。ガードの値を足さない。commit は自分のファイルだけを個別に add

## 報告（`so101/check_431/REPORT.md`）
変えた所の diff、確かめの結果、最後の 1 行に「判定：合格／止めた／失敗」
```


### 依頼431 の報告（REPORT.md）

````markdown
# 依頼 431：切り替え方式の「持ち上げの姿勢が解けない」の許しを環境変数で変えられるようにした（アームは動かしていない）

## やったこと
- `so101/check_405/switch_405.py` の `after_held_path` の許し（位置 1.0 mm・向き 2.0°）を、環境変数 `SW405_LIFT_POS_TOL_MM`・`SW405_LIFT_ANG_TOL_DEG` で変えられるようにした。付けなければ 1.0・2.0（今と同じ）。正の数でない値を付けたときは、読み込みの時（動かす前）に止まる。
- 同じ `V.lift_pose` の許しを使っている所が、もう 1 か所あった：**`rise_pose`（外したあとのやり直しで、真上へ戻る姿勢を Shifter で解けなかったときの予備）**。ここにも同じ環境変数を当てた。
- trial.json の `switch405` に残すもの：
  - `switch405.lift_tol`：使った許し（`pos_mm`・`ang_deg`）
  - 道が作れたとき：`attempts[].after_path` に `lift_pos_err_mm`・`lift_ang_err_deg`（解けた位置・向きの差）と `lift_pos_tol_mm`・`lift_ang_tol_deg`
  - 許しで止まったとき：同じ 4 つを `attempts[].after_path` に入れる（今までは何も残らなかった）。止めた理由の文にも許しを書く
- ガードの値は足していない・変えていない。`var_lib_314.lift_pose` そのもの（中で 1 mm・2° を使って探すのをやめる所）は触っていない。

## 確かめ（`so101/check_431/verify_431.py` → `verify_431.json`。計算だけ）
`SO101_VAR_ROLL_RANGE=-67,58 R401_PUSH_LIMIT_MM=-12 R401_PUSH_WINDOW_MM=-12 $P so101/check_431/verify_431.py <trial.json> <変える前の switch_405.py>`
（道の元 PLAN の sha256 が記録の回と同じことを確かめてから計算）

対象：`lab/so101_Log12/so101/so101_20261202_170825`（so101j・場所5・向き +38.9°）の挟んだ姿勢（judge.hold）
`[13.086, 58.157, -59.441, 69.189, -38.313]`

| | 許しを付けない（1.0 mm・2.0°） | `SW405_LIFT_POS_TOL_MM=3` |
|---|---|---|
| 持ち上げの姿勢 | 止まる「位置 1.1 mm・向き 0.0°」（記録と同じ） | 解けた。位置の差 1.112 mm・向きの差 0.000° |
| 持ち上げ以降の道 | — | 103 コマ（LIFT 24・CARRY_MID 54・ABOVE_BOX 64・RELEASED 72・HOME_END 102） |
| 1 コマの変化・範囲（check_steps_range） | — | 通った。関節の最大 6.219°（コマ 87。上限 10°）・爪の最大 8.095（上限 20） |
| 運ぶ間の手先の高さ | — | 最低 73.8 mm（CARRY_Z_MIN_MM 以上） |
| シムの距離（clear_after held） | — | 通った。爪と机 11.0・腕と根もと 193.4・持ったブロックと箱 30.7・腕と箱 33.1・腕と机 73.3・持ったブロックと机 63.9 mm |

位置の差：
- 持ち上げの姿勢（LIFT・コマ 24）のねらいとの差は **1.112 mm**（向き 0.0°）。これがいちばん大きい（解けた差はこのキーのコマだけで出る）
- このとき `lift_back_mm` = **30 mm**。真上には届かず（根もとへ引かない 0 mm のときの差は 51 mm）、`lift_pose` は根もとの向きへ 5 mm ずつ引いて、30 mm 引いた所でいちばん差が小さくなった（30 mm：1.11・35：1.30・…・60：2.23 mm。どれも 1 mm 未満にならない）。このため、持ち上げの区間の手先は、挟んだ所の真上の線から最大 **29.98 mm（コマ 24）** 根もとの側へずれる（高さは +80.0 mm 上がる）。手先の (x, y, z) は (361.2, −69.9, 10.6) → (332.0, −63.2, 90.6) mm。持ち上げの区間の手先が、始めと終わりを結ぶ直線から離れる最大は 3.71 mm（コマ 12）
- 持ち上げの姿勢の関節：`[13.086, 36.961, −56.818, 87.762, −38.313]`

付けないときの道が変える前と同じか（HEAD の switch_405.py と、場所2〜5 の GRASP_OPEN を挟んだ姿勢として比べた）：`after_held_path`・`rise_pose` とも、4 か所すべてで道のバイトが同じ。

既存のテスト：
- `so101/check_405/test_switch_405.py` 18 件 OK
- `so101/check_422/test_track_stop_422.py` 2 件 OK
- `so101/check_405/fake_run_405.py`（偽のアームで通し・許しを付けない）：結果の md は、試行名・時刻を除いて変える前と全く同じ。生成し直した fake_run_405.md・.json は元に戻した（commit していない）

## 決めてほしいこと
- 実機で `SW405_LIFT_POS_TOL_MM=3` を付けるかどうか。この回は 持ち上げの間に手先が根もとの側へ約 30 mm 動く（真上に届かない所で、`lift_pose` の決まりどおり引いた結果。シムのガードは通った）。持ったブロックを机から上げながら 30 mm 引くことになる
- 3 mm にした場合、`rise_pose`（外したあとに真上へ戻る予備）の許しも同じく 3 mm になる。分けたいかどうか

## 変えた所の diff
```diff
diff --git a/so101/check_405/switch_405.py b/so101/check_405/switch_405.py
index edd87f6..2a35c93 100644
--- a/so101/check_405/switch_405.py
+++ b/so101/check_405/switch_405.py
@@ -79,6 +79,21 @@ BLOCK_START_OVERLAP_MM = 3.0            # 空のあとの道: 閉じた所で 
 INFER_TIMEOUT_S = 10.0                  # 推論の答えが この秒で返らなければ 止める (codex 405 R1 必須 3)
 CODE_MAX_STEP = R.MAX_STEP_DEG          # コードの区間の 1 コマの上限 (run_rule401 と同じ既定 10° = 入口の B)
 PLAN_FILE = "switch405_plan.json"
+
+
+def _env_tol(name, default):
+    """持ち上げの姿勢の許し (依頼 431). 付けなければ default. 正の数でなければ 始める前に止める"""
+    v = os.environ.get(name, "").strip()
+    if not v:
+        return default
+    x = float(v)
+    if not (np.isfinite(x) and x > 0):
+        raise ValueError(f"{name}={v} は正の数にしてください")
+    return x
+
+
+LIFT_POS_TOL_MM = _env_tol("SW405_LIFT_POS_TOL_MM", 1.0)    # V.lift_pose の解けた位置の差がこれ以上なら 解けないとする (依頼 431. 既定 1.0)
+LIFT_ANG_TOL_DEG = _env_tol("SW405_LIFT_ANG_TOL_DEG", 2.0)  # 同じく 向きの差 (既定 2.0°). 持ち上げ・真上へ戻る (rise_pose) の両方
 STATUS = {"refused": "動かさずに止めた", "stopped": "止めた (スペース・q・追従の差)", "policy_quit": "π0.5 の区間で q",
           "carried": "挟んで箱へ運んだ", "dropped": "持ち上げで落とした", "missed_max": "2 回外した", "not_closed": "閉じなかった (区間の上限)",
           "retry_refused": "やり直せない (読めない・道が作れない)", "lift_refused": "持ち上げの道が作れない", "not_started": "始める前に終わった"}
@@ -208,8 +223,12 @@ def after_held_path(chain, q5):
     """挟んだ姿勢 q5 (関節 5 つ) から rule_351 の LIFT 以降と同じ形の道 (コマ数・爪の値も同じ). → (道, キーのコマ, 情報)"""
     V = _V()
     lift5, pe, ae, back = V.lift_pose(chain, q5, V.LIFT_MM)
-    if pe >= 1.0 or ae >= 2.0:
-        raise Refused(f"持ち上げの姿勢が解けない (位置 {pe:.1f} mm・向き {ae:.1f}°)")
+    tol = {"lift_pos_err_mm": round(float(pe), 3), "lift_ang_err_deg": round(float(ae), 3),
+           "lift_pos_tol_mm": LIFT_POS_TOL_MM, "lift_ang_tol_deg": LIFT_ANG_TOL_DEG}
+    if pe >= LIFT_POS_TOL_MM or ae >= LIFT_ANG_TOL_DEG:
+        x = Refused(f"持ち上げの姿勢が解けない (位置 {pe:.1f} mm・向き {ae:.1f}°. 許し {LIFT_POS_TOL_MM:g} mm・{LIFT_ANG_TOL_DEG:g}°)")
+        x.lift_tol = tol
+        raise x
     mid5 = V.box_mid_pose(chain, V.CARRY_RAISE_MM)
     kp = [("GRASP_CLOSED", np.r_[q5, V.GRIP["GRASP_CLOSED"]]), ("LIFT", np.r_[lift5, V.GRIP["LIFT"]]),
           ("CARRY_MID", np.r_[mid5, V.GRIP["ABOVE_BOX"]]), ("ABOVE_BOX", np.r_[V.ABOVE_BOX, V.GRIP["ABOVE_BOX"]]),
@@ -217,7 +236,7 @@ def after_held_path(chain, q5):
     segs = [0, V.TEMPLATE["lift"], V.TEMPLATE["carry"], V.TEMPLATE_LOWER_BOX, V.TEMPLATE["release"], V.TEMPLATE["return"]]
     path, fr = V.assemble(kp, segs)
     zc = [float(V.tcp_mm(chain, q)[2]) for q in path[fr["LIFT"]:fr["ABOVE_BOX"] + 1]]
-    return path, fr, {"lift_back_mm": back, "carry_z_min_mm": round(min(zc), 1), "lift_pose": np.round(lift5, 3).tolist()}
+    return path, fr, {"lift_back_mm": back, "carry_z_min_mm": round(min(zc), 1), "lift_pose": np.round(lift5, 3).tolist(), **tol}
 
 
 def rise_pose(W, q5, z_target):
@@ -233,8 +252,8 @@ def rise_pose(W, q5, z_target):
     if q is not None:
         return np.asarray(q, np.float64), dz, 0.0
     q, pe, ae, back = V.lift_pose(W.w.chain, q5, dz)          # 持ち上げ (make_path の LIFT) と同じ: 届かなければ根もとへ引く
-    if pe >= 1.0 or ae >= 2.0:
-        raise Refused(f"真上へ戻る姿勢が解けない ({err}・位置 {pe:.1f} mm・向き {ae:.1f}°)")
+    if pe >= LIFT_POS_TOL_MM or ae >= LIFT_ANG_TOL_DEG:
+        raise Refused(f"真上へ戻る姿勢が解けない ({err}・位置 {pe:.1f} mm・向き {ae:.1f}°. 許し {LIFT_POS_TOL_MM:g} mm・{LIFT_ANG_TOL_DEG:g}°)")
     return np.asarray(q, np.float64), dz, float(back)
 
 
@@ -536,6 +555,7 @@ class Switch:
         try:
             path, fr, inf = after_held_path(self.W.w.chain, hold[:5])
         except Refused as x:
+            att["after_path"] = getattr(x, "lift_tol", {})
             return self._end("lift_refused", "持ち上げ", str(x), runner)
         bad = check_steps_range(path, self.rlo, self.rhi)
         if inf["carry_z_min_mm"] < _V().CARRY_Z_MIN_MM:
@@ -776,6 +796,7 @@ class Switch:
     def doc(self):
         d = {"request": 405, "what": "切り替え方式 (コード → π0.5 → コード) の 1 試行. 判定・やり直し・コードの道",
              "joints": R.MOTORS, "fps": R.FPS, "judge": JUDGE, "cmd_open": CMD_OPEN, "cmd_close": CMD_CLOSE, "max_attempts": MAX_ATTEMPTS,
+             "lift_tol": {"pos_mm": LIFT_POS_TOL_MM, "ang_deg": LIFT_ANG_TOL_DEG},
              "plan_sha256": self.RR.sha256(self.RR.PLAN), **json.loads(json.dumps(self.info, default=_js))}
         return d
 
```

判定：合格
````


### verify_431.py

```python
#!/usr/bin/env python3
"""依頼 431 の確かめ (計算だけ・アームなし).
1. so101_20261202_170825 (so101j・場所5) の挟んだ姿勢 (judge.hold) で, 許しを付けない (1.0 mm・2.0°) と止まり,
   SW405_LIFT_POS_TOL_MM=3 で 持ち上げ以降の道が作れて 今のガード (1 コマ・範囲・運ぶ間の高さ・clear_after held) を通るか.
2. 付けないときの道が 変える前 (HEAD の switch_405.py を引数で渡す) とバイトで同じか (場所2〜5 の つかむ所. after_held_path・rise_pose).

  SO101_VAR_ROLL_RANGE=-67,58 $P so101/check_431/verify_431.py <trial.json> <変える前の switch_405.py> → verify_431.json
"""
import importlib
import importlib.util
import json
import os
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
for p in (HERE.parent, HERE.parent / "check_401", HERE.parent / "check_392", HERE.parent / "check_399", HERE.parent / "ideal_var",
          HERE.parent / "check_405"):
    if str(p) not in sys.path:
        sys.path.insert(0, str(p))
import run_rule401 as RR  # noqa: E402


def load_sw(env, path=None, name="switch_405"):
    for k in ("SW405_LIFT_POS_TOL_MM", "SW405_LIFT_ANG_TOL_DEG"):
        os.environ.pop(k, None)
    os.environ.update(env)
    if path is None:
        sys.modules.pop("switch_405", None)
        return importlib.import_module("switch_405")
    spec = importlib.util.spec_from_file_location(name, path)
    m = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(m)
    return m


def lift_check(SW, W, hold5, b, lo, hi, jt):
    V = SW._V()
    try:
        path, fr, inf = SW.after_held_path(W.w.chain, hold5)
    except SW.Refused as x:
        return {"built": False, "why": str(x), **getattr(x, "lift_tol", {})}
    bad = SW.check_steps_range(path, lo, hi)
    if inf["carry_z_min_mm"] < V.CARRY_Z_MIN_MM:
        bad = (bad + " / " if bad else "") + f"運ぶ間の手先が低い ({inf['carry_z_min_mm']} mm)"
    c = SW.clear_after(path, fr, b["bxy"], b["yaw"], True, jt)
    d = np.abs(np.diff(path, axis=0))
    # 持ち上げ区間 (GRASP_CLOSED → LIFT) の手先: 挟んだ所の真上の線からの横のずれ・最後の高さ
    p0 = V.tcp_mm(W.w.chain, hold5)
    tcp = np.array([V.tcp_mm(W.w.chain, q[:5]) for q in path[:fr["LIFT"] + 1]])
    side = np.linalg.norm(tcp[:, :2] - p0[:2], axis=1)
    i = int(np.argmax(side))
    jmax = d[:, :5].max(1)
    k = int(np.argmax(jmax))
    return {"built": True, "frames": len(path), "keyframes": {a: int(v) for a, v in fr.items()}, "guard_steps_range": bad or "通った",
            "clear_ok": bool(c["ok"]), "clear_why": c["why"], "clearance_mm": c["dist"], **inf,
            "step_joint_max_deg": round(float(d[:, :5].max()), 3), "step_joint_max_frame": k + 1,
            "step_grip_max": round(float(d[:, 5].max()), 3), "step_limit_deg": V.STEP_LIMIT_DEG, "step_limit_grip": V.STEP_LIMIT_GRIP,
            "lift_side_max_mm": round(float(side[i]), 2), "lift_side_max_frame": i,
            "lift_end_rise_mm": round(float(tcp[-1, 2] - p0[2]), 2), "lift_mm_target": V.LIFT_MM,
            "lift_end_xyz_err_mm": round(float(np.linalg.norm(tcp[-1] - (p0 + [0, 0, V.LIFT_MM]))), 2)}


def main():
    trial = json.loads(Path(sys.argv[1]).read_text())
    before = sys.argv[2]
    s = trial["switch405"]
    a = s["attempts"][-1]
    hold5 = np.asarray(a["judge"]["hold"][:5], np.float64)
    plan, lo, hi = RR.load_plan(RR.PLAN)
    assert RR.sha256(RR.PLAN) == s["plan_sha256"], "道の元 (PLAN) が記録の回と違う"
    W = RR.world()
    jt = plan.get("jaw_table_min_mm", -11.0)
    b = {"bxy": np.asarray(a["block_xy_mm"], np.float64), "yaw": float(a["block_yaw_deg"])}
    out = {"trial": trial["trial"], "model": trial["model"], "place": trial["place"], "hold": a["judge"]["hold"],
           "recorded_stop_why": s["stop_why"]}
    SW0 = load_sw({})
    out["default"] = lift_check(SW0, W, hold5, b, lo, hi, jt)
    SW3 = load_sw({"SW405_LIFT_POS_TOL_MM": "3"})
    out["pos_tol_3"] = lift_check(SW3, W, hold5, b, lo, hi, jt)
    out["pos_tol_3"]["tol"] = [SW3.LIFT_POS_TOL_MM, SW3.LIFT_ANG_TOL_DEG]

    # 付けないときの道: 変える前と同じか (場所2〜5 の GRASP_OPEN を挟んだ姿勢とする・ABOVE_BLOCK の高さへ rise_pose)
    SWn = load_sw({})
    SWo = load_sw({}, before, "switch_405_before")
    same = []
    for place in (2, 3, 4, 5):
        e = plan["episodes"][place - 1]
        bb, _ = RR.prepare(W, plan, place, lo, hi, None, (e["pixel"][0], e["pixel"][1], 0.0), False, ("conflict", "deep_at_zero"), False)
        fr = bb["v"]["frames"]
        g5 = bb["path"][fr["GRASP_OPEN"]][:5]
        _, z_above, _, _ = W.sh.point(bb["path"][fr["ABOVE_BLOCK"]][:5])
        r = {"place": place}
        for nm, f in (("after_held_path", lambda M: M.after_held_path(W.w.chain, g5)[0]),
                      ("rise_pose", lambda M: M.rise_pose(W, g5, z_above)[0])):
            try:
                pn, po = f(SWn), f(SWo)
                r[nm] = bool(pn.tobytes() == po.tobytes())
            except Exception as x:  # 両方とも同じに止まるか
                r[nm] = f"止まる ({type(x).__name__}: {x})"
        same.append(r)
    out["same_as_before"] = same
    Path(HERE / "verify_431.json").write_text(json.dumps(out, ensure_ascii=False, indent=1, default=lambda x: x.tolist()) + "\n")
    for k in ("default", "pos_tol_3"):
        print(k, json.dumps({x: y for x, y in out[k].items() if x not in ("lift_pose",)}, ensure_ascii=False, default=str))
    print(json.dumps(same, ensure_ascii=False))


if __name__ == "__main__":
    main()
```


## 依頼432：つかんだあとのコードの道の範囲と、π0.5 の上限秒

### 依頼432 の依頼文

```markdown
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 40
---
# 依頼432：SO-101 の切り替え方式（check_405/switch_405.py）で、つかめた回が AI の決めた範囲で止まるのをなくす（2 点だけ・アームは動かさない）

## なぜ
2026-12-02 17:49〜17:54 の so101j の実機（場所3・向き −22〜−32°）で、so101j がつかんで判定 held だったのに、コード側で止まった回が続いた。エイイチ：「こういう勝手に止まるのやめて欲しい」。
- `so101_20261202_174939`・`175336`：`持ち上げの道がガードに当たる: 道を作る範囲の外 (wrist_flex)`。持ち上げの姿勢の wrist_flex が 117.1°・112.2°。
  `check_steps_range` の lo・hi が「お手本の関節の幅 ±10°」（`load_safe_range_var`）で、腕の限界ではない。エイイチの決まり：腕の限界は実際に動かして測った値を使う。AI が範囲を決めない
- `so101_20261202_175417`：`8 秒たっても閉じない`（`POLICY_MAX_S = 8.0` の決め打ち）

## やること（この 2 点だけ。ほかは触らない）
1. **π0.5 から戻ったあとのコードの道（持ち上げ〜運ぶ〜戻る `after_held_path`、外したあとの上がる・開く・戻る道）の範囲の確かめ**を、環境変数 `SW405_CODE_RANGE=arm` を付けたときだけ、手で測った腕の範囲（`var_lib_314.arm_range()`。`so101_calibration/2026-12-01/arm_range/arm_range_measured_2nd.json`）で行う。付けなければ今と同じ
   - `SO101_RANGE_MODE=arm` は使わない（付けると つかむ道の作り方・爪の傾きの幅まで変わり、so101j に渡す所が変わるため）。変えるのは switch_405.py の中の、π0.5 のあとのコードの道の範囲の確かめだけ。ブロックの上まで運ぶ道（rule_401）と、推論の安全範囲（SO101_RANGE_MARGIN）は変えない
   - 1 コマの変化・シムの距離（机・箱・根もと）の確かめは今のまま
   - 使った範囲（どちらか・値）を trial.json の switch405 に残す
2. `POLICY_MAX_S`（8.0 秒）を環境変数 `SW405_POLICY_MAX_S` で変えられるようにする。付けなければ 8.0

## 確かめ（アームなし）
- 上の 174939・175336 の挟んだ姿勢で、`SW405_CODE_RANGE=arm SW405_LIFT_POS_TOL_MM=3` のとき 持ち上げ以降の道が作れて、残りのガードを通ること。道の中で各関節がいちばん端に寄る値と、腕の測った範囲までの残り（度）を表にする
- 今日の so101j の切り替え方式の回（台帳の model が so101j の全部）の挟んだ姿勢でも同じ確かめをして、止まる回が残るか・残るなら何で止まるかを書く
- 付けないとき：道のバイトが変える前と同じ。既存のテストが通る
- codex・ほかの AI にレビューを頼まない。ガードの値を足さない。commit は自分のファイルだけを個別に add（`git add .`・`git clean` は使わない）

## 報告（`so101/check_432/REPORT.md`）
変えた所の diff、確かめの表、ほかに「つかめたあとに AI の決めた値で止まる所」が switch_405.py に残っていれば一覧（直さず、名前と値と理由だけ）。最後の 1 行に「判定：合格／止めた／失敗」
```


### 依頼432 の報告（REPORT.md）

````markdown
# 依頼 432：SO-101 の切り替え方式で、π0.5 のあとのコードの道の範囲を腕の測った範囲にする・π0.5 の上限秒を変えられるようにする

アームは動かしていない。codex・ほかの AI にレビューは頼んでいない。ガードの値は足していない。

## 変えた所（so101/check_405/switch_405.py だけ）

1. 環境変数 `SW405_CODE_RANGE=arm` を付けたときだけ、π0.5 から戻ったあとのコードの道の範囲の確かめを、手で測った腕の範囲（`var_lib_314.arm_range()`。`arm_range_measured_2nd.json`）で行う。付けなければ今と同じ（道を作る範囲 = 割り振りの rule_range）。arm 以外の値は始める前に止める（ValueError）
   - 当てた所：挟んだあとの道（`_held`。持ち上げ〜運ぶ〜戻る）、外したあとの開く・上がる道（`_open_rise`）、前の渡す姿勢を通って HOME へ戻る道（`_go_home`）、戻った所から新しい渡す姿勢へ寄せる道（`run` の中の `con`）
   - 当てていない所：rule_401 の道を作る所（`read_and_build` → `run_rule401.prepare`）、`--retry-shift-mm` で寄せた渡す姿勢の道（`_shift`。rule_401 の道の一部）、推論の安全範囲（`self.plo`・`self.phi`）、外したあとに開く爪の値の上限（`_open_rise` の `self.rhi[5]` で切る所。確かめでなく道の値そのものなので変えていない）
   - 1 コマの変化・シムの距離・運ぶ間の高さは今のまま
   - `SO101_RANGE_MODE` は使っていない
   - trial.json の `switch405` に `code_range`（mode：`rule` か `arm`・lo・hi・file）を残す
2. `POLICY_MAX_S` を環境変数 `SW405_POLICY_MAX_S` で変えられるようにした（付けなければ 8.0。正の数でなければ始める前に止める）。`--policy-max-s` を付ければそちらが先（今までどおり）。trial.json の `switch405` に `policy_max_s` も残す
   - 注：`session_405.sh` はもともと `SW405_POLICY_MAX_S` を `--policy-max-s` に渡している（1〜60 秒）。session_405.sh から流していれば、今までも変えられていた

```diff
diff --git a/so101/check_405/switch_405.py b/so101/check_405/switch_405.py
index 2a35c93..05d79cf 100644
--- a/so101/check_405/switch_405.py
+++ b/so101/check_405/switch_405.py
@@ -18,7 +18,7 @@ run_so101_policy.py --switch-405 が使う (付けなければ run_so101_policy.
   5. π0.5 の区間 (run_so101_policy.run_trial をそのまま. 安全範囲・--max-step-deg・--blend・--exec-steps・先に問い合わせる).
      記録の口 (_Watch) で 1 コマずつ見て:
        - 閉じた: 爪の指令 (action) が CMD_OPEN (25) 以上のあと CMD_CLOSE (20) を割ったコマで π0.5 の答えを使うのをやめる
-       - 長すぎる: π0.5 の区間 (渡してから. 一時停止・手直しの間は数えない) が --policy-max-s (既定 8 秒) を超えたら止めて
+       - 長すぎる: π0.5 の区間 (渡してから. 一時停止・手直しの間は数えない) が --policy-max-s (既定 8 秒. 環境変数 SW405_POLICY_MAX_S でも. 依頼 432) を超えたら止めて
          「閉じなかった」(not_closed. 失敗 6). 推論の答えが INFER_TIMEOUT_S (10 秒) で返らなければ 例外として その場で止める
        - q: その場で止める (policy_quit. 結果は聞かない)
      --chunk-full: 1 回の答えを最後のコマまで流し切ってから 次を問い合わせる (run_trial の --no-prefetch と同じ形・答えの全部のコマ)
@@ -28,7 +28,9 @@ run_so101_policy.py --switch-405 が使う (付けなければ run_so101_policy.
      落ち着いたとし, その読みが 9〜12 = 挟んだ / 5 未満 = 空 / ほか・JUDGE.max_wait (30) コマで落ち着かない = あいまい (空として扱う).
      境目は so101f 30 回・so101g 7 回・お手本 64 本の記録から (analyze_405.py → judge_405.md)
   7. 挟んだ: 今の姿勢から rule_351 の LIFT 以降と同じ形の道 (真上 80 mm (V.lift_pose) → 箱の上の真上 → 箱の上 → 離す → HOME.
-     コマ数・爪の値も同じ) を作り, ガード (1 コマの変化・道を作る範囲・運ぶ間の高さ・シム) を当てて送る. 持ち上げ (LIFT のコマ) で
+     コマ数・爪の値も同じ) を作り, ガード (1 コマの変化・道を作る範囲・運ぶ間の高さ・シム) を当てて送る.
+     SW405_CODE_RANGE=arm (依頼 432): π0.5 のあとのコードの道 (7・8 の道. 読み直したあとの rule_401 の道は除く) の範囲の確かめを
+     手で測った腕の範囲 (var_lib_314.arm_range) で行う. 付けなければ 道を作る範囲 (お手本の幅 ±10°) のまま. 持ち上げ (LIFT のコマ) で
      爪の読みをもう一度見て (直近 3 コマの中央値) 挟んだの幅の外なら その場で止めて「落とした」(dropped. 失敗 3. 自動では拾い直さない)
   8. 空・あいまい: 爪を閉じる前の開き (直前 15 コマの指令の最大. 道を作る範囲の上限まで) に開き (10 コマ), 真上へ 渡す所の高さまで戻る
      (recover_377.Shifter で 爪の傾き・閉じる向きのまま. 解けなければ 持ち上げと同じ V.lift_pose). 外したのが MAX_ATTEMPTS (2) 回目なら そこで止めて「2 回外した」(missed_max. 失敗 2).
@@ -69,7 +71,6 @@ JUDGE = {"start": 3, "n": 4, "w": 0.5, "max_wait": 30, "held_min": HELD_MIN, "he
 CLOSE_RAMP = 5                          # 閉じる指令を GRASP_CLOSED へ この コマ数で (入口の B の爪 20 の内側)
 LIFT_CHECK_FRAMES = 3                   # 持ち上げの確かめ: 直近この コマの爪の読みの中央値
 MAX_ATTEMPTS = 2                        # π0.5 に渡すのは 2 回まで (2 回外したら止める)
-POLICY_MAX_S = 8.0                      # π0.5 の区間の上限 (秒. 記録: so101f・g でブロックの上の高さから最初の閉じまで 成功は 2.2〜5.9 秒)
 READ_KEEP_FRAC = 0.85                   # 読み直しの赤の面積が 1 回目のこの割合より少なければ 腕で隠れたとする (依頼 376 と同じ 85%)
 OPEN_FRAMES = 10                        # 空のあと 爪を開くコマ (var_lib_314.TEMPLATE["close"] と同じ)
 RISE_MM_PER_FRAME = 80.0 / 24           # 真上へ戻る速さ (持ち上げ 80 mm / 24 コマ と同じ)
@@ -94,6 +95,18 @@ def _env_tol(name, default):
 
 LIFT_POS_TOL_MM = _env_tol("SW405_LIFT_POS_TOL_MM", 1.0)    # V.lift_pose の解けた位置の差がこれ以上なら 解けないとする (依頼 431. 既定 1.0)
 LIFT_ANG_TOL_DEG = _env_tol("SW405_LIFT_ANG_TOL_DEG", 2.0)  # 同じく 向きの差 (既定 2.0°). 持ち上げ・真上へ戻る (rise_pose) の両方
+POLICY_MAX_S = _env_tol("SW405_POLICY_MAX_S", 8.0)          # π0.5 の区間の上限 (秒. 依頼 432 で環境変数に. --policy-max-s があればそちら.
+#                                                             記録: so101f・g でブロックの上の高さから最初の閉じまで 成功は 2.2〜5.9 秒)
+CODE_RANGE_ENV = "SW405_CODE_RANGE"     # 依頼 432: arm = π0.5 のあとのコードの道の範囲の確かめを 手で測った腕の範囲 (var_lib_314.arm_range) で.
+#                                         付けなければ 道を作る範囲 (割り振りの rule_range) のまま. rule_401 の道・推論の安全範囲は変えない
+
+
+def code_range_mode():
+    """→ "" (今と同じ) か "arm". ほかの値は ValueError (始める前に止める)"""
+    v = os.environ.get(CODE_RANGE_ENV, "").strip()
+    if v not in ("", "arm"):
+        raise ValueError(f"{CODE_RANGE_ENV} は arm だけ (付けなければ今と同じ): {v!r}")
+    return v
 STATUS = {"refused": "動かさずに止めた", "stopped": "止めた (スペース・q・追従の差)", "policy_quit": "π0.5 の区間で q",
           "carried": "挟んで箱へ運んだ", "dropped": "持ち上げで落とした", "missed_max": "2 回外した", "not_closed": "閉じなかった (区間の上限)",
           "retry_refused": "やり直せない (読めない・道が作れない)", "lift_refused": "持ち上げの道が作れない", "not_started": "始める前に終わった"}
@@ -366,6 +379,12 @@ class Switch:
         else:
             plan, self.rlo, self.rhi = plan
         self.plan = plan
+        self.code_mode = code_range_mode()      # 依頼 432: π0.5 のあとのコードの道 (持ち上げ〜戻る・外したあと) の範囲の確かめ
+        if self.code_mode == "arm":
+            lo_a, hi_a = _V().arm_range()
+            self.clo, self.chi = np.asarray(lo_a, np.float64), np.asarray(hi_a, np.float64)
+        else:
+            self.clo, self.chi = self.rlo, self.rhi
         self.W = W if W is not None else RR.world()
         self._prepare = prepare or RR.prepare
         self.retry_shift = float(getattr(args, "retry_shift_mm", 0.0) or 0.0)
@@ -557,7 +576,7 @@ class Switch:
         except Refused as x:
             att["after_path"] = getattr(x, "lift_tol", {})
             return self._end("lift_refused", "持ち上げ", str(x), runner)
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         if inf["carry_z_min_mm"] < _V().CARRY_Z_MIN_MM:
             bad = (bad + " / " if bad else "") + f"運ぶ間の手先が低い ({inf['carry_z_min_mm']} mm)"
         c = clear_after(path, fr, b["bxy"], b["yaw"], True, self.plan.get("jaw_table_min_mm", -11.0))
@@ -601,7 +620,7 @@ class Switch:
             fr = dict(fr, TABLE_FROM=0)
         else:                            # 依頼の形: 下で開く → 真上へ (腕と机は 開いた所から見る)
             path, fr = segment(hold, [("OPENED", np.r_[hold[:5], g_open], OPEN_FRAMES), ("RISEN", np.r_[q_up, g_open], n_rise)])
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         c = clear_after(path, fr, b["bxy"], b["yaw"], False, self.plan.get("jaw_table_min_mm", -11.0))
         att["open_rise"] = {"order": "rise_first" if self.rise_first else "open_first", "open_grip": round(g_open, 2), "rise_mm": round(dz, 1),
                             "rise_back_mm": back, "frames": len(path), "clearance_mm": c["dist"]}
@@ -620,7 +639,7 @@ class Switch:
         code = b["path"][:fr["ABOVE_BLOCK"] + 1]
         con, cfr = segment(up6, [("ABOVE_BLOCK", code[-1], V.DETOUR_BACK)])
         path = np.vstack([con, code[::-1][1:]])
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         c = clear_after(con, cfr, b["bxy"], b["yaw"], "connect", self.plan.get("jaw_table_min_mm", -11.0))
         att["go_home"] = {"frames": len(path), "clearance_connect_mm": c["dist"]}
         if bad or not c["ok"]:
@@ -714,7 +733,7 @@ class Switch:
                 nb, ninfo = got
                 na6 = nb["path"][nb["v"]["frames"]["ABOVE_BLOCK"]]
                 con, cfr = segment(up, [("ABOVE_BLOCK", na6, _V().DETOUR_BACK)])
-                bad = check_steps_range(con, self.rlo, self.rhi)
+                bad = check_steps_range(con, self.clo, self.chi)
                 c = clear_after(con, cfr, nb["bxy"], nb["yaw"], "connect", self.plan.get("jaw_table_min_mm", -11.0))
                 att["reread"] = {"where": "rise", "info": {k: ninfo.get(k) for k in ("block_pixel", "block_yaw_deg", "status")},
                                  "connect_clearance_mm": c["dist"], "connect_bad": bad or c["why"]}
@@ -796,7 +815,9 @@ class Switch:
     def doc(self):
         d = {"request": 405, "what": "切り替え方式 (コード → π0.5 → コード) の 1 試行. 判定・やり直し・コードの道",
              "joints": R.MOTORS, "fps": R.FPS, "judge": JUDGE, "cmd_open": CMD_OPEN, "cmd_close": CMD_CLOSE, "max_attempts": MAX_ATTEMPTS,
-             "lift_tol": {"pos_mm": LIFT_POS_TOL_MM, "ang_deg": LIFT_ANG_TOL_DEG},
+             "lift_tol": {"pos_mm": LIFT_POS_TOL_MM, "ang_deg": LIFT_ANG_TOL_DEG}, "policy_max_s": self.policy_max_s,
+             "code_range": {"mode": self.code_mode or "rule", "lo": np.round(self.clo, 3).tolist(), "hi": np.round(self.chi, 3).tolist(),
+                            "file": (os.environ.get(_V().ARM_RANGE_ENV) or _V().ARM_RANGE_JSON) if self.code_mode == "arm" else ""},
              "plan_sha256": self.RR.sha256(self.RR.PLAN), **json.loads(json.dumps(self.info, default=_js))}
         return d
 
```

## 確かめ（アームなし。`so101/check_432/verify_432.py` → `verify_432.json`）

`SO101_VAR_ROLL_RANGE=-67,58 R401_PUSH_LIMIT_MM=-12 R401_PUSH_WINDOW_MM=-12 $P so101/check_432/verify_432.py /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12 <変える前の switch_405.py>`

挟んだ姿勢は trial.json の `judge.hold`、許しは `SW405_LIFT_POS_TOL_MM=3`。台帳の model が so101j の回すべて（確かめた時点で 27 回。そのうち挟んだ判定は 22 回。175829 は確かめている間に台帳に増えた回）。

### 二つの範囲

| 関節 | 今の範囲（お手本の幅 ±10°） | arm（手で測った幅と校正の幅の重なり） |
|---|---|---|
| shoulder_pan | -69.38〜55.23 | -104.26〜114.99 |
| shoulder_lift | -115.05〜67.98 | -104.66〜104.40 |
| elbow_flex | -106.40〜106.48 | -90.90〜90.90 |
| wrist_flex | -12.81〜112.24 | -101.05〜100.53 |
| wrist_roll | -67.00〜58.00 | -67.91〜180.00 |
| gripper | 0.00〜59.51 | 0.00〜100.00 |

### 結果：174939・175336 は arm にしても通らない

手首の曲げ（wrist_flex）の、測った腕の範囲の上限は **100.53°**。174939・175336 の持ち上げの姿勢の wrist_flex は **117.05°・112.25°** で、腕の範囲より 16.5°・11.7° 外にある。arm にすると「道を作る範囲の外 (wrist_flex)」で止まる（範囲の外になる関節は wrist_flex だけ。1 コマの変化・運ぶ間の高さ・シムの距離はどの回も通った）。

さらに、今の範囲では通っていた 5 回（174624・175030・175134・175229・175624。このうち 4 回は箱まで運べた）も、arm にすると wrist_flex で止まる側になる（指令の最大 102.7〜112.1°）。

実機の記録（data の parquet）で、挟んだあとの道の 40 コマの wrist_flex を見ると、指令の最大が 102.7〜112.1° でも、実際の関節の最大はどの回も **99.38°** で止まっている（175030・174624・175134・175229・175624）。175030 で「追従の差 10.2°」で止まったのはこのため（指令 112.1°・実際 99.4°。差は持ち上げの終わりの 24 コマ目で一番大きい）。つまり、174939・175336 の持ち上げの姿勢は腕では届かない姿勢で、範囲の確かめを arm にしても、動かせば追従の差（10°）で止まる見込みが高い。

### 表：道の中で各関節がいちばん端に寄る値と、腕の測った範囲までの残り（度）

各欄は「道の中の最小〜最大（下の残り / 上の残り）」。残りが負の数なら、腕の範囲の外。道は挟んだ所から HOME まで全部（持ち上げ・運ぶ・離す・戻る）。

| 回 (so101_20261202_) | 場所 | 記録の結果 | 今の範囲で | arm の範囲で | shoulder_pan | shoulder_lift | elbow_flex | wrist_flex | wrist_roll |
|---|---|---|---|---|---|---|---|---|---|
| 170825 | 5 | lift_refused | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜58.2 (1.7 / 46.2) | -59.4〜90.0 (31.5 / 0.9) | 20.0〜87.8 (121.0 / 12.8) | -38.3〜1.4 (29.6 / 178.6) |
| 171159 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜57.2 (1.7 / 47.2) | -68.8〜90.0 (22.1 / 0.9) | 20.0〜89.6 (121.0 / 10.9) | -38.8〜1.4 (29.1 / 178.6) |
| 171304 | 5 | lift_refused | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜60.5 (1.7 / 43.9) | -62.1〜90.0 (28.8 / 0.9) | 20.0〜89.1 (121.0 / 11.4) | -31.2〜1.4 (36.7 / 178.6) |
| 173424 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜58.0 (1.7 / 46.4) | -58.1〜90.0 (32.8 / 0.9) | 20.0〜87.5 (121.0 / 13.0) | -38.0〜1.4 (29.9 / 178.6) |
| 173526 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜59.5 (1.7 / 44.9) | -62.6〜90.0 (28.3 / 0.9) | 20.0〜91.4 (121.0 / 9.1) | -36.2〜1.4 (31.7 / 178.6) |
| 173624 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜58.5 (1.7 / 45.9) | -59.3〜90.0 (31.6 / 0.9) | 20.0〜85.2 (121.0 / 15.3) | -35.4〜1.4 (32.5 / 178.6) |
| 173759 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜48.5 (1.7 / 55.9) | -54.2〜90.0 (36.7 / 0.9) | 20.0〜91.8 (121.0 / 8.7) | -3.0〜17.1 (64.9 / 162.9) |
| 173853 | 5 | carried | 通った | 通った | -8.0〜46.9 (96.3 / 68.1) | -103.0〜47.3 (1.7 / 57.1) | -53.2〜90.0 (37.7 / 0.9) | 20.0〜89.0 (121.0 / 11.5) | -3.0〜13.8 (64.9 / 166.2) |
| 174003 | 2 | carried | 通った | 通った | -14.7〜46.9 (89.6 / 68.1) | -103.0〜53.2 (1.7 / 51.2) | -64.4〜90.0 (26.5 / 0.9) | 20.0〜95.5 (121.0 / 5.0) | -34.6〜1.4 (33.4 / 178.6) |
| 174252 | 2 | carried | 通った | 通った | -16.4〜46.9 (87.9 / 68.1) | -103.0〜34.0 (1.7 / 70.3) | -50.5〜90.0 (40.4 / 0.9) | 20.0〜85.1 (121.0 / 15.4) | -3.0〜11.3 (64.9 / 168.7) |
| 174332 | 3 | carried | 通った | 通った | -43.1〜46.9 (61.1 / 68.1) | -103.0〜21.3 (1.7 / 83.1) | -25.9〜90.0 (65.0 / 0.9) | 20.0〜97.9 (121.0 / 2.6) | -19.7〜1.4 (48.2 / 178.6) |
| 174407 | 4 | carried | 通った | 通った | -11.3〜46.9 (93.0 / 68.1) | -103.0〜1.0 (1.7 / 103.4) | 6.7〜90.0 (97.6 / 0.9) | 20.0〜74.7 (121.0 / 25.9) | -3.0〜15.3 (64.9 / 164.7) |
| 174517 | 2 | carried | 通った | 通った | -16.7〜46.9 (87.6 / 68.1) | -103.0〜45.6 (1.7 / 58.8) | -60.6〜90.0 (30.3 / 0.9) | 20.0〜93.3 (121.0 / 7.2) | -15.6〜1.4 (52.3 / 178.6) |
| 174624 | 3 | carried | 通った | 道を作る範囲の外 (wrist_flex) | -41.8〜46.9 (62.5 / 68.1) | -103.0〜26.5 (1.7 / 77.9) | -42.8〜90.0 (48.1 / 0.9) | 20.0〜104.5 (121.0 / -4.0) | -41.0〜1.4 (26.9 / 178.6) |
| 174702 | 4 | carried | 通った | 通った | -12.8〜46.9 (91.4 / 68.1) | -103.0〜-3.2 (1.7 / 107.6) | 6.7〜90.0 (97.6 / 0.9) | 14.3〜59.8 (115.4 / 40.7) | -10.4〜1.4 (57.6 / 178.6) |
| 174939 | 3 | lift_refused | 道を作る範囲の外 (wrist_flex) | 道を作る範囲の外 (wrist_flex) | -39.5〜46.9 (64.8 / 68.1) | -103.0〜41.6 (1.7 / 62.8) | -69.1〜90.0 (21.8 / 0.9) | 20.0〜117.0 (121.0 / -16.5) | -60.3〜1.4 (7.6 / 178.6) |
| 175030 | 3 | stopped | 通った | 道を作る範囲の外 (wrist_flex) | -45.6〜46.9 (58.7 / 68.1) | -103.0〜38.9 (1.7 / 65.5) | -63.8〜90.0 (27.1 / 0.9) | 20.0〜112.1 (121.0 / -11.6) | -27.2〜1.4 (40.7 / 178.6) |
| 175134 | 3 | carried | 通った | 道を作る範囲の外 (wrist_flex) | -46.6〜46.9 (57.6 / 68.1) | -103.0〜30.1 (1.7 / 74.2) | -47.3〜90.0 (43.6 / 0.9) | 20.0〜104.6 (121.0 / -4.0) | -18.9〜1.4 (49.0 / 178.6) |
| 175229 | 4 | carried | 通った | 道を作る範囲の外 (wrist_flex) | -9.5〜46.9 (94.7 / 68.1) | -103.0〜26.1 (1.7 / 78.3) | -42.3〜90.0 (48.6 / 0.9) | 20.0〜102.7 (121.0 / -2.1) | -29.9〜1.4 (38.0 / 178.6) |
| 175336 | 3 | lift_refused | 道を作る範囲の外 (wrist_flex) | 道を作る範囲の外 (wrist_flex) | -39.3〜46.9 (65.0 / 68.1) | -103.0〜36.8 (1.7 / 67.6) | -59.8〜90.0 (31.1 / 0.9) | 20.0〜112.2 (121.0 / -11.7) | -61.4〜1.4 (6.5 / 178.6) |
| 175624 | 4 | carried | 通った | 道を作る範囲の外 (wrist_flex) | -10.9〜46.9 (93.4 / 68.1) | -103.0〜27.9 (1.7 / 76.5) | -44.9〜90.0 (46.0 / 0.9) | 20.0〜104.2 (121.0 / -3.7) | -32.5〜1.4 (35.4 / 178.6) |
| 175829 | 4 | carried | 通った | 通った | -11.7〜46.9 (92.6 / 68.1) | -103.0〜22.9 (1.7 / 81.5) | -35.0〜90.0 (55.9 / 0.9) | 20.0〜99.6 (121.0 / 0.9) | -25.5〜1.4 (42.4 / 178.6) |

- 止まる回が残るか：残る。arm にすると、挟んだ 22 回のうち **7 回**が wrist_flex で止まる（今の範囲では 2 回）。止まる理由はどれも wrist_flex（持ち上げの姿勢 LIFT）。ほかの関節で残りがいちばん少ないのは elbow_flex の上の 0.9°（HOME_END の 90.0°。全部の回で同じ）と shoulder_lift の下の 1.7°（同じく −103.0°）
- 「持ち上げの姿勢が解けない」（170825・171304）は、許し 3 mm にすれば作れて、範囲（どちらでも）・残りのガードを通る（依頼 431 と同じ）

### 付けないとき

- Switch の範囲（clo・chi）が rlo・rhi と同じ：同じ（`switch.none.clo_is_rlo = true`）。`SW405_CODE_RANGE=rule` は始める前に止まる
- 道のバイト：変える前の switch_405.py と比べ、場所2〜5 の `after_held_path`・`rise_pose` が 4 か所すべてで同じ
- POLICY_MAX_S：付けなければ 8.0（変える前も 8.0）。`SW405_POLICY_MAX_S=12` で Switch の上限が 12.0
- 既存のテスト：`so101/check_405/test_switch_405.py` 18 件・`so101/check_422/test_track_stop_422.py` 2 件 OK
- `so101/check_405/fake_run_405.py`（偽のアームで通し・環境変数を付けない）：md は試行名・時刻を除いて変える前と全く同じ。json の違いは推論の待ち時間（秒）の数字だけ。生成し直した fake_run_405.md・.json は元に戻した（commit していない）

## switch_405.py に残っている「つかめたあとに AI の決めた値で止まる所」（直していない）

| 名前 | 値 | 理由（どこで止まるか） |
|---|---|---|
| LIFT_POS_TOL_MM・LIFT_ANG_TOL_DEG | 1.0 mm・2.0°（環境変数で変えられる） | 持ち上げの姿勢が解けないとき（after_held_path） |
| V.STEP_LIMIT_DEG・V.STEP_LIMIT_GRIP | 1 コマ 関節 10°・爪 20 | check_steps_range の 1 コマの変化（lerobot_safe_259 の B） |
| V.CARRY_Z_MIN_MM | 50 mm | 運ぶ間の手先の高さの下限（_held） |
| clear_345 の CLEAR_TABLE_MM・CLEAR_BOX_MM・CLEAR_BASE_MM | 15・15・15 mm | シムの距離（clear_after held。腕と机・持ったブロックと机・箱・根もと） |
| 割り振りの jaw_table_min_mm | −11 mm（plan） | 挟んだ所〜持ち上げ前の爪と机（clear_after held） |
| HELD_MIN・HELD_MAX・LIFT_CHECK_FRAMES | 9〜12・3 コマ | 持ち上げ（LIFT）の爪の読みの中央値が幅の外なら「落とした」 |
| run_rule401.TRACK_STOP_DEG | 10°（R401_TRACK_STOP_DEG で変えられる） | 道を送る間の 実際と予想の差（175030 はこれで止まった） |
| V.LIFT_MM | 80 mm | 持ち上げの高さ。これが今回の wrist_flex の大きさの元（真上 80 mm に爪の向きのまま上げると手首を 100° より曲げる姿勢になる） |
| 道を作る範囲（SW405_CODE_RANGE を付けないとき） | お手本の幅 ±10° | 今回変えた所（付ければ arm） |

## 決めてほしいこと

- 174939・175336 の形（場所3・向き −22〜−32° 前後。持ち上げで wrist_flex が 112〜117° 要る）は、範囲を arm にしても止まる。腕の測った上限 100.53°・実機の頭打ち 99.38° より曲げないと、今の持ち上げの作り方（爪の向きのまま真上 80 mm）では上げられない。持ち上げの作り方（高さ・向きを変えてよいか・根もとへ引くか など）をどうするか
- `SW405_CODE_RANGE=arm` を実機で付けるかどうか。付けると、今の範囲で箱まで運べていた 4 回（174624・175134・175229・175624。指令 102.7〜104.6°・実際は 99.38° で頭打ち・追従の差 10° 以内）も、動かす前に止まる側になる
- POLICY_MAX_S を何秒にするか（このコードは 8 秒のまま。175417・175728 は 8 秒で止まった）

判定：止めた
````


### verify_432.py

```python
#!/usr/bin/env python3
"""依頼 432 の確かめ (計算だけ・アームなし).
1. 台帳 (so101_trials.csv) の model が so101j の切り替え方式の回の 挟んだ姿勢 (judge.hold) すべてで,
   SW405_LIFT_POS_TOL_MM=3 のとき 持ち上げ以降の道 (after_held_path) を作り, 範囲の確かめを
   道を作る範囲 (今) と 腕の測った範囲 (SW405_CODE_RANGE=arm) の両方で当てる. 1 コマ・運ぶ間の高さ・clear_after held は同じ.
   関節ごとに 道の中の最小・最大と 腕の測った範囲までの残り (度) を出す.
2. SW405_CODE_RANGE=arm の Switch の範囲 (clo・chi) と doc() の code_range. 付けないときは rlo・rhi と同じか.
3. 付けないときの道が 変える前 (引数の switch_405.py) とバイトで同じか (場所2〜5. after_held_path・rise_pose).

  SO101_VAR_ROLL_RANGE=-67,58 R401_PUSH_LIMIT_MM=-12 R401_PUSH_WINDOW_MM=-12 $P so101/check_432/verify_432.py <台帳の置き場所> <変える前の switch_405.py>
  → verify_432.json
"""
import csv
import importlib
import importlib.util
import json
import os
import sys
from pathlib import Path
from types import SimpleNamespace

import numpy as np

HERE = Path(__file__).resolve().parent
for p in (HERE.parent, HERE.parent / "check_401", HERE.parent / "check_392", HERE.parent / "check_399", HERE.parent / "ideal_var",
          HERE.parent / "check_405"):
    if str(p) not in sys.path:
        sys.path.insert(0, str(p))
import run_rule401 as RR  # noqa: E402

ENVS = ("SW405_LIFT_POS_TOL_MM", "SW405_LIFT_ANG_TOL_DEG", "SW405_CODE_RANGE", "SW405_POLICY_MAX_S")


def load_sw(env, path=None, name="switch_405"):
    for k in ENVS:
        os.environ.pop(k, None)
    os.environ.update(env)
    if path is None:
        sys.modules.pop("switch_405", None)
        return importlib.import_module("switch_405")
    spec = importlib.util.spec_from_file_location(name, path)
    m = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(m)
    return m


def joint_table(path, alo, ahi, motors):
    t = {}
    for i, m in enumerate(motors):
        a, b = float(path[:, i].min()), float(path[:, i].max())
        t[m] = {"min": round(a, 2), "max": round(b, 2), "arm_lo": round(float(alo[i]), 2), "arm_hi": round(float(ahi[i]), 2),
                "left_lo": round(a - float(alo[i]), 2), "left_hi": round(float(ahi[i]) - b, 2)}
    return t


def held_check(SW, W, hold5, b, rlo, rhi, alo, ahi, jt):
    V = SW._V()
    try:
        path, fr, inf = SW.after_held_path(W.w.chain, hold5)
    except SW.Refused as x:
        return {"built": False, "why": str(x)}
    other = []
    if inf["carry_z_min_mm"] < V.CARRY_Z_MIN_MM:
        other.append(f"運ぶ間の手先が低い ({inf['carry_z_min_mm']} mm)")
    c = SW.clear_after(path, fr, b["bxy"], b["yaw"], True, jt)
    if not c["ok"]:
        other.append(c["why"])
    rule, arm = SW.check_steps_range(path, rlo, rhi), SW.check_steps_range(path, alo, ahi)
    return {"built": True, "frames": len(path), "lift_pose": inf["lift_pose"], "lift_pos_err_mm": inf["lift_pos_err_mm"],
            "carry_z_min_mm": inf["carry_z_min_mm"], "clearance_mm": c["dist"],
            "guard_rule": " / ".join([x for x in [rule] + other if x]) or "通った",
            "guard_arm": " / ".join([x for x in [arm] + other if x]) or "通った",
            "joints": joint_table(path, alo, ahi, SW.R.MOTORS)}


def main():
    log, before = Path(sys.argv[1]), sys.argv[2]
    plan, rlo, rhi = RR.load_plan(RR.PLAN)
    W = RR.world()
    jt = plan.get("jaw_table_min_mm", -11.0)
    SW3 = load_sw({"SW405_LIFT_POS_TOL_MM": "3"})
    V = SW3._V()
    alo, ahi = [np.asarray(x, np.float64) for x in V.arm_range()]
    out = {"arm_range": {"file": V.ARM_RANGE_JSON, "lo": np.round(alo, 2).tolist(), "hi": np.round(ahi, 2).tolist()},
           "rule_range": {"lo": np.round(rlo, 2).tolist(), "hi": np.round(rhi, 2).tolist()}, "trials": []}
    with open(log / "so101_trials.csv", newline="") as f:
        names = [r[0] for r in list(csv.reader(f))[1:] if len(r) > 4 and r[4].startswith("so101j")]
    for t in names:
        d = json.loads((log / "so101" / t / "trial.json").read_text())
        s = d.get("switch405")
        if not s:
            continue
        assert RR.sha256(RR.PLAN) == s["plan_sha256"], f"道の元 (PLAN) が記録の回と違う: {t}"
        for a in s["attempts"]:
            j = a.get("judge") or {}
            if j.get("class") != "held":
                continue
            b = {"bxy": np.asarray(a["block_xy_mm"], np.float64), "yaw": float(a["block_yaw_deg"])}
            r = held_check(SW3, W, np.asarray(j["hold"][:5], np.float64), b, rlo, rhi, alo, ahi, jt)
            out["trials"].append({"trial": t, "place": d["place"], "attempt": a["attempt"], "recorded_status": s["status"],
                                  "recorded_stop_why": s["stop_why"], "hold": j["hold"], **r})

    # 2. Switch の範囲
    args = SimpleNamespace(policy_max_s=None)
    sw = {}
    for nm, env in (("none", {}), ("arm", {"SW405_CODE_RANGE": "arm"}), ("policy_s", {"SW405_POLICY_MAX_S": "12"})):
        M = load_sw(env)
        x = M.Switch(args, rlo, rhi, W=W, plan=(plan, rlo, rhi))
        sw[nm] = {"clo_is_rlo": bool(np.array_equal(x.clo, rlo) and np.array_equal(x.chi, rhi)), "policy_max_s": x.policy_max_s,
                  "code_range": x.doc()["code_range"]}
    M = load_sw({"SW405_CODE_RANGE": "rule"})
    try:
        M.Switch(args, rlo, rhi, W=W, plan=(plan, rlo, rhi))
        sw["bad_value"] = "止まらない"
    except ValueError as e:
        sw["bad_value"] = f"止まる ({e})"
    out["switch"] = sw

    # 3. 付けないときの道が変える前と同じか
    SWn = load_sw({})
    SWo = load_sw({}, before, "switch_405_before")
    same = []
    for place in (2, 3, 4, 5):
        e = plan["episodes"][place - 1]
        bb, _ = RR.prepare(W, plan, place, rlo, rhi, None, (e["pixel"][0], e["pixel"][1], 0.0), False, ("conflict", "deep_at_zero"), False)
        fr = bb["v"]["frames"]
        g5 = bb["path"][fr["GRASP_OPEN"]][:5]
        _, z_above, _, _ = W.sh.point(bb["path"][fr["ABOVE_BLOCK"]][:5])
        r = {"place": place}
        for nm, f in (("after_held_path", lambda M: M.after_held_path(W.w.chain, g5)[0]),
                      ("rise_pose", lambda M: M.rise_pose(W, g5, z_above)[0])):
            try:
                pn, po = f(SWn), f(SWo)
                r[nm] = bool(pn.tobytes() == po.tobytes())
            except Exception as x:
                r[nm] = f"止まる ({type(x).__name__}: {x})"
        same.append(r)
    out["same_as_before"] = same
    out["policy_max_s_default"] = [SWn.POLICY_MAX_S, SWo.POLICY_MAX_S]
    (HERE / "verify_432.json").write_text(json.dumps(out, ensure_ascii=False, indent=1, default=lambda x: x.tolist()) + "\n")
    for r in out["trials"]:
        wf = r.get("joints", {}).get("wrist_flex", {})
        print(r["trial"][-6:], r["place"], r["recorded_status"], "|", r.get("guard_rule", r.get("why")), "|", r.get("guard_arm", ""),
              "| wf max", wf.get("max"), "left", wf.get("left_hi"))
    print(json.dumps(sw, ensure_ascii=False))
    print(json.dumps(same, ensure_ascii=False), out["policy_max_s_default"])


if __name__ == "__main__":
    main()
```


### switch_405.py の変更（依頼432）

```diff
diff --git a/so101/check_405/switch_405.py b/so101/check_405/switch_405.py
index 2a35c93..05d79cf 100644
--- a/so101/check_405/switch_405.py
+++ b/so101/check_405/switch_405.py
@@ -18,7 +18,7 @@ run_so101_policy.py --switch-405 が使う (付けなければ run_so101_policy.
   5. π0.5 の区間 (run_so101_policy.run_trial をそのまま. 安全範囲・--max-step-deg・--blend・--exec-steps・先に問い合わせる).
      記録の口 (_Watch) で 1 コマずつ見て:
        - 閉じた: 爪の指令 (action) が CMD_OPEN (25) 以上のあと CMD_CLOSE (20) を割ったコマで π0.5 の答えを使うのをやめる
-       - 長すぎる: π0.5 の区間 (渡してから. 一時停止・手直しの間は数えない) が --policy-max-s (既定 8 秒) を超えたら止めて
+       - 長すぎる: π0.5 の区間 (渡してから. 一時停止・手直しの間は数えない) が --policy-max-s (既定 8 秒. 環境変数 SW405_POLICY_MAX_S でも. 依頼 432) を超えたら止めて
          「閉じなかった」(not_closed. 失敗 6). 推論の答えが INFER_TIMEOUT_S (10 秒) で返らなければ 例外として その場で止める
        - q: その場で止める (policy_quit. 結果は聞かない)
      --chunk-full: 1 回の答えを最後のコマまで流し切ってから 次を問い合わせる (run_trial の --no-prefetch と同じ形・答えの全部のコマ)
@@ -28,7 +28,9 @@ run_so101_policy.py --switch-405 が使う (付けなければ run_so101_policy.
      落ち着いたとし, その読みが 9〜12 = 挟んだ / 5 未満 = 空 / ほか・JUDGE.max_wait (30) コマで落ち着かない = あいまい (空として扱う).
      境目は so101f 30 回・so101g 7 回・お手本 64 本の記録から (analyze_405.py → judge_405.md)
   7. 挟んだ: 今の姿勢から rule_351 の LIFT 以降と同じ形の道 (真上 80 mm (V.lift_pose) → 箱の上の真上 → 箱の上 → 離す → HOME.
-     コマ数・爪の値も同じ) を作り, ガード (1 コマの変化・道を作る範囲・運ぶ間の高さ・シム) を当てて送る. 持ち上げ (LIFT のコマ) で
+     コマ数・爪の値も同じ) を作り, ガード (1 コマの変化・道を作る範囲・運ぶ間の高さ・シム) を当てて送る.
+     SW405_CODE_RANGE=arm (依頼 432): π0.5 のあとのコードの道 (7・8 の道. 読み直したあとの rule_401 の道は除く) の範囲の確かめを
+     手で測った腕の範囲 (var_lib_314.arm_range) で行う. 付けなければ 道を作る範囲 (お手本の幅 ±10°) のまま. 持ち上げ (LIFT のコマ) で
      爪の読みをもう一度見て (直近 3 コマの中央値) 挟んだの幅の外なら その場で止めて「落とした」(dropped. 失敗 3. 自動では拾い直さない)
   8. 空・あいまい: 爪を閉じる前の開き (直前 15 コマの指令の最大. 道を作る範囲の上限まで) に開き (10 コマ), 真上へ 渡す所の高さまで戻る
      (recover_377.Shifter で 爪の傾き・閉じる向きのまま. 解けなければ 持ち上げと同じ V.lift_pose). 外したのが MAX_ATTEMPTS (2) 回目なら そこで止めて「2 回外した」(missed_max. 失敗 2).
@@ -69,7 +71,6 @@ JUDGE = {"start": 3, "n": 4, "w": 0.5, "max_wait": 30, "held_min": HELD_MIN, "he
 CLOSE_RAMP = 5                          # 閉じる指令を GRASP_CLOSED へ この コマ数で (入口の B の爪 20 の内側)
 LIFT_CHECK_FRAMES = 3                   # 持ち上げの確かめ: 直近この コマの爪の読みの中央値
 MAX_ATTEMPTS = 2                        # π0.5 に渡すのは 2 回まで (2 回外したら止める)
-POLICY_MAX_S = 8.0                      # π0.5 の区間の上限 (秒. 記録: so101f・g でブロックの上の高さから最初の閉じまで 成功は 2.2〜5.9 秒)
 READ_KEEP_FRAC = 0.85                   # 読み直しの赤の面積が 1 回目のこの割合より少なければ 腕で隠れたとする (依頼 376 と同じ 85%)
 OPEN_FRAMES = 10                        # 空のあと 爪を開くコマ (var_lib_314.TEMPLATE["close"] と同じ)
 RISE_MM_PER_FRAME = 80.0 / 24           # 真上へ戻る速さ (持ち上げ 80 mm / 24 コマ と同じ)
@@ -94,6 +95,18 @@ def _env_tol(name, default):
 
 LIFT_POS_TOL_MM = _env_tol("SW405_LIFT_POS_TOL_MM", 1.0)    # V.lift_pose の解けた位置の差がこれ以上なら 解けないとする (依頼 431. 既定 1.0)
 LIFT_ANG_TOL_DEG = _env_tol("SW405_LIFT_ANG_TOL_DEG", 2.0)  # 同じく 向きの差 (既定 2.0°). 持ち上げ・真上へ戻る (rise_pose) の両方
+POLICY_MAX_S = _env_tol("SW405_POLICY_MAX_S", 8.0)          # π0.5 の区間の上限 (秒. 依頼 432 で環境変数に. --policy-max-s があればそちら.
+#                                                             記録: so101f・g でブロックの上の高さから最初の閉じまで 成功は 2.2〜5.9 秒)
+CODE_RANGE_ENV = "SW405_CODE_RANGE"     # 依頼 432: arm = π0.5 のあとのコードの道の範囲の確かめを 手で測った腕の範囲 (var_lib_314.arm_range) で.
+#                                         付けなければ 道を作る範囲 (割り振りの rule_range) のまま. rule_401 の道・推論の安全範囲は変えない
+
+
+def code_range_mode():
+    """→ "" (今と同じ) か "arm". ほかの値は ValueError (始める前に止める)"""
+    v = os.environ.get(CODE_RANGE_ENV, "").strip()
+    if v not in ("", "arm"):
+        raise ValueError(f"{CODE_RANGE_ENV} は arm だけ (付けなければ今と同じ): {v!r}")
+    return v
 STATUS = {"refused": "動かさずに止めた", "stopped": "止めた (スペース・q・追従の差)", "policy_quit": "π0.5 の区間で q",
           "carried": "挟んで箱へ運んだ", "dropped": "持ち上げで落とした", "missed_max": "2 回外した", "not_closed": "閉じなかった (区間の上限)",
           "retry_refused": "やり直せない (読めない・道が作れない)", "lift_refused": "持ち上げの道が作れない", "not_started": "始める前に終わった"}
@@ -366,6 +379,12 @@ class Switch:
         else:
             plan, self.rlo, self.rhi = plan
         self.plan = plan
+        self.code_mode = code_range_mode()      # 依頼 432: π0.5 のあとのコードの道 (持ち上げ〜戻る・外したあと) の範囲の確かめ
+        if self.code_mode == "arm":
+            lo_a, hi_a = _V().arm_range()
+            self.clo, self.chi = np.asarray(lo_a, np.float64), np.asarray(hi_a, np.float64)
+        else:
+            self.clo, self.chi = self.rlo, self.rhi
         self.W = W if W is not None else RR.world()
         self._prepare = prepare or RR.prepare
         self.retry_shift = float(getattr(args, "retry_shift_mm", 0.0) or 0.0)
@@ -557,7 +576,7 @@ class Switch:
         except Refused as x:
             att["after_path"] = getattr(x, "lift_tol", {})
             return self._end("lift_refused", "持ち上げ", str(x), runner)
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         if inf["carry_z_min_mm"] < _V().CARRY_Z_MIN_MM:
             bad = (bad + " / " if bad else "") + f"運ぶ間の手先が低い ({inf['carry_z_min_mm']} mm)"
         c = clear_after(path, fr, b["bxy"], b["yaw"], True, self.plan.get("jaw_table_min_mm", -11.0))
@@ -601,7 +620,7 @@ class Switch:
             fr = dict(fr, TABLE_FROM=0)
         else:                            # 依頼の形: 下で開く → 真上へ (腕と机は 開いた所から見る)
             path, fr = segment(hold, [("OPENED", np.r_[hold[:5], g_open], OPEN_FRAMES), ("RISEN", np.r_[q_up, g_open], n_rise)])
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         c = clear_after(path, fr, b["bxy"], b["yaw"], False, self.plan.get("jaw_table_min_mm", -11.0))
         att["open_rise"] = {"order": "rise_first" if self.rise_first else "open_first", "open_grip": round(g_open, 2), "rise_mm": round(dz, 1),
                             "rise_back_mm": back, "frames": len(path), "clearance_mm": c["dist"]}
@@ -620,7 +639,7 @@ class Switch:
         code = b["path"][:fr["ABOVE_BLOCK"] + 1]
         con, cfr = segment(up6, [("ABOVE_BLOCK", code[-1], V.DETOUR_BACK)])
         path = np.vstack([con, code[::-1][1:]])
-        bad = check_steps_range(path, self.rlo, self.rhi)
+        bad = check_steps_range(path, self.clo, self.chi)
         c = clear_after(con, cfr, b["bxy"], b["yaw"], "connect", self.plan.get("jaw_table_min_mm", -11.0))
         att["go_home"] = {"frames": len(path), "clearance_connect_mm": c["dist"]}
         if bad or not c["ok"]:
@@ -714,7 +733,7 @@ class Switch:
                 nb, ninfo = got
                 na6 = nb["path"][nb["v"]["frames"]["ABOVE_BLOCK"]]
                 con, cfr = segment(up, [("ABOVE_BLOCK", na6, _V().DETOUR_BACK)])
-                bad = check_steps_range(con, self.rlo, self.rhi)
+                bad = check_steps_range(con, self.clo, self.chi)
                 c = clear_after(con, cfr, nb["bxy"], nb["yaw"], "connect", self.plan.get("jaw_table_min_mm", -11.0))
                 att["reread"] = {"where": "rise", "info": {k: ninfo.get(k) for k in ("block_pixel", "block_yaw_deg", "status")},
                                  "connect_clearance_mm": c["dist"], "connect_bad": bad or c["why"]}
@@ -796,7 +815,9 @@ class Switch:
     def doc(self):
         d = {"request": 405, "what": "切り替え方式 (コード → π0.5 → コード) の 1 試行. 判定・やり直し・コードの道",
              "joints": R.MOTORS, "fps": R.FPS, "judge": JUDGE, "cmd_open": CMD_OPEN, "cmd_close": CMD_CLOSE, "max_attempts": MAX_ATTEMPTS,
-             "lift_tol": {"pos_mm": LIFT_POS_TOL_MM, "ang_deg": LIFT_ANG_TOL_DEG},
+             "lift_tol": {"pos_mm": LIFT_POS_TOL_MM, "ang_deg": LIFT_ANG_TOL_DEG}, "policy_max_s": self.policy_max_s,
+             "code_range": {"mode": self.code_mode or "rule", "lo": np.round(self.clo, 3).tolist(), "hi": np.round(self.chi, 3).tolist(),
+                            "file": (os.environ.get(_V().ARM_RANGE_ENV) or _V().ARM_RANGE_JSON) if self.code_mode == "arm" else ""},
              "plan_sha256": self.RR.sha256(self.RR.PLAN), **json.loads(json.dumps(self.info, default=_js))}
         return d
 
```


## so101j の実機33回

### so101j の実機33回と、1つの式・前の補正の回の台帳の行（so101_trials.csv から）

```csv
trial,started_at,operator,place,model,step,exec_steps,execute,result,frames,frames_model,frames_correct,frames_pause,queries,latency_median_s,latency_max_s,clipped_frames,record_dir,prefetch,payload_bytes,stall_median_s,stall_max_s,stall_total_s,fail_reason,currents,play_speed,rtc,rtc_d_median,rtc_s_median,jump_median_deg,jump_max_deg,jump_over3,jump_target_median_deg,jump_target_max_deg,jump_target_over3,rtc_s_over
so101_20261202_142912,20261202_142912,code,2,code_rule401_wide425_corr426,rule_401,,1,failure,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_142912,,,,,,2,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_143214,20261202_143214,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_143214,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_143743,20261202_143743,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_143743,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_143917,20261202_143917,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_143917,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_144040,20261202_144040,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_144040,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_144911,20261202_144911,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_144911,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_145338,20261202_145338,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_145338,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_145926,20261202_145926,code,2,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_145926,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150159,20261202_150159,code,3,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150159,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150321,20261202_150321,code,3,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150321,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150410,20261202_150410,code,3,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150410,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150509,20261202_150509,code,3,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150509,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150606,20261202_150606,code,3,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150606,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150736,20261202_150736,code,4,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150736,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150827,20261202_150827,code,4,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150827,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150907,20261202_150907,code,4,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150907,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_150949,20261202_150949,code,4,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_150949,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_151037,20261202_151037,code,4,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_151037,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_151124,20261202_151124,code,5,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_151124,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_151320,20261202_151320,code,5,code_rule401_corr427,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_151320,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162256,20261202_162256,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162256,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162415,20261202_162415,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162415,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162544,20261202_162544,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162544,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162647,20261202_162647,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162647,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162802,20261202_162802,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162802,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_162910,20261202_162910,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_162910,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163011,20261202_163011,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163011,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163205,20261202_163205,code,3,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163205,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163256,20261202_163256,code,3,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163256,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163348,20261202_163348,code,3,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163348,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163450,20261202_163450,code,3,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163450,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163553,20261202_163553,code,3,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163553,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163646,20261202_163646,code,4,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163646,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163730,20261202_163730,code,4,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163730,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163816,20261202_163816,code,4,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163816,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_163901,20261202_163901,code,4,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_163901,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164011,20261202_164011,code,4,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164011,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164101,20261202_164101,code,5,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164101,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164230,20261202_164230,code,5,code_rule401_model429,rule_401,,1,,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164230,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164330,20261202_164330,code,5,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164330,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164420,20261202_164420,code,2,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164420,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164610,20261202_164610,code,5,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164610,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_164707,20261202_164707,code,5,code_rule401_model429,rule_401,,1,success,251,0,0,0,0,,,0,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_164707,,,,,,,off,1.0,0,,,,,,,,,,0,10.0
so101_20261202_170825,20261202_170825,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,,148,61,0,0,4,0.406,0.415,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_170825,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,lift_refused,1,0,held,9.69,,16,"-11.9,12.3,12.3",61,持ち上げ,持ち上げの姿勢が解けない (位置 1.1 mm・向き 0.0°),84,3,416.2,161.1,38.9,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_170956,20261202_170956,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,failure,328,115,0,0,7,0.401,0.464,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_170956,1,,,,,2,off,1.0,0,,,,,,,,,,10,5.0,retry_refused,1,0,empty,1.02,,22,"-7.4,-1.8,10.4",115,読み直し (HOME),yes でない,209,4,416.6,159.5,37.1,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_171159,20261202_171159,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,252,60,0,0,4,0.395,0.432,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_171159,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,16,"-4.9,12.8,13.5",60,,,187,5,421.1,154.3,38.2,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_171304,20261202_171304,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,,162,74,0,0,5,0.417,0.457,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_171304,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,lift_refused,1,0,held,9.69,,16,"-6.4,9.0,7.7",74,持ち上げ,持ち上げの姿勢が解けない (位置 1.1 mm・向き 0.0°. 許し 1 mm・2°),84,4,416.3,163.7,-44.0,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_173424,20261202_173424,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,266,76,0,0,5,0.444,0.868,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173424,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,16,"-6.5,9.6,7.0",76,,,187,3,415.7,163.4,39.4,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_173526,20261202_173526,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,268,78,0,0,5,0.405,0.456,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173526,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.76,,16,"-5.3,13.2,10.1",78,,,187,3,414.6,164.6,40.9,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_173624,20261202_173624,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,263,73,0,0,5,0.416,0.494,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173624,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,16,"-12.7,13.9,13.8",73,,,187,3,422.6,159.5,41.3,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_173759,20261202_173759,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,288,98,0,0,6,0.413,0.498,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173759,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,15,"-11.6,0.9,8.8",98,,,186,4,418.5,163.3,2.0,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_173853,20261202_173853,AI,5,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,327,135,0,0,8,0.411,0.523,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173853,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,18,"-8.8,4.2,11.1",135,,,189,3,414.7,160.2,-0.3,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174003,20261202_174003,AI,2,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,271,81,0,0,5,0.381,0.438,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174003,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,15,"-6.0,11.9,7.9",81,,,186,4,247.5,169.4,-19.9,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174109,20261202_174109,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,failure,276,65,0,0,5,0.465,0.5,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174109,1,,,,,2,off,1.0,0,,,,,,,,,,10,5.0,retry_refused,1,0,empty,1.02,,23,"-1.4,19.1,15.1",65,読み直し (HOME),ブロックが 場所3 の目印から 128 画素 離れている (許し 40 画素). 置き直す,208,3,166.3,305.4,-26.1,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174149,20261202_174149,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,failure,281,70,0,0,5,0.423,0.474,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174149,1,,,,,2,off,1.0,0,,,,,,,,,,10,5.0,retry_refused,1,0,empty,1.02,,21,"-7.6,18.3,14.6",70,読み直し (HOME),ブロックが 場所4 の目印から 176 画素 離れている (許し 40 画素). 置き直す,206,5,284.6,251.8,-23.2,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174252,20261202_174252,AI,2,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,295,109,0,0,7,0.423,0.651,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174252,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,13,"-8.1,1.2,15.8",109,,,184,2,242.2,169.1,27.6,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174332,20261202_174332,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,280,90,0,0,6,0.406,0.48,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174332,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,16,"-11.8,9.6,9.2",90,,,187,3,164.8,306.3,21.4,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174407,20261202_174407,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,279,89,0,0,6,0.445,0.486,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174407,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.76,,16,"-8.2,2.3,14.6",89,,,187,3,285.1,254.2,25.8,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174517,20261202_174517,AI,2,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,255,64,0,0,4,0.43,0.463,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174517,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,17,"-11.5,13.2,12.2",64,,,188,3,243.1,172.8,-0.8,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174624,20261202_174624,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,264,74,0,0,5,0.408,0.437,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174624,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.76,,16,"-8.7,18.0,14.2",74,,,187,3,164.1,307.3,1.0,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174702,20261202_174702,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,259,69,0,0,5,0.423,0.457,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174702,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,16,"-13.5,6.6,13.1",69,,,187,3,283.2,256.8,1.5,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_174939,20261202_174939,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,,147,59,0,0,4,0.578,1.103,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174939,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,lift_refused,1,0,held,9.62,,17,"-1.5,19.1,13.4",59,持ち上げ,持ち上げの道がガードに当たる: 道を作る範囲の外 (wrist_flex),85,3,161.4,306.1,-22.3,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175030,20261202_175030,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,,507,187,0,0,12,0.61,2.529,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175030,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,stopped,2,1,empty|held,1.02|9.76,|,22|16,"-0.5,22.5,15.5|-11.4,12.5,10.2",78|109,持ち上げ〜戻る,code_after_held の 24 コマ目で 実際の関節が予想から 10.2° (許し 10°),315,5,163.2,301.9,-28.3,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175134,20261202_175134,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,577,177,0,0,12,0.433,0.572,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175134,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,2,1,empty|held,1.08|9.76,|,23|16,"-1.2,22.0,14.9|-13.1,13.2,12.2",72|105,,,395,5,162.5,304.0,-25.0,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175229,20261202_175229,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,251,62,0,0,4,0.438,0.627,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175229,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,15,"-6.8,15.9,14.6",62,,,186,3,288.5,250.8,-20.9,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175336,20261202_175336,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,,153,65,0,0,5,0.923,1.951,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175336,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,lift_refused,1,0,held,9.69,,17,"-1.0,20.2,13.2",65,持ち上げ,持ち上げの道がガードに当たる: 道を作る範囲の外 (wrist_flex),85,3,163.2,306.1,-23.7,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175417,20261202_175417,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,failure,161,91,0,0,7,1.641,2.251,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175417,1,,,,,6,off,1.0,0,,,,,,,,,,10,5.0,not_closed,1,0,,,,,,91,1 回目の π0.5,8 秒たっても閉じない,68,2,161.6,303.4,-31.6,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175624,20261202_175624,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,248,58,0,0,4,1.119,1.304,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175624,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.76,,16,"-8.6,16.1,13.2",58,,,187,3,283.5,252.7,-23.2,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175728,20261202_175728,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,failure,454,171,0,0,13,0.918,3.297,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175728,1,,,,,6,off,1.0,0,,,,,,,,,,10,5.0,not_closed,2,1,empty|,1.02|,|,21|,"-0.3,20.8,16.2|",65|106,2 回目の π0.5,8 秒たっても閉じない,274,9,166.0,302.2,-25.8,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_175829,20261202_175829,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,265,75,0,0,5,0.689,0.787,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175829,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.76,,16,"-8.9,15.2,13.3",75,,,187,3,281.1,255.7,-15.0,0,0,0.0,8.0,switch405_plan.json,1
so101_20261202_180853,20261202_180853,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,252,60,0,0,4,0.683,0.704,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_180853,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,17,"-3.1,18.5,13.2",60,,,188,4,165.7,305.0,-17.4,0,0,0.0,15.0,switch405_plan.json,1
so101_20261202_180941,20261202_180941,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,245,57,0,0,4,0.637,0.693,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_180941,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.69,,15,"-8.4,13.4,14.7",57,,,186,2,281.7,253.1,-18.7,0,0,0.0,15.0,switch405_plan.json,1
so101_20261202_181043,20261202_181043,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,294,104,0,0,7,0.611,0.649,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181043,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.62,,16,"-9.1,6.2,18.9",104,,,187,3,164.4,304.5,-37.0,0,0,0.0,15.0,switch405_plan.json,1
so101_20261202_181306,20261202_181306,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,513,114,0,0,8,0.651,0.684,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181306,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,2,1,empty|held,1.02|9.69,|,21|16,"-4.2,18.6,13.4|-12.0,2.6,17.4",55|59,,,393,6,281.7,253.8,-35.1,0,0,0.0,15.0,switch405_plan.json,1
so101_20261202_181453,20261202_181453,AI,3,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,309,117,0,0,8,0.638,0.679,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181453,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,1,0,held,9.62,,17,"-9.4,8.6,19.4",117,,,188,4,163.4,303.0,-38.2,0,0,0.0,15.0,switch405_plan.json,1
so101_20261202_181742,20261202_181742,AI,4,so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1),2999,30,1,success,513,117,0,0,8,0.621,0.675,,/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181742,1,,,,,,off,1.0,0,,,,,,,,,,10,5.0,carried,2,1,empty|held,1.02|9.69,|,19|16,"-4.1,19.0,17.1|-11.7,2.4,17.0",59|58,,,390,6,286.9,253.2,-36.9,0,0,0.0,15.0,switch405_plan.json,1
```


### so101j の実機27回の窓2 のターミナルの記録（全量）

最初の行の `# 窓2：…` は、案内のコメントをそのまま貼ったもので、zsh がコマンドとして読んで出したエラーが次の行に出ている。

```
Last login: Wed Dec  2 16:55:16 on ttys001
(base) shimazueiichi@shimadzueiichinoMacBook-Pro ~ % # 窓2：A（場所5）
cd ~/r2r2r-scripts
SO101_RANGE_MARGIN=40 RAW=/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_code_rule401_flip_grasp_v1/raw_episodes MODEL="so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1)" PLACES="5" N=6 R401_PICK=min_elev SW405_RISE_FIRST=1 R401_RESELECT=1 R401_PUSH_LIMIT_MM=-14 R401_PUSH_WINDOW_MM=-14 R401_ALLOW_CONFLICT=1 R401_ALLOW_DEEP=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=40 R401_START_TOL_DEG=25 ./so101/check_405/session_405.sh
zsh: command not found: #

==================================================
  場所5 の 1 回目 (全 6 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[2685]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106b103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136c543a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[2685]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106b103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136c543f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [416.2, 161.1]・向き 38.9°・目印から 10.7 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.96・予想 -6.65・沈み最大 -24.91 mm. 下りる間 固定側 指令 9.32/予想 8.38・動く爪 23.98/22.63 mm. 持ち上げの始めの予想 -9.02 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.5, 'arm_box': 33.1, 'arm_base': 199.4, 'arm_block_pad10': 29.0, 'held_table': 68.7, 'held_box': 34.6, 'jaw_table_grasp': -4.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 10.77° (面 -90°・爪の傾き 22.0°・手首の回り -36.93°. 小さい順の 2 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[2685]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106b103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x302294778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[2685]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106b103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3022947c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +12.4   +55.9   -71.6   +85.7   -37.6   +58.6
[FIRST ] 最初の目標       +13.0   +55.4   -72.6   +84.9   -38.0   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.0   +57.8   -62.0   +72.7   -38.2   +58.9  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
[SW405 ] 持ち上げの道が作れない: 持ち上げ. 持ち上げの姿勢が解けない (位置 1.1 mm・向き 0.0°)
Map: 100%|███████████████████████████████████████████████| 148/148 [00:00<00:00, 2700.00 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: -------------------------------------------
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_170825 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] lift_refused (持ち上げの道が作れない). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 1 回目 (全 6 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[2805]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10481c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1666843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[2805]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10481c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1666843f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [416.6, 159.5]・向き 37.1°・目印から 10.3 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 1.06・予想 -7.04・沈み最大 -24.45 mm. 下りる間 固定側 指令 11.49/予想 17.29・動く爪 35.07/22.96 mm. 持ち上げの始めの予想 -9.27 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.1, 'arm_box': 33.1, 'arm_base': 182.7, 'arm_block_pad10': 31.4, 'held_table': 67.4, 'held_box': 33.6, 'jaw_table_grasp': 1.1}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -11.81° (面 +0°・爪の傾き 11.0°・手首の回り 54.38°. 小さい順の 3 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[2805]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10481c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e4b4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[2805]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10481c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e4b47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +13.5   +40.4   -47.7   +88.2   +52.5   +58.6
[FIRST ] 最初の目標       +14.1   +38.3   -49.6   +88.7   +52.1   +59.8  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +14.0   +42.7   -49.7   +83.9   +52.1   +60.0  (かかった 0.40 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・22 コマ)
やり直しの道も 決まりの外の口を使います. 流すなら yes と打つ > [SW405 ] やり直せない (読めない・道が作れない): 読み直し (HOME). yes でない
Map: 100%|███████████████████████████████████████████████| 328/328 [00:00<00:00, 2970.13 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_170956 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] retry_refused (やり直せない (読めない・道が作れない)). 渡した 1 回・判定 empty・爪の読み 1.02

==================================================
  場所5 の 2 回目 (全 6 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[3222]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1643a03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3222]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1643a03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [421.1, 154.3]・向き 38.2°・目印から 13.8 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.31・予想 -7.39・沈み最大 -25.31 mm. 下りる間 固定側 指令 8.93/予想 7.9・動く爪 23.08/21.78 mm. 持ち上げの始めの予想 -8.11 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.7, 'arm_box': 33.1, 'arm_base': 200.3, 'arm_block_pad10': 27.4, 'held_table': 68.5, 'held_box': 34.8, 'jaw_table_grasp': -6.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 12.86° (面 -90°・爪の傾き 25.0°・手首の回り -37.62°. 小さい順の 3 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[3222]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ceac778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3222]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ceac7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +14.0   +53.0   -65.1   +79.4   -37.1   +58.6
[FIRST ] 最初の目標       +14.4   +52.8   -65.4   +77.7   -37.8   +58.7  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.7   +56.7   -58.5   +67.2   -38.6   +59.1  (かかった 0.39 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 252/252 [00:00<00:00, 3164.94 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 		: 2 / 16 / key frame
-------------------------------------------
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_171159 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 3 回目 (全 6 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[3369]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d6ac3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3369]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d6ac3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [416.3, 163.7]・向き -44.0°・目印から 12.4 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.85・予想 -11.25・沈み最大 -24.7 mm. 下りる間 固定側 指令 9.7/予想 4.7・動く爪 25.46/22.43 mm. 持ち上げの始めの予想 -13.27 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.8, 'arm_box': 33.1, 'arm_base': 193.2, 'arm_block_pad10': 25.5, 'held_table': 68.7, 'held_box': 33.9, 'jaw_table_grasp': -2.6}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 7.42° (面 +0°・爪の傾き 20.0°・手首の回り -29.43°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[3369]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176ce4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3369]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1025683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176ce47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +13.5   +46.8   -56.8   +82.0   -28.9   +58.6
[FIRST ] 最初の目標       +14.1   +46.4   -58.8   +82.4   -29.5   +59.1  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.5   +53.1   -60.6   +78.2   -30.1   +58.8  (かかった 0.39 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
[SW405 ] 持ち上げの道が作れない: 持ち上げ. 持ち上げの姿勢が解けない (位置 1.1 mm・向き 0.0°. 許し 1 mm・2°)
Map: 100%|███████████████████████████████████████████████| 162/162 [00:00<00:00, 2944.44 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_171304 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] lift_refused (持ち上げの道が作れない). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 3 回目 (全 6 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================
q
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % # 窓2：A（場所5。1回目は記録が残っているので、2回目から続きます）
cd ~/r2r2r-scripts
SW405_LIFT_POS_TOL_MM=3 SO101_RANGE_MARGIN=40 RAW=/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_code_rule401_flip_grasp_v1/raw_episodes MODEL="so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1)" PLACES="5" N=7 R401_PICK=min_elev SW405_RISE_FIRST=1 R401_RESELECT=1 R401_PUSH_LIMIT_MM=-14 R401_PUSH_WINDOW_MM=-14 R401_ALLOW_CONFLICT=1 R401_ALLOW_DEEP=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=40 R401_START_TOL_DEG=25 ./so101/check_405/session_405.sh
zsh: command not found: #

==================================================
  場所5 の 3 回目 (全 7 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[4156]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027783a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1434fc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4156]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027783f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1434fc3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [415.7, 163.4]・向き 39.4°・目印から 11.8 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.85・予想 -12.39・沈み最大 -24.81 mm. 下りる間 固定側 指令 9.36/予想 3.22・動く爪 24.42/22.24 mm. 持ち上げの始めの予想 -14.01 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.2, 'arm_box': 33.1, 'arm_base': 191.8, 'arm_block_pad10': 25.7, 'held_table': 68.8, 'held_box': 34.5, 'jaw_table_grasp': -4.4}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 9.96° (面 -90°・爪の傾き 21.0°・手首の回り -36.29°. 小さい順の 2 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4156]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027783a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174cd4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4156]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027783f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174cd47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +13.5   +45.6   -53.5   +79.3   -35.6   +58.6
[FIRST ] 最初の目標       +14.0   +44.8   -56.0   +79.7   -36.4   +59.2  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.5   +50.6   -55.6   +73.6   -36.9   +59.6  (かかった 0.44 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 266/266 [00:00<00:00, 3009.11 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
-------------------------------------------
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173424 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 4 回目 (全 7 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[4286]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10675c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1304743a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4286]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10675c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1304743f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [414.6, 164.6]・向き 40.9°・目印から 12.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.76・予想 -11.9・沈み最大 -24.75 mm. 下りる間 固定側 指令 9.61/予想 3.85・動く爪 24.77/22.26 mm. 持ち上げの始めの予想 -13.74 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.9, 'arm_box': 33.1, 'arm_base': 192.3, 'arm_block_pad10': 25.5, 'held_table': 68.8, 'held_box': 34.3, 'jaw_table_grasp': -3.8}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 8.94° (面 -90°・爪の傾き 20.0°・手首の回り -34.78°. 小さい順の 2 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4286]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10675c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ce98778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4286]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10675c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ce987c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +13.5   +47.3   -57.5   +82.1   -34.1   +58.6
[FIRST ] 最初の目標       +14.0   +46.8   -59.7   +82.2   -34.8   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.4   +52.5   -58.4   +75.5   -35.4   +59.8  (かかった 0.40 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 268/268 [00:00<00:00, 3240.95 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173526 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.76

==================================================
  場所5 の 5 回目 (全 7 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[4397]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1695603a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4397]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1695603f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [422.6, 159.5]・向き 41.3°・目印から 15.9 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 6.16・予想 -6.35・沈み最大 -24.96 mm. 下りる間 固定側 指令 9.36/予想 8.67・動く爪 24.09/22.57 mm. 持ち上げの始めの予想 -7.45 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.6, 'arm_box': 33.1, 'arm_base': 199.5, 'arm_block_pad10': 29.3, 'held_table': 68.6, 'held_box': 34.3, 'jaw_table_grasp': -4.5}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き 10.4° (面 -90°・爪の傾き 23.0°・手首の回り -33.77°. 小さい順の 3 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4397]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f938778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4397]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f9387c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +13.1   +56.0   -71.6   +84.6   -34.5   +58.6
[FIRST ] 最初の目標       +13.7   +55.3   -73.0   +84.4   -35.1   +59.2  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +13.6   +57.3   -65.2   +75.0   -35.2   +59.5  (かかった 0.42 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 263/263 [00:00<00:00, 3190.36 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173624 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 6 回目 (全 7 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[4534]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027c83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15cb2c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4534]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027c83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15cb2c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [418.5, 163.3]・向き 2.0°・目印から 13.9 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 2.85・予想 -6.1・沈み最大 -24.33 mm. 下りる間 固定側 指令 11.08/予想 13.43・動く爪 32.28/23.36 mm. 持ち上げの始めの予想 -10.25 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.9, 'arm_box': 33.1, 'arm_base': 196.1, 'arm_block_pad10': 28.9, 'held_table': 68.2, 'held_box': 32.9, 'jaw_table_grasp': 2.9}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -6.66° (面 +0°・爪の傾き 13.0°・手首の回り 18.56°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4534]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027c83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17dac8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4534]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1027c83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17dac87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +12.1   +45.8   -56.8   +90.2   +16.3   +58.6
[FIRST ] 最初の目標       +12.8   +43.3   -58.2   +90.7   +16.6   +59.5  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +12.9   +43.8   -50.9   +82.1   +16.8   +60.1  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・15 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 288/288 [00:00<00:00, 3091.39 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[warn]: Preset M12 is mapped to M10.
[asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: Level of Parallelism: 4
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: Number of PPCS 59
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173759 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所5 の 7 回目 (全 7 回): ブロックを 場所5 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±40) shoulder_pan -86.3〜55.8  shoulder_lift -73.9〜105.3  elbow_flex -130.6〜100.0  wrist_flex -25.9〜145.2  wrist_roll -105.5〜65.1  gripper 0.0〜99.0
objc[4651]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ee83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1687143a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4651]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ee83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1687143f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所5: ブロック 画素 [414.7, 160.2]・向き -0.3°・目印から 9.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.11・予想 -6.23・沈み最大 -24.52 mm. 下りる間 固定側 指令 11.11/予想 13.08・動く爪 31.93/23.33 mm. 持ち上げの始めの予想 -10.4 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.1, 'arm_box': 33.1, 'arm_base': 196.5, 'arm_block_pad10': 28.7, 'held_table': 68.2, 'held_box': 32.7, 'jaw_table_grasp': 3.0}
[R401  ] 依頼 413 (R401_PICK=min_elev. 許しで捨てない): 爪の面の傾き -6.21° (面 +0°・爪の傾き 14.0°・手首の回り 15.57°. 小さい順の 1 番目. 割り振りは 面 +0°・爪の傾き 19.0°)
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4651]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ee83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ed38778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4651]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x105ee83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ed387c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         +11.3   +46.3   -57.7   +89.3   +13.2   +58.7
[FIRST ] 最初の目標       +12.4   +45.5   -61.1   +90.4   +13.7   +59.2  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   +12.3   +46.3   -58.6   +86.6   +13.7   +59.7  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・18 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 327/327 [00:00<00:00, 3308.27 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_173853 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  済み: 場所5 7 回  
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % # 窓2：B（場所2〜4、各3回）
SW405_LIFT_POS_TOL_MM=3 SO101_RANGE_MARGIN=20 RAW=/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_code_rule401_flip_grasp_v1/raw_episodes MODEL="so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1)" PLACES="2 3 4" N=3 SW405_RISE_FIRST=1 R401_RESELECT=1 R401_PUSH_LIMIT_MM=-14 R401_PUSH_WINDOW_MM=-14 R401_ALLOW_CONFLICT=1 R401_ALLOW_DEEP=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=40 R401_START_TOL_DEG=25 ./so101/check_405/session_405.sh
zsh: command not found: #

==================================================
  場所2 の 1 回目 (全 3 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[4762]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104abc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13dda43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4762]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104abc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13dda43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所2: ブロック 画素 [247.5, 169.4]・向き -19.9°・目印から 14.1 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.48・予想 -11.09・沈み最大 -24.2 mm. 下りる間 固定側 指令 9.93/予想 0.08・動く爪 25.02/25.4 mm. 持ち上げの始めの予想 -11.09 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.4, 'arm_box': 33.1, 'arm_base': 193.9, 'arm_block_pad10': 24.2, 'held_table': 69.0, 'held_box': 34.2, 'jaw_table_grasp': -2.8}
[R401  ] 割り振りの面 +0°・爪の傾き 18.0° のまま
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[4762]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104abc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1715e4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4762]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104abc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1715e47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -11.8   +43.6   -51.4   +82.0   -30.9   +58.6
[FIRST ] 最初の目標       -11.9   +43.3   -54.5   +82.5   -31.7   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -13.6   +48.6   -53.0   +75.5   -33.1   +59.7  (かかった 0.38 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・15 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 271/271 [00:00<00:00, 3144.36 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
[asm level selected : up to neon_dotprod]
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 				: 8 / YUV420
-------------------------------------------
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174003 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 1 回目 (全 3 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[4866]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065003a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1355a43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4866]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1065003f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1355a43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [242.6, 172.7]・向き 23.8°・目印から 165.9 画素
[R401  ] 動かさない: ブロックが 場所3 の目印から 166 画素 離れている (許し 40 画素). 置き直す

   動かしません: ブロックが 場所3 の目印から 166 画素 離れている (許し 40 画素). 置き直す   
[SW405 ] 送る前に止めたので 台帳に書きません (ブロックが 場所3 の目印から 166 画素 離れている (許し 40 画素). 置き直す)
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  場所3 の 1 回目 (全 3 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[4924]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104dac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1472f43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4924]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104dac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1472f43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [166.3, 305.4]・向き -26.1°・目印から 13.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.31・沈み最大 -20.53 mm. 下りる間 固定側 指令 11.02/予想 7.11・動く爪 29.82/31.27 mm. 持ち上げの始めの予想 -6.42 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 115.9, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[4924]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104dac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3058dc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4924]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x104dac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3058dc7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -38.2   +27.7   -27.8   +92.1   -62.1   +58.6
[FIRST ] 最初の目標       -38.5   +27.2   -29.6   +92.2   -62.9   +58.9  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -38.6   +28.5   -20.7   +81.9   -62.8   +59.1  (かかった 0.46 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・23 コマ)
[SW405 ] やり直せない (読めない・道が作れない): 読み直し (HOME). ブロックが 場所3 の目印から 128 画素 離れている (許し 40 画素). 置き直す
Map: 100%|███████████████████████████████████████████████| 276/276 [00:00<00:00, 3169.10 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: -------------------------------------------
Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174109 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] retry_refused (やり直せない (読めない・道が作れない)). 渡した 1 回・判定 empty・爪の読み 1.02

==================================================
  場所4 の 1 回目 (全 3 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5011]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15d6c83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5011]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15d6c83f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [284.6, 251.8]・向き -23.2°・目印から 10.0 画素
[R401  ] 下げ -1.19 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.24・沈み最大 -20.26 mm. 下りる間 固定側 指令 10.79/予想 7.22・動く爪 28.94/30.07 mm. 持ち上げの始めの予想 -6.65 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.1, 'arm_box': 33.1, 'arm_base': 144.4, 'arm_block_pad10': 26.9, 'held_table': 71.8, 'held_box': 35.4, 'jaw_table_grasp': -1.4}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -23.2°): 爪の面を机に垂直にできない (爪の面の傾き +14.4°・許し ±8°)) → 面 +0°・爪の傾き 2.0°・爪の面の傾き -2.15°・手首の回り -30.0°
[R401  ] 送れる
objc[5011]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1759f0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5011]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1023e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1759f07c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -10.0   +24.0   -22.4   +88.1   -31.8   +58.6
[FIRST ] 最初の目標       -10.4   +23.5   -24.5   +88.4   -32.6   +59.9  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -10.4   +25.7   -16.2   +77.9   -32.6   +59.4  (かかった 0.43 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・21 コマ)
[SW405 ] やり直せない (読めない・道が作れない): 読み直し (HOME). ブロックが 場所4 の目印から 176 画素 離れている (許し 40 画素). 置き直す
Map: 100%|███████████████████████████████████████████████| 281/281 [00:00<00:00, 3145.89 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[warn]: Svt[info]: Preset M12 is mapped to M10.
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174149 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] retry_refused (やり直せない (読めない・道が作れない)). 渡した 1 回・判定 empty・爪の読み 1.02

==================================================
  場所2 の 2 回目 (全 3 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5106]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10642c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ff203a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5106]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10642c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ff203f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所2: ブロック 画素 [242.2, 169.1]・向き 27.6°・目印から 8.8 画素
[R401  ] 下げ -2.63 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.25・沈み最大 -25.76 mm. 下りる間 固定側 指令 11.22/予想 9.4・動く爪 30.4/29.79 mm. 持ち上げの始めの予想 -4.48 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.5, 'arm_box': 33.1, 'arm_base': 187.2, 'arm_block_pad10': 27.6, 'held_table': 70.1, 'held_box': 33.6, 'jaw_table_grasp': 0.9}
[R401  ] 割り振りの面 +0°・爪の傾き 18.0° のまま
[R401  ] 送れる
objc[5106]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10642c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x307b40778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5106]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10642c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x307b407c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -15.8   +32.9   -33.6   +74.7   +13.4   +58.6
[FIRST ] 最初の目標       -16.4   +30.4   -35.2   +74.9   +12.4   +58.8  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -16.3   +31.2   -27.6   +65.9   +12.3   +59.9  (かかった 0.48 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・13 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 295/295 [00:00<00:00, 3075.23 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174252 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 2 回目 (全 3 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5197]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024283a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1643203a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5197]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024283f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1643203f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [164.8, 306.3]・向き 21.4°・目印から 11.4 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.46・沈み最大 -18.36 mm. 下りる間 固定側 指令 11.11/予想 8.1・動く爪 29.84/30.51 mm. 持ち上げの始めの予想 -5.71 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 135.1, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[5197]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024283a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3051d0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5197]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1024283f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3051d07c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -42.5   +16.7   -11.4   +86.5   -19.4   +58.7
[FIRST ] 最初の目標       -43.1   +16.0   -13.6   +87.4   -19.8   +59.1  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -43.1   +17.7    -8.7   +80.6   -19.8   +59.1  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 280/280 [00:00<00:00, 3066.68 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174332 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所4 の 2 回目 (全 3 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5288]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10428c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15e6d83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5288]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10428c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15e6d83f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [285.1, 254.2]・向き 25.8°・目印から 10.6 画素
[R401  ] 下げ -2.64 mm (ok). つかむ所の爪と机 指令 0.4・予想 -1.97・沈み最大 -19.03 mm. 下りる間 固定側 指令 11.19/予想 10.25・動く爪 30.48/29.87 mm. 持ち上げの始めの予想 -6.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.0, 'arm_box': 33.1, 'arm_base': 113.5, 'arm_block_pad10': 27.1, 'held_table': 70.4, 'held_box': 34.0, 'jaw_table_grasp': 0.4}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き +25.8°): 爪の面を机に垂直にできない (爪の面の傾き -13.3°・許し ±8°)) → 面 +0°・爪の傾き 15.0°・爪の面の傾き -7.6°・手首の回り 20.3°
[R401  ] 送れる
objc[5288]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10428c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fefc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5288]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10428c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17fefc7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -10.6    -8.7   +21.9   +63.7   +16.3   +58.6
[FIRST ] 最初の目標       -11.1    -9.2   +19.7   +64.0   +15.5   +60.0  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -11.2    -3.8   +25.7   +52.8   +15.5   +59.9  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 279/279 [00:00<00:00, 3228.31 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174407 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.76

==================================================
  場所2 の 3 回目 (全 3 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5394]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1066d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x160d783a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5394]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1066d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x160d783f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所2: ブロック 画素 [243.1, 172.8]・向き -0.8°・目印から 10.5 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 5.02・予想 -9.28・沈み最大 -23.37 mm. 下りる間 固定側 指令 10.3/予想 3.15・動く爪 27.82/25.13 mm. 持ち上げの始めの予想 -10.11 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 195.8, 'arm_block_pad10': 29.6, 'held_table': 68.9, 'held_box': 33.1, 'jaw_table_grasp': 0.2}
[R401  ] 割り振りの面 +0°・爪の傾き 18.0° のまま
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status deep_at_zero (--allow-status)
流すなら yes と打つ > yes
objc[5394]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1066d03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17991c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5394]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1066d03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17991c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -15.9   +47.3   -57.8   +84.6   -15.2   +58.6
[FIRST ] 最初の目標       -16.3   +46.3   -59.6   +84.3   -15.2   +59.3  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -16.4   +45.3   -46.5   +72.4   -15.3   +58.9  (かかった 0.44 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・17 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 255/255 [00:00<00:00, 3164.52 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174517 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 3 回目 (全 3 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5495]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1048a03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1471983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5495]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1048a03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1471983f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [164.1, 307.3]・向き 1.0°・目印から 10.2 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.38・沈み最大 -19.52 mm. 下りる間 固定側 指令 10.91/予想 7.26・動く爪 29.92/31.16 mm. 持ち上げの始めの予想 -6.0 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 131.0, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[5495]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1048a03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17cd7c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5495]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1048a03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17cd7c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -41.5   +22.2   -19.6   +89.1   -39.2   +58.6
[FIRST ] 最初の目標       -41.8   +21.4   -21.4   +89.3   -40.6   +59.1  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -41.8   +23.7   -14.3   +80.2   -40.5   +58.8  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 264/264 [00:00<00:00, 3151.56 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 	: 640 / 480 / 30 / 1
-------------------------------------------
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174624 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.76

==================================================
  場所4 の 3 回目 (全 3 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5562]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1031903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x163fec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5562]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1031903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x163fec3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [283.2, 256.8]・向き 1.5°・目印から 9.5 画素
[R401  ] 下げ -4.8 mm (conflict). つかむ所の爪と机 指令 2.31・予想 -5.87・沈み最大 -19.99 mm. 下りる間 固定側 指令 10.34/予想 7.91・動く爪 22.71/23.88 mm. 持ち上げの始めの予想 -10.59 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.1, 'arm_box': 33.1, 'arm_base': 92.6, 'arm_block_pad10': 33.1, 'held_table': 72.6, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 割り振りの面 +0°・爪の傾き 31.0° のまま
[R401  ] 送れる
[SW405 ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[5562]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1031903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e12c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5562]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1031903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17e12c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -12.5   -21.0   +40.8   +40.9    -9.8   +58.7
[FIRST ] 最初の目標       -12.9   -21.0   +38.8   +40.5   -10.2   +59.3  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -13.0   -11.7   +46.0   +24.6   -10.3   +59.6  (かかった 0.46 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 259/259 [00:00<00:00, 3180.96 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174702 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  済み: 場所2 3 回  場所3 3 回  場所4 3 回  
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % cd ~/r2r2r-scripts
SW405_LIFT_POS_TOL_MM=3 SO101_RANGE_MARGIN=20 RAW=/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_code_rule401_flip_grasp_v1/raw_episodes MODEL="so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1)" PLACES="3 4" N=6 SW405_RISE_FIRST=1 R401_RESELECT=1 R401_PUSH_LIMIT_MM=-14 R401_PUSH_WINDOW_MM=-14 R401_ALLOW_CONFLICT=1 R401_ALLOW_DEEP=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=40 R401_START_TOL_DEG=25 ./so101/check_405/session_405.sh

==================================================
  場所3 の 4 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5727]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10670c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x147cf03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5727]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10670c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x147cf03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [161.4, 306.1]・向き -22.3°・目印から 9.9 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -20.65 mm. 下りる間 固定側 指令 11.11/予想 7.19・動く爪 29.76/31.2 mm. 持ち上げの始めの予想 -6.44 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 119.4, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[5727]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10670c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17aa98778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5727]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10670c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17aa987c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -39.5   +29.0   -30.0   +92.8   -60.3   +58.6
[FIRST ] 最初の目標       -39.8   +28.6   -30.9   +91.9   -60.7   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -39.8   +30.3   -19.9   +79.0   -60.6   +59.5  (かかった 0.67 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.6・17 コマ)
[SW405 ] 持ち上げの道が作れない: 持ち上げ. 持ち上げの道がガードに当たる: 道を作る範囲の外 (wrist_flex)
Map: 100%|███████████████████████████████████████████████| 147/147 [00:00<00:00, 2820.47 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_174939 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] lift_refused (持ち上げの道が作れない). 渡した 1 回・判定 held・爪の読み 9.62

==================================================
  場所3 の 4 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5834]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1045543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1411e83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5834]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1045543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1411e83f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [163.2, 301.9]・向き -28.3°・目印から 14.4 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -20.94 mm. 下りる間 固定側 指令 10.99/予想 7.08・動く爪 29.83/31.26 mm. 持ち上げの始めの予想 -6.51 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 119.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[5834]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1045543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x303e1c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5834]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1045543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x303e1c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -38.0   +31.2   -33.5   +93.8   -64.4   +58.6
[FIRST ] 最初の目標       -38.3   +28.4   -33.0   +92.7   -65.0   +59.8  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -38.3   +29.4   -25.1   +83.7   -64.8   +59.7  (かかった 0.41 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・22 コマ)
[SW405 ] 2 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -44.8   +33.4   -36.9   +95.3   -26.6   +58.6
[FIRST ] 最初の目標       -45.4   +29.4   -36.6   +95.1   -26.6   +59.3  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -45.4   +30.3   -32.8   +90.4   -26.8   +60.6  (かかった 0.42 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 2 回目の判定: held (爪の読み 9.8・16 コマ)
[R401  ] code_after_held の 24 コマ目で 実際の関節が予想から 10.2° (許し 10°). その場で止めました
[SW405 ] 止めた (スペース・q・追従の差): 持ち上げ〜戻る. code_after_held の 24 コマ目で 実際の関節が予想から 10.2° (許し 10°)
Map: 100%|███████████████████████████████████████████████| 507/507 [00:00<00:00, 3195.85 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175030 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] stopped (止めた (スペース・q・追従の差)). 渡した 2 回・判定 empty|held・爪の読み 1.02|9.76

==================================================
  場所3 の 4 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[5943]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1049243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x164fec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5943]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1049243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x164fec3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [162.5, 304.0]・向き -25.0°・目印から 12.2 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -20.78 mm. 下りる間 固定側 指令 11.01/予想 7.1・動く爪 29.82/31.26 mm. 持ち上げの始めの予想 -6.48 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 119.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[5943]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1049243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x302714778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5943]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1049243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3027147c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -38.7   +29.8   -31.5   +93.2   -62.1   +58.6
[FIRST ] 最初の目標       -39.0   +29.1   -32.2   +92.6   -62.3   +59.6  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -39.0   +30.7   -22.0   +80.8   -62.2   +59.4  (かかった 0.43 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.1・23 コマ)
[SW405 ] 2 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -45.8   +27.3   -27.3   +91.7   -18.8   +58.6
[FIRST ] 最初の目標       -46.4   +25.6   -28.6   +92.3   -18.2   +58.9  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -46.3   +26.3   -26.3   +89.2   -18.5   +59.8  (かかった 0.42 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 2 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 577/577 [00:00<00:00, 3152.77 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: -------------------------------------------
Level of Parallelism: 4
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Number of PPCS 59
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175134 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 2 回・判定 empty|held・爪の読み 1.08|9.76

==================================================
  場所4 の 4 回目 (全 6 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6103]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1396983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6103]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1396983f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [288.5, 250.8]・向き -20.9°・目印から 14.0 画素
[R401  ] 下げ -1.39 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.55・沈み最大 -20.24 mm. 下りる間 固定側 指令 10.6/予想 7.1・動く爪 28.63/29.71 mm. 持ち上げの始めの予想 -6.92 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.3, 'arm_box': 33.1, 'arm_base': 143.7, 'arm_block_pad10': 27.0, 'held_table': 72.0, 'held_box': 35.4, 'jaw_table_grasp': -1.7}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -20.9°): 爪の面を机に垂直にできない (爪の面の傾き +13.0°・許し ±8°)) → 面 +0°・爪の傾き 3.0°・爪の面の傾き -1.74°・手首の回り -26.92°
[R401  ] 送れる
objc[6103]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174e90778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6103]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1026343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174e907c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度          -9.1   +21.7   -18.8   +86.0   -28.7   +58.6
[FIRST ] 最初の目標        -9.6   +21.4   -19.9   +85.3   -29.6   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標    -9.7   +24.2   -10.0   +72.5   -29.7   +59.6  (かかった 0.43 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・15 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 251/251 [00:00<00:00, 3037.82 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175229 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 5 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6248]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103eac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1667083a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6248]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103eac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1667083f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [163.2, 306.1]・向き -23.7°・目印から 10.7 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.33・沈み最大 -20.58 mm. 下りる間 固定側 指令 10.93/予想 7.01・動く爪 29.88/31.32 mm. 持ち上げの始めの予想 -6.42 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 117.7, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[6248]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103eac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x302980778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6248]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103eac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3029807c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -38.9   +28.3   -28.8   +92.3   -61.1   +58.6
[FIRST ] 最初の目標       -39.3   +27.9   -30.6   +92.1   -61.3   +59.3  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -39.3   +29.5   -20.7   +80.9   -61.2   +59.1  (かかった 0.46 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・17 コマ)
[SW405 ] 持ち上げの道が作れない: 持ち上げ. 持ち上げの道がガードに当たる: 道を作る範囲の外 (wrist_flex)
Map: 100%|███████████████████████████████████████████████| 153/153 [00:00<00:00, 2964.58 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: -------------------------------------------
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
[asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175336 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] lift_refused (持ち上げの道が作れない). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 5 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6338]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10484c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12b8403a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6338]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10484c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12b8403f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [161.6, 303.4]・向き -31.6°・目印から 12.5 画素
[R401  ] 下げ -2.6 mm (ok). つかむ所の爪と机 指令 0.35・予想 -1.98・沈み最大 -18.66 mm. 下りる間 固定側 指令 11.24/予想 10.38・動く爪 31.59/30.87 mm. 持ち上げの始めの予想 -6.78 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.0, 'arm_box': 33.1, 'arm_base': 109.1, 'arm_block_pad10': 26.8, 'held_table': 70.2, 'held_box': 33.9, 'jaw_table_grasp': 0.4}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 0.0° で 作れない (rule_351 の道が作れない: 安全範囲の外 (wrist_roll) / 向き -32° は手首の回転 -68〜1° が要り, 安全範囲 -67.0〜58.0° に入らない) → 面 +90°・爪の傾き 15.0°・爪の面の傾き -7.85°・手首の回り 21.2°
[R401  ] 送れる
objc[6338]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10484c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e54c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6338]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10484c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e54c7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -41.9   -11.4   +24.6   +63.3   +18.2   +58.6
[FIRST ] 最初の目標       -41.5   -10.0   +20.0   +64.4   +18.2   +60.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -41.6    -7.4   +22.5   +59.9   +18.1   +60.5  (かかった 1.09 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 閉じなかった (区間の上限): 1 回目の π0.5. 8 秒たっても閉じない
Map: 100%|███████████████████████████████████████████████| 161/161 [00:00<00:00, 2729.87 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175417 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] not_closed (閉じなかった (区間の上限)). 渡した 1 回・判定 -・爪の読み -

==================================================
  場所4 の 5 回目 (全 6 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6454]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1068743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e8d03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6454]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1068743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e8d03f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [283.5, 252.7]・向き -23.2°・目印から 8.9 画素
[R401  ] 下げ -1.19 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.23・沈み最大 -20.21 mm. 下りる間 固定側 指令 10.78/予想 7.21・動く爪 28.94/30.08 mm. 持ち上げの始めの予想 -6.64 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.1, 'arm_box': 33.1, 'arm_base': 143.6, 'arm_block_pad10': 26.9, 'held_table': 71.8, 'held_box': 35.4, 'jaw_table_grasp': -1.4}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -23.2°): 爪の面を机に垂直にできない (爪の面の傾き +14.5°・許し ±8°)) → 面 +0°・爪の傾き 2.0°・爪の面の傾き -2.14°・手首の回り -30.24°
[R401  ] 送れる
objc[6454]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1068743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x179294778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6454]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1068743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1792947c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -10.5   +23.6   -21.8   +87.6   -31.8   +58.6
[FIRST ] 最初の目標       -10.8   +23.4   -22.3   +86.6   -32.4   +59.6  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -10.8   +25.9   -11.3   +72.9   -32.3   +59.4  (かかった 0.99 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 248/248 [00:00<00:00, 2927.94 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175624 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.76

==================================================
  場所3 の 6 回目 (全 6 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6571]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067a83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11b5883a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6571]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067a83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11b5883f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [166.0, 302.2]・向き -25.8°・目印から 15.5 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.33・沈み最大 -20.73 mm. 下りる間 固定側 指令 10.99/予想 7.07・動く爪 29.84/31.28 mm. 持ち上げの始めの予想 -6.46 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 118.8, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
objc[6571]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067a83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16cb94778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6571]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1067a83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16cb947c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -37.5   +29.3   -30.4   +93.1   -61.8   +58.6
[FIRST ] 最初の目標       -38.0   +28.5   -31.1   +92.3   -62.0   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -38.0   +30.1   -21.2   +80.7   -62.0   +58.9  (かかった 2.87 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・21 コマ)
[SW405 ] 2 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -44.7   +24.8   -23.6   +90.5   -16.1   +58.6
[FIRST ] 最初の目標       -45.2   +22.8   -25.0   +91.0   -15.8   +59.5  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -45.2   +24.3   -21.7   +86.1   -16.0   +60.9  (かかった 0.66 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 閉じなかった (区間の上限): 2 回目の π0.5. 8 秒たっても閉じない
Map: 100%|███████████████████████████████████████████████| 454/454 [00:00<00:00, 3315.49 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175728 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] not_closed (閉じなかった (区間の上限)). 渡した 2 回・判定 empty|・爪の読み 1.02|

==================================================
  場所4 の 6 回目 (全 6 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[6706]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022c83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16369c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6706]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022c83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16369c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [281.1, 255.7]・向き -15.0°・目印から 7.2 画素
[R401  ] 下げ -1.37 mm (ok). つかむ所の爪と机 指令 0.91・予想 -3.43・沈み最大 -19.72 mm. 下りる間 固定側 指令 10.95/予想 7.61・動く爪 28.53/29.52 mm. 持ち上げの始めの予想 -6.76 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.3, 'arm_box': 33.1, 'arm_base': 140.0, 'arm_block_pad10': 27.2, 'held_table': 72.0, 'held_box': 35.4, 'jaw_table_grasp': -1.6}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -15.0°): 爪の面を机に垂直にできない (爪の面の傾き +10.9°・許し ±8°)) → 面 +0°・爪の傾き 3.0°・爪の面の傾き -1.93°・手首の回り -22.82°
[R401  ] 送れる
objc[6706]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022c83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17d1dc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6706]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1022c83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17d1dc7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 8 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -11.5   +18.5   -14.2   +84.4   -25.0   +58.7
[FIRST ] 最初の目標       -11.8   +18.2   -17.0   +85.3   -25.7   +59.6  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -11.9   +20.0   -12.0   +78.2   -25.7   +59.8  (かかった 0.79 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.8・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 265/265 [00:00<00:00, 3064.95 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: -------------------------------------------
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
[asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
-------------------------------------------
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_175829 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.76

==================================================
  済み: 場所3 6 回  場所4 6 回  
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts %
```


### 止める許しを広げた6回の窓2 のターミナルの記録（全量）

```
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % cd ~/r2r2r-scripts
R401_TRACK_STOP_DEG=30 SW405_POLICY_MAX_S=15 SW405_LIFT_POS_TOL_MM=3 SO101_RANGE_MARGIN=20 RAW=/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_code_rule401_flip_grasp_v1/raw_episodes MODEL="so101j (PixelstoMotors/pi05-so101-code-rule401-flip-grasp-lora-v1)" PLACES="3 4" N=9 SW405_RISE_FIRST=1 R401_RESELECT=1 R401_PUSH_LIMIT_MM=-14 R401_PUSH_WINDOW_MM=-14 R401_ALLOW_CONFLICT=1 R401_ALLOW_DEEP=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=40 R401_START_TOL_DEG=25 ./so101/check_405/session_405.sh
[INFO] R401_TRACK_STOP_DEG=30: 道を送る間の追従の許しを 30° にする (既定 10°. コードの道・切り替え方式の両方)

==================================================
  場所3 の 7 回目 (全 9 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[7872]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10449c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1326fc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7872]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10449c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1326fc3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [165.7, 305.0]・向き -17.4°・目印から 13.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -20.34 mm. 下りる間 固定側 指令 10.96/予想 7.07・動く爪 29.85/31.29 mm. 持ち上げの始めの予想 -6.34 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 120.8, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 割り振りの面 +0°・爪の傾き 0.0° のまま
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[7872]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10449c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f5ac778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7872]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x10449c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f5ac7c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -38.9   +26.9   -26.6   +91.2   -54.9   +58.6
[FIRST ] 最初の目標       -39.4   +26.4   -27.1   +90.3   -55.6   +59.0  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -39.4   +28.5   -15.9   +77.2   -55.4   +59.4  (かかった 0.70 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・17 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 252/252 [00:00<00:00, 2986.35 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[warn]: Svt[warn]: Preset M12 is mapped to M10.
Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
[asm level on system : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level selected : up to neon_dotprod]
[asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_180853 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所4 の 7 回目 (全 9 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[8009]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103dc83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1657ec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8009]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103dc83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1657ec3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [281.7, 253.1]・向き -18.7°・目印から 7.1 画素
[R401  ] 下げ -1.59 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.87・沈み最大 -20.21 mm. 下りる間 固定側 指令 10.92/予想 7.43・動く爪 27.94/29.04 mm. 持ち上げの始めの予想 -7.18 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.5, 'arm_box': 33.1, 'arm_base': 141.2, 'arm_block_pad10': 27.5, 'held_table': 72.0, 'held_box': 35.4, 'jaw_table_grasp': -2.0}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -18.7°): 爪の面を机に垂直にできない (爪の面の傾き +12.7°・許し ±8°)) → 面 +0°・爪の傾き 4.0°・爪の面の傾き -1.29°・手首の回り -26.21°
[R401  ] 送れる
objc[8009]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103dc83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ee48778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8009]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103dc83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ee487c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -11.2   +19.2   -15.0   +83.5   -28.2   +58.6
[FIRST ] 最初の目標       -11.3   +19.2   -15.4   +82.3   -28.7   +59.7  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -11.4   +22.1    -5.8   +69.8   -28.7   +59.8  (かかった 0.64 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.7・15 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 245/245 [00:00<00:00, 2986.39 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Svt[info]: Level of Parallelism: 4
Level of Parallelism: 4
Svt[info]: Svt[info]: Number of PPCS 59
Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
-------------------------------------------
Svt[info]: Svt[info]: -------------------------------------------
SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_180941 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.69

==================================================
  場所3 の 8 回目 (全 9 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[8209]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103fa43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136fac3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8209]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103fa43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x136fac3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [164.4, 304.5]・向き -37.0°・目印から 12.7 画素
[R401  ] 下げ -3.21 mm (ok). つかむ所の爪と机 指令 0.57・予想 -1.97・沈み最大 -19.09 mm. 下りる間 固定側 指令 11.2/予想 10.13・動く爪 31.16/30.82 mm. 持ち上げの始めの予想 -7.2 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 101.4, 'arm_block_pad10': 27.6, 'held_table': 70.5, 'held_box': 33.6, 'jaw_table_grasp': 0.6}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 0.0° で 作れない (rule_351 の道が作れない: 安全範囲の外 (wrist_roll) / 向き -37° は手首の回転 -73〜1° が要り, 安全範囲 -67.0〜58.0° に入らない) → 面 +90°・爪の傾き 20.0°・爪の面の傾き -7.75°・手首の回り 16.58°
[R401  ] 送れる
objc[8209]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103fa43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1777f8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8209]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x103fa43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1777f87c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -41.9   -17.6   +32.4   +56.8   +13.1   +58.6
[FIRST ] 最初の目標       -42.0   -16.6   +28.1   +57.6   +13.1   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -41.8   -10.9   +31.8   +49.4   +13.0   +60.1  (かかった 0.63 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.6・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 294/294 [00:00<00:00, 3072.33 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181043 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.62

==================================================
  場所4 の 8 回目 (全 9 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[8397]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1041103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13eb0c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8397]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1041103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13eb0c3f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [281.7, 253.8]・向き -35.1°・目印から 7.2 画素
[R401  ] 下げ -1.21 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.36・沈み最大 -20.73 mm. 下りる間 固定側 指令 10.84/予想 7.01・動く爪 28.72/30.04 mm. 持ち上げの始めの予想 -6.77 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.1, 'arm_box': 33.1, 'arm_base': 136.4, 'arm_block_pad10': 27.0, 'held_table': 72.0, 'held_box': 35.5, 'jaw_table_grasp': -1.6}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -35.1°): 爪の面を机に垂直にできない (爪の面の傾き +19.5°・許し ±8°)) → 面 +0°・爪の傾き 2.0°・爪の面の傾き -1.82°・手首の回り -42.07°
[R401  ] 送れる
objc[8397]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1041103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x300ea4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8397]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1041103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x300ea47c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度          -9.7   +26.2   -25.6   +89.1   -43.2   +58.6
[FIRST ] 最初の目標       -10.1   +25.8   -25.8   +88.0   -44.1   +59.4  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -10.1   +27.7   -14.4   +74.2   -44.2   +59.7  (かかった 0.63 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・21 コマ)
[SW405 ] 2 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -17.2   -17.8   +37.7   +40.9    -2.4   +58.6
[FIRST ] 最初の目標       -17.4   -17.3   +37.3   +38.7    -2.5   +59.0  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -17.4    -8.1   +45.3   +21.3    -2.3   +58.6  (かかった 0.67 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 2 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 513/513 [00:00<00:00, 3234.37 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[warn]: LIB Build date: Jul  3 2025 03:06:26
Preset M12 is mapped to M10.
Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181306 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 2 回・判定 empty|held・爪の読み 1.02|9.69

==================================================
  場所3 の 9 回目 (全 9 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[8721]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047e83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1448f43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8721]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1047e83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1448f43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
WARNING:lerobot.cameras.opencv.camera_opencv:Error reading frame in background thread for OpenCVCamera(1): OpenCVCamera(1) read failed (status=False).
[REST] 力を入れたままポートを閉じた. フォロワーを支えてから電源を切る
[REST] camera disconnect: OpenCVCamera(1) not connected.
[REST] camera disconnect: OpenCVCamera(0) not connected.

[STOP  ] 失敗で止まりました: GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない
[SW405 ] 送る前に止めたので 台帳に書きません (GuardError: 力を入れる前に読んだ位置 (B の最初の「前の目標」) がない. 送らない)
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  場所3 の 9 回目 (全 9 回): ブロックを 場所3 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[8796]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106aa83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1691103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8796]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106aa83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1691103f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所3: ブロック 画素 [163.4, 303.0]・向き -38.2°・目印から 13.5 画素
[R401  ] 下げ -3.41 mm (ok). つかむ所の爪と机 指令 0.67・予想 -1.96・沈み最大 -19.38 mm. 下りる間 固定側 指令 11.05/予想 9.93・動く爪 31.16/30.92 mm. 持ち上げの始めの予想 -7.86 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.1, 'arm_box': 33.1, 'arm_base': 100.5, 'arm_block_pad10': 27.8, 'held_table': 70.5, 'held_box': 33.5, 'jaw_table_grasp': 0.7}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 0.0° で 作れない (rule_351 の道が作れない: 安全範囲の外 (wrist_roll) / 向き -38° は手首の回転 -74〜1° が要り, 安全範囲 -67.0〜58.0° に入らない) → 面 +90°・爪の傾き 22.0°・爪の面の傾き -7.79°・手首の回り 15.57°
[R401  ] 送れる
objc[8796]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106aa83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x303044778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8796]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x106aa83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3030447c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -41.9   -18.6   +34.3   +53.8   +12.0   +58.7
[FIRST ] 最初の目標       -41.6   -16.0   +28.1   +55.3   +12.2   +59.9  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -41.7   -13.3   +30.4   +51.1   +12.1   +59.8  (かかった 0.62 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: held (爪の読み 9.6・17 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 309/309 [00:00<00:00, 3071.99 examples/s]
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[info]: Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: Svt[info]: LIB Build date: Jul  3 2025 03:06:26
LIB Build date: Jul  3 2025 03:06:26
Svt[info]: Svt[info]: -------------------------------------------
-------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181453 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 1 回・判定 held・爪の読み 9.62

==================================================
  場所4 の 9 回目 (全 9 回): ブロックを 場所4 の目印に まっすぐ置いて Enter (q で終わる)
==================================================

[RANGE ] 推論の安全範囲 (学習の 120 本 ±20) shoulder_pan -66.3〜35.8  shoulder_lift -53.9〜85.3  elbow_flex -110.6〜80.0  wrist_flex -5.9〜125.2  wrist_roll -85.5〜45.1  gripper 0.0〜79.0
objc[9084]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054703a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x166fe43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9084]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054703f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x166fe43f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(1) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
WARNING:lerobot.cameras.opencv.camera_opencv:OpenCVCamera(0) failed to set fourcc=MJPG (actual=, success=False). Continuing with default format.
[R401  ] 場所4: ブロック 画素 [286.9, 253.2]・向き -36.9°・目印から 12.3 画素
[R401  ] 下げ -1.21 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.37・沈み最大 -20.75 mm. 下りる間 固定側 指令 10.8/予想 8.42・動く爪 28.74/29.23 mm. 持ち上げの始めの予想 -6.77 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 52.1, 'arm_box': 33.1, 'arm_base': 136.0, 'arm_block_pad10': 27.0, 'held_table': 72.0, 'held_box': 35.5, 'jaw_table_grasp': -1.6}
[R401  ] 面を選び直した: 割り振りの面 +0°・爪の傾き 31.0° で 作れない (rule_351 の道が作れない: つかむ所 (向き -36.9°): 爪の面を机に垂直にできない (爪の面の傾き +19.7°・許し ±8°)) → 面 +0°・爪の傾き 2.0°・爪の面の傾き -1.81°・手首の回り -42.72°
[R401  ] 送れる
objc[9084]: Class AVFFrameReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054703a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ff84778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9084]: Class AVFAudioReceiver is implemented in both /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/cv2/.dylibs/libavdevice.61.3.100.dylib (0x1054703f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ff847c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[SW405 ] 1 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度          -8.4   +26.2   -25.7   +89.1   -43.8   +58.7
[FIRST ] 最初の目標        -8.8   +25.8   -26.3   +88.4   -44.7   +59.6  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標    -8.9   +27.7   -16.0   +75.7   -45.0   +60.1  (かかった 0.62 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 1 回目の判定: empty (爪の読み 1.0・19 コマ)
[SW405 ] 2 回目: π0.5 に渡します (閉じたらコードへ戻す. 上限 15 秒)
[FIRST ] 答えのコマ数   30 (サーバーの答えから). 1 回で実行するコマ 30
[FIRST ] 今の角度         -15.9   -15.0   +35.2   +40.7    -4.7   +58.7
[FIRST ] 最初の目標       -16.1   -15.0   +34.5   +39.2    -5.2   +58.9  (1 コマ 関節 5°・爪 20 までで寄せる)
[FIRST ] 答えの最後の目標   -16.1    -5.9   +41.9   +22.7    -5.1   +59.5  (かかった 0.68 秒)
[FIRST ] 始めの確かめは飛ばします (2 回目の試行から)
[RUN   ] 動かしています (先に問い合わせる). スペース=一時停止 (一時停止中: t=手直し / スペース=推論に戻る / q=終わる)
[SW405 ] 2 回目の判定: held (爪の読み 9.7・16 コマ)
結果: y=成功 / n=失敗 / Enter=記録しない > y
Map: 100%|███████████████████████████████████████████████| 513/513 [00:00<00:00, 3069.04 examples/s]
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v3.0.0
Svt[info]: SVT [build]  :	Apple LLVM 15.0.0 (clang-1500.3.9.4)	 64 bit
Svt[info]: LIB Build date: Jul  3 2025 03:06:26
Svt[info]: -------------------------------------------
CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
Svt[info]: [asm level on system : up to neon_dotprod]
Svt[info]: [asm level selected : up to neon_dotprod]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 640 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 2 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 30 
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias 			: 0 / 0
Svt[info]: Svt[info]: -------------------------------------------
[RECORD] /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101/so101_20261202_181742 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[SW405 ] carried (挟んで箱へ運んだ). 渡した 2 回・判定 empty|held・爪の読み 1.02|9.69
./so101/check_405/session_405.sh: line 93: t: command not found
./so101/check_405/session_405.sh: line 94: syntax error near unexpected token `fi'
./so101/check_405/session_405.sh: line 94: `            fi'
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts %
```
