---
title: "SO-101 失敗から学ぶアームを作る Log#24 | つかみ方の決まりを直したら、学習なしのコードだけで56回中56回つかめた"
slug: so101-rule401-code-only-56-of-56
date: 2026-12-01
day: 618
meta_description: "Physical Intelligence の π0.5 で動かす SO-101 がつかみ損ねていた原因を、つかみ方の決まりと見て直した。爪の開き・固定側の爪のすき間・つかむ高さを変えた決まり rule_401 を学習なしのコードだけで流すと、目印どおり24回、目印から外した置き方32回の計56回すべてつかめた。"
tags: [SO-101, π0.5, Physical Intelligence, 模倣学習, お手本, 実機評価, MuJoCo, グリッパー]
series: "フィジカルAI研究室"
---

**つかみ方の決まりを直すと、ロボットアーム [SO-101](https://github.com/TheRobotStudio/SO-ARM100) は AI の学習を使わず、プログラムだけで56回中56回ブロックをつかめた。直したのは、爪の開き幅、動かない側の爪とブロックのすき間、つかむ高さの3つだけ。Physical Intelligence の AI モデル [π0.5](https://www.physicalintelligence.company/blog/pi05)（パイレイテンゴ）に成功したお手本50本を学ばせたモデル so101f は、机の上の同じ4か所で24回中11回しかつかめなかった。π0.5 がつかみ損ねていたのは、AI の力が足りないからではない。AI に教えていたつかみ方そのものに無理があった。**

これで、次に進む道がはっきりした。

- 次に π0.5 へ教えるお手本は、この新しいつかみ方で動く通り道に作り直せる。外れやすい動きをお手本にしたまま、学習の回数やお手本の数を増やして悩まずに済む。
- つかむ高さは、実機を動かす前にシミュレーションで決められるようになった。腕が重さで沈む分とずれる分を計算に入れ、プログラムの指令どおりに動かしたときに実機が実際に着く位置を予想する（依頼400）。GPU は借りていない。
- 机の目印からブロックを1.5〜2cmずらし、最大17°回して置いても、32回すべてつかめた。机のカメラでブロックの位置と向きを読み取り、アームの動く通り道を作り直すので、置き方のずれに強い。
- 安全のためにアームを止める仕組み（ガード）を重ねすぎると、実機が1回も動かないことも分かった。コードのレビューで出た指摘をすべてガードにした結果、成功した56回のうち50回は、最初の制限値のままなら動く前に止まっていた。

前の回（LOG617）で、π0.5 がブロックの上で迷う原因は、爪の動かし方の決まりとお手本の教え方にあると見立てた。そこで、爪の開き幅・すき間・高さを直す案Cをシミュレーションで試すと、位置がずれてもブロックを挟める割合が49%から92%に増える見込みだった。今回は、その案Cをプログラムの決まりとして作り、AI の学習を通さず実機に流して、本当につかめるかを確かめた。

| やったこと | なぜ | 結果 |
|---|---|---|
| シミュレーションに、腕の沈み・遅れ・動く向きの差を入れた（依頼400） | 指令どおりに動くシミュレーションでは、実機で実際に着く高さが分からない | 成功したお手本で、つかむ位置の予想と実際の差が高さ2.4→1.5mm、横3.9→1.0mm に縮んだ |
| 案Cを決まり rule_401 にして、腕の沈みを入れたシミュレーションで確かめ直した（依頼401） | 腕が沈むと、指令どおりのときより挟みにくくなるかもしれない | ずれても挟める割合は、今の決まり42%、rule_401 は85%。沈みなしの92%より下がったが、差は大きいままだった |
| 実機を動かすスクリプトを作り、codex のレビューを5回通した（依頼401・402） | 関節の動かし方を変えるので、安全に止める仕組みを確かめる | 指摘をすべてガードにした結果、机の目印5か所のうち動かせるのは場所3だけになった |
| ガードの制限値を、その回だけ変えられる形にして実機を動かした | エイイチが実機を目で見ており、止まる理由の多くが、予想した位置が制限値をわずかに超えただけだった | 目印どおりに置いた24回、すべてつかめた |
| 目印から外してブロックを置いた | 置き方のずれに強いかを見る | 右・左・奥・手前へ1.5cmずらす、回す、斜め＋回すの計32回、すべてつかめた |

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

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


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

ここから下は作業ログで、読んだ記録とコード、出力、依頼文、実機のログを載せる。数字は、ことわりがなければ記録から測った値で、シミュレーションの数字はそのつどシミュレーションの値だと書く。

### so101f

π0.5 を、成功したお手本50本で学び直したモデル（LOG609）。机の目印に置いた5か所で各6回、計30回試して12回成功した。今回 rule_401 で試した場所2〜5の4か所に限ると、24回で11回（場所2 1/6・場所3 4/6・場所4 1/6・場所5 5/6）だった。

### 固定側の爪

SO-101 の爪は、後ろから見て左の爪が動かず、右の爪だけが開いたり閉じたりする。この動かない左の爪を固定側の爪と呼ぶ。

### 案C と rule_401

案Cは、依頼399 で選んだつかみ方の直し方。爪を59まで開き（今までは最大44）、固定側の爪をブロックから12mm離して下ろし、つかむ高さを今より低くする。rule_401 は、この案Cを、お手本を作るときの決まり rule_351 の動きに当てはめた新しい決まり。ブロックの上・つかむ位置・爪を閉じる、の3つの姿勢だけを作り替え、ほかの動き（持ち上げ・箱へ運ぶ・戻る）は今までと同じにした。

### dir_s（腕の動きの予想）

アームに送った指令の動きから、実機の関節が実際にどこへ着くかを予想する計算（依頼400）。関節ごとに、指令から少し遅れて追いかける分、いつも少しずれる分、指令が下がっているか上がっているかで変わる分の3つを足す。成功したお手本25本の、腕が止まっていたコマのデータだけで決めた。

### status（ok・conflict・deep_at_zero）

rule_401 がつかむときの下げ量を決めたときに出る結果の印。つかむ位置では、予想される爪の高さが机の表面より2mm下（−2mm）になる高さを目指し、そのうえで次の2つを守る。指令どおりなら爪が机から1mm以内に収まること、予想では机に6mmより深く入らないこと。

- ok は2つとも守れた状態
- conflict は予想で−6mmを守ると、指令の高さが机から1mmより上に残る状態
- deep_at_zero はまったく下げなくても、予想が−6mmより深くなる状態

### ガード（push_limit・push_window ほか）

アームに動きの指令を送る前に条件を確かめ、引っかかれば動かさない安全の決まり。push_limit はつかむ位置で予想される爪が机にどれだけ深く入るかの上限、push_window は爪を閉じてから持ち上げ始めるまでの間に予想される爪の深さの上限を指す。ほかに、目印からの距離、ブロックの向き、初期位置である HOME からの離れ方、status、動かしている間の追従の差（予想より10°以上遅れたら止める）もガードに入っている。


## 実機の動画 ― rule_401 の最初の1回

rule_401 を実機で初めて動かした回を、スマホで2方向から撮った。場所3に置いたブロックを、爪を大きく開いたまま真上から下りてつかみ、箱へ入れた。どちらの動画も、アームが動き出す前と止まったあとを切り、音声を外した。

【動画】LOG618_01_rule401_place3_front.mp4 rule_401 を学習なしのコードだけで動かした最初の回を正面から撮った。場所3のブロックをつかみ、右の箱へ入れて HOME に戻る（8.9秒・音声なし）

【動画】LOG618_02_rule401_place3_side.mp4 同じ時間帯の場所3の回を横から撮った。爪を大きく開いたまま下り、両方の爪の間にブロックを入れて閉じる（9.4秒・音声なし）

前の回で試した別のモデル so101g のように、ブロックの真上で上がったり下りたりして迷う動きはない。下りて、閉じて、持ち上げる。1回で決まる。


## シミュレーションに腕の沈みを入れた ― 予想の差が、横1mm・高さ1.5mmまで縮んだ（依頼400）

これまでのシミュレーションでは、アームは送った指令どおりに動いていた。しかし実機の腕は、重さで沈み、指令から遅れ、下ろすときと上げるときで着く位置が変わる。そのため、シミュレーションでちょうど机に届く高さを決めても、実機では届かなかったり、机に押し付けたりする。

そこで、実機の記録から腕の動きのくせを測り、指令の動きから実際に着く位置を予想できるようにした。成功したお手本50本のうち偶数番の25本を使って予想の計算式と数値を決め、残る奇数番の25本と、つかみ直しの25回、so101f の30回、so101g の7回で当たり具合を確かめた。

| 予想の形 | 成功の奇数 | つかみ直し | so101f | so101g |
|---|---|---|---|---|
| 今のシム（指令どおり） | 2.4 / 3.9 | 2.2 / 3.4 | 6.7 / 5.2 | 6.8 / 5.0 |
| 遅れ＋一定のずれ | 6.2 / 4.6 | 7.0 / 5.1 | 2.8 / 2.0 | 4.1 / 3.2 |
| 遅れ＋一定＋重さの力 | 5.9 / 4.2 | 8.6 / 5.1 | 2.6 / 2.4 | 4.9 / 3.7 |
| **dir_s（遅れ＋一定＋動く向き。止まったコマで決める）** | **1.5 / 1.0** | **2.0 / 1.6** | **3.1 / 3.2** | **5.6 / 3.4** |

（つかむ位置の爪の間の点の、予想と実際の差。高さ / 横、mm、中央値）

いちばん効いたのは、指令が下がっているか上がっているかで、計算に足す補正の値を変えるやり方だった。肩の関節では、指令が下がる向きのときに約1.7°足すと、実機の動きに近づく。重さの力に比例させて補正するやり方は、成功したお手本では合ったが、つかみ直しの回でつかむ位置を7〜8mm低く予想しすぎたので選ばなかった。

【画像】LOG618_03_sim_arm_response_phase_err.png 段階ごとの、爪の間の点の予想と実際の差。灰が今のシム（指令どおり）、青が dir_s。上が横、下が高さ（mm・中央値）。持ち上げの高さの差は26mmから3mmに縮んだ

ただし、肩が大きく沈む回の沈み込み量は、予想計算では7割しか再現できない。成功したお手本のうち、下りる間に肩の指令が1°より下がった8本は、実際に15.1mm低く着いたのに、予想は10.5mmだった。予想より深く机に押し付ける回が残るので、実機を動かすときは押し付けの量を目で見ることにした。

- ねらい：つかむ高さを、実機に流す前にシミュレーションで決められるようにする。
- 変わったこと：指令の動きを渡すと、実機の関節が着く位置を返す関数（arm_response_400.py）ができた。
- 見込める効果：シミュレーションで作るお手本が、実機では届かない高さで爪を閉じてしまうことが減り、机への押し付けの予想も出せるようになる。


## 案Cを決まり rule_401 にした ― 沈みを入れても、挟める形は42%から85%（依頼401）

案Cを、お手本の動きを作る決まり rule_351 に当てはめ、rule_401 として作った。つかむ位置の下げ量は、dir_s で予想した爪が机に2mm入るように、場所ごとに決める。

腕の沈みを入れたシミュレーションで、依頼399 と同じ50か所×ずれ19通りの全パターンを試し直した。ブロックを右・左・奥・手前に4〜16mm、向きを±8°ずらし、下りる間にどちらの爪もブロックに乗らず、閉じると挟める形になるかを数えた。

| ずれ | 今の決まり 指令どおり | 今の決まり 予想 | rule_401 指令どおり | rule_401 予想 |
|---|---|---|---|---|
| ずれなし | 33 | 23 | 50 | 50 |
| 左（固定側）へ 4mm | 11 | 13 | 50 | 48 |
| 左へ 8mm | 1 | 3 | 50 | 43 |
| 奥へ 12mm | 20 | 15 | 49 | 35 |
| 合計（19通り×50か所） | 464（49%） | 396（42%） | 877（92%） | **811（85%）** |

沈みを入れると、腕が固定側へ寄って着くので、固定側の爪とブロックのすき間は10.7mmから9.0mm（中央値）に減る。左へ大きくずれたときと奥へずれたときに、挟める数が下がった。それでも、今の決まりとの差は大きいまま残った。

下げ量は中央値で2.1mm（0〜5.6mm）になった。沈みなしで決めた依頼399（中央値5.7mm）の約4割で済んだ。腕が沈む場所では、もとから下がって着くからだ。

一方で、新しく分かった心配もあった。爪を閉じてから持ち上げ始めるところで、予想の爪が机に深く入る。中央値で−8.0mm（−12.9〜−3.7mm）になる。指令が下がる向きから上がる向きに変わる所で、dir_s の補正の値が一度に切り替わるためで、実機の腕が本当にそう動くのか、予想の作りのせいなのかは分からなかった。この値が、あとで実機を止めるガードの制限値に引っかかるかどうかの境目になる。

- ねらい：位置がずれても固定側の爪がブロックに乗らず、腕の沈み方によらず爪が机まで下りるつかみ方にする。
- 変わったこと：rule_401 で、開き59・固定側12mm・つかむ位置を0〜5.6mm下げる動きを作れるようになった。
- 見込める効果：so101f の失敗の多くを占めた、固定側の爪がブロックに乗る外し方と、高すぎて空振りする外し方が減る見込みがある。


## ガードを重ねて、実機が動かなくなった ― 5回のレビューと、止まった理由

rule_401 でアームの動きを作り、机のカメラでブロックの位置を読んで実機へ送るスクリプト run_rule401.py を作った。関節の動かし方を変えるので、codex（コードを読んで確かめる AI）にレビューを頼んだ。

レビューは合わせて5回になった。1回目は「このままでは実機の1回目に進めない」という判定で、必須の指摘が8つ出た。机への押し付けの上限を、つかむ位置だけでなく爪を閉じて持ち上げ始めるときにも当てること、関節が予想から10°遅れたら止めること、などだ。直して出し直すと2回目も「進めない」になり、安全に止めるための目標位置にアームが届かないときの扱いなどが必須になった。3〜5回目（依頼402）でさらに止め方を直し、最後に「必須なし」になった。テストは20本、すべて通った。

ところが、ここまで厳しくした結果、実機を動かせる場所がほとんどなくなっていた。目印の5か所で試した dry-run（アームには送らず、動きとガードの判定だけを確かめるテスト）では、動かせるのは場所3だけ。その場所3も、持ち上げ始めに爪が机へ入る深さの予想が−6.00mmで、ガードの上限−6mmのちょうど境目だった。

実機の1回目は、予想どおり止まった。ブロックを場所3に置くと、持ち上げ始めの深さの予想が−6.12mmになり、上限を0.12mm超えて動かなかった。置き直しても、アームが初期位置の HOME から19.2°離れているという理由で止まった（許される範囲は10°）。ほかにも、目印から10.5〜12.6画素離れている（許される範囲は10画素）、つかむ位置の深さの予想が−6.51mm（上限−6mm）といった理由で止まった。

エイイチは、実機の横で動きを目で見ている。止まる理由の多くは、予想の値がわずかに上限を超えただけだった。しかも、その予想自体が、肩が大きく沈む回では実際の7割しか再現できない。予想が0.1mm超えたくらいで止めても、安全にはつながっていなかった。

そこで、ガードの既定の値は変えずに、その回だけ制限値を変えて動かせるようにした。使った値は、持ち上げ始めとつかむ位置の深さの上限が−12mm、目印からの距離が40画素、ブロックの向きが±20°、HOME からの離れが25°。status が conflict と deep_at_zero の回も動かせるようにした。アームが HOME から離れているときは、急に動かないよう、近づける指令を1コマ2°ずつ小刻みに分けて送る。動かしている間に予想から10°以上遅れたら止めるガードは、そのまま残した。

【図解】LOG618_guard_chain.html

実際に最後まで動かした56回に、依頼401 の最初の制限値を当てはめると、56回中50回が動く前に止まっていた。目印にまっすぐ置いた24回だけでも20回が止まる計算になる。いちばん多かった理由は持ち上げ始めの押し付けで41回、次が目印からの距離で34回だった。しかし56回の間、実機を横で見ていたエイイチが、押し付けや引っかかりでアームを止めた回は1回もなかった。

この経験から、ガードの決め方を改めた。ガードは実機で本当に危ない所だけに置く。予想の値に細かい上限を重ねたり、ブロックの置き方の許しを狭くしたりして、動かなくなる作りにはしない。レビューは関節の動かし方を大きく変えたときに1回だけにして、指摘をそのまま全部ガードに足さない。


## 目印どおりに置いた24回 ― すべてつかめた

ガードの値を変えたあと、場所2〜5の目印に、ブロックをまっすぐ置いて各6回動かした。場所1は、カメラとアームの位置合わせに使った基準点（校正の点）の囲みの外にあり、目印の位置では rule_351 の動きがそもそも作れないので外した。

| 場所 | so101f（π0.5） | rule_401（コードだけ） | rule_401 の status |
|---|---|---|---|
| 場所2 | 1/6 | 6/6 | conflict 6回 |
| 場所3 | 4/6 | 6/6 | ok 6回 |
| 場所4 | 1/6 | 6/6 | conflict 5回・ok 1回 |
| 場所5 | 5/6 | 6/6 | ok 6回 |
| 計 | 11/24 | **24/24** | |

so101f で6回中1回しかつかめなかった場所2と場所4も、6回すべてつかめた。場所2は、依頼399 で、今の決まりのままだと固定側の爪がブロックに3.1mm重なってしまうと分かっていた場所だ。rule_401 では、固定側の爪がブロックから約10mm離れて下りる。

場所2では、もう1回動かしたが途中で止めた。動きを送っている40コマ目で、関節が予想より11.5°遅れ、追従の差のガード（10°）が働いたためだ。アームはその場で止まり、記録は実験の台帳に結果なしの1行として残した。56回には数えていない。ほかの56回の追従の差は、最大でも4.2°（中央値2.4°）だった。

so101f と rule_401 の比べ方には前提の違いがある。so101f はアームの動き全体を π0.5 が出していた。一方の rule_401 は、机のカメラでブロックの位置と向きを読み取り、そこへ向かう動きをプログラムが毎回作り直す。つまり今回の結果は、π0.5 を使うよりプログラムのほうが良いという話ではない。お手本にする動きのつかみ方を直せば、毎回確実につかめるということが確かめられた。


## 目印から外して置いた32回 ― ずらしても、回しても、すべてつかめた

次に、ブロックを目印からわざとずらして置いた。エイイチがブロックを手で置き、机のカメラがその位置と向きを読み取り、そこからアームの動きを作る。新しい目印は置いていない。

最初の3巡（12回）は、実験用の置き方の表を読み違えて、毎回目印から右へ1.5cmずつずらして置いていた。この12回もすべてつかめたので、右へずらした回として結果に入れた。そのあとの5巡を、表のとおりの置き方でやり直した。

【図解】LOG618_offset_placements.html

| 置き方 | 場所2 | 場所3 | 場所4 | 場所5 | 計 | 目印から（画素） | 読んだ向き |
|---|---|---|---|---|---|---|---|
| 右へ 1.5cm | 3/3 | 3/3 | 3/3 | 3/3 | 12/12 | 11.6〜20.8 | −7.5〜+4.9° |
| 左へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 2.0〜10.5 | −3.2〜+2.5° |
| 奥へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 9.7〜20.2 | +1.9〜+5.7° |
| 手前へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 6.4〜17.7 | −5.0〜+2.8° |
| 15° ほど回す | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 7.3〜15.2 | +1.6〜+17.0° |
| 斜めに 2cm＋10° 回す | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 6.7〜35.7 | −2.7〜+11.5° |
| 計 | | | | | **32/32** | | |

（画素は、机のカメラで見た目印からの距離。1画素は約0.9mm）

置き方は目分量なので、カメラで読んだずれの量は回ごとにばらつく。左へ1.5cmのつもりの回で2.0〜10.5画素と小さいのは、そのためだ。それでも、目印から最大35.7画素（約3cm）離れた回も、最大17°回った回も、すべてつかめた。

12回目の置き方は、チャットで次の図を示して決めた。

```
        奥
   左 ─ ┼ ─ 右        ┌┄┄┄┐ 目印
        手前           │   │ ↗ 赤いブロックを斜めに約2cm（ブロック約1個分）ずらし、
                       └┄┄┄┘   10°ほど回して置く
            [ アーム ]
```

（アームの後ろから見た向き。斜めの向き、回す向きはどちらでもよく、目分量で置く。実際の位置と向きはカメラが読む）


## 場所5だけは、向きが +2.4° を超えると道が作れなかった

動かなかった回のうち、ガードの制限値と関係なく本当に動かせなかったのは、場所5で「爪の面を机に垂直にできない」というエラーが出た回だけだった。目印どおりの回で4回、目印から外した回で23回、計27回ある。カメラで読んだブロックの向きは+2.4〜+17.0°で、どれも場所5だった。場所5で成功した14回の向きは−7.5〜+2.1°だった。

場所5でブロックを＋の向きに回すと、ブロックの面に爪を合わせるために、爪の面を机に対して大きく傾けなければならなくなる（止まった27回で−9.1〜−13.2°。許される範囲は±8°）。アームの関節が動く範囲では、爪を垂直に立て直せない。プログラムの直し方の問題ではなく、アームの届く範囲の限界だ。

向きが大きいときは、ブロックの別の面（90°回した面）をつかむ決まりを足せば、動きを作れる見込みがある。これはまだ試していない。


## この結果から言えること、言えないこと

言えること。

- so101f がつかみ損ねていた主な原因は、爪の開き・固定側のすき間・つかむ高さの決まりだった。同じ場所で、決まりだけを直したプログラムは24回すべてつかめた。
- rule_401 の動きは、置き方のずれ（目印から約3cm・17°まで）にも強い。ただし、動きはカメラで読んだ位置から毎回作り直している。

言えないこと。

- π0.5 にこの動きを教えたら、同じようにつかめるか。π0.5 は毎回動きを作り直すのではなく、カメラの映像と関節の角度から次の動きをその場で出す。これは次に確かめる。
- 実機でどれだけの力で机を押していたか。予想の押し付けは最大−11.5mm だったが、これは計算上の予想の値で、実際の力ではない。横で見ていたエイイチが止めた回はなかった。
- 場所1 と、場所5で＋の向きに回したときにどうなるか。どちらも、今の決まりではアームの動きが作れない。


## 次にやること

1. つかむ所だけを π0.5 に任せる形に戻る。rule_401 の動きでお手本を録り直せば、つかみ方のそろったお手本になる。一度外してからつかみ直したお手本は、前の回の判断どおり外す。
2. 場所5の向きの限界を広げる。ブロックの向きが大きいときは、つかむ面を90°変える決まりを足す。
3. ガードは、実機で本当に危ない所（追従の差・関節の範囲・机とのすき間の大きな超え）に絞り直す。


## この記事の時点で動いていること

| 依頼 | 中身 | 状態 |
|---|---|---|
| 依頼400 | シミュレーションに腕の沈み・遅れ・動く向きの差を入れる | 完了。dir_s を使う |
| 依頼401 | 案Cを rule_401 にして、沈み入りのシミュレーションで確かめ、コードだけで実機に流すスクリプトを作る | 完了。実機で56回中56回 |
| 依頼402 | 実機に流すスクリプトの止め方を、codex の3回目のレビューで確かめる | 完了 |

依頼文と報告、codex のレビュー、作ったコード、実機のログは、下に順に全部載せる。


## 依頼400 ― シミュレーションに腕の沈み・遅れ・動く向きの差を入れる

### 依頼400 の依頼文

```
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts/so101/sim
上限時間: 150
---
# 依頼400：SO-101 のシムに腕の沈み・ずれ・遅れを入れ、指令の道から「実機で実際に着く所」を予想できるようにする（アームは動かさない・記録は読むだけ）

## なぜ
2026-11-30 23:03 にエイイチが決めた：合成シムの見た目の詰め（SigLIP を上げる作業）は依頼393 までで止める。シムの次の役目は、見た目より先に、実機の腕の動きの差を入れること。
so101g までの失敗は、見た目ではなく数 mm の動きの差で起きている（固定側の爪の余裕 約4mm・着いた所のずれ 2.5〜6.8mm・下り方で約15mm 変わるつかむ高さ。依頼379・380）。今のシムの腕は指令どおりに動くので、シムのお手本は実機で届かない高さで閉じる動きを教えてしまう。
これができると、次の2つに使う：(1) 依頼399 のつかみ方の案を、実機の沈みを入れた状態で確かめる (2) あとで「わざとずらした所から寄せて下りる」お手本をシムで量産するとき、実機で起きる腕の動きで作る。

## 使うもの（すべて読むだけ）
- 沈みの測り方と値：`../check_379/`（肩の指令が下がる区間で肩 +3〜4°・低い所で肘 +2〜3°。爪が指令より 9.4〜20.5 mm 低く着いた本）、`../check_380/`（9 通りの入れ方）
- 一定の足し分と時間のずれ：`look_391/joint_offset_391.json`（案・使わない、とした値。絵との合わせで出した値なので、ここでは関節の記録で測り直す）と `look_391/REPORT.md`、`joint_offset_342.json`
- 実機の記録（指令 action と実際の関節 state が両方ある）：KIOXIA の成功 50 本（`datasets/so101_redblock_box_ideal_var_v2_success_v1`）、つかみ直しの 25 本（依頼377・380 の録った記録）、so101f の 30 回・so101g の 7 回（`lab/so101_Log12/so101/`）
- 爪の間の点：`../check_376/lib_376.py`。場面：`../ideal_var/clear_345.py`（MuJoCo）

## やること
1. **腕の動きの差の形を決める**（指令 → 実際の関節）。少なくとも次を比べる
   - 一定の足し分、時間のずれ（コマ）、重さで沈む形（姿勢ごとの重力のかかり方に比例）、動く向きで変わる形（指令が上がる区間と下がる区間で別の値。止まったあとも次に動くまで残る形を含む）
   - 関節ごとに、決めるのに使う本と確かめる本を分ける（例：成功 50 本の偶数で決め、奇数とつかみ直し 25 本と so101f・g で確かめる）
2. **確かめ**：確かめる本で、予想した関節と実際の関節の差（°）、爪の間の点の差（mm。机の上の向きと高さに分けて）を、段階ごと（ブロックの上へ・つかむ所へ下りる・閉じる・持ち上げ・箱の上・戻る）に出す。今のシム（差を入れない）と並べる
   - いちばん見たいのは つかむ所の高さと横のずれ。依頼379 の「肩の指令が下がる本は約 15 mm 低く着き、上がる本は約 1.4 mm」が予想で再現できるか
3. **使える形にする**：指令の道（関節のコマの並び）を渡すと、実機で着く関節の並びを返す関数を `arm_response_400.py` に作る。MuJoCo の場面に入れて、爪とブロック・机のすき間を測れるようにする（依頼399 がそのまま使える形。399 のコードには触らない）
4. 図：段階ごとの予想と実際の差（今のシム／入れたシム）、つかむ所の高さの予想と実際の散らばり（本ごとの点）

## しないこと
アームを動かす、Pod を借りる、見た目（Blender・光・部屋・SigLIP）の作業、`joint_offset_342.json`・look・box・datasets・既存の記録を変える、依頼399（列「コード」）のファイルに触る、`git add .`・`git clean`

## 報告（`look_400/REPORT.md`。新しいファイルは look_400/ の中だけ）
- いちばん大事なこと（最初に）：選んだ形、つかむ所の高さと横のずれの予想の誤差（mm）、今のシムとの差
- 段階ごとの表、図の場所、関数の使い方（3行の例）
- 予想できなかったこと（例：ブロックに当たったときの動き、電流が記録にない回）
- 決めてほしいこと
- 最後の1行に「判定：合格／止めた（決めてほしいことあり）／失敗」
- commit は look_400/ のコードと REPORT だけ（個別に add）
```

### 依頼400 の報告（見張り係の記録）

```
# 結果：20261130_400_SO101のシムに腕の沈みと遅れを入れて実機の着く所を予想できるようにする

- 状態：完了
- 始めた時刻：2026-12-01 00:31
- 終わった時刻：2026-12-01 00:47（16分）
- 作業フォルダ：/Users/shimazueiichi/r2r2r-scripts/so101/sim
- この続きを Claude Code で話すとき：作業フォルダで `claude --resume ba5a7d47-1c89-439c-b436-05bd3bb7ada1`

## Claude Code の報告

**やったこと**
- 実機の記録を読むだけで使いました：成功 50 本、つかみ直し 25 回（依頼 377 の 20 回と 380 の 5 回）、so101f 30 回、so101g 7 回。どれも、送った指令と次のコマで読んだ関節が並んでいます。
- 腕の動きの差の形を 13 通り比べました。一定の足し分、時間のずれ、遅れ、重さに比例する沈み、動く向き（止まっても次に動くまで残る）と、それらの組み合わせです。
- 値は成功 50 本の偶数 25 本で決め、奇数 25 本・つかみ直し・so101f・so101g で確かめました。どの形を選ぶかの決め方は、比べる前に決めておきました。
- 指令の道から実機で読む関節の並びを返す関数と、MuJoCo の場面（clear_345）で爪とブロック・机のすき間を測る関数を `arm_response_400.py` に作りました。
- 図を 3 枚作り、報告を `look_400/REPORT.md` に書きました。アームと Pod は使っていません。

**結果**
- **選んだ形は dir_s：** 関節ごとに「0〜2 コマのずれ＋遅れ」を入れ、ねらいに「一定の足し分＋動く向きの足し分」を足す形です。
  - 足し分は、指令が止まっていたコマだけで決めました。全部のコマで決めると、つかむ所が約 8 mm 低く出たためです。
  - 肩の向きの足し分は、指令が下がる向きのとき +1.7°、上がる向きのとき +0.4° です。
- **つかむ所の誤差（高さ／横の中央値、今のシム → dir_s）：**

| 確かめた本 | 高さ mm | 横 mm |
|---|---|---|
| 成功 50 本の奇数 | 2.4 → 1.5 | 3.9 → 1.0 |
| つかみ直し 25 回 | 2.2 → 2.0 | 3.4 → 1.6 |
| so101f 30 回 | 6.7 → 3.1 | 5.2 → 3.2 |
| so101g 7 回 | 6.8 → 5.6 | 5.0 → 3.4 |

- **依頼 379 の沈みは、向きは出たが量は 7 割ほどでした。**
  - 肩の指令が下がる 8 本：実際 −15.1 mm に対し、予想 −10.5 mm でした。
  - 肩の指令が上がる 36 本：実際 −1.4 mm に対し、予想 −2.7 mm でした。
  - 今のシムは、どちらも 0 mm です。
- **段階ごとの爪の間の点の差：** 今のシムは横 5〜19 mm・高さ 3〜30 mm でしたが、dir_s では横 1〜3 mm・高さ 1〜6 mm になりました。いちばん大きく減ったのは、持ち上げの高さ（26 → 2.7 mm）と、戻るときの横（19 → 1.8 mm）です。
- **悪くなった所：** つかみ直しの本の「閉じる」の高さだけは、今のシムより悪くなりました（3.0 → 3.8 mm）。予想が約 3.6 mm 低く出ます。
- **MuJoCo の場面でのすき間（成功 50 本、つかむ所の爪と机）：** 実際との差の中央値は、今のシム 4.1 mm → 予想 1.3 mm でした。
- **重さに比例する形を選ばなかった理由：** 大きな沈みはよく出せますが、つかみ直しの本で 7〜8 mm 低く出しすぎるためです。
- **予想できなかったこと：**
  - 肩が指令より 3〜4° 上に残り続ける本（so101g で −25 mm 沈んだ回など）は、−10 mm 前後までしか出せません。
  - 机やブロックに当たったときの動きは入れていません（so101f の 1 回は実際が −38 mm）。
  - どの記録にも電流が残っていません。

**変えたファイル**
- 新しく作ったファイル（`so101/sim/look_400/`）：`data_400.py`、`arm_response_400.py`、`fit_400.py`、`demo_400.py`、`figs_400.py`、`REPORT.md`。この 6 つを個別に add して commit しました（7d65a03）。
- commit していないファイル：`arm_response_400.json`（関数の値）、`result_400.json`、`demo_400.json`、図 3 枚、`_data/`。依頼の「commit はコードと REPORT だけ」に従いました。
- 既にあるファイル・記録・依頼 399 のコードには触っていません。

**決めてほしいこと**
1. シムの腕の動きの差に dir_s を使うか。大きな沈みを出したいなら grav_dir_s という案もありますが、つかみ直しの本を低く出しすぎます。
2. 依頼 399 のつかみ方の案を、dir_s を通した道で確かめ直すか（別の依頼になります）。
3. 大きな沈みや当たったときの動きを分けるため、実機の記録で電流を残すか（currents を on にする）。
4. `arm_response_400.json` を git に入れるか。これがないと関数は動きません（`fit_400.py` を約 15 分動かせば作り直せます）。

判定：止めた（決めてほしいことあり）
```

### so101/sim/look_400/REPORT.md

````markdown
# 依頼 400：SO-101 のシムに腕の沈み・ずれ・遅れを入れ、指令の道から実機で着く所を予想する（2026-12-01）

アームは動かしていない。Pod は使っていない。KIOXIA の記録・データセット・`joint_offset_342.json`・look_391・check_376/379/380・ideal_var・依頼 399 のファイルは読むだけ（書いていない）。新しいファイルは look_400/ の中だけ。

## いちばん大事なこと

- **選んだ形は `dir_s`。** 関節ごとに「d コマのずれ ＋ 1 次の遅れ」と、ねらいに「一定の足し分 ＋ 動く向きの足し分（指令が上がっている／下がっている。止まっても次に動くまで残る）」を入れた形
  - 足し分（一定・向き）は、成功 50 本の偶数 25 本の「指令が 15 コマ止まっていたコマ」だけで決めた。遅れ（α・d）と向きのしきい値 eps は、全部のコマで決めた
  - 値の例：肩 一定 +1.07°・向き ∓0.68°（指令が下がる向きのとき +1.74°）、遅れ 2 コマ・α 0.55。肘 一定 +1.30°・向き ∓1.01°、遅れ 1 コマ・α 0.40
  - **重さの力（MuJoCo）に比例する形は選ばなかった。** 成功の本では効いたが、つかみ直しの本でつかむ所を 7〜8 mm 低く出しすぎた（下の 1.）
- **つかむ所（爪が実際に閉じたコマ）の爪の間の点の予想の誤差**（確かめる本。中央値の絶対値。今のシム → dir_s）
  - 成功 50 本の奇数：高さ 2.4 → **1.5 mm**、横 3.9 → **1.0 mm**（右 2.8 → 0.4・奥 2.8 → 0.9）
  - つかみ直し 25 回：高さ 2.2 → **2.0 mm**、横 3.4 → **1.6 mm**（ただし予想が平均 2.5 mm 低く出る。上位 1 割は 4.6 → 6.7 mm で悪くなる）
  - so101f 30 回：高さ 6.7 → **3.1 mm**、横 5.2 → **3.2 mm**
  - so101g 7 回：高さ 6.8 → **5.6 mm**、横 5.0 → **3.4 mm**
- **依頼 379 の「肩の指令が下がる本は約 15 mm 低く着き、上がる本は約 1.4 mm」は、向きは再現できたが、量は 7 割まで。**
  - success_v1 で、下りる間に肩の指令が 1° より下がる 8 本：実際 −15.1 mm（−20.5〜−9.4）に対して、予想 −10.5 mm（−11.6〜−2.8）。誤差の中央値 6.0 mm
  - 1° より上がる 36 本：実際 −1.4 mm（−5.9〜+0.3）に対して、予想 −2.7 mm（−4.4〜−1.2）。誤差の中央値 1.1 mm
  - 今のシムは、どちらも 0 mm（差を入れないので）
- 段階ごとの爪の間の点の差（全部のコマ）は、今のシムの 横 5〜19 mm・高さ 3〜30 mm が、**横 1〜3 mm・高さ 1〜6 mm** になった（下の 2.）。いちばん大きく減ったのは、遅れが効く「持ち上げ」（高さ 26 → 2.7 mm）と「戻る」（横 19 → 1.8 mm）
- MuJoCo の場面（clear_345）に入れた「爪と机」（つかむ所。成功 50 本）：指令 +3.2 mm・予想 −1.8 mm・実際 −0.8 mm（中央値）。実際との差の中央値は、今のシム 4.1 mm → 予想 1.3 mm

## やり方

- 記録（すべて読むだけ）
  - 成功 50 本：success_v1 の raw_episodes の meta から、元の依頼 351 の記録（`351/record` の sent・state）を引いた
  - つかみ直し 25 回：`377/record` 20 回と `380/record` 5 回の sent・state・キー姿勢
  - so101f 30 回・so101g 7 回：`so101_trials.csv` で結果のある回。記録の `ptm.sent`（実際に送った値）と `observation.state`
- 並べ方：コマ k で送った値（sent[k]）の応えを、次のコマで読んだ関節（state[k+1]）とした（依頼 379 と同じ）
- 爪の間の点：`check_376/lib_376.py` のまま（joint_offset_342 を足して出す。目安の誤差は水平 4 mm・最大 8 mm）。机の上の向きは、根元からその点への向きを「奥」、それを時計回りに 90° を「右」とした
- 重さの力：MuJoCo の腕に、指令の姿勢（＋joint_offset_342）を入れ、速さ 0 で関節にかかる重さの力（N·m）を出した。肩の回転・手首の回転は 0 なので使っていない
- 決める本：成功 50 本の偶数 25 本。確かめる本：奇数 25 本・つかみ直し 25 回・so101f 30 回・so101g 7 回
- 選び方（先に決めておいた）：確かめる 4 組の、つかむ所の「高さの誤差 ＋ 横の誤差」（中央値）の平均がいちばん小さい形
- 段階：ブロックの上へ（〜ABOVE_BLOCK）・外す（つかみ直しの本だけ。〜RETRY_ABOVE）・つかむ所へ下りる（〜GRASP_OPEN）・閉じる（〜GRASP_CLOSED＋10 コマ）・持ち上げ（〜LIFT）・箱の上へ・離す（〜RELEASED）・戻る
  - 方策の回（so101f・g）はキー姿勢がない。送った爪が 20 を割った回のうち、爪の間の点が机から 40 mm 以下で閉じた最初の回を「つかむ所」とし、その前 45 コマを「下りる」、その前を「寄る」、後 10 コマを「閉じる」、その後 30 コマを「持ち上げ」、残りを「持ち上げのあと」とした
- つかむ所：爪の読みが 20 を割った最初のコマ（依頼 379 の決め方）。「指令」はキー姿勢 GRASP_CLOSED（方策の回は爪を閉じ始めた指令のコマ）

## 1. 比べた形（つかむ所。確かめる本。高さ／横 の誤差 mm の中央値）

| 形 | 中身 | 成功 奇数 | つかみ直し | so101f | so101g | 点（平均） |
|---|---|---|---|---|---|---|
| none（今のシム） | 指令どおり | 2.4 / 3.9 | 2.2 / 3.4 | 6.7 / 5.2 | 6.8 / 5.0 | 8.9 |
| const | 一定だけ | 6.2 / 4.5 | 7.1 / 5.2 | 4.7 / 3.9 | 4.3 / 4.0 | 10.0 |
| lag | 遅れ＋一定 | 6.2 / 4.6 | 7.0 / 5.1 | 2.8 / 2.0 | 4.1 / 3.2 | 8.7 |
| grav | 遅れ＋一定＋重さ | 5.9 / 4.2 | 8.6 / 5.1 | 2.6 / 2.4 | 4.9 / 3.7 | 9.3 |
| dir | 遅れ＋一定＋向き | 2.7 / 1.7 | 4.1 / 3.4 | 3.2 / 2.9 | 4.7 / 4.1 | 6.7 |
| grav_dir | 遅れ＋一定＋重さ＋向き | 3.3 / 2.2 | 8.7 / 3.7 | 4.0 / 2.7 | 5.2 / 3.3 | 8.3 |
| grav_dir_x | ＋向き×重さ | 3.4 / 1.7 | 7.2 / 2.8 | 4.4 / 2.8 | 5.8 / 4.0 | 8.0 |
| grav_dir_static | 遅れなし | — | — | — | — | 26.8 |
| lag_s | lag の足し分を止まったコマで | 3.9 / 3.8 | 4.0 / 4.2 | 3.3 / 2.2 | 2.1 / 2.4 | 6.5 |
| grav_s | grav を止まったコマで | 4.0 / 3.2 | 6.6 / 4.6 | 2.6 / 2.4 | 2.6 / 3.0 | 7.2 |
| **dir_s** | **dir を止まったコマで** | **1.5 / 1.0** | **2.0 / 1.6** | **3.1 / 3.2** | **5.6 / 3.4** | **5.3** |
| grav_dir_s | grav_dir を止まったコマで | 2.2 / 1.4 | 7.7 / 3.9 | 3.4 / 3.1 | 4.0 / 3.2 | 7.2 |
| grav_dir_x_s | grav_dir_x を止まったコマで | 2.3 / 1.9 | 7.9 / 4.5 | 3.7 / 2.7 | 5.1 / 3.7 | 8.0 |

- **遅れは要る。** 入れないと、全部のコマの関節の差（決める本）が 1.4〜5.7° のまま（遅れを入れると 0.3〜1.0°）。遅れは 0〜2 コマのずれと α 0.28〜0.55（30 fps で時定数 約 2〜3 コマ）
- **足し分を全部のコマで決めると、動いている所の遅れの残りが「一定」に入り、つかむ所が 8 mm ほど低く出る**（const・lag・grav）。止まったコマで決めると直る（_s の形）
- **向きの形は、どの組み合わせでも効いた。** 止まったあとも残る形（次に動くまで同じ向き）で入れている
- **重さの形は、成功の本の「肩が下がる本」をよく出す**（grav_dir_s：8 本の予想 −20.0〜−5.2 mm、誤差の中央値 4.0 mm。dir_s は 6.0 mm）**が、つかみ直しの本を 7〜8 mm 低く出しすぎる**（実際 −0.9 mm、予想 −8.1 mm）。肘の重さの力は 0.34〜0.52 N·m の狭い幅でしか動かず、一定の足し分と見分けにくい（係数が形ごとに −3.6〜−15°/N·m と揺れる）。そのため選ばなかった

## 2. 段階ごとの表（dir_s。今のシム → 入れたシム。全部のコマ）

関節 = 関節 5 つの差の絶対値の平均（°）。横・右・奥・高さ = 爪の間の点の差（予想 − 実際）の絶対値の中央値（mm）。高さの平均 = 符号つき（＋は予想が高い）。

### 成功 50 本の奇数 25 本（確かめる本）

| 段階 | 関節 ° | 横 mm | 右 mm | 奥 mm | 高さ mm | 高さの平均 mm |
|---|---|---|---|---|---|---|
| ブロックの上へ | 2.98 → 0.46 | 6.5 → 1.7 | 3.7 → 1.3 | 4.5 → 0.4 | 8.0 → 1.8 | +7.1 → +1.7 |
| つかむ所へ下りる | 0.72 → 0.24 | 4.8 → 1.1 | 2.9 → 0.4 | 3.7 → 0.9 | 3.1 → 1.2 | +4.9 → +1.3 |
| 閉じる | 0.88 → 0.30 | 4.6 → 1.5 | 2.9 → 0.4 | 3.1 → 1.4 | 3.9 → 1.7 | +7.8 → −0.3 |
| 持ち上げ | 2.98 → 0.45 | 4.7 → 1.5 | 2.7 → 0.4 | 3.9 → 1.3 | 26.2 → 2.7 | +27.1 → +2.6 |
| 箱の上へ・離す | 3.02 → 0.57 | 9.7 → 2.3 | 8.2 → 1.2 | 4.5 → 1.5 | 14.3 → 5.1 | +15.1 → +5.4 |
| 戻る | 5.00 → 0.42 | 19.1 → 1.8 | 18.6 → 1.1 | 7.1 → 1.0 | 14.5 → 0.8 | +16.7 → −0.7 |
| 全部 | 2.44 → 0.40 | 6.0 → 1.6 | 3.3 → 0.7 | 4.1 → 0.9 | 9.4 → 1.7 | +10.3 → +1.9 |

（決めた偶数 25 本もほぼ同じ：全部 関節 2.38 → 0.39°・横 5.8 → 1.6・高さ 8.8 → 1.5 mm。当てはめすぎではない）

### つかみ直し 25 回

| 段階 | 関節 ° | 横 mm | 右 mm | 奥 mm | 高さ mm | 高さの平均 mm |
|---|---|---|---|---|---|---|
| ブロックの上へ | 3.26 → 0.48 | 5.9 → 1.7 | 3.3 → 1.5 | 4.6 → 0.5 | 7.9 → 3.0 | +7.2 → +2.2 |
| 外す | 1.28 → 0.41 | 7.9 → 2.1 | 3.1 → 0.8 | 6.8 → 1.5 | 11.3 → 2.9 | +13.1 → +3.2 |
| つかむ所へ下りる | 0.79 → 0.32 | 5.2 → 1.6 | 2.8 → 0.5 | 4.2 → 1.3 | 4.7 → 2.6 | +6.7 → +2.7 |
| 閉じる | 0.77 → 0.36 | 3.5 → 2.6 | 2.6 → 0.4 | 2.5 → 2.5 | 3.0 → **3.8** | +4.9 → −3.6 |
| 持ち上げ | 2.92 → 0.54 | 4.2 → 2.3 | 2.6 → 0.5 | 3.0 → 1.8 | 29.7 → 5.3 | +29.3 → +3.4 |
| 箱の上へ・離す | 3.16 → 0.57 | 9.6 → 2.6 | 8.2 → 1.3 | 4.9 → 1.6 | 14.6 → 5.6 | +16.5 → +6.5 |
| 戻る | 5.01 → 0.41 | 18.7 → 1.9 | 18.3 → 1.4 | 7.5 → 0.9 | 14.6 → 0.5 | +17.1 → −0.3 |
| 全部 | 2.09 → 0.43 | 6.5 → 2.0 | 3.2 → 0.9 | 4.9 → 1.2 | 11.1 → 3.0 | +11.8 → +2.7 |

- 「閉じる」の高さだけ、今のシムより悪い（3.0 → 3.8 mm。予想が 3.6 mm 低い）。この本は肩の指令が上がる向きで下りて、指令どおりの高さで閉じる（依頼 379）。dir_s は肩・肘の一定の足し分（+1.1°・+1.3°）の分だけ低く出す

### so101f 30 回・so101g 7 回（方策の回）

| 段階 | f 関節 ° | f 横 mm | f 高さ mm | g 関節 ° | g 横 mm | g 高さ mm |
|---|---|---|---|---|---|---|
| 寄る | 2.17 → 0.49 | 6.8 → 2.1 | 10.9 → 3.1 | 2.38 → 0.46 | 6.6 → 2.1 | 11.3 → 2.8 |
| つかむ所へ下りる | 0.83 → 0.48 | 5.1 → 3.1 | 6.1 → 3.0 | 1.23 → 0.49 | 6.5 → 2.7 | 8.3 → 2.8 |
| 閉じる | 0.84 → 0.52 | 5.6 → 3.6 | 9.5 → 3.5 | 1.06 → 0.57 | 6.1 → 3.1 | 9.4 → 2.7 |
| 持ち上げ | 2.01 → 0.54 | 6.2 → 2.4 | 19.9 → 3.8 | 1.64 → 0.61 | 7.0 → 3.1 | 16.9 → 4.4 |
| 持ち上げのあと | 1.85 → 0.65 | 6.9 → 2.7 | 12.4 → 4.7 | 1.95 → 0.68 | 7.3 → 2.9 | 13.8 → 4.7 |
| 全部 | 1.83 → 0.60 | 6.6 → 2.6 | 12.0 → 4.2 | 1.95 → 0.63 | 7.1 → 2.8 | 13.0 → 4.3 |

### つかむ所（本ごと。確かめる本。dir_s）

| 組 | 高さ 誤差 中央値 / 上位 1 割 | 右 誤差 中央値（平均） | 奥 誤差 中央値（平均） |
|---|---|---|---|
| 成功 奇数 | 2.4 → 1.5 / 13.0 → 5.8 | 2.8 → 0.4（−0.1） | 2.8 → 0.9（−0.2） |
| つかみ直し | 2.2 → 2.0 / 4.6 → 6.7 | 2.6 → 0.4（−0.6） | 2.2 → 1.3（−1.5） |
| so101f | 6.7 → 3.1 / 21.0 → 12.3 | 1.8 → 1.1（−0.1） | 4.4 → 1.8（−0.9） |
| so101g | 6.8 → 5.6 / 20.8 → 13.8 | 1.3 → 2.5（−0.8） | 4.9 → 3.1（+0.8） |

### 依頼 379 の沈みの再現（つかむ所の爪の高さ 実際 − 指令 と 予想 − 指令。中央値・幅 mm）

| 組 | 下りる間の肩の指令 | 本数 | 実際 | 予想 dir_s | 誤差 中央値 |
|---|---|---|---|---|---|
| 成功 50 本 | 1° より下がる | 8 | −15.1（−20.5〜−9.4） | −10.5（−11.6〜−2.8） | 6.0 |
| 成功 50 本 | ±1° 以内 | 6 | −4.0（−7.6〜−1.4） | −3.0（−3.9〜−2.6） | 1.8 |
| 成功 50 本 | 1° より上がる | 36 | −1.4（−5.9〜+0.3） | −2.7（−4.4〜−1.2） | 1.1 |
| つかみ直し | 下がる | 2 | −10.0（−15.9〜−4.0） | −11.5 | 5.9 |
| つかみ直し | 上がる | 22 | −0.9（−4.7〜+4.3） | −3.7（−8.1〜−1.9） | 1.8 |
| so101f | 下がる | 2 | −17.7（−23.3〜−12.1） | −9.7 | 8.0 |
| so101f | 上がる | 19 | −7.9（−18.3〜−1.5） | −7.3（−16.3〜−1.4） | 2.9 |
| so101g | 下がる | 2 | −24.6（−26.1〜−23.0） | −10.4 | 14.2 |
| so101g | 上がる | 5 | −7.1（−18.9〜−4.4） | −9.3（−13.2〜−7.5） | 2.6 |

（成功 50 本の 8 本・36 本は依頼 379 と同じ本数・同じ値になった。8 本のうち 4 本は決めた偶数の本）

### MuJoCo の場面に入れたすき間（成功 50 本。clear_345 の場面。中央値 mm。`demo_400.json`）

| | 指令（今のシム） | 予想 dir_s | 実際 | 実際との差 指令 → 予想 |
|---|---|---|---|---|
| つかむ所 爪と机 | +3.2 | −1.8 | −0.8 | 4.1 → 1.3 |
| つかむ所 固定側の爪とブロック | +0.6 | −0.9 | −0.9 | 2.2 → 0.6 |
| 下りる間の最小 固定側の爪とブロック | +0.6 | −0.9 | −0.8 | 2.3 → 0.7 |
| 下りる間の最小 爪と机 | +2.2 | −0.2 | +0.6 | 2.0 → 1.2 |

- 負は重なり（実機は机・ブロックにめり込めないので、「押し付けていた」と読む。依頼 379 と同じ）
- 「つかむ所 動く爪とブロック」は、閉じ始めのコマで爪の指令と読みがずれる（爪の遅れ）ので、比べるのに使わない（json には入れた）
- `predict` が MuJoCo で出した重さの力は、data_400 の値と差 0.0（同じ）

## 3. 図（look_400/）

- `fig_phase_err_400.png`：段階ごとの爪の間の点の差（横・高さ）。今のシム（灰）と dir_s（青）。成功の奇数・つかみ直し・so101f・so101g
- `fig_grasp_z_400.png`：つかむ所の爪の高さ・右・奥の「実際 − 指令」（横軸）と「予想 − 指令」（縦軸）。1 点 = 1 本。左は 赤 = 下りる間に肩の指令が下がる本・緑 = 上がる本。灰の線が今のシム（予想 0）
- `fig_example_400.png`：左 = so101g の 1 回（肩の指令が下がる。実際の肩は指令より 3〜4° 上に残り、予想はその半分ほど）、右 = 成功の 3 本目（上がる）。肩・肘・爪の間の点の高さ（指令・実際・予想）

## 4. 関数の使い方（`arm_response_400.py`。lerobot の python）

```
import arm_response_400 as AR
R = AR.ArmResponse()                        # 選んだ形 dir_s（AR.ArmResponse("grav_dir_s") なども選べる。"none" は指令のまま）
Q_real = R.predict(Q_cmd)                   # 指令の道 (N, 6) → 実機で読む関節 (N, 6)。out[k] = 指令 k を送った次のコマ
gaps = R.clearance(Q_real, block_xy, yaw)   # 1 コマずつ 固定側の爪・動く爪とブロック、爪と机、腕とブロック（mm）
```

- 値は `arm_response_400.json`（形ごと。`chosen` が dir_s）。関節の値は実機の読んだ値（LeRobot の度）。絵を描く・爪の間の点を出すときは、今までどおり joint_offset_342 を足す（`clearance` は clear_345 と同じく足さない。`joint_off=True` で足す）
- 依頼 399 のコードには触っていない。399 の道（関節のコマの並び）を `predict` に通してから、今までの測り方に渡せばよい
- 爪（6 つ目）は遅れだけ（α 0.175）。ブロックを挟んで止まる所は出さない

## 5. 予想できなかったこと

- **肩が指令より 3〜4° 上に残り続ける本**（success_v1 の肩が下がる本、so101g の 2 回）。dir_s は向きの足し分 +1.7° までしか出さないので、−15〜−25 mm の沈みを −10 mm 前後までしか出せない。沈みの量は本によって 9〜26 mm とばらつき、指令の形（向き・重さ）だけでは決まらない
- **机・ブロックに当たったときの動き。** so101f の 1 回は、実際がつかむ所で指令より 38 mm 低い（予想 −17 mm）。机やブロックを押して止まる・爪がブロックに乗る、は入れていない（実機の関節の読みは、当たったときも指令より沈んだ値になる）
- **電流。** so101f・g の回は `currents` が off で、電流が記録にない。成功 50 本・つかみ直しにもない。押し付けた力・重さで沈んだのかを電流で分けられない
- つかみ直しの本で、重さの形がつかむ所を 7〜8 mm 低く出しすぎる理由（つかみ直しの本の肩の指令は 下りる間に +1〜+8.5° と大きく上がる）
- 方策の回の段階はキー姿勢がないので、爪を閉じる指令から決めた目安。so101g は 7 回と少ない
- 爪の間の点の目安の誤差（水平 4 mm・最大 8 mm）は、指令・実際・予想に同じように入る

## 6. ファイル（look_400/）

| ファイル | 中身・動かし方 |
|---|---|
| `data_400.py` | 記録を集め、重さの力・爪の間の点を出す → `_data/data_400.npy`（lerobot の python） |
| `arm_response_400.py` | 予想する関数（`ArmResponse.predict`・`clearance`） |
| `fit_400.py` | 形を決めて確かめる → `arm_response_400.json`・`result_400.json`・`_data/eval_400.npy`（lerobot の python。約 15 分） |
| `demo_400.py` | MuJoCo の場面のすき間（成功 50 本）→ `demo_400.json`（lerobot の python） |
| `figs_400.py` | 図（`python3`） |
| `REPORT.md` | この報告 |

- commit したのは、コード（上の .py 5 つ）と REPORT.md だけ。`arm_response_400.json`（関数の値）・`result_400.json`・`demo_400.json`・図・`_data/` は commit していない（依頼の「commit はコードと REPORT だけ」のため）。`fit_400.py` を動かせば同じものができる

## 決めてほしいこと

1. **シムの腕の動きの差に `dir_s` を使うか。** 成功の本・つかみ直し・方策の回とも、つかむ所の横は 1〜3 mm、高さは 1.5〜5.6 mm まで合う。ただし、肩が下がって大きく沈む本（−15〜−25 mm）は 7 割ほどしか出せない。別の案は `grav_dir_s`（大きな沈みは よく出せるが、つかみ直しの本を 7〜8 mm 低く出しすぎる）
2. **依頼 399 のつかみ方の案を、dir_s を通した道で確かめ直すか**（別の依頼。399 のコードは触っていない）
3. **大きな沈みと当たったときの動きを測るため、実機の記録で電流を残すか**（`currents` を on にする。アームを動かす話なので、エイイチの決め）
4. **`arm_response_400.json`（関数の値）を git に入れるか。** 今回は依頼のとおりコードと REPORT だけを commit した。json がないと関数は動かない（`fit_400.py` を動かせば作り直せる）

判定：止めた（決めてほしいことあり）
````

### so101/sim/look_400/arm_response_400.py

```python
"""依頼 400: 指令の道 (関節のコマの並び) → 実機で着く関節の並び を返す (腕の沈み・ずれ・遅れの形).

形 (関節 5 つ それぞれ. 値は arm_response_400.json. fit_400.py が 成功 50 本の偶数の本で決めた):
  ねらい x[k] = u[k] + c + a·τ[k] + b·s[k] + h·s[k]·τ[k]
    u = 指令 (LeRobot の度), τ = 指令の姿勢での 重さの力 (MuJoCo. N·m. 肩の回転・手首の回転は 0 なので使わない),
    s = 動く向き (指令が 1 コマで eps 度より上がれば +1, 下がれば −1. 止まっても 次に動くまで そのまま. 始めは 0)
  遅れ y[k+1] = (1 − α)·y[k] + α·x[k − d]   (d コマのずれ と 1 次の遅れ. y[0] = 始めの関節)
  返す並びは out[k] = y[k+1] = 「コマ k の指令を送ったあと 次のコマで読む関節」(記録の state[k+1] と同じ並べ方)
爪 (6 つ目) は 遅れだけ (ブロックに当たって止まる所は予想しない).
関節の値は 実機の読んだ値 (LeRobot の度) のまま. シムに入れるときは今までどおり joint_offset_342 を足す (sim_335.set_arm_qpos).

使い方 (lerobot の python):
  import arm_response_400 as AR
  R = AR.ArmResponse()                       # 選んだ形 (json の "chosen")
  Q_real = R.predict(Q_cmd)                  # (N, 6) → (N, 6)
  gaps = R.clearance(Q_real, block_xy, yaw)  # 1 コマずつ 爪とブロック・机のすき間 (mm)
"""
import json
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
PARAMS = HERE / "arm_response_400.json"
JOINTS = ("shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll")


def dir_state(u, eps):
    """指令の動く向き (+1 / −1 / 0). 止まっても次に動くまで残す"""
    s = np.zeros(len(u))
    cur = 0.0
    for k in range(1, len(u)):
        du = u[k] - u[k - 1]
        if du > eps:
            cur = 1.0
        elif du < -eps:
            cur = -1.0
        s[k] = cur
    return s


def lowpass(x, alpha, d, y0=0.0):
    """y[k+1] = (1 − α) y[k] + α x[k − d] (k − d < 0 は x[0]). 返すのは y[1..N]"""
    n = len(x)
    xd = np.r_[np.full(d, x[0]), x[:n - d]] if d > 0 else x
    out = np.empty(n)
    y = y0
    for k in range(n):
        y = (1.0 - alpha) * y + alpha * xd[k]
        out[k] = y
    return out


def features(u, tau, eps):
    """ねらいの足し分の列 (定数・重さ・向き・向き×重さ)"""
    s = dir_state(u, eps)
    return np.c_[np.ones(len(u)), tau, s, s * tau]


def predict_joint(u, tau, p, y0=None):
    """関節 1 つ. p = {"alpha", "d", "eps", "coef": [c, a, b, h]}"""
    u = np.asarray(u, float)
    x = u + features(u, np.asarray(tau, float), p.get("eps", 0.05)) @ np.asarray(p["coef"], float)
    return lowpass(x, p["alpha"], int(p["d"]), u[0] if y0 is None else y0)


class ArmResponse:
    def __init__(self, model=None, params=PARAMS):
        P = json.loads(Path(params).read_text())
        self.model = model or P["chosen"]
        self.p = P["models"][self.model]
        self._arm = None

    # ---- 重さの力 (MuJoCo) ----
    def _mj(self):
        if self._arm is None:
            so101 = HERE.parent.parent
            for sub in ("sim", "check_376", "ideal_var"):
                sys.path.insert(0, str(so101 / sub))
            import lib_376 as L
            self._L = L
            self._arm = L.Arm()
        return self._arm

    def gravity(self, Q):
        """指令の姿勢ごとの 関節 5 つの重さの力 (N·m). data_400.gravity と同じ"""
        arm = self._mj()
        L, mj, m, d = self._L, arm.mj, arm.m, arm.d
        dof = [m.joint(n).dofadr[0] for n in JOINTS]
        out = []
        for q in np.asarray(Q, float):
            L.G.set_arm_qpos(m, d, list(q), arm.gmap, joint_off=arm.off)
            d.qvel[:] = 0
            mj.mj_forward(m, d)
            out.append(d.qfrc_bias[dof].copy())
        return np.array(out)

    # ---- 予想 ----
    def predict(self, Q_cmd, tau=None, y0=None):
        """Q_cmd (N, 6) の指令 → (N, 6) の 実機で読む関節 (out[k] = 指令 k を送った次のコマ).
        tau を渡さなければ MuJoCo で出す. y0 (6,) = 始めの関節 (なければ指令の最初のコマ)"""
        Q = np.asarray(Q_cmd, float)
        if self.model == "none":
            return Q.copy()
        tau = self.gravity(Q) if tau is None else np.asarray(tau, float)
        y0 = Q[0] if y0 is None else np.asarray(y0, float)
        out = np.empty_like(Q)
        for j, name in enumerate(JOINTS):
            out[:, j] = predict_joint(Q[:, j], tau[:, j], self.p[name], y0[j])
        g = self.p.get("gripper")
        out[:, 5] = Q[:, 5] if g is None else lowpass(Q[:, 5] + g["coef"][0], g["alpha"], int(g["d"]), y0[5])
        return out

    # ---- すき間 (MuJoCo. clear_345 と同じ場面) ----
    def clearance(self, Q, block_xy, yaw, frames=None, joint_off=False):
        """関節の並び Q (実機の読んだ値. predict の答えをそのまま) で 1 コマずつのすき間 (mm. 負は重なり).
        場面は clear_345 のまま (関節のずれを足さない. 依頼 379・380・399 と同じ). joint_off=True なら joint_offset_342 を足す.
        fixed_block 固定側の爪 (gripper の体) とブロック / moving_block 動く爪とブロック /
        jaw_table 爪 2 つと机 / arm_block 爪・手首・カメラとブロック"""
        self._mj()
        import clear_345 as CL
        S = CL.scene()
        sc, geo = S.sc, S.geo
        m = geo.m
        body = lambda names: [g for g in range(m.ngeom) if m.body(int(m.geom_bodyid[g])).name in names]  # noqa: E731
        fixed, moving = body(("gripper",)), body(("moving_jaw_so101_v1",))
        Q = np.asarray(Q, float).copy()
        if joint_off:
            for name, v in self._arm.off.items():
                Q[:, JOINTS.index(name)] += v
        idx = range(len(Q)) if frames is None else frames
        sc.block(list(block_xy), yaw)
        rows = []
        for k in idx:
            sc.pose(Q[k])
            rows.append([k, geo.dist(fixed, geo.blk), geo.dist(moving, geo.blk), geo.dist(geo.jaw, geo.table),
                         geo.dist(geo.arm, geo.blk)])
        sc.block([1000, 1000], 0)
        r = np.array(rows)
        return {"frame": r[:, 0].astype(int), "fixed_block": r[:, 1], "moving_block": r[:, 2],
                "jaw_table": r[:, 3], "arm_block": r[:, 4]}
```

### so101/sim/look_400/data_400.py

```python
"""依頼 400: 実機の記録から 指令 (sent) と実際の関節 (state)・段階・重さのかかり方 (MuJoCo) を集めて _data/data_400.npy に置く.

集める本 (すべて読むだけ):
  sv1   成功 50 本 (success_v1. 元は 351/record の sent・state. raw_episodes の meta で引く)
  rec   つかみ直し 25 本 (377/record 20 回 + 380/record 5 回)
  f, g  so101f 30 回・so101g 7 回 (so101_trials.csv で結果のある回. 記録の ptm.sent と observation.state)
並べ方: state[k+1] (次のコマで読んだ関節) を sent[k] (コマ k で送った値) の応えとする (依頼 379 と同じ).
重さ: MuJoCo (so101_new_calib_camera.xml) に 指令の姿勢 (+ joint_offset_342) を入れ, 速さ 0 での関節の重さの力 (qfrc_bias, N·m).
  /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/sim/look_400/data_400.py
"""
import csv
import json
import sys
from pathlib import Path

import numpy as np

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

LOG = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12")
SV1 = Path("/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_ideal_var_v2_success_v1/raw_episodes")


def gravity(arm, Q):
    """指令の姿勢ごとの 関節 5 つの重さの力 (N·m. sim の関節の向き = LeRobot の向き)"""
    mj, m, d = arm.mj, arm.m, arm.d
    dof = [m.joint(n).dofadr[0] for n in L.S.MOTORS[:5]]
    out = []
    for q in Q:
        L.G.set_arm_qpos(m, d, list(q), arm.gmap, joint_off=arm.off)
        d.qvel[:] = 0
        mj.mj_forward(m, d)
        out.append(d.qfrc_bias[dof].copy())
    return np.array(out)


def kf_phases(kf, n):
    """段階 (名前, 始め, 終わり). つかみ直しの本は 外す区間 (ABOVE_BLOCK → 戻った所) を recover に"""
    start_desc = kf.get("RETRY_ABOVE", kf.get("MISS_UP") if "MISS_OPEN" in kf else None) or kf["ABOVE_BLOCK"]
    ph = [("to_above", 0, kf["ABOVE_BLOCK"])]
    if start_desc != kf["ABOVE_BLOCK"]:
        ph.append(("recover", kf["ABOVE_BLOCK"], start_desc))
    ph += [("descend", start_desc, kf["GRASP_OPEN"]), ("close", kf["GRASP_OPEN"], kf["GRASP_CLOSED"] + 10),
           ("lift", kf["GRASP_CLOSED"] + 10, kf["LIFT"]), ("to_box", kf["LIFT"], kf["RELEASED"]),
           ("return", kf["RELEASED"], n)]
    return ph


def close_frame(state, a, b):
    """爪の値 (state) が 20 より下がった最初のコマ (依頼 379 と同じ)"""
    for k in range(a, min(b + 15, len(state))):
        if state[k, 5] < 20:
            return k
    return b


def policy_grasp(sent, state, P_state):
    """方策の回: 送った爪が 20 を割った回のうち, 爪の間の点が机から 40 mm 以下で閉じた最初の回 → (送ったコマ, 読んだコマ)"""
    g = sent[:, 5]
    for k in range(1, len(g)):
        if g[k - 1] >= 20 > g[k] and P_state[min(k + 1, len(P_state) - 1), 2] < 40:
            kc = k
            while kc < len(state) - 1 and state[kc, 5] >= 20:
                kc += 1
            return k, kc
    return None, None


def item(arm, name, group, sent, state, kf=None, extra=None):
    """state は sent より 1 コマ長い (state[k+1] が sent[k] の応え)"""
    n = len(sent)
    state = state[:n + 1]
    d = dict(name=name, group=group, sent=sent, state=state, tau=gravity(arm, sent),
             P_sent=arm.path(sent), P_state=arm.path(state))
    if kf:
        d["kf"] = kf
        d["phases"] = kf_phases(kf, n)
        kc = close_frame(state, kf["GRASP_OPEN"], kf["GRASP_CLOSED"])
        d["grasp"] = (kf["GRASP_CLOSED"], kc)
    else:
        ks, kc = policy_grasp(sent, state, d["P_state"])
        d["grasp"] = None if ks is None else (ks, kc)
        if ks is not None:
            d["phases"] = [("approach", 0, max(ks - 45, 0)), ("descend", max(ks - 45, 0), ks),
                           ("close", ks, ks + 10), ("lift", ks + 10, min(ks + 40, n)), ("after", min(ks + 40, n), n)]
        else:
            d["phases"] = [("all", 0, n)]
    d.update(extra or {})
    return d


def runs_of(rec):
    out = {}
    for f in sorted(rec.glob("i[0-9]*_run.json")):
        r = json.loads(f.read_text())
        p = json.loads(Path(str(f).replace("_run.json", "_path.json")).read_text())
        out[r["episode_index"]] = (r, p)
    return out


def main():
    import pandas as pd
    arm, cam, info = L.setup()
    print("center", info, flush=True)
    data = []
    # 成功 50 本
    r351 = runs_of(LOG / "351/record")
    for d in sorted(SV1.glob("so101_*_ep*")):
        m = json.loads((d / "meta.json").read_text())
        r, p = r351[m["source_episode_index"]]
        kf = {k["name"]: k["frame"] for k in p["keyframes"]}
        data.append(item(arm, d.name, "sv1", np.array(r["sent"], float), np.array(r["state"], float), kf,
                         {"src": f"351/ep{m['source_episode_index']}", "label": r["label"]}))
        print(data[-1]["name"], len(r["sent"]), flush=True)
    # つかみ直し 25 回
    for req in ("377", "380"):
        for ep, (r, p) in sorted(runs_of(LOG / req / "record").items()):
            kf = {k["name"]: k["frame"] for k in p["keyframes"]}
            data.append(item(arm, f"{req}_ep{ep:02d}", "rec", np.array(r["sent"], float), np.array(r["state"], float), kf,
                             {"src": f"{req}/ep{ep}", "label": r["label"]}))
            print(data[-1]["name"], r["label"], flush=True)
    # so101f・g
    rows = list(csv.DictReader(open(LOG / "so101_trials.csv")))
    for row in rows:
        mdl = row["model"].split()[0]
        if mdl not in ("so101f", "so101g") or row["result"] not in ("success", "failure"):
            continue
        rd = Path(row["record_dir"])
        df = pd.read_parquet(rd / "data/chunk-000/file-000.parquet")
        sent = np.stack(df["ptm.sent"].to_numpy()).astype(float)
        state = np.stack(df["observation.state"].to_numpy()).astype(float)
        # state[k] は sent[k] を送る前に読んだ値. 最後の sent には応えがないので 1 つ落とす
        data.append(item(arm, row["trial"], mdl[-1], sent[:-1], state, None,
                         {"src": row["trial"], "label": row["result"], "place": row["place"], "currents": row["currents"]}))
        print(data[-1]["name"], mdl, row["result"], "grasp", data[-1]["grasp"], flush=True)
    out = HERE / "_data"
    out.mkdir(exist_ok=True)
    np.save(out / "data_400.npy", {"info": info, "data": data}, allow_pickle=True)
    print("[WROTE]", out / "data_400.npy", len(data))


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

### so101/sim/look_400/fit_400.py

```python
"""依頼 400: 腕の動きの差の形を 成功 50 本の偶数の本で決め, 奇数・つかみ直し 25 回・so101f・g で確かめる.
  入力 _data/data_400.npy (data_400.py). 出力 arm_response_400.json (形ごとの値)・result_400.json (表の数字)・_data/eval_400.npy (図の元)
  /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/sim/look_400/fit_400.py
"""
import json
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE))
sys.path.insert(0, str(HERE.parent.parent / "check_376"))
import arm_response_400 as AR  # noqa: E402

ALPHAS = np.round(np.r_[np.arange(0.10, 0.50, 0.025), np.arange(0.5, 1.0001, 0.05)], 3)
DELAYS = range(0, 5)
EPSS = (0.02, 0.05, 0.1, 0.2, 0.4)
NO_TAU = ("shoulder_pan", "wrist_roll")     # 重さの力が 0 の関節
SETTLE_FRAMES, SETTLE_DEG = 15, 0.3         # 「止まった」コマ: その関節の指令の 1 コマの変化が 直前 15 コマとも 0.3° 未満
# 形: (遅れを入れるか, 足し分の列 [定数 c, 重さ a, 向き b, 向き×重さ h], 足し分を止まったコマだけで決めるか)
#   遅れ (α, d) と eps は どれも 全部のコマの二乗の和で選ぶ. _s の形は 足し分 (c, a, b, h) だけを 止まったコマで決める
MODELS = {
    "const": (False, [0], False),
    "lag": (True, [0], False),
    "grav": (True, [0, 1], False),
    "dir": (True, [0, 2], False),
    "grav_dir": (True, [0, 1, 2], False),
    "grav_dir_x": (True, [0, 1, 2, 3], False),
    "grav_dir_static": (False, [0, 1, 2], False),
    "lag_s": (True, [0], True),
    "grav_s": (True, [0, 1], True),
    "dir_s": (True, [0, 2], True),
    "grav_dir_s": (True, [0, 1, 2], True),
    "grav_dir_x_s": (True, [0, 1, 2, 3], True),
}


def settled(u):
    du = np.abs(np.diff(u, prepend=u[0]))
    return np.array([du[max(0, k - SETTLE_FRAMES + 1):k + 1].max() < SETTLE_DEG for k in range(len(u))])
ORDER = ["none"] + list(MODELS)
SETS = ("sv1_even", "sv1_odd", "rec", "f", "g")
PHASE_JA = {"to_above": "ブロックの上へ", "recover": "外す (つかみ直し)", "descend": "つかむ所へ下りる", "close": "閉じる",
            "lift": "持ち上げ", "to_box": "箱の上へ・離す", "return": "戻る",
            "approach": "寄る (方策)", "after": "持ち上げのあと (方策)"}


def set_of(i, d):
    if d["group"] == "sv1":
        return "sv1_even" if i % 2 == 0 else "sv1_odd"
    return d["group"]


def lp_cols(X, alpha, d, n):
    """lowpass を列ごとに (始め 0)"""
    Xd = np.r_[np.repeat(X[:1], d, 0), X[:n - d]] if d > 0 else X
    out = np.empty_like(Xd)
    y = np.zeros(X.shape[1])
    for k in range(n):
        y = (1.0 - alpha) * y + alpha * Xd[k]
        out[k] = y
    return out


def fit_joint(eps_train, j, lag, cols, only_settled=False):
    """関節 j の (α, d, eps, 係数) を 二乗の和で選ぶ"""
    name = AR.JOINTS[j]
    if name in NO_TAU:
        cols = [c for c in cols if c not in (1, 3)]
    use_dir = 2 in cols
    grid = [(a, d) for a in ALPHAS for d in DELAYS] if lag else [(1.0, 0)]
    best = None
    for eps in (EPSS if use_dir else (0.05,)):
        feats = [(d_["sent"][:, j], d_["state"][1:, j], d_["state"][0, j], AR.features(d_["sent"][:, j], d_["tau"][:, j], eps))
                 for d_ in eps_train]
        for alpha, dl in grid:
            A, r, W = [], [], []
            for u, y, y0, F in feats:
                n = len(u)
                M = lp_cols(np.c_[u, F[:, cols]], alpha, dl, n)
                decay = y0 * (1 - alpha) ** np.arange(1, n + 1)
                r.append(y - decay - M[:, 0])
                A.append(M[:, 1:])
                W.append(settled(u) if only_settled else np.ones(n, bool))
            A, r, W = np.concatenate(A), np.concatenate(r), np.concatenate(W)
            c, *_ = np.linalg.lstsq(A[W], r[W], rcond=None)
            sse = float(((r - A @ c) ** 2).sum())
            if best is None or sse < best[0]:
                coef = np.zeros(4)
                coef[cols] = c
                best = (sse, {"alpha": float(alpha), "d": int(dl), "eps": float(eps), "coef": coef.round(5).tolist(),
                              "rms_train_deg": round(float(np.sqrt(sse / len(r))), 4)})
    return best[1]


def fit_gripper(train):
    best = None
    for alpha in ALPHAS:
        for dl in DELAYS:
            e = []
            for d_ in train:
                u, y = d_["sent"][:, 5], d_["state"][1:, 5]
                e.append(y - AR.lowpass(u, alpha, dl, d_["state"][0, 5]))
            e = np.concatenate(e)
            c = float(np.median(e))
            sse = float(((e - c) ** 2).sum())
            if best is None or sse < best[0]:
                best = (sse, {"alpha": float(alpha), "d": int(dl), "coef": [round(c, 3)]})
    return best[1]


def rf(dxy, p):
    """机の上の差 → (右, 奥). 奥 = 根元 → その点, 右 = 奥を時計回りに 90°"""
    u = p[:2] / np.linalg.norm(p[:2])
    r = np.array([u[1], -u[0]])
    return np.array([dxy @ r, dxy @ u])


def main():
    D = np.load(HERE / "_data/data_400.npy", allow_pickle=True).item()["data"]
    import lib_376 as L
    arm, _, _ = L.setup()
    sv = [d for d in D if d["group"] == "sv1"]
    for i, d in enumerate(sv):
        d["set"] = set_of(i, d)
    for d in D:
        d.setdefault("set", d["group"])
    train = [d for d in D if d["set"] == "sv1_even"]
    params = {"none": {}}
    for mname, (lag, cols, only_s) in MODELS.items():
        params[mname] = {AR.JOINTS[j]: fit_joint(train, j, lag, cols, only_s) for j in range(5)}
        params[mname]["gripper"] = fit_gripper(train) if lag else None
        print(mname, {k: (v["alpha"], v["d"], v["eps"], v["coef"], v["rms_train_deg"]) for k, v in params[mname].items()
                      if k in AR.JOINTS}, flush=True)
    P = {"chosen": None, "models": params,
         "how": "arm_response_400.py の説明のとおり. 関節の値は 実機の読んだ値 (LeRobot の度). τ は MuJoCo の 指令の姿勢 (+joint_offset_342) での 重さの力 (N·m)",
         "fit_on": "成功 50 本 (success_v1. 元は 351/record) の偶数の本 25 本の 全部のコマ", "request": "依頼 400"}
    (HERE / "arm_response_400.json").write_text(json.dumps(P, ensure_ascii=False, indent=1))

    # ---- 確かめ ----
    ev = []
    for d in D:
        u, y = d["sent"], d["state"][1:]
        Py = d["P_state"][1:]
        e = {"name": d["name"], "set": d["set"], "label": d.get("label"), "phases": d["phases"], "grasp": d["grasp"],
             "models": {}}
        for mname in ORDER:
            R = AR.ArmResponse.__new__(AR.ArmResponse)
            R.model, R.p = mname, params[mname]
            Q = R.predict(u, tau=d["tau"], y0=d["state"][0])
            Pq = arm.path(Q)
            e["models"][mname] = {"jerr": Q[:, :5] - y[:, :5], "perr": Pq - Py, "Pq": Pq}
        e["P_state"], e["P_sent"], e["sent"], e["state"] = d["P_state"], d["P_sent"], u, d["state"]
        ev.append(e)
        print("eval", d["name"], flush=True)
    np.save(HERE / "_data/eval_400.npy", ev, allow_pickle=True)
    res = summarize(ev, params)
    P["chosen"] = res["chosen"]
    (HERE / "arm_response_400.json").write_text(json.dumps(P, ensure_ascii=False, indent=1))
    (HERE / "result_400.json").write_text(json.dumps(res, ensure_ascii=False, indent=1))
    print("[WROTE] arm_response_400.json result_400.json chosen", res["chosen"])


def grasp_rows(ev, mname):
    """つかむ所: 実際に爪が閉じたコマ kc (state の並び) での 予想 − 実際 (右, 奥, 高さ) と, 依頼 379 の量"""
    rows = []
    for e in ev:
        if e["grasp"] is None:
            continue
        ks, kc = e["grasp"]
        if kc - 1 >= len(e["models"][mname]["Pq"]):
            continue
        p_real = e["P_state"][kc]
        p_pred = e["models"][mname]["Pq"][kc - 1]
        p_cmd = e["P_sent"][ks]
        ph = dict((n, (a, b)) for n, a, b in e["phases"])
        a0 = ph["descend"][0]
        dsh = float(e["sent"][ph["descend"][1], 1] - e["sent"][a0, 1])
        rows.append({"name": e["name"], "set": e["set"], "label": e["label"],
                     "err_rfz": np.r_[rf(p_pred[:2] - p_real[:2], p_real), p_pred[2] - p_real[2]].round(2).tolist(),
                     "real_minus_cmd_z": round(float(p_real[2] - p_cmd[2]), 2),
                     "pred_minus_cmd_z": round(float(p_pred[2] - p_cmd[2]), 2),
                     "real_minus_cmd_rf": rf(p_real[:2] - p_cmd[:2], p_real).round(2).tolist(),
                     "pred_minus_cmd_rf": rf(p_pred[:2] - p_cmd[:2], p_real).round(2).tolist(),
                     "real_z": round(float(p_real[2]), 2), "pred_z": round(float(p_pred[2]), 2),
                     "shoulder_cmd_change_descend_deg": round(dsh, 2)})
    return rows


def stat(x):
    x = np.asarray(x, float)
    if len(x) == 0:
        return None
    return {"med_abs": round(float(np.median(np.abs(x))), 2), "p90_abs": round(float(np.percentile(np.abs(x), 90)), 2),
            "mean": round(float(np.mean(x)), 2), "n": int(len(x))}


def summarize(ev, params):
    out = {"sets": {}, "grasp": {}, "sag379": {}}
    for s in SETS:
        E = [e for e in ev if e["set"] == s]
        out["sets"][s] = {"n_runs": len(E)}
        for mname in ORDER:
            tab = {}
            phases = sorted({p for e in E for p, _, _ in e["phases"]}, key=lambda p: list(PHASE_JA).index(p) if p in PHASE_JA else 99)
            for ph in phases + ["all"]:
                J, H, Z = [], [], []
                for e in E:
                    M = e["models"][mname]
                    spans = [(0, len(M["jerr"]))] if ph == "all" else [(a, b) for n, a, b in e["phases"] if n == ph]
                    for a, b in spans:
                        sl = slice(a, min(b, len(M["jerr"])))
                        J.append(M["jerr"][sl])
                        pe, pr = M["perr"][sl], e["P_state"][1:][sl]
                        H.append(np.array([rf(pe[i, :2], pr[i]) for i in range(len(pe))]).reshape(-1, 2))
                        Z.append(pe[:, 2])
                if not J:
                    continue
                J, H, Z = np.concatenate(J), np.concatenate(H), np.concatenate(Z)
                tab[ph] = {"joint_mae_deg": np.abs(J).mean(0).round(2).tolist(),
                           "joint_mae_mean_deg": round(float(np.abs(J).mean()), 2),
                           "horiz_med_mm": round(float(np.median(np.linalg.norm(H, axis=1))), 1),
                           "right_med_abs_mm": round(float(np.median(np.abs(H[:, 0]))), 1),
                           "fwd_med_abs_mm": round(float(np.median(np.abs(H[:, 1]))), 1),
                           "z_med_abs_mm": round(float(np.median(np.abs(Z))), 1),
                           "z_mean_mm": round(float(np.mean(Z)), 1), "frames": int(len(Z))}
            out["sets"][s][mname] = tab
    for mname in ORDER:
        G = grasp_rows(ev, mname)
        out["grasp"][mname] = {}
        for s in SETS:
            R = [r for r in G if r["set"] == s]
            if not R:
                continue
            E = np.array([r["err_rfz"] for r in R])
            out["grasp"][mname][s] = {"right": stat(E[:, 0]), "fwd": stat(E[:, 1]), "z": stat(E[:, 2]),
                                      "horiz_med_mm": round(float(np.median(np.linalg.norm(E[:, :2], axis=1))), 2)}
        out["grasp"][mname]["rows"] = G
        # 依頼 379: 肩の指令が下がる本・上がる本 の 爪の高さ (実際 − 指令) と予想
        sag = {}
        for s in ("sv1", "rec", "f", "g"):
            R = [r for r in G if r["set"].startswith(s)]
            for sign, key in ((-1, "down"), (1, "up")):
                RR = [r for r in R if np.sign(r["shoulder_cmd_change_descend_deg"]) == sign]
                if RR:
                    sag[f"{s}_{key}"] = {"n": len(RR),
                                         "real_minus_cmd_z_med": round(float(np.median([r["real_minus_cmd_z"] for r in RR])), 1),
                                         "pred_minus_cmd_z_med": round(float(np.median([r["pred_minus_cmd_z"] for r in RR])), 1),
                                         "real_range": [round(min(r["real_minus_cmd_z"] for r in RR), 1), round(max(r["real_minus_cmd_z"] for r in RR), 1)],
                                         "pred_range": [round(min(r["pred_minus_cmd_z"] for r in RR), 1), round(max(r["pred_minus_cmd_z"] for r in RR), 1)],
                                         "err_z_med_abs": round(float(np.median([abs(r["err_rfz"][2]) for r in RR])), 1)}
        out["sag379"][mname] = sag
    # 選ぶ: 確かめる本 (奇数・つかみ直し・f・g) の つかむ所の高さ と 横 の誤差 (中央値) の和がいちばん小さい形
    score = {}
    for mname in ORDER:
        g = out["grasp"][mname]
        score[mname] = round(float(np.mean([g[s]["z"]["med_abs"] + g[s]["horiz_med_mm"] for s in SETS[1:] if s in g])), 2)
    out["score_grasp_mm"] = score
    out["chosen"] = min(score, key=score.get)
    out["phase_ja"] = PHASE_JA
    return out


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

### so101/sim/look_400/demo_400.py

```python
"""依頼 400: arm_response_400 を MuJoCo の場面 (clear_345) に入れて 爪とブロック・机のすき間を測る例 (成功 50 本).
  指令 (今のシム)・予想 (入れたシム)・実際 (記録の関節) の 3 つを 同じ場面で比べる.
  つかむ所 = 爪が実際に閉じたコマ (data_400 の grasp). 下りる間 = 下りる区間の最小.
  ブロック = 録ったときの机のカメラの画素 (meta の block_pixel) → 机の上 (依頼 379 と同じ). 向き = meta の yaw.
  出力 demo_400.json
  /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/sim/look_400/demo_400.py [形]
"""
import json
import sys
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE))
import arm_response_400 as AR  # noqa: E402

SV1 = Path("/Volumes/KIOXIA/r2r2r-data/datasets/so101_redblock_box_ideal_var_v2_success_v1/raw_episodes")


def main():
    model = sys.argv[1] if len(sys.argv) > 1 else None
    R = AR.ArmResponse(model)
    D = np.load(HERE / "_data/data_400.npy", allow_pickle=True).item()["data"]
    R._mj()
    L = R._L
    cam = L.desk_cam()
    metas = {d.name: json.loads((d / "meta.json").read_text()) for d in SV1.glob("so101_*_ep*")}
    rows = []
    for i, d in enumerate([d for d in D if d["group"] == "sv1"]):
        m = metas[d["name"]]
        bxy, yaw = L.px_to_desk(cam, m["block_pixel"]), m["yaw"]
        u = d["sent"]
        Qp = R.predict(u)                       # MuJoCo で重さの力も出す (data_400 の tau を使わない. 使い方の確かめ)
        ks, kc = d["grasp"]
        ph = {n: (a, b) for n, a, b in d["phases"]}
        a, b = ph["descend"]
        out = {"name": d["name"], "set": "sv1_even" if i % 2 == 0 else "sv1_odd",
               "tau_vs_data_max": float(np.abs(R.gravity(u[[a, b]]) - d["tau"][[a, b]]).max())}
        # 3 つの並びを 同じコマの意味にそろえる: 指令 u[k] / 予想 Qp[k] / 実際 state[k+1]
        for key, Q in (("cmd", u), ("pred", Qp), ("real", d["state"][1:])):
            g = R.clearance(Q, bxy, yaw, frames=list(range(a, b + 1)) + [kc - 1])
            out[key] = {"grasp_jaw_table": round(float(g["jaw_table"][-1]), 1),
                        "grasp_fixed_block": round(float(g["fixed_block"][-1]), 1),
                        "grasp_moving_block": round(float(g["moving_block"][-1]), 1),
                        "descend_min_fixed_block": round(float(g["fixed_block"][:-1].min()), 1),
                        "descend_min_jaw_table": round(float(g["jaw_table"][:-1].min()), 1)}
        rows.append(out)
        print(out["name"], {k: out[k]["grasp_jaw_table"] for k in ("cmd", "pred", "real")}, flush=True)
    summ = {}
    for key in ("cmd", "pred", "real"):
        summ[key] = {f: round(float(np.median([r[key][f] for r in rows])), 1)
                     for f in rows[0][key]}
    err = {f: round(float(np.median([abs(r["pred"][f] - r["real"][f]) for r in rows])), 1) for f in rows[0]["pred"]}
    err0 = {f: round(float(np.median([abs(r["cmd"][f] - r["real"][f]) for r in rows])), 1) for f in rows[0]["pred"]}
    res = {"model": R.model, "median": summ, "med_abs_err_pred_vs_real": err, "med_abs_err_cmd_vs_real": err0,
           "tau_vs_data_max": max(r["tau_vs_data_max"] for r in rows), "rows": rows}
    (HERE / "demo_400.json").write_text(json.dumps(res, ensure_ascii=False, indent=1))
    print(json.dumps({k: v for k, v in res.items() if k != "rows"}, ensure_ascii=False, indent=1))


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

### so101/sim/look_400/figs_400.py

```python
"""依頼 400 の図 (python3. matplotlib). 入力 result_400.json・_data/eval_400.npy
  fig_phase_err_400.png   段階ごとの 爪の間の点の 予想 − 実際 (横・高さ. 今のシム / 入れたシム)
  fig_grasp_z_400.png     つかむ所の 爪の高さ (実際 − 指令) と 予想 (本ごとの点)
  fig_example_400.png     肩の指令が下がる本 1 本の 肩・肘・爪の高さ (指令・実際・予想)
"""
import json
from pathlib import Path

import matplotlib
import numpy as np

matplotlib.use("Agg")
import matplotlib.pyplot as plt  # noqa: E402

HERE = Path(__file__).resolve().parent
plt.rcParams["font.family"] = ["Hiragino Sans", "sans-serif"]
NONE_C, CH_C, REAL_C = "#9aa0a6", "#1f6feb", "#222222"
SET_JA = {"sv1_odd": "成功 50 本の奇数", "rec": "つかみ直し 25 回", "f": "so101f 30 回", "g": "so101g 7 回"}


def main():
    res = json.loads((HERE / "result_400.json").read_text())
    ch = res["chosen"]
    ev = np.load(HERE / "_data/eval_400.npy", allow_pickle=True)
    pj = res["phase_ja"]

    # 1. 段階ごと
    sets = ["sv1_odd", "rec", "f", "g"]
    fig, axes = plt.subplots(2, len(sets), figsize=(4.2 * len(sets), 7.5), sharey="row")
    for c, s in enumerate(sets):
        T0, T1 = res["sets"][s]["none"], res["sets"][s][ch]
        order = ["approach", "to_above", "recover", "descend", "close", "lift", "to_box", "return", "after"]
        phs = sorted([p for p in T0 if p != "all"], key=lambda p: order.index(p) if p in order else 99)
        x = np.arange(len(phs))
        for r, (key, lab) in enumerate((("horiz_med_mm", "横 (机の上) の差 中央値 mm"), ("z_med_abs_mm", "高さの差 |中央値| mm"))):
            ax = axes[r, c]
            ax.bar(x - 0.2, [T0[p][key] for p in phs], 0.4, color=NONE_C, label="今のシム (指令どおり)")
            ax.bar(x + 0.2, [T1[p][key] for p in phs], 0.4, color=CH_C, label=f"入れたシム ({ch})")
            ax.set_xticks(x, [pj.get(p, p) for p in phs], rotation=60, ha="right", fontsize=8)
            if c == 0:
                ax.set_ylabel(lab)
            if r == 0:
                ax.set_title(f"{SET_JA[s]}")
            ax.grid(axis="y", alpha=0.3)
    axes[0, 0].legend(fontsize=8)
    fig.suptitle("段階ごとの 爪の間の点 予想 − 実際 (全部のコマ)")
    fig.tight_layout()
    fig.savefig(HERE / "fig_phase_err_400.png", dpi=120)
    plt.close(fig)

    # 2. つかむ所の高さ
    G0 = {r["name"]: r for r in res["grasp"]["none"]["rows"]}
    G1 = {r["name"]: r for r in res["grasp"][ch]["rows"]}
    fig, axes = plt.subplots(1, 3, figsize=(16, 5.2))
    mk = {"sv1_even": ("o", "成功 偶数 (決めた本)"), "sv1_odd": ("s", "成功 奇数"), "rec": ("^", "つかみ直し"),
          "f": ("D", "so101f"), "g": ("P", "so101g")}
    ax = axes[0]
    for s, (m, lab) in mk.items():
        R = [G1[n] for n in G1 if G1[n]["set"] == s]
        col = ["#d1242f" if r["shoulder_cmd_change_descend_deg"] < 0 else "#1a7f37" for r in R]
        ax.scatter([r["real_minus_cmd_z"] for r in R], [r["pred_minus_cmd_z"] for r in R], marker=m, c=col, s=28,
                   alpha=0.8, label=lab, edgecolors="none")
    lim = [-24, 8]
    ax.plot(lim, lim, "k--", lw=0.8)
    ax.axhline(0, color=NONE_C, lw=2, label="今のシム (予想 0)")
    ax.set_xlim(lim), ax.set_ylim(lim)
    ax.set_xlabel("実際 − 指令 (つかむ所の爪の高さ mm)")
    ax.set_ylabel(f"予想 ({ch}) − 指令 mm")
    ax.set_title("赤 = 下りる間に肩の指令が下がる本・緑 = 上がる本")
    ax.legend(fontsize=7, loc="upper left")
    ax.grid(alpha=0.3)
    # 横のずれ
    for ax, k, ttl in ((axes[1], 0, "右"), (axes[2], 1, "奥")):
        for s, (m, lab) in mk.items():
            R = [n for n in G1 if G1[n]["set"] == s]
            ax.scatter([G1[n]["real_minus_cmd_rf"][k] for n in R], [G1[n]["pred_minus_cmd_rf"][k] for n in R], marker=m,
                       s=24, alpha=0.8, color=CH_C, edgecolors="none")
        lim2 = [-12, 12]
        ax.plot(lim2, lim2, "k--", lw=0.8)
        ax.axhline(0, color=NONE_C, lw=2)
        ax.set_xlim(lim2), ax.set_ylim(lim2)
        ax.set_xlabel(f"実際 − 指令 ({ttl} mm)")
        ax.set_ylabel(f"予想 − 指令 ({ttl} mm)")
        ax.set_title(f"つかむ所の横のずれ ({ttl})")
        ax.grid(alpha=0.3)
    fig.suptitle("つかむ所 (爪が実際に閉じたコマ) の 爪の間の点: 実際と予想 (1 点 = 1 本)")
    fig.tight_layout()
    fig.savefig(HERE / "fig_grasp_z_400.png", dpi=120)
    plt.close(fig)

    # 3. 例: 肩の指令が下がる本で 実際 − 指令 がいちばん大きい本 (確かめる本から)
    cand = [r for r in G0.values() if r["set"] != "sv1_even" and r["shoulder_cmd_change_descend_deg"] < 0]
    if not cand:
        cand = [r for r in G0.values() if r["shoulder_cmd_change_descend_deg"] < 0]
    pick = min(cand, key=lambda r: r["real_minus_cmd_z"])["name"]
    up = [r for r in G0.values() if r["set"] != "sv1_even" and r["shoulder_cmd_change_descend_deg"] > 0]
    pick2 = up[0]["name"] if up else None
    fig, axes = plt.subplots(3, 2, figsize=(13, 9), sharex="col")
    for c, nm in enumerate([pick, pick2]):
        if nm is None:
            continue
        e = next(e for e in ev if e["name"] == nm)
        ph = {n: (a, b) for n, a, b in e["phases"]}
        a0, b0 = ph["descend"][0] - 20, ph["lift"][1] + 10
        t = np.arange(a0, b0)
        Q1 = e["models"][ch]["jerr"] + e["state"][1:, :5]
        for r, (j, lab) in enumerate(((1, "肩 (度)"), (2, "肘 (度)"))):
            ax = axes[r, c]
            ax.plot(t, e["sent"][t, j], color=NONE_C, ls="--", label="指令 (= 今のシム)")
            ax.plot(t, e["state"][t + 1, j], color=REAL_C, label="実際")
            ax.plot(t, Q1[t, j], color=CH_C, label=f"予想 ({ch})")
            ax.set_ylabel(lab)
            ax.grid(alpha=0.3)
        ax = axes[2, c]
        ax.plot(t, e["P_sent"][t, 2], color=NONE_C, ls="--")
        ax.plot(t, e["P_state"][t + 1, 2], color=REAL_C)
        ax.plot(t, e["models"][ch]["Pq"][t, 2], color=CH_C)
        ax.set_ylabel("爪の間の点の高さ (mm)")
        ax.set_xlabel("コマ")
        for k, v in ph.items():
            if a0 <= v[0] <= b0:
                for a in axes[:, c]:
                    a.axvline(v[0], color="#bbb", lw=0.7)
                axes[0, c].text(v[0], axes[0, c].get_ylim()[1], pj.get(k, k), fontsize=7, va="bottom")
        axes[0, c].set_title(f"{nm} ({'肩の指令が下がる' if c == 0 else '肩の指令が上がる'})", pad=14)
    axes[0, 0].legend(fontsize=8)
    fig.tight_layout()
    fig.savefig(HERE / "fig_example_400.png", dpi=120)
    plt.close(fig)
    print("[WROTE] figs", pick, pick2)


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


## 依頼401 ― 案Cを rule_401 にして、コードだけで実機に流す準備をする

### 依頼401 の依頼文

```
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 150
---
# 依頼401：SO-101 のつかみ方の案C を、腕の沈み入りのシム（依頼400 の dir_s）で確かめ直し、コードだけで実機に流す準備をする（アームは動かさない）

## なぜ
2026-12-01 07:32 にエイイチが決めた（依頼399・400 の「決めてほしいこと」）：
- つかみ方は **案C**（開き 59・固定側の爪をブロックから 12 mm 離して下りる・つかむ所を下げる）で進める
- シムの腕の動きの差は **dir_s**（`so101/sim/look_400/arm_response_400.py`）を使う
- つかみ直しのお手本（recover_v1）は、次の学習ではいったん外す（この依頼では学習しない。記録だけ）
次は、案C をコードだけで実機に流し、学習なしで何割つかめるかを測る。その前に、沈み入りのシムで案C を確かめ、実機に流すスクリプトを用意する。

## 使うもの（読むだけ）
- 依頼399：`so101/check_399/`（`lib_399.World.variant` の案の作り方・`sweep_399.py`・REPORT.md）
- 依頼400：`so101/sim/look_400/arm_response_400.py`・`arm_response_400.json`（`ArmResponse().predict`・`clearance`）
- 決まり：`so101/ideal_var/rule_351.py`・`var_lib_314.py`・`clear_345.py`、`so101/check_351/plan_351.json`・`session_351.sh`
- 爪の安全範囲：`load_safe_range_var`（上限 59.5 は変えない）

## やること
### 1. 案C を決まりの新しい版として作る（rule_351 は変えない）
- `so101/ideal_var/rule_401.py` を新しく作る。中身は rule_351 の道に、依頼399 の案C（開き 59・固定側のすき間 12 mm・ブロックの上から寄せる。解けない 8 か所は下りる間に寄せる）を当てたもの
- **つかむ所の下げ量は、dir_s を通した予想で決める**：依頼399 は「沈まないとき爪と机 −2 mm」で決めたが、今回は `predict` を通した道で、つかむ所の予想の爪と机が −2 mm になるように か所ごとに解く（沈む所は下げすぎない）。ただし予想の誤差（依頼400：高さ 1.5〜5.6 mm）があるので、沈まないとき（指令どおり）でも爪と机が +1 mm 以下になる所までは下げる。両方を満たせない所は報告に書く
- 押し付けの上限：dir_s の予想で、つかむ所の爪と机が −6 mm より深くなる か所は下げ量を減らす（−6 mm に合わせる）。依頼379 の沈み最大（肩 +4・肘 +3）での値も表に出す（参考）
- 爪の開き 59 は安全範囲 59.5 の内側。範囲は変えない

### 2. 沈み入りのシムで確かめ直す（50 か所）
- 今の決まり（rule_351）と rule_401 を、どちらも `predict` を通した道で、依頼399 の 2-4 と同じずれ 19 通り＋固定側へ 8 mm を振る（形の数）。依頼399 の「沈みなし」の数と並べる
- 下りる間の最小すき間（固定側・動く爪・爪と机）、つかむ所の爪と机（指令・予想）を か所ごとに
- 実機の5か所（so101f の最初のコマの中央値の置き方。`check_399/places_399.json`）でも同じ数を出す。場所1・3 で道が作れない件は、作れる近い置き方を探し、作れなければ理由を書く

### 3. コードだけで実機に流すスクリプトを用意する（アームは動かさない）
- `so101/check_401/run_rule401.py`：机のカメラでブロックの位置と向きを読み（依頼351 と同じ読み方）、rule_401 で道を作り、送る。5か所 × 各6回（so101f・g と同じ数え方）を回せる形
- 台帳：1回ごとに `lab/so101_Log12/so101_trials.csv` へ1行追記（data_manifest_rules.md の13節。policy の欄は `code_rule401`）。記録は so101f と同じ形（sent・state・カメラ）。`currents` は今までどおり（変えない）
- 物理保護：既存のガード（JAW_TABLE_MIN_MM・関節の範囲・爪の範囲）は緩めない。dry-run（送らずに道と予想のすき間を書き出す）を必ず付ける。5か所の dry-run の結果を `check_401/dry_run/` に出す
- 関節制御の変更なので、実装のあと codex にレビューを頼む（`code_review_request_template.md`）。指摘の必須分は直す。**実機に流すのはエイイチの確認のあと**（この依頼では流さない）

### 4. 依頼400 の関数の値を git に入れる
- `so101/sim/look_400/arm_response_400.json` を個別に add して commit（関数が動くように）。ほかの look_400 の出力は入れない

## しないこと
アームを動かす、Pod を借りる、`rule_351.py`・`var_lib_314.py`・`clear_345.py`・依頼399/400 のファイルを変える（新しいファイルだけ）、安全範囲・ガードを緩める、台帳・データセット・既存の記録を書き換える、`git add .`・`git clean`

## 報告（`so101/check_401/REPORT.md`）
- いちばん大事なこと（最初に）：沈み入りのシムでの今と案C の差、か所ごとの下げ量と押し付けの予想、実機の5か所で道が作れたか、codex の指摘と直したこと
- 実機で流す手順（エイイチがそのまま打てるコマンド。1か所目だけ先に1回流して止める形も）
- 確かめられなかったこと、決めてほしいこと
- 最後の1行に「判定：合格／止めた（決めてほしいことあり）／失敗」
- commit はコード・REPORT・arm_response_400.json だけ（個別に add）
```

### 依頼401 の報告（見張り係の記録）

```
# 結果：20261201_401_SO101のつかみ方の案Cを沈み入りのシムで確かめコードだけで実機に流す準備をする

- 状態：完了
- 始めた時刻：2026-12-01 07:33
- 終わった時刻：2026-12-01 08:54（80分）
- 作業フォルダ：/Users/shimazueiichi/r2r2r-scripts
- この続きを Claude Code で話すとき：作業フォルダで `claude --resume dbc0c097-c5c3-461a-bfd2-b9871f30a79c`

## Claude Code の報告

**やったこと**
この続きの作業は、前の返答の時点で全部終わっていました。今回は終わっていることを確かめただけで、ファイルは何も変えていません。
- codex の 2 回目の答え（`review_r2.txt`）は REPORT の「4. codex のレビュー」に入っています。2 回目の結論も「このままでは実機の 1 回目に進めない」でした。
- 2 回目の必須 2 つは直してあります。
  - 止める目標が今の位置に届かない件：届くまで 30 コマまで送り直すようにしました。例外や Ctrl-C のときも、閉じる前に同じ止め方をします。
  - 空の記録のフォルダが残る件：記録は 1 コマ目を送る直前に作るようにしました。
- 推奨の 2 つも直してあります（向きを丸める前の値で比べる／ok の決め方を説明に書く）。
- テスト 16 本は全部通っています。目印での dry-run 5 か所も、今のコードで出し直してあります。
- commit・作業ログ（`logs/20261201_0846.md`）・報告も済んでいます。

**結果**
- git の最新は 8925e85 です。commit していないのは、依頼で入れないとしたもの（`plan_401.json`・`dry_run/`・`review_*`）だけです。
- 直したあとの codex の 3 回目のレビューは頼んでいません。
- アームは動かしていません。実機にも流していません。Pod も使っていません。

**変えたファイル**
なし。前の返答のまま（commit 206192f・9ccefe6・8925e85）です。

**決めてほしいこと**
前の返答の 1〜8 と同じです。中でも急ぐのは次の 3 つです。
- 押し付けのガードをどこまでにするか。今のままでは、目印で流せるのは場所3 だけです。
- 実機の爪の開き 59 にどれだけ余りがあるか。
- 実機の前に codex の 3 回目のレビューを頼むか。

判定：止めた（決めてほしいことあり）
```

### so101/check_401/REPORT.md

````markdown
# 依頼 401：SO-101 のつかみ方の案C を、腕の沈み入りのシム（依頼400 の dir_s）で確かめ直し、コードだけで実機に流す準備をする（2026-12-01）

アームは動かしていない。Pod は借りていない。実機には流していない（エイイチの確かめのあと）。`rule_351.py`・`var_lib_314.py`・`clear_345.py`・依頼 399/400 のファイル・台帳・データセット・既存の記録は変えていない（新しいファイルだけ）。安全範囲・ガードは緩めていない。

## いちばん大事なこと

- **沈み入りのシム（腕の動きの予想を通した道）で、案C は今の決まりよりずれにずっと強い。ただし沈みなしの数（依頼399）よりは下がる**
  - 50 か所 × ずれ 19 通りの「挟める形」：今の決まり 指令どおり 464（49%）→ 予想を通すと **396（42%）**。rule_401 指令どおり 877（92%）→ 予想を通すと **811（85%）**（指令どおりの数は 依頼399 の 464・877 と同じに出た。測り方は同じ）
  - ブロックが固定側へ 8 mm：今 0 → 3、rule_401 50 → **32**。予想では腕の着く所が固定側に寄るので、固定側の余りが 10.7 → 9.0 mm（中央値。最小 1.1 mm）に減る。左 12 mm（39 → 20）・奥 12〜16 mm（49 → 35・33 → 15）が大きく下がった
- **下げ量（か所ごと）は 中央値 2.1 mm（0〜5.6 mm）。依頼399（沈みなしで −2 mm。中央値 5.7 mm）の約 4 割**。予想では腕が沈む所が多く、下げすぎないようにした
  - 50 か所のうち **ok 30・conflict 14・deep_at_zero 6**。conflict＝予想で −6 mm を守ると 指令（沈みなし）が +1 mm より上に残る（+1.1〜+4.7 mm）。deep_at_zero＝下げなくても予想が −6 mm より深い（−7.5〜−10.8 mm。指令は +3.4〜+6.4 mm）。「両方を満たせない所」はこの 20 か所（か所ごとの表は下の 2-2）
  - 押し付けの予想（つかむ所。中央値）：今 −1.6 mm → rule_401 −4.7 mm（−10.8〜−2.0）。依頼379 の沈み最大（肩 +4・肘 +3）では 今 −20.7 → rule_401 −22.9 mm（−30.8〜−13.8. 参考）
- **新しく分かった危ないこと：持ち上げの始めに、予想の爪が机へ深く入る**。動く向きが「下がる → 上がる」に変わる所で、予想の形（dir_s）の向きの足し分が一度に変わるため。持ち上げの始め 10 コマの爪と机の最小は 今 −3.9 mm → **rule_401 −8.0 mm（−12.9〜−3.7）**。これが実機の動き（ガタ）なのか形の作りの分なのかは分からない
  - あわせて、**開き 59 から閉じると、持ち上げ始めの予想の爪の値が 19.0（今は 10.6）**。爪は閉じ切る前に持ち上げに入る（ブロックに当たる爪の値は 23 前後なので、当たってはいる）
- **実機の 5 か所（so101f の最初のコマの中央値の置き方）では 5 か所とも道が作れた**
  - 場所1：校正の点の囲みの外（0.9 画素）→ 校正の点の真ん中へ **8 画素（7.5 mm）寄せる**と作れた（plan_351 のいちばん近い本の面・傾き）
  - 場所3：いちばん近い本の面・傾きでは爪の面が立たない（+21°）→ **2 番目に近い本（割り振り 27 本目）の面・傾き**で作れた（置き方は動かしていない）
  - 下げ量 0.8〜5.4 mm。ok 4・conflict 1（場所2）。固定側へ 8 mm のずれで挟めるのは rule_401 で 場所1・4・5（今の決まりは 5 か所とも挟めない）
- **実機の目印（まっすぐ 0° に置く所）での dry-run：今のガードのまま流せるのは場所3 だけ**。場所1（候補の所）・5 は status ok だが 持ち上げの始めの押し付け（−8.7・−10.0 mm）で止まる。場所2・4 は conflict と押し付け（−11.1・−10.3 mm）で止まる（決めてほしいこと 1・2）
- **codex のレビュー（2 回）**：1 回目は「このままでは実機の 1 回目に進めない」。必須の指摘（下げ量の解き方の status・予想のつかむ所が見つからないとき・追従の差で止める・切った道を送らない・閉じる間〜持ち上げの始めの押し付け・緩める口の確かめ・KIOXIA のマウント・記録を作る時期）を直した。**2 回目も「実機の 1 回目には進めない」**：必須 2 つ（止める目標が入口 B で切られて今の位置に届かない・例外や Ctrl-C で止める目標を送らない／記録を作ってから 1 コマ目までに止まると空のフォルダが残る）を直した。残りの「進む前に」は エイイチが決めること（押し付けの許し・爪の開き 59 の実機の余り）。直したあとの 3 回目のレビューは頼んでいない

## やり方

- **決まり rule_401**（`so101/ideal_var/rule_401.py`）：rule_351 の道（`var_lib_314.make_path`）の ブロックの上・つかむ所・閉じる の 3 つのキー姿勢だけを、依頼399 の `lib_399.World.variant` で 開き 59・固定側のすき間 12 mm に作り替える（コマ数・区間・持ち上げから先は今のまま。8 か所ほどはブロックの上を寄せられず下りる間に寄せる。依頼399 と同じ）。下げ量 dz（≤ 0）は次の順に解く
  - a. 予想の道（`arm_response_400.ArmResponse().predict`。dir_s。始めは道の 1 コマ目）で、つかむ所＝予想の爪が 20 を割った最初のコマ（依頼379・400 と同じ決め方）の 爪と机 が −2 mm
  - b. 指令どおり（GRASP_CLOSED の姿勢・沈みなし）の 爪と机 が +1 mm より上なら +1 mm まで下げる
  - c. 予想で −6 mm より深ければ −6 mm に戻す。dz は 0 より上げない（rule_351 より上げない）
  - status：ok／conflict（b と c を両方は満たせない）／deep_at_zero（dz = 0 で測って −6 より深い）／not_converged（dz < 0 のまま −6 より深い）／no_close（予想の爪が 20 を割らない）
- **場面**：MuJoCo（clear_345 と同じ。依頼379・380・399 と同じく 関節のずれ joint_offset_342 は足さない）。予想の道 Qp[k] は「指令 k を送った次のコマで読む関節」（記録の state[k+1]）。指令のコマの番号で区間を切った
- **すき間**：下りる間＝ブロックの上 → GRASP_OPEN の最小（予想の固定側は 予想のつかむ所まで）。閉じる間＝GRASP_OPEN → GRASP_CLOSED、持ち上げの始め＝その後 10 コマ
- **挟める形**（依頼399 の 2-4 と同じ）：下りる間に どちらの爪もブロックに重ならない、つかむ所で動く爪を閉じていくとブロックに当たる、ブロックを閉じる向きに動かすと固定側の爪に当たる。予想の道では 閉じる姿勢を 予想の GRASP_CLOSED のコマの関節（閉じる間に腕が着いた所）にした
- **実機の 5 か所**：`check_399/closes_399.json` の so101f の 6 回の最初のコマの中央値（依頼399 の places_399 と同じ作り方）。道は plan_351 のいちばん近い本の面・傾き（依頼399 と同じ）。作れなければ 近い順にほかの本の面・傾き、それでもだめなら 校正の点の真ん中へ 8 画素ずつ寄せる（rule_351 の作れない置き場所の寄せ方と同じ）
- 出力：KIOXIA `lab/so101_Log12/401/sweep_401_plan.json`・`sweep_401_places.json`（`sweep_401.py`）。表は `summarize_401.py plan|sites|places`

## 1. 今の決まりと rule_401（50 か所。中央値 [幅]。mm）

| | 今 (rule_351) | rule_401 |
|---|---|---|
| 下げ量 | 0 | −2.1 [−5.6〜0]（依頼399 案C −5.7 [−10.2〜−2.5]） |
| つかむ所の爪と机 指令（沈みなし） | +3.6 [+0.4〜+7.8] | +0.9 [−0.8〜+6.4] |
| つかむ所の爪と机 予想 | −1.6 [−10.4〜+1.6] | −4.7 [−10.8〜−2.0] |
| つかむ所の爪と机 沈み最大（肩 +4・肘 +3。参考） | −20.7 [−26.3〜−12.2] | −22.9 [−30.8〜−13.8] |
| 閉じる間の爪と机の最小 予想 | −1.7 [−10.9〜+1.4] | −4.5 [−11.2〜−1.4] |
| 持ち上げの始め 10 コマの爪と机の最小 予想 | −3.9 [−9.7〜−1.4] | **−8.0 [−12.9〜−3.7]** |
| 下りる間 固定側とブロック 指令 / 予想 | +0.5 / −0.6 | +10.7 / +9.0 [+1.1〜+14.3] |
| 下りる間 動く爪とブロック 指令 / 予想 | +11.8 / +10.8 | +27.0 / +26.6 |
| 下りる間 爪と机 指令 / 予想 | +2.1 / −0.3 | +0.9 / −1.8 |
| 予想のつかむ所（爪が 20 を割る）は GRASP_OPEN から | 8 コマ | 11 コマ |
| 持ち上げの始めの予想の爪の値 | 10.6 | 19.0 |

- 閉じる間〜持ち上げの始めまで 予想で −6 mm より浅いのは 今 40 か所・rule_401 16 か所（status ok と両方は 15 か所）

## 2. ずれへの強さ（挟める形の数。50 か所）

### 2-1. ずれごと

| ずれ | 依頼399 今（沈みなし） | 依頼399 C（沈みなし） | 今 指令 | 今 予想 | rule_401 指令 | **rule_401 予想** |
|---|---|---|---|---|---|---|
| ずれなし | 33 | 50 | 33 | 23 | 50 | **50** |
| 右 4 mm | 49 | 50 | 49 | 36 | 50 | **50** |
| 右 8 mm | 50 | 50 | 50 | 39 | 50 | **50** |
| 右 12 mm | 34 | 50 | 34 | 29 | 50 | **50** |
| 右 16 mm | 14 | 50 | 14 | 20 | 50 | **50** |
| 左 4 mm | 11 | 50 | 11 | 13 | 50 | **48** |
| 左 8 mm | 1 | 50 | 1 | 3 | 50 | **43** |
| 左 12 mm | 0 | 38 | 0 | 0 | 39 | **20** |
| 左 16 mm | 0 | 6 | 0 | 0 | 6 | **4** |
| 奥 4 mm | 24 | 50 | 24 | 24 | 50 | **48** |
| 奥 8 mm | 24 | 50 | 24 | 26 | 50 | **48** |
| 奥 12 mm | 20 | 50 | 20 | 15 | 49 | **35** |
| 奥 16 mm | 10 | 33 | 10 | 2 | 33 | **15** |
| 手前 4 mm | 37 | 50 | 37 | 24 | 50 | **50** |
| 手前 8 mm | 38 | 50 | 38 | 31 | 50 | **50** |
| 手前 12 mm | 33 | 50 | 33 | 31 | 50 | **50** |
| 手前 16 mm | 30 | 50 | 30 | 31 | 50 | **50** |
| 向き −8° | 25 | 50 | 25 | 21 | 50 | **50** |
| 向き +8° | 31 | 50 | 31 | 28 | 50 | **50** |
| 固定側へ 8 mm | 0 | 50 | 0 | 3 | 50 | **32** |
| **合計（固定側へを除く 19 通り × 50）** | 464 (49%) | 877 (92%) | 464 (49%) | 396 (42%) | 877 (92%) | **811 (85%)** |

- 依頼399 の C と rule_401 の指令どおりの数がほぼ同じ（877・877）なのは、下げ量が違っても 形（下りる間に乗らない・閉じると挟める）は ほぼ高さによらないため

### 2-2. か所ごと（rule_401。下げ・指令・予想・沈み最大は つかむ所の爪と机。形は 予想の道で ずれ 19 通りのうち挟める数）

| 本 | status | 下げ mm | 依頼399 C 下げ | 指令 | 予想 | 沈み最大 | 閉じる間 最小 予想 | 持ち上げの始め 最小 予想 | 下りる 固定側 指令/予想 | 下りる 動く爪 指令/予想 | 今 指令/予想 (つかむ所) | 形 ずれ19 今→401 (予想) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | deep_at_zero | +0.0 | -5.5 | +3.4 | -9.9 | -22.1 | -9.9 | -10.1 | +10.3 / +1.7 | +27.5 / +26.5 | +3.4 / -4.3 | 5 → 11 |
| 2 | ok | -3.2 | -6.2 | +0.9 | -3.0 | -27.9 | -2.5 | -9.5 | +11.1 / +8.8 | +28.9 / +28.5 | +3.9 / +0.5 | 5 → 15 |
| 3 | ok | -5.6 | -8.6 | +0.9 | -5.7 | -25.4 | -5.6 | -12.2 | +10.6 / +8.0 | +24.3 / +25.0 | +6.2 / +0.6 | 5 → 16 |
| 4 | ok | -3.7 | -6.7 | +0.9 | -3.2 | -29.0 | -2.7 | -5.7 | +10.8 / +13.6 | +27.2 / +23.4 | +4.4 / +0.7 | 13 → 17 |
| 5 | ok | -2.2 | -5.2 | +0.9 | -4.8 | -21.5 | -4.6 | -8.3 | +10.7 / +7.2 | +26.8 / +27.8 | +3.0 / -2.5 | 4 → 17 |
| 6 | conflict | -4.5 | -9.8 | +3.3 | -5.8 | -30.8 | -6.0 | -9.1 | +10.2 / +12.5 | +21.0 / +18.0 | +7.5 / -0.6 | 13 → 18 |
| 7 | ok | -2.2 | -5.2 | +1.0 | -2.0 | -24.6 | -2.0 | -4.1 | +11.1 / +9.4 | +30.9 / +30.2 | +3.0 / +0.0 | 6 → 15 |
| 8 | conflict | -1.8 | -8.6 | +4.7 | -5.8 | -26.6 | -6.2 | -10.2 | +9.6 / +10.3 | +23.9 / +21.6 | +6.5 / -10.4 | 6 → 17 |
| 9 | conflict | -2.1 | -7.1 | +3.0 | -5.9 | -26.0 | -6.1 | -10.7 | +10.2 / +10.6 | +24.7 / +22.6 | +5.0 / -3.5 | 12 → 17 |
| 10 | conflict | -3.6 | -9.9 | +4.2 | -5.8 | -25.6 | -6.2 | -11.2 | +10.0 / +9.1 | +22.3 / +21.8 | +7.5 / -1.3 | 4 → 16 |
| 11 | conflict | -3.1 | -6.4 | +1.2 | -5.9 | -24.3 | -5.8 | -8.6 | +10.6 / +7.1 | +25.5 / +26.3 | +4.2 / -2.4 | 5 → 16 |
| 12 | ok | -4.4 | -7.4 | +0.9 | -3.5 | -22.9 | -3.0 | -10.0 | +10.9 / +9.0 | +27.2 / +27.5 | +5.0 / +1.4 | 5 → 15 |
| 13 | ok | -2.7 | -5.7 | +0.9 | -5.2 | -22.2 | -5.0 | -8.9 | +10.5 / +9.1 | +26.2 / +25.8 | +3.5 / -2.3 | 12 → 17 |
| 14 | conflict | -2.0 | -5.5 | +1.4 | -5.9 | -23.2 | -5.9 | -7.7 | +10.5 / +6.4 | +25.5 / +26.9 | +3.4 / -3.6 | 6 → 15 |
| 15 | ok | -2.2 | -5.2 | +0.9 | -5.2 | -22.9 | -5.0 | -5.6 | +10.6 / +6.8 | +26.6 / +27.7 | +3.1 / -2.8 | 5 → 17 |
| 16 | ok | -1.0 | -3.2 | +0.1 | -2.0 | -16.9 | -1.6 | -5.3 | +11.1 / +11.1 | +29.9 / +28.6 | +1.1 / -1.2 | 10 → 18 |
| 17 | ok | -2.0 | -4.4 | +0.3 | -2.0 | -19.8 | -2.0 | -6.8 | +11.3 / +14.0 | +30.8 / +27.4 | +2.3 / -0.1 | 13 → 18 |
| 18 | ok | -1.9 | -5.0 | +1.0 | -2.0 | -25.6 | -2.0 | -7.0 | +11.0 / +14.0 | +30.7 / +26.6 | +2.8 / -6.6 | 7 → 18 |
| 19 | ok | -1.1 | -2.9 | -0.3 | -2.0 | -17.4 | -2.0 | -5.7 | +11.2 / +7.9 | +30.1 / +31.0 | +0.8 / -0.8 | 8 → 16 |
| 20 | ok | -1.6 | -4.6 | +0.9 | -4.2 | -21.7 | -3.9 | -6.4 | +10.7 / +6.9 | +27.9 / +29.1 | +2.5 / -2.5 | 6 → 16 |
| 21 | conflict | -2.4 | -5.8 | +1.4 | -5.9 | -24.9 | -5.8 | -9.4 | +10.5 / +6.5 | +25.4 / +26.4 | +3.7 / -8.9 | 4 → 17 |
| 22 | ok | -1.0 | -2.9 | -0.3 | -2.0 | -17.6 | -2.0 | -5.8 | +11.3 / +10.4 | +30.4 / +29.8 | +0.8 / -0.9 | 11 → 18 |
| 23 | ok | -1.7 | -4.4 | +0.6 | -2.0 | -22.7 | -2.0 | -3.7 | +11.3 / +14.2 | +31.1 / +27.2 | +2.2 / -0.4 | 11 → 18 |
| 24 | deep_at_zero | +0.0 | -5.7 | +3.6 | -9.5 | -21.9 | -9.4 | -9.8 | +10.4 / +5.6 | +27.9 / +24.3 | +3.6 / -3.8 | 9 → 15 |
| 25 | ok | -2.6 | -5.1 | +0.4 | -2.0 | -19.0 | -2.0 | -6.8 | +11.2 / +13.5 | +29.8 / +26.9 | +2.9 / +0.6 | 13 → 17 |
| 26 | ok | -0.8 | -3.8 | +0.9 | -2.4 | -19.4 | -1.8 | -5.9 | +10.9 / +7.3 | +29.9 / +31.1 | +1.7 / -1.6 | 6 → 16 |
| 27 | ok | -1.2 | -4.2 | +0.9 | -3.4 | -20.9 | -3.0 | -6.8 | +10.7 / +6.7 | +28.8 / +30.2 | +2.1 / -2.2 | 6 → 16 |
| 28 | conflict | -2.4 | -9.2 | +4.7 | -5.8 | -28.0 | -6.2 | -10.1 | +9.7 / +5.6 | +22.9 / +24.0 | +7.0 / -9.8 | 3 → 16 |
| 29 | deep_at_zero | +0.0 | -7.8 | +5.7 | -10.4 | -23.5 | -10.7 | -10.8 | +9.9 / +6.6 | +26.8 / +21.7 | +5.6 / -3.6 | 12 → 14 |
| 30 | ok | -4.5 | -7.5 | +0.9 | -3.5 | -20.0 | -3.0 | -9.1 | +11.0 / +11.1 | +26.3 / +25.5 | +5.1 / +1.5 | 12 → 16 |
| 31 | ok | -1.5 | -4.0 | +0.4 | -2.0 | -22.2 | -2.0 | -3.9 | +11.2 / +14.3 | +31.0 / +26.9 | +1.9 / -0.7 | 12 → 19 |
| 32 | ok | -3.3 | -6.3 | +1.0 | -2.0 | -15.1 | -1.4 | -5.7 | +10.8 / +9.8 | +28.9 / +29.0 | +4.0 / +1.6 | 12 → 15 |
| 33 | ok | -4.5 | -7.5 | +0.9 | -4.5 | -29.6 | -4.1 | -10.0 | +10.9 / +13.6 | +26.2 / +22.7 | +5.2 / +0.5 | 6 → 17 |
| 34 | conflict | -5.3 | -9.8 | +2.5 | -5.8 | -18.4 | -6.1 | -10.3 | +10.3 / +8.3 | +25.0 / +26.2 | +7.4 / +0.5 | 6 → 15 |
| 35 | ok | -3.7 | -6.7 | +0.9 | -3.0 | -26.8 | -2.5 | -5.5 | +10.9 / +13.6 | +27.3 / +23.9 | +4.4 / +0.9 | 12 → 17 |
| 36 | ok | -2.0 | -4.9 | +0.8 | -2.0 | -23.2 | -2.0 | -3.9 | +11.3 / +9.8 | +31.0 / +30.1 | +2.6 / -0.1 | 5 → 15 |
| 37 | ok | -1.1 | -3.0 | -0.3 | -2.0 | -16.7 | -1.9 | -5.4 | +11.2 / +11.2 | +29.6 / +28.4 | +0.9 / -1.1 | 10 → 18 |
| 38 | ok | -1.6 | -4.6 | +0.9 | -3.5 | -18.4 | -3.1 | -6.5 | +10.9 / +11.1 | +28.4 / +27.2 | +2.4 / -1.9 | 13 → 18 |
| 39 | ok | -2.3 | -5.3 | +0.9 | -4.6 | -19.8 | -4.3 | -7.8 | +10.7 / +10.9 | +26.8 / +25.5 | +3.2 / -2.1 | 9 → 17 |
| 40 | conflict | -2.8 | -6.1 | +1.2 | -5.9 | -25.9 | -5.8 | -9.5 | +10.6 / +6.8 | +25.3 / +26.1 | +4.0 / -2.8 | 3 → 16 |
| 41 | conflict | -2.0 | -5.3 | +1.1 | -5.9 | -23.0 | -5.9 | -6.0 | +10.6 / +9.0 | +25.9 / +25.7 | +3.2 / -3.7 | 9 → 17 |
| 42 | ok | -0.8 | -3.8 | +0.9 | -2.3 | -19.4 | -1.7 | -6.0 | +11.1 / +7.3 | +29.8 / +31.2 | +1.7 / -1.6 | 6 → 15 |
| 43 | deep_at_zero | +0.0 | -5.9 | +3.8 | -10.2 | -23.4 | -10.3 | -12.0 | +10.3 / +1.8 | +26.4 / +26.3 | +3.8 / -5.1 | 8 → 12 |
| 44 | ok | -2.2 | -5.2 | +0.9 | -5.0 | -22.4 | -4.7 | -7.2 | +10.7 / +7.1 | +26.7 / +27.7 | +3.1 / -2.6 | 5 → 17 |
| 45 | conflict | -5.1 | -9.1 | +1.9 | -5.9 | -27.3 | -5.9 | -12.9 | +10.4 / +7.5 | +23.0 / +23.8 | +6.7 / +0.1 | 3 → 16 |
| 46 | deep_at_zero | +0.0 | -8.1 | +6.0 | -7.5 | -26.0 | -7.2 | -8.4 | +10.3 / +10.4 | +29.0 / +21.5 | +5.9 / -7.2 | 11 → 16 |
| 47 | ok | -1.2 | -2.5 | -0.8 | -2.0 | -13.8 | -2.0 | -4.6 | +11.2 / +10.8 | +29.7 / +29.2 | +0.4 / -0.8 | 11 → 18 |
| 48 | conflict | -4.9 | -10.2 | +3.3 | -5.8 | -20.2 | -6.2 | -10.8 | +10.2 / +8.0 | +25.7 / +27.0 | +7.8 / +0.1 | 6 → 15 |
| 49 | conflict | -3.2 | -9.8 | +4.5 | -5.8 | -29.6 | -6.2 | -12.3 | +9.8 / +6.0 | +21.6 / +22.7 | +7.6 / -1.8 | 9 → 16 |
| 50 | deep_at_zero | +0.0 | -8.5 | +6.4 | -10.8 | -24.9 | -11.2 | -11.0 | +9.8 / +1.1 | +25.7 / +25.4 | +6.3 / -3.6 | 3 → 14 |

### 2-3. 実機の 5 か所（so101f の最初のコマの中央値の置き方）

| 場所 | 置き方 (机の mm・向き) | 道 | 下げ mm | status | つかむ所 指令 | 予想 | 沈み最大 | 持ち上げの始め 予想 | 下りる 固定側 指令/予想 | 今 固定側 指令/予想 | 今 つかむ所 指令/予想 | 形 ずれ19 今 指令/予想 → 401 指令/予想 | 固定側へ 8 mm 今/401 (予想) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | (370.1, −52.2)・−0.3° | 寄せ 8 画素 (7.5 mm)・いちばん近い本の面と傾き | −5.4 | ok | +0.9 | −3.4 | −33.6 | −8.7 | +11.0 / +14.4 | −0.8 / +2.3 | +6.0 / +1.6 | 7/12 → 18/19 | × / ○ |
| 2 | (300.4, 69.1)・3.5° | そのまま | −3.4 | conflict | +1.9 | −5.9 | −27.0 | −11.3 | +10.2 / +6.6 | −3.1 / −4.4 | +5.1 / −2.0 | 4/3 → 17/15 | × / × |
| 3 | (173.8, 142.1)・2.5° | 置き方はそのまま・2 番目に近い本の面と傾き | −1.2 | ok | +0.9 | −3.3 | −20.1 | −6.6 | +10.9 / +7.2 | −0.3 / −4.0 | +2.1 / −2.0 | 8/6 → 18/16 | × / × |
| 4 | (227.2, 29.9)・2.2° | そのまま | −0.8 | ok | +0.9 | −2.6 | −18.8 | −4.8 | +10.9 / +8.3 | −0.8 / −3.3 | +1.7 / −1.9 | 5/5 → 17/17 | × / ○ |
| 5 | (309.8, −86.3)・−0.1° | そのまま | −3.3 | ok | +0.9 | −2.6 | −28.1 | −6.0 | +11.0 / +14.3 | +3.0 / +6.1 | +4.0 / +0.5 | 13/12 → 18/18 | × / ○ |

- 場所1：そのままでは 校正の点が囲む範囲の外（辺まで −0.9 画素）。場所3：いちばん近い本（割り振り 26 本目）の面・傾きでは 爪の面を机に垂直にできない（+21.0°・許し ±8°）
- 今の決まりは 場所2 で指令の時点で固定側がブロックに 3.1 mm 重なり、予想では 4.4 mm 重なる（依頼399 の so101f の場所2 の失敗の形と同じ）。rule_401 は指令 +10.2・予想 +6.6 mm 離れる

## 3. コードだけで実機に流す（`run_rule401.py`）

### 3-1. 中身

- 割り振り `plan_401.json`（`plan_401.py`）：場所2〜5 は 依頼394 の `plan_394.json`（目印にまっすぐ置いた所に rule_351 を当てて選んだ面・傾き。場所5 は決まり 4 の向き −2.5°）を読むだけ。場所1 は目印では rule_351 の道が作れないので、**候補**（目印から 8 画素 = 7.5 mm 寄せた画素 (368.5, 97.3)・plan_351 の 6 本目の面・傾き）を残し、`ok: false` のまま（`--place1-candidate` を付けたときだけ使う）。候補は rule_351 の置き方の余り（±10 画素・±6°）を確かめていない
- 1 回の流れ：机のカメラでブロックを読む（`yaw_lib_343.read_block`。依頼351・392 と同じ）→ 目印から 10 画素・向き ±8° の中か → rule_351 の道（`make_path`。始め HOME・ずらしなし。依頼392 と同じ）→ rule_401 → ガード → Enter → HOME へ寄せる（録らない）→ 道を全部 30fps で送りながら録る（`ptm.mode = 3`）→ 結果 y/n・失敗の場所の番号 → 記録を KIOXIA に写して台帳に 1 行
- ガード（どれかに当たれば動かさない。既存のものは緩めていない）
  - `clear_345.check_path`（全区間。爪の先と机 ≥ −11 mm = `JAW_TABLE_MIN_MM`。これより緩い値は受けない）
  - 道の関節 6 つが 道を作る範囲の中（爪の上限 59.5066）。1 コマ 関節 10°・爪 20 以下
  - 予想のつかむ所の爪と机 ≥ −6 mm（`push_limit`）、**予想の閉じる間〜持ち上げの始め 10 コマの爪と机 ≥ −6 mm（`push_window`。codex R1 C2 で足した）**
  - status が ok（conflict は `--allow-status conflict` のときだけ。その回は毎回 `yes` と打たないと流さない）
  - 今の姿勢が HOME から 10° より離れていれば寄せない。寄せたあと 30 コマで HOME の 5° に入らなければ止める（依頼394 と同じ）
  - 道を送る間、読んだ関節と予想の差が 10° を超えたらその場で止める（codex R1 C1）。スペース・q でもその場で止める
  - 「その場で止める」は 関節 5 つを今の位置・爪を前の目標にして、入口 B（1 コマ 10°）で切られても届くまで 30 コマまで送り直す。例外・Ctrl-C のときも 閉じる前に同じことをする（読めない・送れないときは前の目標のまま閉じる）（codex R2 C1）
  - 道の 1 コマの変化が `--max-step-deg` を超える道は送らない（切ると確かめた道と違う道になるため）
  - `--log-dir` が KIOXIA（`/Volumes/KIOXIA` がマウントされている）の上か を 始める前と 写す前に確かめる
- 台帳：`so101_trials.csv` に 1 行（`TRIAL_COLUMNS` のまま。model = `code_rule401`、step = `rule_401`、operator = `code`、queries 0）。記録は so101f と同じ LeRobot の形（observation.state・action・ptm.sent・ptm.mode・カメラ 2 台。`--currents` は今までどおり既定 off）。試行のフォルダに `rule401_plan.json`（道・予想の道・すき間・ガード）と `trial.json`。道を送る前に止めた回は 記録も台帳も作らない
- `--dry-run`：アームにつながず送らない。`--fake marker`（目印の画素・0°）か `--fake U,V,YAW` ならカメラも開かない。`check_401/dry_run/` に書く。台帳・KIOXIA には書かない
- テスト `test_run_rule401.py`（unittest 16 本。アームなし。全部通る）：全部送る・止める目標が入口 B で切られても届くまで送り直す・止める目標を送れなくても落ちない・HOME から遠いと動かさない・スペースで止める・切る道は送らない・追従の差で止める・寄せで止めたら記録を作らない・KIOXIA でない所は止める・ガード・割り振りと目印の道・下げ量の解き方（線形・conflict・deep_at_zero・不連続）

### 3-2. 目印での dry-run（`check_401/dry_run/`。目印の画素・向き 0° を読んだことにした）

| 場所 | 下げ mm | status | つかむ所 指令 / 予想 | 沈み最大 | 持ち上げの始め 予想 | 下りる 固定側 指令/予想 | 結果 |
|---|---|---|---|---|---|---|---|
| 1（候補の所） | −5.4 | ok | +0.9 / −3.4 | −33.7 | −8.7 | +11.1 / +14.6 | 止まる（push_window） |
| 2 | −2.8 | conflict | +2.2 / −5.9 | −26.7 | −11.1 | +10.4 / +6.4 | 止まる（push_window・status） |
| 3 | −0.8 | ok | +0.9 / −2.4 | −19.5 | −6.0 | +10.7 / +7.0 | **送れる** |
| 4 | −3.9 | conflict | +3.4 / −5.8 | −19.5 | −10.3 | +10.1 / +7.4 | 止まる（push_window・status） |
| 5 | −2.8 | ok | +0.9 / −2.4 | −27.6 | −10.0 | +11.1 / +13.9 | 止まる（push_window） |

### 3-3. 実機で流す手順（エイイチの確かめのあと。アームは休みの姿勢・KIOXIA をつなぐ・机のカメラにほかの赤い物を置かない）

```
cd ~/r2r2r-scripts
export SO101_VAR_ROLL_RANGE=-67,58
P=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python

# 0. カメラで読むだけ (アームなし・送らない). ブロックを場所3 の目印にまっすぐ置いて
$P so101/check_401/run_rule401.py --place 3 --dry-run

# 1. 1 か所目だけ 1 回流して止める (今のガードで送れるのは場所3 だけ)
PLACES="3" ./so101/check_401/session_401.sh --first
#    (同じこと: $P so101/check_401/run_rule401.py --place 3 --log-dir /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12 --execute)

# 2. 記録を見てから 続き (場所ごとに 6 回. 台帳で済んだ回を数えて続ける)
PLACES="3" ./so101/check_401/session_401.sh
#    ガードを決め直したあと (決めてほしいこと 1・2) は PLACES="2 3 4 5" (場所1 は R401_PLACE1=1 で候補の所)
```

## 4. codex のレビュー（`codex exec -s read-only -m gpt-6.1-terra`。読むだけ）

依頼文 `review_request_401.md`・`review_request_401_r2.md`、答え `review_r1.txt`・`review_r2.txt`（生の出力は `review_r*_raw.txt`）

1 回目（結論：このままでは実機の 1 回目に進めない）の必須の指摘と直したこと

| 指摘 | 中身 | 直したこと |
|---|---|---|
| A1 必須 | 下げ量の解き方が収束を確かめない。dz < 0 でも deep_at_zero になる | deep_at_zero は dz = 0 で測った値が深いときだけ。dz < 0 で −6 より深いのは not_converged（流さない）。解き方のテスト 5 本（不連続に跳ぶ形を含む） |
| A2 必須 | 予想の爪が 20 を割らないとき GRASP_CLOSED を「つかむ所」にしている | no_close（流さない）。コマの番号のそろえ方を説明に書いた |
| B3 必須 | 寄せる前にローカルの記録のフォルダを作る | 道の 1 コマ目を送る直前に作る |
| C1 必須 | 追従の差で止めない。`--max-step-deg` で切ると確かめた道と違う道を送る | 予想との差 10° で止める。切る必要のある道は送らない |
| C2 必須 | 押し付けのガードがつかむ所の 1 コマだけ | 閉じる間〜持ち上げの始めの最小にも −6 mm（push_window）。どこまで許すかは決めてほしいこと 1 |
| C3 必須 | 開き 59 と上限 59.5 の余りは 指令の話で、実機の爪の端の余りは分からない | コードは変えていない（決めてほしいこと 3） |
| C5 必須 | 緩める口（`--allow-status`・`--place1-candidate`）に毎回の確かめがない | 使う回は毎回 `yes` を打つ |
| D6 必須 | KIOXIA のマウントを確かめていない | 始める前と写す前に確かめる |
| C4 推奨 | 目印からの画素を丸めてから比べる | 丸める前の値で比べる |
| B2 推奨 | operator = code は 13 節の語にない | 変えていない（決めてほしいこと 5） |

2 回目（結論：C1・B3 を直し、C2・C3 をエイイチが確かめるまで進まない）

| 指摘 | 中身 | 直したこと |
|---|---|---|
| C1 必須 | 止める目標も入口 B を通るので、腕が目標から 10° より遅れていると今の位置まで一度に戻せない。例外・Ctrl-C では止める目標を送らずに閉じる | `hold_here`：届くまで 30 コマまで送り直す。例外・Ctrl-C のあとも閉じる前に送る（`safe_hold`）。テスト 2 本 |
| B3 必須 | 記録を作ってから 1 コマ目を送るまでに止まると 空のフォルダがローカルに残る | 記録は 1 コマ目を送る直前（止まる所のない所）で作る。コピーのあと台帳を書く前の失敗で KIOXIA にフォルダだけ残る形は残る（13-3 の「行なし」で見つかる） |
| C2 必須 | −6 mm は予想の値で、予想の誤差・沈み最大の余りは保証しない | コードは変えていない（決めてほしいこと 1） |
| C3 必須 | 開き 59 の実機の余り | 決めてほしいこと 3 |
| A1 推奨 | a（−2 mm）に届かなくても b・c を満たせば ok でよいか | 決まりの説明に「ok は b・c を満たすこと。a はねらい」と書いた |
| C4 推奨 | 向きも丸めてから比べている | 丸める前の値で比べる |
| B1・B2・D6 推奨 | 同じプロセスで別の処理と使うとき・operator・写す途中で外したとき | 変えていない |

## 確かめられなかったこと

- **実機の押し付け**：シムの爪と机の負の値はめり込みで、力ではない。予想の形は 依頼400 で「肩が下がる本の沈みを 7 割しか出さない」（実際 −15.1 mm に予想 −10.5 mm）。deep_at_zero・conflict の所は 実際はもっと深い見込み
- **持ち上げの始めの予想の沈み**（向きが変わる所）が実機の動きか、形の作りの分か
- **開き 59 から閉じる 10 コマで 実機の爪が閉じ切るか**（予想では持ち上げの始めに爪の値 19。爪は遅れだけを予想し、ブロックに当たって止まる所は予想していない）。実機の爪の開き 59 の端の余り
- 挟んで持ち上がるか（シムの物理は依頼399 と同じく数としては使えないので出していない）
- 場所1 の候補の所の 置き方の余り（±10 画素・±6°）。場所3 の so101f の置き方（向き +2.5°）は いちばん近い本の面・傾きでは作れず 2 番目の本のもの。目印（0°）での実機の場所3 は 依頼394 の面・傾き（作れる）
- 机のカメラでの実際の読み（dry-run は目印の画素を読んだことにした）

## 決めてほしいこと

1. **押し付けのガードの範囲**：今は 予想の「つかむ所」と「閉じる間〜持ち上げの始め 10 コマ」の両方に −6 mm を当てている（codex の必須）。このままだと 50 か所中 15・目印 5 か所中 1（場所3）しか流せない。(a) このまま場所3 だけで始める、(b) 持ち上げの始めは −6 mm から外す（つかむ所だけ。依頼の決まりの読み方）か別の値にする、(c) 持ち上げの始めも −6 mm になるよう下げ量を解く（決まりを変える）
2. **conflict の所（場所2・4。指令で +1 mm を守れない）を流すか**（`--allow-status conflict`。流す回は毎回 yes）。deep_at_zero（下げなくても予想が −6 mm より深い）は 今のコードでは流せない
3. **爪の開き 59**：指令は安全範囲 59.5066 の 0.5 内側。実機の爪の端（校正）にどれだけ余りがあるか確かめるか、開きを抑えるか
4. **場所1**：目印では道が作れない。候補（目印から 7.5 mm 寄せた所。置き方の余りは未確認）に目印を動かすか、場所1 を外すか（依頼394 と同じく外す）
5. 台帳の `operator` を `code` にした（13 節の語は AI / AI+人の手直し）。この語でよいか
6. 持ち上げの始めに爪が閉じ切っていない（予想の爪の値 19）。閉じてから持ち上げるまでの止まりを足すか（決まりのコマ数を変える。今回は変えていない）

7. **codex の 3 回目のレビュー**：2 回目の必須（C1・B3）を直したあとの確かめは頼んでいない。実機の前にもう一度頼むか
8. `plan_401.json`（割り振り）・`dry_run/`・レビューの依頼文と答え（`review_*`）は、依頼の「commit はコード・REPORT・arm_response_400.json だけ」に従って git に入れていない。`run_rule401.py` は `plan_401.json` がないと動かない。入れるか

commit：206192f（arm_response_400.json）・9ccefe6（コード・REPORT）

判定：止めた（決めてほしいことあり）
````

### codex へのレビューの依頼文（1回目）so101/check_401/review_request_401.md

```markdown
# コードレビュー依頼：依頼 401 SO-101 のつかみ方 rule_401（案 C）をコードだけで実機に流すスクリプト

**読むだけにしてください。ファイルは書き換えないでください。**

対象ファイル（r2r2r-scripts。リポジトリで読む。どれも新しいファイル）：

- `so101/ideal_var/rule_401.py`（決まり rule_401：rule_351 の道を 開き 59・固定側のすき間 12 mm・つかむ所の下げ に作り替える。下げ量は腕の動きの予想で解く）
- `so101/check_401/run_rule401.py`（実機に流す入口。1 回 = 1 試行。`--execute` / `--dry-run`）
- `so101/check_401/plan_401.py`（場所1〜5 の割り振り `plan_401.json` を作る。場所2〜5 は `check_394/plan_394.json` の値を読むだけ）
- `so101/check_401/session_401.sh`（場所 × 6 回の案内。`--first` で 1 回だけ）
- `so101/check_401/test_run_rule401.py`（テスト。アームなし）
- 読むだけで使っている既存のもの（変えていない）：`so101/run_so101_policy.py`（LiveArm・Recorder・append_trial・step_clip・pause_target・KeyReader・ask_result）、`so101/check_392/handover_392.py`（rule_range）、`so101/check_399/lib_399.py`（World.variant・kin・gaps）、`so101/sim/look_400/arm_response_400.py`（ArmResponse.predict・clearance）、`so101/ideal_var/var_lib_314.py`（make_path）、`clear_345.py`（check_path）、`rule_351.py`、`face_349.py`、`yaw_lib_343.py`（read_block）、`recover_377.py`（Shifter）

---

## このコードがやろうとしていること

SO-101（LeRobot・関節 5 つ + 爪。STS3215 サーボ）で、赤いブロックをつかんで白い箱に入れる。学習した方策（π0.5）は使わず、
机のカメラでブロックの位置と向きを読み、決まり（rule_401）で関節の道（30fps・約 250 コマ・HOME → ブロックの上 → 下りる → 閉じる → 持ち上げ → 箱 → 離す → HOME）を作って、
そのまま全部送る。学習なしで何割つかめるかを測るための入口。**このレビューでは特に、関節の道を直接送ることの物理のリスク**（机に押し付ける量・爪の開き・ガードの抜け）を見てほしい。

## 設計仕様（このコードに対する期待）

依頼 399 で、今の決まり rule_351 は 固定側の爪がブロックに近すぎ（左へ 4 mm ずれると 50 か所中 11 しか挟めない）、つかむ所が高い（沈まないと机に届かない）ことが分かった。
エイイチが 2026-12-01 に 案 C（開き 59・固定側の爪をブロックから 12 mm 離して下りる・つかむ所を下げる）で進めると決めた。
依頼 400 で、指令から実機の関節を予想する形（`arm_response_400` の dir_s：関節ごとに d コマのずれ + 1 次の遅れ + 一定の足し分 + 動く向きの足し分）を作った。

### 動作仕様

1. rule_401（`rule_401.apply`）
   - rule_351 の道の ABOVE_BLOCK・GRASP_OPEN・GRASP_CLOSED の 3 つのキー姿勢だけを作り替える（`lib_399.World.variant`。コマ数・区間・持ち上げから先はそのまま）
   - 爪の開き 59（道を作る範囲の爪の上限 59.5066 の内側。範囲は変えない）
   - 固定側のすき間 12 mm（爪の閉じる向きに動かす。手先の高さ・爪の傾き・閉じる向きはそのまま）
   - 下げ量 dz（≤ 0）：a. 予想の道で「つかむ所（予想の爪が 20 を割った最初のコマ）」の爪と机が −2 mm／b. 指令どおり（GRASP_CLOSED の姿勢）で +1 mm 以下になるまで下げる／c. 予想で −6 mm より深ければ −6 に戻す（dz は 0 より上げない）。b と c を両方満たせなければ status = conflict、dz = 0 でも予想が −6 より深ければ deep_at_zero
2. 1 回の試行（`run_rule401.execute`）
   - アームを開く前に 割り振り（`plan_401.json`）・rule_401 の値・校正の点の SHA-256・道を作る範囲・腕の動きの予想の値の SHA-256 を確かめる
   - 机のカメラの 1 コマでブロックを読む。目印から 10 画素・向き ±8° より離れていれば動かさない
   - ガード（どれかに当たれば動かさない）：clear_345.check_path（全区間。爪の先と机 ≥ −11 mm＝rule_351.JAW_TABLE_MIN_MM。緩める値は受けない）／道の関節 6 つが範囲の中／1 コマ 関節 10°・爪 20 以下／予想のつかむ所の爪と机 ≥ −6 mm／status が ok（conflict は `--allow-status conflict` のときだけ）
   - 今の姿勢が HOME から 10° より離れていれば動かさない。寄せる（録らない）→ HOME で実際の関節が 5° に入るまで最大 30 コマ待つ → 道を全部 30fps で送りながら録る（`ptm.mode = 3`）。スペース・q でその場で止める
   - 送るのは `run_so101_policy.LiveArm.send`（`lerobot_safe_259` の入口 B：前に送った目標から 1 コマ 関節 10°・爪 20 まで）。`--max-step-deg`（1〜10）でさらに切る
   - 結果（y/n）と失敗の場所の番号を聞き、記録を KIOXIA に写して台帳 `so101_trials.csv` に 1 行（TRIAL_COLUMNS のまま。model = code_rule401）
3. `--dry-run`：アームにつながず、送らない。道・予想の道・すき間・ガードの答えを `check_401/dry_run/` に書く。台帳・KIOXIA には書かない

## レビューしてほしいチェック項目

### A. ロジックの正しさ

A1. `rule_401.apply` の下げ量の解き方（a→b→c の順・dz ≤ 0・status の決め方）が仕様どおりか。収束しない・振動する所はないか
A2. `rule_401.measure` の「予想のつかむ所」（予想の爪が 20 を割った最初のコマ）と、閉じる間・持ち上げの始めの分け方。予想の道（`predict` の out[k] = 指令 k を送った次のコマの関節）とコマの番号のそろえ方が合っているか
A3. `run_rule401.build` の道の作り方が 依頼 392 の `handover_392.Handover.build`（割り振りの面・傾き・読んだ画素・向き・offset なし・detour なし）と同じか
A4. `run_rule401.world` が 道を作る範囲（手首の回転 −67〜58° を含む）を rule_351 と同じにしているか（環境変数 `SO101_VAR_ROLL_RANGE` を上書きしている）

### B. 副作用・破壊チェック

B1. 既存のファイル（rule_351・var_lib_314・clear_345・lib_399・arm_response_400・run_so101_policy・handover_392）を書き換えていないか、import するだけで状態（モジュールの大域変数・CL._SCENE など）を壊していないか
B2. 台帳の行（TRIAL_COLUMNS のまま。足りない列は空）・試行のフォルダの形が run_so101_policy と食い違わないか。operator = "code" は 13 節の語にない（AI / AI+人の手直し）。問題か
B3. 道を送る前に止めた回（寄せの途中を含む）は 台帳にも KIOXIA にも書かない。13-3 節（フォルダはあるのに行がない）とぶつからないか

### C. 暴走・安全リスク

C1. 関節の道を 250 コマまとめて送る。途中で止まる仕組みは スペース・q だけ（追従の差で止める仕組みはない。依頼 396 の戻る道は 10° で止めていた）。足りないか
C2. 机に押し付ける量：指令の爪と机は ≥ −11 mm（clear_345）、予想のつかむ所は ≥ −6 mm。ただし予想の持ち上げの始め（動く向きが変わる所）で 50 か所の中央値 −8.0 mm・最も深い −12.9 mm、依頼 379 の沈み最大（肩 +4・肘 +3）で −13.8〜−30.8 mm。依頼 400 の予想は 肩が下がる本で 7 割しか沈みを出さない。ガードとして足りるか
C3. 爪の開き 59 は 爪の範囲の上限 59.5066 の 0.5 内側。入口 B（1 コマ 20）と範囲の確かめは足りるか
C4. ブロックの読みが外れた（ほかの赤い物）ときに 目印から 10 画素で止まるか。向きの 90° の折り返し（`unwrap_near`）で 違う面をつかむ道になることはないか
C5. `--allow-status conflict`・`--place1-candidate` は 緩める向きの口。付け間違いで危なくならないか

### D. 制約ルールの遵守

D1. `send_coords()` を使っていないか（SO-101 は関節の角度だけを送る）
D5. 実機の通しのスクリプトとして 台帳（so101_trials.csv）への追記を持っているか（data_manifest_rules.md 13 節）
D6. KIOXIA に書くとき、つながっていなければローカルへ逃げずに止まるか（`--log-dir` が無ければ止める）

## レビュー結果のフォーマット

各項目について ✅ OK / ⚠️ 要確認 / ❌ NG で答え、⚠️・❌ は「必須（実機の前に直す）」か「推奨」かを書いてほしい。最後に「このまま実機の 1 回目に進んでよいか」の結論を 1 行で。日本語で。
```

### codex の答え（1回目）so101/check_401/review_r1.txt

```
**結論：このまま実機の1回目には進めません。** 持ち上げ開始時の押し付け、追従異常時の停止、クリップ後の実際の送信経路の検証が、実機前の必須事項です。

### A. ロジック

- **A1 ❌ NG・必須** — a→b→c の順と `dz ≤ 0` は実装されていますが、[rule_401.py:139](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:139) の各段階は最大8回の補正後、収束を確認せず次へ進みます。特に c が未収束でも、`dz < 0` のまま予想値が −6 mm 未満なら `deep_at_zero` と判定します。これは「dz = 0 でも深い」という仕様を証明していません。収束失敗を別扱いにし、`deep_at_zero` は実際に dz = 0 を評価して判定してください。振動や不連続な応答を含むテストも必要です。

- **A2 ⚠️ 要確認・必須** — [rule_401.py:95](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:95) は予想配列の同じ添字を使って区間を切っています。`predict` の `out[k]` は指令 k を送った**次**の状態なので、キー姿勢の時点との対応は1コマ分を明示して検証する必要があります。また、爪が20を割らない場合は `GRASP_CLOSED` に戻り、実際には条件を満たさないコマを「つかむ所」としてガードします。未検出は停止扱いにしてください。閉じる区間とその後10コマの分割自体はコード上で分かれています。

- **A3 ✅ OK** — 元の道の `make_path` 引数は、読んだ画素・向き、割り振りの面・傾き、offset・detour なしという点で [handover_392.py:156](/Users/shimazueiichi/r2r2r-scripts/so101/check_392/handover_392.py:156) と一致します。その後に rule_401 の変更を適用します。

- **A4 ✅ OK** — [run_rule401.py:120](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:120) で環境変数を上書きし、生成された全6軸の範囲を `rule_range()` と照合しています。

### B. 副作用・記録

- **B1 ⚠️ 要確認・推奨** — 指定された既存ファイルに Git の未コミット差分は見当たりません。新コードの import は `sys.path` を変更し、`world()` は環境変数を変更します。`World(render=False)` は `CL._SCENE` を明示的に上書きしませんが、`CL.scene()` による共有シーンの初期化・使用はあります。既に読み込んだ別処理と同一プロセスで併用する場合は独立性に注意が必要です。

- **B2 ⚠️ 要確認・推奨** — [run_rule401.py:444](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:444) は既存の `TRIAL_COLUMNS` と `append_trial` を使い、不足列は空になります。ただし `operator="code"` は提示された既存の語彙外です。コード実行を識別する値としては明確ですが、集計側と記録ルールに追加して扱う合意が必要です。指定の `data_manifest_rules.md` 本文は今回確認できなかったため、13節への正式な適合は断定できません。

- **B3 ⚠️ 要確認・必須** — [run_rule401.py:409](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:409) で寄せる前に Recorder がローカル試行フォルダを作り、送信前に止まると台帳と KIOXIA へのコピーを省略します。したがって**ローカルにはフォルダだけ残り得ます**。13-3節がローカルも対象なら衝突します。対象範囲を確認し、空フォルダを作らない設計か、停止記録の扱いを決めてください。また、コピー後・台帳追記前の例外でも KIOXIA に孤立フォルダが残り得ます。

### C. 暴走・安全リスク

- **C1 ❌ NG・必須** — [Runner.run:312](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:312) は各コマで実測値を取得しますが、目標との差を判定しません。引っ掛かりや追従遅れがあっても次の目標を送り続けます。実測追従差の停止条件と、通信・観測・録画エラー時の保持動作を実機前に設け、空振りや停止中を含めて検証してください。加えて `--max-step-deg < 10` では各目標を切っても元のコマを飛ばさず進むため、**送信経路が事前検査・予想した経路と異なり得ます**。送信される経路を生成してガード・予想し直す必要があります。

- **C2 ❌ NG・必須** — [run_rule401.py:161](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:161) の予想押し付けガードは、爪が20を割った**1コマだけ**です。計測している閉じる間・持ち上げ開始時の最小値は停止条件ではありません。提示された −12.9 mm や沈み最大時の値、モデルの過小評価を考えると、−6 mm ガードが通っても安全とは判断できません。閉じる間から持ち上げまでの最深値とモデル誤差・沈みの余裕を含む停止条件を決め、検証してください。

- **C3 ⚠️ 要確認・必須** — 指令の59は計画範囲内で、経路の範囲と1コマ変化も検査されます。ただし上限との余裕は約0.51で、入口Bは**指令間の変化量**の制限であり、実爪の追従誤差や物理端への余裕を保証しません。実機の爪の校正と余裕を確認し、必要な安全余裕を明示してください。

- **C4 ⚠️ 要確認・推奨** — 中心が目印から許容距離を超えれば停止しますが、[run_rule401.py:202](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:202) は距離を小数1桁に丸めてから比較するため、10 px をわずかに超える値が通る境界があります。別の赤い物でも目印付近にあり検出条件を満たせば区別できません。`unwrap_near` は立方体の90°対称性に沿うため折り返し自体は妥当ですが、対称性が崩れる物体や誤検出では面の同一性を保証しません。非丸め値で判定し、撮影範囲から他の赤い物を除いてください。

- **C5 ⚠️ 要確認・必須** — `--allow-status conflict` は指令側の +1 mm 条件を外しますが、予想の −6 mm ガードは残ります。`--place1-candidate` は候補を基準に位置を判定します。どちらも明示指定が必要ですが、実行時に承認を再確認する仕組みはありません。特に conflict は安全条件の例外として、初回実機では無効化するか、対象場所と理由を表示して明示確認する必要があります。

### D. 制約

- **D1 ✅ OK** — 対象の新規実行経路に `send_coords()` はなく、`LiveArm.send` を通じて関節目標を送ります。
- **D5 ✅ OK** — 試行データをコピーした後、既存の `append_trial` で `so101_trials.csv` に追記します。異常時の整合性は B3 のとおりです。
- **D6 ❌ NG・必須** — `--log-dir` の指定とディレクトリの存在は確認しますが、[run_rule401.py:380](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:380) はそれが実際に KIOXIA 上か確認しません。任意のローカルディレクトリも受け入れ、実行中の取り外しも再確認しません。対象ボリュームのマウントを動作前と保存直前に確認し、失敗時は停止する必要があります。

テストはファイル生成や実機接続を避けるため実行せず、コードを静的に確認しました。

**実機1回目：上記の必須事項を修正・検証するまで進まないでください。**
```

### codex へのレビューの依頼文（2回目）so101/check_401/review_request_401_r2.md

```markdown
# コードレビュー依頼（2 回目）：依頼 401 rule_401 をコードだけで実機に流すスクリプト

**読むだけにしてください。ファイルは書き換えないでください。**

1 回目の依頼は `so101/check_401/review_request_401.md`、1 回目の答えは `so101/check_401/review_r1.txt`。対象は同じ（`so101/ideal_var/rule_401.py`・`so101/check_401/run_rule401.py`・`test_run_rule401.py`・`session_401.sh`）。
1 回目の必須の指摘を次のように直した。直し方が足りているか、新しい抜けがないかを見てほしい。

- A1：`rule_401.apply` の status を直した。`deep_at_zero` は dz = 0 で測った値（いつも最初に測る）が −6 より深いときだけ。dz < 0 のまま −6 より深いのは `not_converged`（流さない）。テスト `Solve`（線形・ぶつかる・dz = 0 で深い・不連続に跳ぶ）を足した
- A2：予想の爪が 20 を割らないときは `close_found = False` → status `no_close`（流さない）。`close_frame` の説明に コマの番号のそろえ方（Qp[k] = 指令 k への応え = 記録の state[k+1]。依頼 400 の kc − 1）を書いた
- B3：記録（LeRobot のローカルのフォルダ）は 道の 1 コマ目を送る直前に作る（`Runner` に作る関数を渡す）。寄せ・HOME で止めたときは作らない
- C1：道を送る間、読んだ関節 5 つと 予想 pred[k−1] の差が 10° を超えたら その場で止める（`TRACK_STOP_DEG`）。道の 1 コマの変化が `--max-step-deg` を超える道は送らない（切らない）
- C2：ガード `push_window` を足した：予想の 閉じる間〜持ち上げの始め 10 コマの 爪と机の最小 ≥ −6 mm（つかむ所だけでなく）。50 か所では status ok と合わせて 15 か所しか通らない（今の決まりなら 40）。どこまで許すかはエイイチが決める
- C3：爪の開き 59 の実機の余り（校正）は エイイチの確かめに回す（コードは変えていない）
- C5：`--allow-status`・`--place1-candidate` を使う回は、`--skip-first-confirm` でも 毎回 `yes` と打たないと流さない
- D6：`kioxia_bad`：/Volumes/KIOXIA がマウントされていて、`--log-dir` がその下にあることを 始める前と 記録を写す前に確かめる
- C4（推奨）：目印からの画素の距離は丸める前の値で比べる

結果は 1 回目と同じ形（✅ / ⚠️ / ❌、必須か推奨か）で、最後に「このまま実機の 1 回目に進んでよいか」を 1 行で。日本語で。
```

### codex の答え（2回目）so101/check_401/review_r2.txt

```
**結論：このまま実機の1回目には進めません。** 追従異常時の停止指令が実際に現在位置へ届く保証と、例外時の停止処理が未解決です。机への押し付けも、モデル誤差を含む許容範囲の判断が必要です。

### A. ロジック

- **A1 ⚠️ 要確認・推奨** — `deep_at_zero` と `not_converged` の区別は修正され、どちらも通常は送信されません。一方、[rule_401.py:144](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:144) の a は8回で未収束でも、最終的に b・c を満たせば `ok` になります。予想値 −2 mm への収束も `ok` の条件とするのか、b・c を満たせばよいのか仕様を明確にしてください。追加された不連続テストも、a の未収束を検出するものではありません。

- **A2 ✅ OK** — 爪が20を割らない場合は `no_close` となり送信されません。`Qp[k]` と記録の `state[k+1]` の対応、および閉じる区間から持ち上げ開始までの切り方が明記されています。

- **A3 ✅ OK** — 元の道は、前回確認した `handover_392` と同じ面・傾き、offset・detour なしの条件で作られます。

- **A4 ✅ OK** — 環境変数を上書きしたうえで、生成された全軸の範囲を `rule_range()` と照合しています。

### B. 副作用・記録

- **B1 ⚠️ 要確認・推奨** — 前回と同様、import による `sys.path`、`world()` による環境変数、共有シーンの使用があります。同一プロセスで別処理と併用する場合は注意が必要です。

- **B2 ⚠️ 要確認・推奨** — 既存の列と追記関数を使用しています。`operator="code"` の集計上・記録ルール上の扱いは引き続き確認が必要です。13節の本文への適合は断定できません。

- **B3 ⚠️ 要確認・必須** — 寄せ・HOME 待機中には Recorder を作らない修正は有効です。ただし [run_rule401.py:325](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:325) では Recorder 作成後、1コマ目の送信前にもキー入力・観測があり、そこで停止・例外が起きると試行フォルダだけがローカルに残り得ます。Recorder の作成自体が途中で失敗した場合も同様です。送信前に止まった回の空・不完全フォルダの扱いを決めてください。コピー後・台帳追記前の例外による孤立フォルダも残ります。

### C. 暴走・安全リスク

- **C1 ❌ NG・必須** — 予想との差が10°を超えたときの検出と、検査済みの道が `--max-step-deg` で切られる場合の拒否は追加されています。ただし [run_rule401.py:337](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:337) の停止目標も入口Bを通るため、実測位置と前の送信目標との差が10°を超えている軸では、**現在位置まで一度に戻せず、停止目標が途中で切られ得ます**。また、観測・通信・録画の例外や Ctrl-C では停止目標を送らず `arm.close()` に進みます。停止が実際にどの状態になるかを入口Bと切断処理を含めて定め、異常時をテストしてください。

- **C2 ⚠️ 要確認・必須** — [push_window ガード](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:165) は閉じる間から持ち上げ開始10コマの予想最深値を検査しており、前回の抜けを塞いでいます。ただし −6 mm は予想値の条件で、提示されたモデルの過小評価や沈み最大時の余裕は保証しません。**実機で許容する押し付けと余裕をエイイチが決めることが、実機前に必要です。**

- **C3 ⚠️ 要確認・必須** — 開き59と物理端の余裕はコードだけでは確認できません。予定どおり、実機の爪の校正と余裕を確かめてください。

- **C4 ⚠️ 要確認・推奨** — 画素距離は丸め前に比較するよう修正されています。一方、向きは [run_rule401.py:204](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:204) で小数1桁に丸めてから比較するため、±8°をわずかに超えても通る境界があります。向きも丸め前で判定してください。目印付近の別の赤い物は区別できません。

- **C5 ✅ OK** — 実際に `conflict` または場所1の候補を使う回は、`--skip-first-confirm` にかかわらず毎回 `yes` を求めます。

### D. 制約

- **D1 ✅ OK** — 対象の実行経路に `send_coords()` はありません。
- **D5 ✅ OK** — 記録コピー後に既存の `append_trial` で台帳へ追記します。途中失敗時の整合性は B3 のとおりです。
- **D6 ⚠️ 要確認・推奨** — 動作前とコピー前に `/Volumes/KIOXIA` のマウントと解決済み保存先を確認する修正は有効です。ただしコピー・台帳追記の途中で取り外された場合の原子性までは保証しません。

テストはファイル生成と実機接続を避けるため実行しておらず、静的レビューです。

**実機1回目：C1・B3の必須事項を解決し、C2・C3をエイイチが確認するまで進まないでください。**
```

### so101/ideal_var/rule_401.py

```python
"""依頼 401: つかみ方の決まり rule_401 = rule_351 の道 + 依頼 399 の案 C (開き 59・固定側のすき間 12 mm・つかむ所を下げる).
下げ量は 依頼 400 の腕の動きの予想 (arm_response_400 の dir_s) を通した道で か所ごとに解く. アームは動かさない (道を作るだけ).
rule_351・var_lib_314・clear_345・依頼 399/400 のファイルは変えない (読む・import するだけ).

決まり (RULE):
  1. 道の元は rule_351 の道 (var_lib_314.make_path. 面のずらし・爪の傾きは rule_351 で選んだ値)
  2. ブロックの上 (ABOVE_BLOCK) と つかむ所 (GRASP_OPEN) の爪の値を OPEN_G (59) にする (爪の安全範囲の上限 59.5 の内側. 範囲は変えない)
  3. つかむ所で 固定側の爪とブロックのすき間 (ブロックを閉じる向きに動かして固定側の爪に当たるまで. 依頼 380 の gap_to_fixed) を
     GAP_MM (12) にする. 爪の閉じる向きに動かす (recover_377.Shifter. 手先の高さ・爪の傾き・閉じる向きはそのまま).
     ブロックの上も同じだけ動かす (下りる道は真下). 解けない所は ブロックの上を今のままにして 下りる間に寄せる (依頼 399 と同じ)
  4. つかむ所の手先を下げる (dz. 負). 次の順に解く:
     a. 予想の道 (ArmResponse.predict) で つかむ所 (予想の爪の値が 20 を割った最初のコマ. 依頼 379・400 と同じ) の
        爪と机 が PRED_TARGET_MM (−2) になる dz
     b. 指令どおり (沈まない) の つかむ所 (GRASP_CLOSED の姿勢) の 爪と机 が CMD_MAX_MM (+1) より上なら, +1 になるまで下げる
        (予想の誤差 依頼 400: 高さ 1.5〜5.6 mm のため)
     c. 押し付けの上限: 予想の つかむ所の 爪と机 が PUSH_LIMIT_MM (−6) より深ければ −6 になるまで下げ量を減らす
     d. dz は 0 より上にしない (rule_351 より上げない). b と c の両方を満たせない所は status = "conflict" (報告に書く)
     status = "ok" は b と c を満たすこと (a の −2 mm は ねらい. 8 回で −2 mm に届かなくても b・c を満たせば ok. codex R2 A1)
  コマ数・区間・持ち上げ (LIFT) から先は rule_351 のまま. 既存のガード (JAW_TABLE_MIN_MM・関節の範囲・爪の範囲・1 コマの変化) は
  使う側 (check_401/run_rule401.py) が そのまま当てる (緩めない).

  import rule_401 as R401
  W = R401.world()                         # lib_399.World (plan_351 の 50 か所・clear_345 の場面) と ArmResponse
  out = R401.apply(W, res, e)              # res = rule_351 の道 (make_path の答え), e = {"pixel", "yaw"} (ブロックの画素・向き)
"""
import os
import sys
from pathlib import Path

import numpy as np

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

RULE_NAME = "rule_401"
BASE_RULE = "rule_351"
OPEN_G = 59.0
GAP_MM = 12.0
PRED_TARGET_MM = -2.0
CMD_MAX_MM = 1.0
PUSH_LIMIT_MM = -6.0
SAG_MAX = (4.0, 3.0)                # 依頼 379 の沈み最大 (肩 +4・肘 +3). 参考の値を出すだけ
CLOSE_GRIP = 20.0                   # 爪の値がこれを割ったコマを つかむ所とする (依頼 379・400)
TOL_MM = 0.25
ITERS = 8
RULE = {"name": RULE_NAME, "base": BASE_RULE, "open_g": OPEN_G, "gap_mm": GAP_MM, "pred_target_mm": PRED_TARGET_MM,
        "cmd_max_mm": CMD_MAX_MM, "push_limit_mm": PUSH_LIMIT_MM, "arm_response": "arm_response_400 (dir_s)",
        "what": "rule_351 の道の ブロックの上・つかむ所・閉じる を 開き 59・固定側のすき間 12 mm・つかむ所の下げ (予想で −2 mm・"
                "指令で +1 mm 以下・予想で −6 mm より深くしない・上げない) に作り替える (依頼 399 の案 C・依頼 401)"}


def world():
    """lib_399.World (render なし) と arm_response_400.ArmResponse. 道を作る範囲は rule_351 の範囲 (手首の回転 −67〜58°)"""
    import rule_351 as R351
    os.environ.setdefault("SO101_VAR_ROLL_RANGE", R351.ROLL_RANGE)
    import arm_response_400 as AR
    import lib_399 as L
    w = L.World()
    w.ar = AR.ArmResponse()
    if w.ar.model != "dir_s":
        raise RuntimeError(f"arm_response_400.json の選んだ形が dir_s ではない: {w.ar.model}")
    import var_lib_314 as V
    a, b = V.parse_roll_range(R351.ROLL_RANGE)
    if w.w.lo[4] > a + 1e-6 or w.w.hi[4] < b - 1e-6:
        raise RuntimeError(f"手首の回転の範囲が rule_351 ({R351.ROLL_RANGE}) を含まない: {w.w.lo[4]}〜{w.w.hi[4]}")
    return w


def close_frame(Qp, go, gc):
    """予想の爪の値が CLOSE_GRIP を割った最初のコマ (GRASP_OPEN の 1 コマ前から GRASP_CLOSED + 15 まで). 割らなければ None.
    コマの番号: 予想の Qp[k] は 指令 k を送った次のコマで読む関節 (記録の state[k+1]. arm_response_400.predict) なので,
    依頼 400 の close_frame (state[kc] が 20 を割る) の kc − 1 と同じ所. 下りる間なども Qp[k] を「指令 k への応え」として 指令のコマの番号で切る"""
    for k in range(max(go - 1, 0), min(gc + 15, len(Qp))):
        if Qp[k, 5] < CLOSE_GRIP:
            return k
    return None


def measure(W, v, e):
    """作り替えた道 v (lib_399.World.variant の答え) の 指令と予想の すき間 (mm. 負は重なり・めり込み).
    cmd: 下りる間 (ABOVE_BLOCK → GRASP_OPEN) の最小 (固定側・動く爪とブロック・爪と机), つかむ所 (GRASP_CLOSED の姿勢) の爪と机
         (沈みなし・沈み最大 SAG_MAX), GRASP_OPEN の すき間 (固定側・動く爪)
    pred: 予想の道 (ArmResponse.predict. 始めは道の 1 コマ目) で 下りる間の最小 (固定側は ABOVE_BLOCK → 予想のつかむ所,
          動く爪は ABOVE_BLOCK → GRASP_OPEN. 閉じ始めは動く爪がブロックに寄るのが正しいので含めない), つかむ所の爪と机・固定側,
          閉じる間 (GRASP_OPEN → GRASP_CLOSED) と 持ち上げの始め (GRASP_CLOSED + 1 → + 10) の 爪と机 の最小
          (予想の形は 動く向きが下がる → 上がるに変わる所で 足し分が一度に変わるので 持ち上げの始めに一度下がる),
          持ち上げの始めのコマの予想の爪の値 (爪は遅れだけ. ブロックに当たって止まる所は予想しない)"""
    path, fr = np.asarray(v["path"], np.float64), v["frames"]
    a0, go, gc = fr["ABOVE_BLOCK"], fr["GRASP_OPEN"], fr["GRASP_CLOSED"]
    k = W.kin(v, e)
    sag = f"{SAG_MAX[0]:g},{SAG_MAX[1]:g}"
    cmd = {"fixed_min": k["fixed_block"], "moving_min": k["moving_block"], "jaw_table_descend_min": k["jaw_table_descend"],
           "grasp_jaw_table": k["jaw_table_closed"]["0,0"], "grasp_jaw_table_sagmax": k["jaw_table_closed"][sag],
           "fixed_gap": k["fixed_gap"], "moving_gap": k["moving_gap"], "moving_table_min": k["moving_table"]}
    Qp = W.ar.predict(path)
    kc = close_frame(Qp, go, gc)
    found = kc is not None
    kc = gc if kc is None else kc
    bxy = W.bxy(e)
    end = min(gc + 10, len(Qp) - 1)
    g = W.ar.clearance(Qp, bxy, e["yaw"], frames=list(range(a0, max(kc, go) + 1)) + list(range(go, end + 1)))
    nd = max(kc, go) - a0 + 1
    nc = gc - go + 1                    # 閉じる間 (GRASP_OPEN → GRASP_CLOSED). そのあとは持ち上げの始め (10 コマ)
    fx, mv, jt = g["fixed_block"], g["moving_block"], g["jaw_table"]
    pred = {"close_frame": int(kc), "close_found": bool(found), "close_after_grasp_open": int(kc - go),
            "fixed_min": round(float(fx[:nd].min()), 2), "moving_min": round(float(mv[:go - a0 + 1].min()), 2),
            "jaw_table_descend_min": round(float(jt[:go - a0 + 1].min()), 2),
            "grasp_jaw_table": round(float(jt[kc - a0]), 2), "grasp_fixed": round(float(fx[kc - a0]), 2),
            "close_jaw_table_min": round(float(jt[nd:nd + nc].min()), 2),
            "lift_start_jaw_table_min": round(float(jt[nd + nc:].min()), 2),
            "grip_at_lift": round(float(Qp[min(gc + 1, len(Qp) - 1), 5]), 1)}
    return {"cmd": cmd, "pred": pred, "Qp": Qp}


def _var(W, res, e, dz):
    return W.variant(res, e, OPEN_G, GAP_MM, float(dz))


def apply(W, res, e, log=None):
    """rule_351 の道 res (make_path の答え. ok のもの) に rule_401 を当てる. e = {"pixel", "yaw"} (+ ほかは見ない).
    → {"ok", "why", "status", "dz_mm", "path", "frames", "keyframes", "info", "cmd", "pred", "pred_path", "steps"}
    status: "ok" (b と c を満たす. a は ねらい. codex R3 A1) / "conflict" (b と c を両方は満たせない. −6 mm を守り 指令は +1 より上) /
            "deep_at_zero" (dz = 0 で測って 予想が −6 より深い) / "not_converged" (dz < 0 のまま −6 より深い. 解けていない) /
            "no_close" (予想の爪が 20 を割らない) / "fail" (道が作れない)"""
    if not res.get("ok"):
        return {"ok": False, "why": res.get("why", "rule_351 の道が作れない"), "status": "fail"}
    steps = []

    def run(dz):
        v = _var(W, res, e, dz)
        if v.get("path") is None:
            return v, None
        m = measure(W, v, e)
        steps.append({"dz": round(float(dz), 2), "pred": m["pred"]["grasp_jaw_table"], "cmd": m["cmd"]["grasp_jaw_table"]})
        return v, m

    # a. 予想で −2 mm
    dz = 0.0
    v, m = run(dz)
    if m is None:
        return {"ok": False, "why": v.get("why") or "作り替えられない", "status": "fail", "steps": steps}
    for _ in range(ITERS):
        err = m["pred"]["grasp_jaw_table"] - PRED_TARGET_MM
        if abs(err) < TOL_MM:
            break
        nz = min(0.0, dz - err)
        if abs(nz - dz) < 1e-3:
            break
        dz = nz
        v, m = run(dz)
        if m is None:
            return {"ok": False, "why": v.get("why") or "作り替えられない", "status": "fail", "dz_mm": dz, "steps": steps}
    # b. 指令どおりで +1 mm 以下
    for _ in range(ITERS):
        err = m["cmd"]["grasp_jaw_table"] - CMD_MAX_MM
        if err <= 0.05:
            break
        dz = min(0.0, dz - err - 0.1)
        v, m = run(dz)
        if m is None:
            return {"ok": False, "why": v.get("why") or "作り替えられない", "status": "fail", "dz_mm": dz, "steps": steps}
    # c. 押し付けの上限 (予想で −6 mm より深くしない. 上げるのは dz = 0 まで)
    for _ in range(ITERS):
        err = m["pred"]["grasp_jaw_table"] - PUSH_LIMIT_MM
        if err >= -0.05 or dz >= 0.0:
            break
        dz = min(0.0, dz - err + 0.1)
        v, m = run(dz)
        if m is None:
            return {"ok": False, "why": v.get("why") or "作り替えられない", "status": "fail", "dz_mm": dz, "steps": steps}
    pj, cj = m["pred"]["grasp_jaw_table"], m["cmd"]["grasp_jaw_table"]
    zero = steps[0]                                 # dz = 0 で測った値 (いつも最初に測る)
    if not m["pred"]["close_found"]:
        status = "no_close"                         # 予想の爪が 20 を割らない (つかむ所が決まらない)
    elif pj < PUSH_LIMIT_MM - 0.05:
        # dz = 0 で測って深いときだけ deep_at_zero. dz < 0 のまま −6 より深いのは 解けていない (codex R1 A1)
        status = "deep_at_zero" if abs(dz) < 1e-9 and zero["dz"] == 0.0 and zero["pred"] < PUSH_LIMIT_MM - 0.05 else "not_converged"
    elif cj > CMD_MAX_MM + 0.05:
        status = "conflict"
    else:
        status = "ok"
    if log:
        log(f"dz {dz:+.2f} mm  予想 {pj:+.2f}  指令 {cj:+.2f}  {status}")
    out = dict(v)
    out.update({"status": status, "dz_mm": round(float(dz), 2), "cmd": m["cmd"], "pred": m["pred"], "pred_path": m["Qp"],
                "steps": steps, "rule": RULE})
    out["info"] = dict(v["info"], rule=RULE_NAME, dz_mm=round(float(dz), 2))
    return out
```

### so101/check_401/plan_401.py

```python
#!/usr/bin/env python3
"""依頼 401 の 3: コードだけで実機に流す (run_rule401.py) ための 場所1〜5 の割り振り plan_401.json を作る
(アーム・カメラは使わない. 計算だけ. plan_394.json・校正の点は読むだけ).

- 場所2〜5: 依頼 394 の割り振り (check_394/plan_394.json. 目印に まっすぐ (0°) 置いた所に rule_351 を当てて選んだ 面のずらし・爪の傾き.
  場所5 は決まり 4 の向き −2.5° の値. エイイチの決め 2026-11-30) をそのまま使う. rule_401 は この rule_351 の道を作り替えるだけなので
  面・傾きは探し直さない
- 場所1: 依頼 392・394 で目印 (place1) では rule_351 の道が作れない (肩が範囲の外・爪の面が立たない). 近い置き方を探す:
  目印から 校正の点の真ん中へ 8 画素ずつ寄せて (rule_351.make_plan の作れない置き場所の寄せ方と同じ), plan_351 の近い本の
  面のずらし・爪の傾きで rule_351 の道が作れる所を「候補」として残す (place1_candidate).
  候補は ok = False のまま (目印を動かすかは エイイチが決める. run_rule401.py は場所1 を流さない. --place1-candidate を付けたときだけ候補を使う)
- どの場所も 目印の画素・向き (読んだことにする) で rule_401 を当てた 指令と予想のすき間 を marker_check に残す (道を作れるか・ガードを通るか)

  SO101_VAR_ROLL_RANGE=-67,58 /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/check_401/plan_401.py
"""
import argparse
import hashlib
import json
import sys
import time
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
SO101 = HERE.parent
for p in (SO101, SO101 / "ideal_var", SO101 / "check_392", SO101 / "check_399", HERE):
    sys.path.insert(0, str(p))

SRC = SO101 / "check_394" / "plan_394.json"
OUT = HERE / "plan_401.json"
CALIB = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/315/calib_points_315.json")


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


def place1_candidate(W, pts):
    """場所1 の目印から 校正の点の真ん中へ 8 画素ずつ寄せ (12 回まで), 近い順に plan_351 の本の 面のずらし・爪の傾きで (向きは 0°・90° ごと)
    rule_351 の道が作れる所を探す (sweep_401.place_search と同じ. rule_351.apply_rule の探し直しは 1 か所で 1 時間を超えたのでやめた).
    → (候補 or None, 探した記録)"""
    import sweep_401 as SW
    import yaw_lib_343 as Y
    p1 = next(p for p in pts if p.get("name") == "place1")
    xy = np.asarray(Y.pixel_to_desk_mm(W.w.cam, [p1["u"], p1["v"]]), np.float64)
    e, res, found = SW.place_search(W, xy, 0.0)
    if e is None:
        return None, found
    src = W.plan["episodes"][found["from_plan_index"]]
    cand = {"pixel": [round(float(x), 1) for x in e["pixel"]], "yaw": float(e["yaw"]), "inward_px": found["inward_px"],
            "grasp_face_deg": src.get("grasp_face_deg"), "face_pair": src.get("face_pair"), "level_tilt_s_deg": src.get("level_tilt_s_deg"),
            "from_plan351_index": found["from_plan_index"], "nearest_rank": found["nearest_rank"],
            "note": "plan_351 の近い本の面・傾きを借りた. rule_351 の置き方の余り (±10 画素・±6°) は確かめていない"}
    return cand, found


def main(argv=None):
    ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    ap.add_argument("--out", default=str(OUT))
    ap.add_argument("--no-place1-search", action="store_true", help="場所1 の近い置き方を探さない")
    args = ap.parse_args(argv)
    out = Path(args.out)
    if out.exists():
        sys.exit(f"[ERROR] もうある (上書きしない): {out}")
    import handover_392 as H
    import rule_401 as R401
    import var_lib_314 as V
    import yaw_lib_343 as Y
    src = json.loads(SRC.read_text())
    if src.get("calib_sha256") != sha256(CALIB):
        sys.exit("[ERROR] plan_394 を作ったあとに校正の点が変わった")
    lo, hi = H.rule_range()
    if np.abs(np.asarray(src["rule_safe_range"]["lo"]) - lo).max() > 1e-3 or np.abs(np.asarray(src["rule_safe_range"]["hi"]) - hi).max() > 1e-3:
        sys.exit("[ERROR] plan_394 を作ったときの道を作る範囲と今の範囲が違う")
    _, pts = V.load_calib(CALIB)
    t0 = time.time()
    W = R401.world()
    cand, tried = (None, []) if args.no_place1_search else place1_candidate(W, pts)
    eps = []
    for e0 in src["episodes"]:
        e = {k: e0.get(k) for k in ("place", "pixel", "yaw", "ok", "why", "grasp_face_deg", "face_pair", "level_tilt_s_deg", "tilt_deg",
                                    "jaw_elev_deg", "roll_grasp_deg", "rules_used", "yaw_frame", "arm_dir_deg", "arm_r_mm", "yaw0_check")}
        e.update(index=e0["place"] - 1, where=f"場所{e0['place']}", yaw_place=0.0, from_plan="check_394/plan_394.json")
        if e0["place"] == 1:
            e.update(ok=False, why="目印 (place1) では rule_351 の道が作れない (依頼 392). 近い置き方の候補は candidate (使うかは エイイチが決める)",
                     candidate=cand, candidate_search=tried)
        use = e if e["ok"] else e.get("candidate")
        if use:
            e["marker_check"] = marker_check(W, use, lo, hi)
            if e.get("candidate"):
                b = np.asarray(Y.pixel_to_desk_mm(W.w.cam, use["pixel"]), np.float64)
                b1 = np.asarray(Y.pixel_to_desk_mm(W.w.cam, e["pixel"]), np.float64)
                e["candidate"]["moved_mm"] = round(float(np.linalg.norm(b - b1)), 1)
        eps.append(e)
        mc = e.get("marker_check") or {}
        print(f"  場所{e['place']}: {'OK' if e['ok'] else 'NG'} {mc.get('status')} 下げ {mc.get('dz_mm')} mm  "
              f"予想のつかむ所 {mc.get('pred', {}).get('grasp_jaw_table')}・指令 {mc.get('cmd', {}).get('grasp_jaw_table')}  {mc.get('guard_why', '')}",
              flush=True)
    doc = {"request": 401, "made_by": "依頼 401 so101/check_401/plan_401.py", "grasp_rule": R401.RULE_NAME, R401.RULE_NAME: R401.RULE,
           "base_plan": str(SRC.relative_to(SO101.parent)), "base_plan_sha256": sha256(SRC),
           "grasp_mode": src["grasp_mode"], "level_elev_max_deg": src["level_elev_max_deg"], "level_pick": src["level_pick"],
           "tilt_pick": src["tilt_pick"], "jaw_table_min_mm": src["jaw_table_min_mm"], "calib": str(CALIB), "calib_sha256": sha256(CALIB),
           "rule_raw_dir": src["rule_raw_dir"], "rule_roll_range_env": src["rule_roll_range_env"],
           "rule_safe_range": src["rule_safe_range"], "home": V.HOME.tolist(), "yaw_place_deg": 0.0,
           "arm_response_sha256": sha256(SO101 / "sim/look_400/arm_response_400.json"), "seconds": round(time.time() - t0, 1),
           "episodes": eps}
    out.write_text(json.dumps(doc, ensure_ascii=False, indent=1) + "\n")
    print(f"[PLAN  ] {out} ({doc['seconds']} 秒)")
    return 0


def marker_check(W, e, lo, hi):
    """目印の画素・向き (まっすぐ 0°) で run_rule401 と同じ道・ガード (アームなし)"""
    import run_rule401 as RR
    try:
        b = RR.build(W, e, np.asarray(e["pixel"], np.float64), 0.0, lo, hi)
    except RR.Refused as x:
        return {"ok": False, "guard_why": str(x)}
    v = b["v"]
    return {"ok": True, "status": v["status"], "dz_mm": v["dz_mm"], "cmd": v["cmd"], "pred": v["pred"], "clearance_mm": b["clear"],
            "guard_why": ""}


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

### so101/check_401/sweep_401.py

```python
"""依頼 401 の 2: 今の決まり (rule_351) と rule_401 (案 C を 腕の動きの予想 dir_s で下げ量を解いた形) を,
腕の動きの予想 (arm_response_400) を通した道と 指令どおりの道 (依頼 399 の「沈みなし」) の両方で シム (MuJoCo. clear_345 と同じ場面) で比べる.
アームは動かさない. 計算だけ. 既にあるファイルは変えない (読む・import するだけ).
数字は KIOXIA lab/so101_Log12/401/ に json で置く (記録・台帳・データセットは書き換えない).

  plan   : plan_351.json の 50 か所. か所ごとに 下げ量・指令と予想のすき間・沈み最大 (肩 +4・肘 +3) の 爪と机 と,
           ずれ 19 通り + 固定側へ 8 mm の 形 (挟める. 依頼 399 の 2-4 と同じ) → sweep_401_plan.json
  places : 実機の 5 か所 (so101f の最初のコマの中央値の置き方. check_399/closes_399.json. 依頼 399 の places_399 と同じ作り方).
           道が作れない所は 近い置き方を探す (place_search) → sweep_401_places.json
形 (shape): 下りる間に どちらの爪もブロックに重ならない かつ つかむ所で動く爪を閉じていくとブロックに当たる かつ
  ブロックを閉じる向きに動かすと固定側の爪に当たる (lib_399.World.pinch と同じ). 予想の道では
  固定側は ブロックの上 → 予想のつかむ所 (爪が 20 を割ったコマ), 動く爪は ブロックの上 → GRASP_OPEN の最小,
  閉じる姿勢は 予想の GRASP_CLOSED のコマの関節 5 つ (閉じる間に腕が着いた所) で 爪を GRASP_OPEN の予想の値から 0 へ.
  指令どおりの道では GRASP_OPEN のコマ (= 依頼 399 と同じ数になる)

  SO101_VAR_ROLL_RANGE=-67,58 /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/check_401/sweep_401.py plan|places
"""
import copy
import json
import sys
import time
from concurrent.futures import ProcessPoolExecutor
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"):
    sys.path.insert(0, str(p))
import rule_401 as R401  # noqa: E402

OUT = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/401")
SHIFTS = [4.0, 8.0, 12.0, 16.0]
YAWS = [-8.0, 8.0]
INWARD_PX, INWARD_MAX = 8.0, 12
_W = {}


def W():
    if "w" not in _W:
        _W["w"] = R401.world()
    return _W["w"]


def r2(x):
    return None if x is None or not np.isfinite(x) else round(float(x), 2)


def perts(w, b, a):
    import recover_377 as RC
    u, r = RC.block_frame(b)
    out = [("なし", 0.0, np.zeros(2), 0.0)]
    for nm, vec in (("右", r), ("左", -r), ("奥", u), ("手前", -u)):
        out += [(nm, s, vec * s, 0.0) for s in SHIFTS]
    out += [("向き", dy, np.zeros(2), dy) for dy in YAWS]
    out += [("固定側へ", 8.0, a * 8.0, 0.0)]
    return out


def shape(w, path, fr, bb, yy, close_k=None):
    """形の確かめ (path = 指令 か 予想). close_k: 予想のつかむ所のコマ (None = 指令. GRASP_OPEN)"""
    sc, geo, J = w.sc, w.geo, w.J
    a0, go, gc = fr["ABOVE_BLOCK"], fr["GRASP_OPEN"], fr["GRASP_CLOSED"]
    kf = go if close_k is None else max(close_k, go)
    sc.block(bb, yy)
    fmin = mmin = np.inf
    for f in range(a0, kf + 1):
        sc.pose(path[f])
        fmin = min(fmin, geo.dist(J.fixed, geo.blk))
        if f <= go:
            mmin = min(mmin, geo.dist(J.moving, geo.blk))
    q = np.r_[path[go if close_k is None else gc][:5], path[go][5]]
    g_hit = None
    for g in np.linspace(q[5], 0.0, 41):
        sc.pose(np.r_[q[:5], g])
        if geo.dist(J.moving, geo.blk) <= 0.0:
            g_hit = float(g)
            break
    sc.block([1000, 1000], 0)
    fg = w.gaps(q, bb, yy)["fixed"]
    ok = bool(fmin > 0 and mmin > 0 and g_hit is not None and g_hit > 1.0 and fg is not None)
    return {"ok": ok, "fixed_min": r2(fmin), "moving_min": r2(mmin), "moving_hit_grip": None if g_hit is None else round(g_hit, 1),
            "fixed_gap": fg}


def now_case(w, res, e):
    """今の決まり (rule_351 の道そのまま) の 指令と予想のすき間"""
    v = w.variant(res, e)              # 開き 31.6・寄せない・下げない (= rule_351 の道)
    m = R401.measure(w, v, e)
    return dict(v, status="rule_351", dz_mm=0.0, cmd=m["cmd"], pred=m["pred"], pred_path=m["Qp"])


def one_site(w, res, e, robust=True):
    b, yaw = w.bxy(e), e["yaw"]
    out = {"block_xy": np.round(b, 1).tolist(), "yaw": yaw, "cases": {}}
    a, _ = w.jaw_dir(res["path"][res["frames"]["GRASP_OPEN"]])
    for name, fn in (("now", now_case), ("rule401", R401.apply)):
        v = fn(w, res, e)
        c = {k: v.get(k) for k in ("ok", "why", "status", "dz_mm", "cmd", "pred")}
        c["info"] = v.get("info")
        c["steps"] = v.get("steps")
        if v.get("path") is None:
            out["cases"][name] = c
            continue
        path, Qp, fr = np.asarray(v["path"]), np.asarray(v["pred_path"]), v["frames"]
        c["frames"] = {k: int(x) for k, x in fr.items()}
        if robust:
            rows = []
            for nm, s, dxy, dy in perts(w, b, a):
                bb, yy = b + dxy, yaw + dy
                rows.append({"dir": nm, "mm": s, "cmd": shape(w, path, fr, bb, yy),
                             "pred": shape(w, Qp, fr, bb, yy, v["pred"]["close_frame"])})
            c["robust"] = rows
        out["cases"][name] = c
    return out


def plan_one(i):
    w = W()
    e = w.plan["episodes"][i]
    res = w.rule(e)
    if not res.get("ok"):
        return {"index": i, "rule_ok": False, "why": res.get("why")}
    return {"index": i, "rule_ok": True, **one_site(w, res, e)}


# ---- 実機の 5 か所 -----------------------------------------------------------------------------

def place_median(place):
    d = json.loads((SO101 / "check_399" / "closes_399.json").read_text())
    t = [x for x in d["trials"] if x["model"] == "so101f" and x["place"] == place]
    xy = np.median([x["block_xy0"] for x in t], 0)
    yaw = float(np.median([x["yaw"] for x in t if x["yaw"] is not None]))
    return xy, yaw, len(t)


def ep_at(w, src, xy, yaw):
    """割り振りの本 src の 面のずらし・爪の傾きのまま ブロックを xy・yaw (90° ごとに同じ) に置き換えた本と道. 作れなければ (None, 理由)"""
    import sim_330 as S
    import yaw_lib_343 as Y
    e = copy.deepcopy(src)
    e["pixel"] = [float(v) for v in S.project_arm([[xy[0], xy[1], Y.BLOCK_MM / 2]], w.w.cam).reshape(-1)[:2]]
    why = ""
    for k in (0, 1, -1, 2):
        e["yaw"] = yaw + 90.0 * k
        r = w.rule(e)
        if r.get("ok"):
            return e, r
        why = r.get("why", "")
    return None, why


def place_search(w, xy, yaw):
    """実機の置き方 (xy・yaw) で道を作る. 1) いちばん近い割り振りの本の面・傾き (依頼 399 と同じ) 2) 近い順に全部の本の面・傾き
    3) 校正の点の真ん中へ 8 画素ずつ寄せて 1)・2) (rule_351 の作れない置き場所の寄せ方と同じ). → (本, 道, 探した記録)"""
    import sim_330 as S
    import yaw_lib_343 as Y
    eps = w.plan["episodes"]
    order = sorted(range(len(eps)), key=lambda i: float(np.linalg.norm(w.bxy(eps[i]) - xy)))
    uv0 = S.project_arm([[xy[0], xy[1], Y.BLOCK_MM / 2]], w.w.cam).reshape(-1)[:2]
    import plan_377 as P377
    import var_lib_314 as V
    center = V.GraspMap(V.load_calib(P377.CALIB)[1]).P.mean(0)          # rule_351.make_plan と同じ 校正の点の真ん中
    log = []
    for k in range(INWARD_MAX + 1):
        if k:
            d = center - uv0
            uv = uv0 + d / np.linalg.norm(d) * INWARD_PX * k
            xyk = np.asarray(Y.pixel_to_desk_mm(w.w.cam, uv), np.float64)
        else:
            xyk = np.asarray(xy, np.float64)
        for j, i in enumerate(order if k == 0 else order[:10]):
            e, r = ep_at(w, eps[i], xyk, yaw)
            if e is not None:
                log.append({"inward_px": INWARD_PX * k, "from_plan_index": i, "nearest_rank": j, "ok": True})
                return e, r, {"inward_px": INWARD_PX * k, "from_plan_index": i, "nearest_rank": j,
                              "moved_mm": r2(float(np.linalg.norm(xyk - xy))), "block_xy_used": np.round(xyk, 1).tolist(),
                              "tried": len(log) + j, "first_why": first_why(w, eps[order[0]], xy, yaw)}
        log.append({"inward_px": INWARD_PX * k, "ok": False})
    return None, None, {"tried": log, "first_why": first_why(w, eps[order[0]], xy, yaw)}


def first_why(w, src, xy, yaw):
    _, why = ep_at(w, src, xy, yaw)
    return why if isinstance(why, str) else ""


def place_one(place):
    w = W()
    xy, yaw, n = place_median(place)
    e, res, found = place_search(w, xy, yaw)
    out = {"place": place, "trials": n, "block_xy_median": np.round(xy, 1).tolist(), "yaw_median": round(yaw, 1), "search": found}
    if e is None:
        out["rule_ok"] = False
        return out
    out.update({"rule_ok": True, "from_plan_index": found["from_plan_index"], "pixel": e["pixel"], "yaw_used": e["yaw"],
                **one_site(w, res, e)})
    return out


def run(fn, idx, name, workers=8):
    t = time.time()
    with ProcessPoolExecutor(workers) as ex:
        rows = list(ex.map(fn, idx))
    OUT.mkdir(parents=True, exist_ok=True)
    doc = {"made_by": f"so101/check_401/sweep_401.py {name} (依頼 401 の 2)", "rule": R401.RULE, "shifts_mm": SHIFTS, "yaws": YAWS,
           "seconds": round(time.time() - t, 1), "rows": rows}
    p = OUT / f"sweep_401_{name}.json"
    p.write_text(json.dumps(doc, ensure_ascii=False, indent=1) + "\n")
    print("[WROTE]", p, doc["seconds"], "s", flush=True)


def main():
    what = sys.argv[1]
    if what == "plan":
        idx = list(range(50)) if len(sys.argv) < 3 else [int(x) for x in sys.argv[2].split(",")]
        run(plan_one, idx, "plan")
    elif what == "places":
        run(place_one, [1, 2, 3, 4, 5], "places", workers=5)
    else:
        raise SystemExit("plan | places")


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

### so101/check_401/summarize_401.py

```python
"""依頼 401 の 2 の表 (sweep_401_plan.json・sweep_401_places.json → 端末に markdown の表). 依頼 399 の数 (robust_399・height_399) と並べる.
  /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python so101/check_401/summarize_401.py [plan|sites|places]
"""
import json
import sys
from collections import OrderedDict
from pathlib import Path

import numpy as np

K = Path("/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12")
P401 = K / "401"
P399 = K / "399"
NAMES = {"now": "今 (rule_351)", "rule401": "rule_401"}


def load(name):
    return json.loads((P401 / f"sweep_401_{name}.json").read_text())


def med(x):
    x = [v for v in x if v is not None]
    return "—" if not x else f"{np.median(x):+.1f}"


def rng(x):
    x = [v for v in x if v is not None]
    return "—" if not x else f"{min(x):+.1f}〜{max(x):+.1f}"


def robust_table(rows, tag=""):
    """ずれごとの 形の数 (50 か所). 列: 今・rule_401 × 指令・予想. 依頼 399 の 今・C (沈みなし) も"""
    r399 = json.loads((P399 / "pinch_399.json").read_text())["rows"]
    keys = OrderedDict()
    for r in rows:
        for c in r["cases"].values():
            for x in c.get("robust", []):
                keys[(x["dir"], x["mm"])] = 1
    cnt = {k: {} for k in keys}
    for r in rows:
        for cn, c in r["cases"].items():
            for x in c.get("robust", []):
                for m in ("cmd", "pred"):
                    cnt[(x["dir"], x["mm"])].setdefault((cn, m), 0)
                    cnt[(x["dir"], x["mm"])][(cn, m)] += int(x[m]["ok"])
    c399 = {}
    for r in r399:
        for cn in ("今", "C"):
            for x in r.get("cases", {}).get(cn, {}).get("rows", []):
                c399.setdefault((x["dir"], x["mm"]), {}).setdefault(cn, 0)
                c399[(x["dir"], x["mm"])][cn] += int(x["pinch_ok"])
    print(f"| ずれ | 依頼399 今 (沈みなし) | 依頼399 C (沈みなし) | 今 指令 | 今 予想 | rule_401 指令 | **rule_401 予想** |")
    print("|---|---|---|---|---|---|---|")
    tot = {}
    for (d, mm) in keys:
        nm = "ずれなし" if d == "なし" else (f"向き {mm:+g}°" if d == "向き" else f"{d} {mm:g} mm")
        v = cnt[(d, mm)]
        o = c399.get((d, mm), {})
        cells = [o.get("今", "—"), o.get("C", "—"), v.get(("now", "cmd"), 0), v.get(("now", "pred"), 0), v.get(("rule401", "cmd"), 0),
                 v.get(("rule401", "pred"), 0)]
        if d != "固定側へ":
            for i, c in enumerate(cells):
                tot[i] = tot.get(i, 0) + (c if isinstance(c, int) else 0)
        print(f"| {nm} | " + " | ".join(str(c) for c in cells[:-1]) + f" | **{cells[-1]}** |")
    n = len(rows) * (len(keys) - 1)
    print(f"| **合計 (固定側へを除く {len(keys) - 1} 通り × {len(rows)})** | " +
          " | ".join(f"{tot[i]} ({100 * tot[i] / n:.0f}%)" for i in range(6)) + " |")


def plan():
    d = load("plan")
    rows = [r for r in d["rows"] if r["rule_ok"]]
    print(f"## 50 か所 (作れた {len(rows)})\n")
    st = {}
    for r in rows:
        st[r["cases"]["rule401"]["status"]] = st.get(r["cases"]["rule401"]["status"], 0) + 1
    print("rule_401 の status:", st)
    h399 = {r["index"]: r for r in json.loads((P399 / "height_399.json").read_text())["rows"]}
    print("\n| | 今 (rule_351) | rule_401 |\n|---|---|---|")
    f = lambda cn, s, k: [r["cases"][cn][s][k] for r in rows]  # noqa: E731
    dz = [r["cases"]["rule401"]["dz_mm"] for r in rows]
    print(f"| 下げ量 mm 中央値 [幅] | 0 | {med(dz)} [{rng(dz)}] (依頼399 案C {med([h399[r['index']]['dz_open59_gap12'] for r in rows])} [{rng([h399[r['index']]['dz_open59_gap12'] for r in rows])}]) |")
    for s, k, nm in (("cmd", "grasp_jaw_table", "つかむ所の爪と机 指令 (沈みなし)"), ("pred", "grasp_jaw_table", "つかむ所の爪と机 予想"),
                     ("cmd", "grasp_jaw_table_sagmax", "つかむ所の爪と机 沈み最大 (肩 +4・肘 +3. 参考)"),
                     ("pred", "close_jaw_table_min", "閉じる間の爪と机の最小 予想"), ("pred", "lift_start_jaw_table_min", "持ち上げの始め 10 コマの爪と机の最小 予想"),
                     ("cmd", "fixed_min", "下りる間 固定側とブロック 指令"), ("pred", "fixed_min", "下りる間 固定側とブロック 予想"),
                     ("cmd", "moving_min", "下りる間 動く爪とブロック 指令"), ("pred", "moving_min", "下りる間 動く爪とブロック 予想"),
                     ("cmd", "jaw_table_descend_min", "下りる間 爪と机 指令"), ("pred", "jaw_table_descend_min", "下りる間 爪と机 予想"),
                     ("pred", "close_after_grasp_open", "予想のつかむ所 (爪が 20 を割る) は GRASP_OPEN から何コマ"),
                     ("pred", "grip_at_lift", "持ち上げの始めの予想の爪の値")):
        a, b = f("now", s, k), f("rule401", s, k)
        print(f"| {nm} | {med(a)} [{rng(a)}] | {med(b)} [{rng(b)}] |")
    print()
    robust_table(rows)


def sites():
    d = load("plan")
    print("| 本 | status | 下げ mm | 依頼399 C 下げ | 指令 | 予想 | 沈み最大 | 閉じる間 最小 予想 | 持ち上げの始め 最小 予想 | 下りる 固定側 指令/予想 | 下りる 動く爪 指令/予想 | 今 指令/予想 (つかむ所) | 形 ずれ19 今→401 (予想) |")
    print("|---|---|---|---|---|---|---|---|---|---|---|---|---|")
    h399 = {r["index"]: r for r in json.loads((P399 / "height_399.json").read_text())["rows"]}
    for r in d["rows"]:
        if not r["rule_ok"]:
            print(f"| {r['index'] + 1} | 決まりの道が作れない | | | | | | | | | | | |")
            continue
        c, n = r["cases"]["rule401"], r["cases"]["now"]
        k = lambda cc, m: sum(x[m]["ok"] for x in cc["robust"] if x["dir"] != "固定側へ")  # noqa: E731
        print(f"| {r['index'] + 1} | {c['status']} | {c['dz_mm']:+.1f} | {h399[r['index']]['dz_open59_gap12']:+.1f} | {c['cmd']['grasp_jaw_table']:+.1f} | "
              f"{c['pred']['grasp_jaw_table']:+.1f} | {c['cmd']['grasp_jaw_table_sagmax']:+.1f} | {c['pred']['close_jaw_table_min']:+.1f} | "
              f"{c['pred']['lift_start_jaw_table_min']:+.1f} | {c['cmd']['fixed_min']:+.1f} / {c['pred']['fixed_min']:+.1f} | "
              f"{c['cmd']['moving_min']:+.1f} / {c['pred']['moving_min']:+.1f} | {n['cmd']['grasp_jaw_table']:+.1f} / {n['pred']['grasp_jaw_table']:+.1f} | "
              f"{k(n, 'pred')} → {k(c, 'pred')} |")


def places():
    d = load("places")
    print("| 場所 | 置き方 (中央値) | 道 | 下げ mm | status | 指令 | 予想 | 沈み最大 | 持ち上げの始め 予想 | 下りる 固定側 指令/予想 | 今 固定側 指令/予想 | 今 つかむ所 指令/予想 | 形 ずれ19 今 指令/予想 → 401 指令/予想 | 固定側へ 8 mm 今/401 (予想) |")
    print("|---|---|---|---|---|---|---|---|---|---|---|---|---|---|")
    for r in d["rows"]:
        s = r["search"]
        if not r["rule_ok"]:
            print(f"| {r['place']} | {r['block_xy_median']}・{r['yaw_median']}° | 作れない: {s.get('first_why', '')[:80]} | | | | | | | | | | | |")
            continue
        how = ("そのまま" if s["inward_px"] == 0 and s["nearest_rank"] == 0 else
               f"寄せ {s['inward_px']:g} 画素 ({s['moved_mm']} mm)・近い順 {s['nearest_rank'] + 1} 番目の本の面と傾き")
        c, n = r["cases"]["rule401"], r["cases"]["now"]
        k = lambda cc, m: sum(x[m]["ok"] for x in cc["robust"] if x["dir"] != "固定側へ")  # noqa: E731
        fx = lambda cc: next(x["pred"]["ok"] for x in cc["robust"] if x["dir"] == "固定側へ")  # noqa: E731
        print(f"| {r['place']} | ({r['block_xy_median'][0]}, {r['block_xy_median'][1]})・{r['yaw_median']}° | {how} | {c['dz_mm']:+.1f} | {c['status']} | "
              f"{c['cmd']['grasp_jaw_table']:+.1f} | {c['pred']['grasp_jaw_table']:+.1f} | {c['cmd']['grasp_jaw_table_sagmax']:+.1f} | "
              f"{c['pred']['lift_start_jaw_table_min']:+.1f} | {c['cmd']['fixed_min']:+.1f} / {c['pred']['fixed_min']:+.1f} | "
              f"{n['cmd']['fixed_min']:+.1f} / {n['pred']['fixed_min']:+.1f} | {n['cmd']['grasp_jaw_table']:+.1f} / {n['pred']['grasp_jaw_table']:+.1f} | "
              f"{k(n, 'cmd')}/{k(n, 'pred')} → {k(c, 'cmd')}/{k(c, 'pred')} | {'○' if fx(n) else '×'} / {'○' if fx(c) else '×'} |")
    for r in d["rows"]:
        if not r["rule_ok"]:
            print(f"\n場所{r['place']} の探した記録: {json.dumps(r['search'], ensure_ascii=False)[:800]}")


if __name__ == "__main__":
    {"plan": plan, "sites": sites, "places": places}[sys.argv[1] if len(sys.argv) > 1 else "plan"]()
```


## 依頼402 ― 止め方の直しを codex の3回目のレビューで確かめる

### 依頼402 の依頼文

```
---
作業フォルダ: /Users/shimazueiichi/r2r2r-scripts
上限時間: 40
---
# 依頼402：rule_401 を実機に流すスクリプトの、2回目のレビューの必須の直し（C1 止め方・B3 記録を作る時期）を codex に3回目のレビューで確かめる（アームは動かさない）

## なぜ
2026-12-01 08:54 にエイイチが「今のガードのまま、場所3 だけを1回流す」と決めた。依頼401 の 2 回目のレビューの必須（C1 `hold_here`・`safe_hold`、B3）を直したあとの確かめがまだ（依頼401 REPORT の決めてほしいこと 7）。関節を動かすコードなので、実機の前にもう一度 codex に見てもらう。

## やること
1. `so101/check_401/review_request_401_r3.md` を書き、codex に読むだけで頼む（`codex exec -s read-only -m gpt-6.1-terra`。1・2 回目と同じ形）。見てほしいのは：C1（止める目標を今の位置へ届くまで送り直す・例外と Ctrl-C で閉じる前に送る）、B3、2 回目の推奨の直し（A1・C4）。場所3 を `--first` で1回流す経路に絞ってよい
2. 必須の指摘が出たら直して、テスト（`test_run_rule401.py`）を通す。直したら同じ所だけもう一度頼む（最大 2 回）
3. `so101/check_401/plan_401.json` を個別に add して commit（`run_rule401.py` が動くように。依頼401 の決めてほしいこと 8）。dry_run/ と review_* は入れない
4. 場所3 の dry-run を目印で流し直し（`--place 3 --dry-run` のカメラなしの形。依頼401 の dry_run と同じ作り方）、送れることを確かめる

## しないこと
アームを動かす、ガードを緩める、rule_401 の決まり（開き・寄せ・下げ量・−6 mm）を変える、ほかの既存ファイルを変える、`git add .`・`git clean`

## 報告（`so101/check_401/REPORT_402.md`）
- いちばん大事なこと：codex の 3 回目の結論、必須が残っていないか、場所3 の dry-run の結果
- 直したこと、テストの結果
- 最後の1行に「判定：合格／止めた（決めてほしいことあり）／失敗」
- commit はコード・plan_401.json・REPORT_402.md だけ（個別に add）
```

### 依頼402 の報告（見張り係の記録）

```
# 結果：20261201_402_rule401の止め方の直しをcodexに3回目のレビューで確かめる

- 状態：完了
- 始めた時刻：2026-12-01 09:15
- 終わった時刻：2026-12-01 09:22（7分）
- 作業フォルダ：/Users/shimazueiichi/r2r2r-scripts
- この続きを Claude Code で話すとき：作業フォルダで `claude --resume 75b92911-e08d-4925-bd5c-d725872164a1`

## Claude Code の報告

**codex の最後の答えは「必須なし」です。C2・C3 をエイイチが決めたものとして、場所3 を `--first` で1回流すのを止める理由はない、としています。** 目印での場所3 の dry-run も「送れる」でした。アームは動かしていません。

**やったこと**
- `review_request_401_r3.md` を書いて、codex に読むだけで頼みました（`codex exec -s read-only -m gpt-6.1-terra`）。見てもらったのは、場所3 を `--first` で1回流す道だけです。
- 3回目の答えは「必須が3つ残っているので、このまま流すのは勧めない」でした。
  - C1：腕が止まり切っていないのに「止めました」と出す。
  - C1：結果を聞く間や記録を閉じる間に例外や Ctrl-C が起きると、止める目標を送らずに閉じる。
  - B3：記録を作ってから 0 コマ目を送るまでに止まると、ローカルに空の記録が残る。
- 3つとも直しました。
  - 止める処理は、目標に届いて、しかも続けて読んだ関節の差が 0.5° 以内のときだけ「止まった」とします（最大 60 コマ）。止まり切らないときは状態を `stopped_not_held` にして、赤字で知らせます。
  - 後片付けの順は「止める目標を送る → 記録を閉じる → 腕を閉じる」にしました。
  - 0 コマ目を記録する前に止まったときは、今回作ったローカルのフォルダだけを消します。
  - 推奨の A1 は、`rule_401.py` の説明1行の食い違いだけを直しました。
- 同じ所だけ codex にもう一度頼みました。1回目の頼み直しで後片付けの順に必須が1つ出たので直し、2回目で「必須なし」になりました。
- `plan_401.json` を個別に add して commit し、場所3 の dry-run を目印・カメラなしで流し直しました。

**結果**
- テストは 16本から 20本に増え、全部通りました。
- 場所3 の dry-run は「送れる」でした（終了 0）。値は依頼401 と同じです。
  - 下げ −0.79 mm、status ok
  - つかむ所の爪と机：指令 +0.9 mm、予想 −2.35 mm
  - 道 251 コマ（8.4 秒）
- **気をつけること：持ち上げの始めの予想は −6.00 mm で、ガード（−6 mm）のちょうど境目で通っています。** カメラで実際に読んだ位置や向きが少しずれると、止まるかもしれません。
- `dry_run/` に、カメラで読んだ形の dry-run の記録が1つあります（09:18:43）。これは私が作ったものではありません。ブロックを場所1 の辺り（目印から 309 画素）に読んで止まっています。消していません。

**変えたファイル**（commit e17807e。個別に add）
- `so101/check_401/run_rule401.py`
- `so101/check_401/test_run_rule401.py`
- `so101/ideal_var/rule_401.py`（説明1行だけ）
- `so101/check_401/plan_401.json`
- `so101/check_401/REPORT_402.md`

レビューの依頼文と答え（`review_*`）と `dry_run/` は入れていません。作業のまとめは `logs/20261201_0922.md` に書きました。

**決めてほしいこと**
1. 持ち上げの始めの予想が −6.00 mm で、ガードの境目にあります。実際にカメラで読んで止まったら、置き直してもう一度試しますか。それとも、先に押し付けのガードの範囲（依頼401 の決めてほしいこと1）を決めますか。
2. codex は「C2（押し付けの許し）・C3（爪の開き 59 の実機の余り）はエイイチが決めたもの」として、流してよいと答えました。「今のガードのまま場所3 を1回」という決めで、C2・C3 は済んだと見てよいですか。
3. 実機の前に、カメラで読むだけの dry-run（`--place 3 --dry-run`）を流して、目印から 10 画素・向き ±8° に入るかを確かめるようにしてください。

判定：止めた（決めてほしいことあり）
```

### so101/check_401/REPORT_402.md

```markdown
# 依頼 402：rule_401 を実機に流すスクリプトの 止め方の直しを codex に 3 回目のレビューで確かめる（2026-12-01）

アームは動かしていない。ガードは緩めていない。rule_401 の決まり（開き 59・寄せ・下げ量・−6 mm）は変えていない（`rule_401.py` は `apply` の説明の 1 行だけ）。

## いちばん大事なこと

- **codex の 3 回目の結論：「C1・B3 の必須が残る。このままでは場所3 を流すことは勧めない」**。必須は 3 つ（止める目標が届かない・止まり切らないときに「止めました」と出す／結果を聞く間・記録を閉じる間の例外と Ctrl-C で 止める目標を送らずに閉じる／記録を作ってから 0 コマ目までに止まると 空の記録が残る）
- 直して 同じ所だけを 2 回頼んだ。1 回目の頼み直し：残り 1 つ（結果を聞く間の異常のあと 記録を閉じてから止める目標を送る順）が必須。直して 2 回目の頼み直し：**「必須なし。C2・C3 をエイイチが決めたものとして、場所3 を `--first` で 1 回流すことを止める必要はない」**
- **必須は残っていない**（推奨・覚え書きは下の表）
- **場所3 の dry-run（目印・0°・カメラなし）：送れる**（終了 0）。下げ −0.79 mm・status ok・つかむ所の爪と机 指令 +0.9／予想 −2.35 mm・沈み最大 −19.47 mm・道 251 コマ（8.4 秒）・1 コマ最大 6.22°。依頼 401 の dry-run と同じ値
  - **持ち上げの始めの予想の爪と机は −6.00 mm で、ガード push_window（−6 mm。丸めの許し 0.05）のちょうど境目で通っている**（依頼 401 の dry-run も −6.0）。机のカメラで読んだ位置・向きが少しずれると止まる見込み

## やったこと

1. `review_request_401_r3.md` を書き、`codex exec -s read-only -m gpt-6.1-terra` で頼んだ（答え `review_r3.txt`、生の出力 `review_r3_raw.txt`）。場所3 を `--first` で 1 回流す経路に絞った。C2（押し付けの許し）・C3（開き 59 の実機の余り）はエイイチが決めることとして外した
2. 必須を直し、テストを通して、同じ所だけ 2 回頼んだ（`review_request_401_r4.md`→`review_r4.txt`、`review_request_401_r5.md`→`review_r5.txt`）
3. `plan_401.json` を個別に add して commit（`dry_run/`・`review_*` は入れていない）
4. 場所3 の dry-run を目印で流し直した（`--place 3 --dry-run --fake marker`。`dry_run/dry_place3_fake_20261201_092133.json`）

## codex の指摘と直したこと

| 回 | 指摘 | 中身 | 直したこと |
|---|---|---|---|
| 3 | C1 必須 | `hold_here` は 30 コマで届かなくても呼ぶ側が無視して「止めました」と出す。True も「送った目標が直前に読んだ値と同じ」だけで 腕が止まったとは言えない | `hold_here`：True は 送れた目標が直前に読んだ位置と同じ（B・安全範囲 A で切られていない）かつ 続けて読んだ関節 5 つの差が 0.5° 以内（`HOLD_STILL_DEG`）のときだけ。60 コマ（2 秒）まで。False なら `hold_failed` を立てて赤で「止まり切らない. 最後に送れた目標のまま. 腕を見てください」、status は `stopped_not_held`（止まったときは `stopped`）。スペース・q・HOME で入らない・追従の差の 3 つとも同じ |
| 3 | C1 必須 | `finally` の結果を聞く間の Ctrl-C を握りつぶして 止める目標を送らずに閉じる。記録を閉じる間の例外も同じ。`safe_hold` の文「前の目標のまま」が実際と違う | 結果を聞く間・記録を閉じる間の すべての `BaseException` で 腕を閉じる前に `safe_hold`（本体の例外で呼んだときは 2 度呼ばない）。記録を閉じられないときは 写さない・台帳に書かない・ローカルを消さない（終了 1）。文を「最後に送れた目標のまま」にした |
| 3 | B3 必須 | 記録を作ってから 0 コマ目を送るまでの Ctrl-C・送信の失敗、記録を作る途中の失敗で 空・作りかけのフォルダがローカルに残る | 始める前に ローカルの試行のフォルダがもうあれば止める。道を送れず 記録が 0 コマ（作る途中の失敗を含む）のときは `drop_empty_local` で消す（`~/so101_runs` の下・名前が `so101_` で始まる・始める前になかった ものだけ） |
| 3 | A1 推奨 | `rule_401.apply` の説明が「ok は a〜c を満たす」のままで 冒頭の説明と食い違う | 「ok は b と c を満たす. a は ねらい」にした（説明の 1 行だけ） |
| 3 | C4 | 向きは丸める前の値で比べている | ✅（直しは要らない） |
| 4 | C1 必須 | 結果を聞く間の異常のあと 記録を閉じてから 止める目標を送る順。記録を閉じるのが長いと その間 止める目標が出ない | 結果を聞く間の異常を受けたら その場で `safe_hold` → 記録を閉じる → 腕を閉じる の順にした |
| 4 | 推奨 | `execute` の異常の道を確かめたモックが残っていない | テスト `test_execute_cleanup_order` を足した |
| 5 | — | C1 ✅・テスト ✅。新しい必須なし | — |

覚え書き（codex。直していない）：
- `hold_here` の True は 続けて 2 回読んだ差が 0.5° 以内だったということで、そのあとも止まり続ける保証ではない
- KIOXIA へ写したあと台帳を書く前の失敗で KIOXIA にフォルダだけ残る形は残る（13-3 の「行なし」で見つかる。依頼 401 と同じ）

## テスト

`test_run_rule401.py`：16 本 → **20 本。全部通る**（`SO101_VAR_ROLL_RANGE=-67,58 … -m unittest so101/check_401/test_run_rule401.py`）

足した 4 本：
- `test_hold_not_still_is_failure`：読むたびに 2° 動き続ける腕では `hold_here` が False（60 コマ送る）、Runner は `stopped_not_held`・`hold_failed`
- `test_hold_ok_marks_stopped`：スペースで止めて腕が止まれば `hold_ok`・`stopped`
- `test_drop_empty_local`：今回の試行のフォルダだけ消す（始める前にあった・名前が違うものは消さない）
- `test_execute_cleanup_order`：`execute` をモックで回す。記録を作ったあと 0 コマ目の送信で失敗 → `hold → rec.close → arm.close`、ローカルの空の記録が消える。道を全部送ったあと 結果を聞く間に Ctrl-C → `hold → rec.close → arm.close`

## 気づいたこと

- `dry_run/dry_place3_cam_20261201_091843.json`（机のカメラで読んだ形の場所3 の dry-run。09:18:43）は この作業では作っていない（私はカメラを開いていない）。中身はブロックを 画素 (379.3, 100.0)・机 (358.6, −56.4) mm（場所1 の辺り）に読み「目印から 309 画素」で止まっている。消していない

## 変えたファイル（commit）

- `so101/check_401/run_rule401.py`（止め方・後始末の順・空の記録を消す）
- `so101/check_401/test_run_rule401.py`（テスト 4 本）
- `so101/ideal_var/rule_401.py`（`apply` の説明の 1 行。A1）
- `so101/check_401/plan_401.json`（割り振り。依頼 401 で作ったもの。中身は変えていない）
- `so101/check_401/REPORT_402.md`

git に入れていないもの：`review_request_401_r3〜r5.md`・`review_r3〜r5.txt`・`review_r3〜r5_raw.txt`・`dry_run/`

## 決めてほしいこと

1. 場所3 の持ち上げの始めの予想（−6.00 mm）が ガードの境目にある。机のカメラで実際に読んだ置き方では止まるかもしれない。止まったら 置き直して試すか、決めてほしいこと 1（依頼 401。押し付けのガードの範囲）を先に決めるか
2. 依頼 401 の決めてほしいこと 1〜6（押し付けの許し・conflict・爪の開き 59 の余り・場所1・operator・閉じたあとの止まり）は まだ決まっていない。codex は「C2・C3 をエイイチが決めたものとして」流してよいとした。今回の「今のガードのまま 場所3 を 1 回」の決めで C2・C3 が済んだと見てよいか
3. 実機の手順は依頼 401 の REPORT 3-3 のまま（`PLACES="3" ./so101/check_401/session_401.sh --first`）。先に カメラで読むだけの dry-run（`--place 3 --dry-run`）で 目印から 10 画素・向き ±8° に入ることを確かめる

判定：止めた（決めてほしいことあり）
```

### codex へのレビューの依頼文（3回目）so101/check_401/review_request_401_r3.md

````markdown
# コードレビュー依頼（3 回目）：依頼 401 rule_401 をコードだけで実機に流すスクリプト

**読むだけにしてください。ファイルは書き換えないでください。テストも走らせなくてよいです（ファイルを作るため）。**

1 回目・2 回目の依頼は `so101/check_401/review_request_401.md`・`review_request_401_r2.md`、答えは `review_r1.txt`・`review_r2.txt`。
対象は `so101/check_401/run_rule401.py`・`test_run_rule401.py`・`session_401.sh`（道を作る `so101/ideal_var/rule_401.py` は 2 回目から変えていない）。
送る口と入口の B・休みの姿勢は `so101/run_so101_policy.py` の `LiveArm`・`pause_target`・`step_clip`（変えていない）。

エイイチは「今のガードのまま、場所3 だけを 1 回流す」と決めた。流し方は次の 1 つだけ:

```
PLACES="3" ./so101/check_401/session_401.sh --first
# = run_rule401.py --place 3 --log-dir /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12 --execute
#   (--allow-status・--place1-candidate・--skip-first-confirm なし. --max-step-deg は既定 10)
```

この経路に絞って、2 回目の指摘の直し方が足りているか、新しい抜けがないかを見てほしい。
押し付けの許し（C2）と爪の開き 59 の実機の余り（C3）はエイイチが決めること（場所3 は今のガードを通る）なので、ここでは見なくてよい。

## 2 回目の指摘と直したこと

- **C1（必須）止める目標**
  - `hold_here(arm)`（run_rule401.py:259）：関節 5 つ＝今読んだ位置・爪＝前の目標（`R.pause_target`）を送り、送れた値（入口の B で切られたあと）が目標と同じになるまで 毎コマ読み直して送り直す（`HOLD_MAX` = 30 コマ）。届けば True、届かなければ False
  - `Runner.hold_here` はこれを呼ぶ。スペース・q（`stop_key`）、HOME で 30 コマ待っても入らない、追従の差（予想から 10°）のどれでも使う
  - 例外と Ctrl-C：`execute` の `except KeyboardInterrupt` / `Refused` / `Exception` で、`arm.close()` の前に `safe_hold(arm)`（run_rule401.py:424）を呼ぶ。`safe_hold` の中の失敗（通信・もう一度の Ctrl-C）は `BaseException` で受けて、前の目標のまま閉じる
  - テスト：`test_hold_reaches_present_through_B`（目標が 25° 先にあり腕が動かない → 3 回以上送って今の位置に届く）、`test_safe_hold_survives_errors`
- **B3（必須）記録を作る時期**
  - `Runner` に記録を作る関数を渡し、道の 0 コマ目で `stop_key`・`observe`・`read_currents` のあと、送る直前に作る（run_rule401.py:361）。寄せ・HOME で止めたときは作らない
  - コピーのあと台帳を書く前の失敗で KIOXIA にフォルダだけ残る形は残る（13-3 の「行なし」で見つかる）
  - テスト：`test_recorder_made_only_when_path_starts`
- **A1（推奨）**：`rule_401` の説明に「ok は b・c を満たすこと。a（予想 −2 mm）はねらい」と書いた（コードは変えていない）
- **C4（推奨）**：向きも丸める前の値（`yaw_raw`）で ±8° と比べる（run_rule401.py:213）

## 見てほしいこと

1. C1：`hold_here` の送り直しで、入口の B（1 コマ 関節 10°）と安全範囲（A）を通っても 止める目標が今の位置に届くか。届かないとき（False）の扱いはこれでよいか。腕が動き続けている間に送り直す形に危ないところはないか
2. C1：例外・Ctrl-C の経路で、止める目標を送らずに閉じる抜けが残っていないか（`with R.KeyReader()` の出入り・`finally` の `ask_result`・`recorder.close` を含む）
3. B3：記録を作る所と止まる所の順。0 コマ目を送る前に止まると空の記録が残る抜けがないか
4. A1・C4 の直しでよいか
5. 場所3 を `--first` で 1 回流す経路で、ほかに実機の前に直すべき所（必須）があるか

結果は 1・2 回目と同じ形（✅ / ⚠️ / ❌、必須か推奨か）で、最後に「C2・C3 をエイイチが決めたものとして、場所3 を 1 回流してよいか」を 1 行で。日本語で。
````

### codex の答え（3回目）so101/check_401/review_r3.txt

```
**結論：C1 の停止処理と B3 の記録作成には、実機前に直すべき抜けが残っています。**

- **C1 ❌ NG・必須 — 停止目標に届かない場合の扱い**  
  [hold_here](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:259) は毎回実測位置を読み直して送り、入口 B に切られなくなるまで試みます。腕が静止し、実測値が安全範囲内で、通信が正常なら、前の目標との差を縮められます。ただし、腕が動いている間は目標も動くため、30 コマ以内の到達は保証できません。安全範囲 A によって実測位置が切られる場合も到達できません。  
  さらに、スペース・q、HOME 待機失敗、追従差の各経路は **False を無視し、「止めました」と表示**します（[例](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:292)）。False は停止目標が実測位置に届いていない異常として明示し、通常の停止成功と区別する必要があります。True も「送信目標が、その直前の実測値と一致した」ことを示すだけで、腕の静止を確認したものではありません。動いている腕では送信までの遅れや慣性もあるため、実機での停止保証とは扱えません。

- **C1 ❌ NG・必須 — 例外・Ctrl-C の後始末**  
  `KeyReader` の開始・終了を含む `try` 本体の通常の例外と Ctrl-C は `safe_hold` に入ります。一方、[finally 内](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:510) の `ask_result`・`ask_fail_reason` での Ctrl-C は握りつぶされ、`safe_hold` を呼ばずに閉じます。結果入力中のその他の例外や、`recorder.close()` の例外・Ctrl-C も同様に、保持を試みず `arm.close()` に進む経路があります。後始末中の異常も、閉じる前に保持を試みる形にする必要があります。  
  また `safe_hold` 自体が失敗した場合は保持を保証できません。30 回で False の場合も「前の目標のまま」とは限らず、途中まで更新された最後の目標が残ります。表示を実際の状態に合わせる必要があります。

- **B3 ❌ NG・必須 — 0 コマ目前の空記録**  
  キー確認・観測・電流読み取りを Recorder 作成前に移した点は改善です。ただし [作成直後の送信前](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:361) に Ctrl-C や送信例外が起きる場合、および `Recorder` の初期化途中で失敗する場合には、ローカルに空または不完全なフォルダが残り得ます。後者は `made` に入る前なので `recorder.close()` も呼べません。送信前に失敗した場合の片付け、または明確な異常記録の扱いを定める必要があります。コピー後・台帳追記前の KIOXIA 孤立フォルダも引き続き起こり得ます。

- **A1 ⚠️ 要確認・推奨**  
  [冒頭の説明](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:18) は「a は目標、`ok` は b・c を満たす」と明確になっています。ただし [apply の docstring](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:125) にはまだ「a〜c を満たす」とあり、説明同士が矛盾しています。こちらも揃えてください。

- **C4 ✅ OK**  
  向きの許容差は [丸め前の `yaw_raw`](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:204) で判定されています。道の生成には従来どおり小数 1 桁の向きを使います。

- **指定経路 ✅ OK**  
  `PLACES="3" … --first` は、指定の追加オプションを環境変数で有効にしていなければ、場所 3 の実行を最大 1 回呼びます。静的レビューであり、テストや実機動作は行っていません。

**C2・C3 をエイイチが決めたものとしても、C1・B3 の必須事項を直すまで、場所3を1回流すことは勧められません。**
```

### codex へのレビューの依頼文（4回目）so101/check_401/review_request_401_r4.md

```markdown
# コードレビュー依頼（3 回目の直しの確かめ）：依頼 401 rule_401 を実機に流すスクリプト

**読むだけにしてください。ファイルは書き換えないでください。テストも走らせなくてよいです。**

3 回目の依頼は `so101/check_401/review_request_401_r3.md`、答えは `so101/check_401/review_r3.txt`。
3 回目の必須（C1 の 2 つ・B3）と推奨 A1 を次のように直した。**直した所だけ**を見てほしい（流す経路は 3 回目と同じ：場所3 を `--first` で 1 回。C2・C3 はエイイチが決めること）。
対象：`so101/check_401/run_rule401.py`・`test_run_rule401.py`、`so101/ideal_var/rule_401.py` の `apply` の説明の 1 行。

- **C1 届かないときの扱い**
  - `hold_here`（`HOLD_MAX` = 60 コマ = 2 秒）：毎コマ読み直して止める目標を送る。True は「送れた目標が直前に読んだ位置と同じ（B・A で切られていない）」かつ「前のコマに読んだ位置から関節 5 つが `HOLD_STILL_DEG` = 0.5° 以内（腕が止まっている）」のときだけ。動き続ける・A で切られる・届かないときは False
  - `Runner.hold_here` は結果を `info["hold_ok"]` に入れ、False なら `hold_failed` を立てて赤で「止まり切らない. 最後に送れた目標のまま. 腕を見てください」と出す。`_stopped` は status を `stopped`（止まった）／`stopped_not_held`（止まり切っていない）に分けて出す。スペース・q・HOME で入らない・追従の差の 3 つとも これを通る
  - `safe_hold` は True/False を返し、文を実際に合わせた（「前の目標のまま」→「最後に送れた目標のまま」）
- **C1 後始末の間の例外・Ctrl-C**
  - `execute` の `finally`：結果を聞く間（`ask_result`・`ask_fail_reason`）の すべての `BaseException`、記録を閉じる間（`recorder.close`）の すべての `BaseException` を受け、そのどちらかがあれば `arm.close()` の前に `safe_hold(arm)` を呼ぶ（本体の例外ですでに呼んだときは 2 度呼ばない）
  - 結果を聞く間の Ctrl-C は 今までどおり 結果なし（""）。記録を閉じられないときは 写さない・台帳に書かない・ローカルを消さない（終了 1）
- **B3 0 コマ目の前の空の記録**
  - 始める前に ローカルの試行のフォルダ（`~/so101_runs/<Log>/so101_<時刻>`）がもうあれば止める
  - 道を送り終えずに `recorder` が None（作る途中で失敗を含む）か 0 コマのときは `drop_empty_local` で そのフォルダを消す（`LOCAL_RUNS` の下・名前が `so101_` で始まる・始める前になかった ものだけ）
  - KIOXIA へ写したあと台帳を書く前の失敗で KIOXIA にフォルダだけ残る形は 3 回目と同じ（13-3 の「行なし」で見つかる。直していない）
- **A1**：`apply` の説明の `ok (a〜c を満たす)` を `ok (b と c を満たす. a は ねらい)` にした
- テスト 3 本を足した（19 本。全部通る）：動き続ける腕では False・`stopped_not_held`、止まれば `stopped`、`drop_empty_local` が今回の試行のフォルダだけ消す。ほかに モックで `execute` を回し、記録を作ったあと 0 コマ目の送信で失敗・記録を作る途中で失敗・結果を聞く間の Ctrl-C の 3 つで、閉じる前に止める目標を送り、前の 2 つでローカルが残らないことを確かめた（スクリプトは入れていない）

見てほしいこと：上の直しで 3 回目の必須が解けているか、直しで新しい抜け（特に `finally` の中の順と `drop_empty_local` の消す範囲）が入っていないか。
結果は同じ形（✅ / ⚠️ / ❌、必須か推奨か）で、最後に「C2・C3 をエイイチが決めたものとして、場所3 を 1 回流してよいか」を 1 行で。日本語で。
```

### codex の答え（4回目）so101/check_401/review_r4.txt

```
**前回の必須指摘に対する修正は、指定された経路では概ね入っています。** ただし、後始末の順序に実機前に直したい抜けが1点あります。

- **C1 ⚠️ 要修正・必須 — 後始末中の異常から保持までの順序**  
  [execute の finally](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:557) は、結果入力中の `BaseException` を捕まえたあと、**先に `recorder.close()` を実行し、その後に `safe_hold()`** を呼びます。`recorder.close()` が長時間かかる、または戻らない場合、その間は止める目標が送られません。結果入力中の異常を捕まえた時点で保持を試み、その後に記録を閉じる順序にしてください。記録を閉じる際に初めて異常が発生した場合も、現在どおり `arm.close()` より前に保持を試みる必要があります。

- **C1 ✅ OK — 届かない・止まり切らない場合の区別**  
  [hold_here](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:260) は送信値の一致と連続する実測値の差を確認し、失敗時は `hold_failed` と `stopped_not_held` に分けています。スペース・q、HOME 待機失敗、追従差の3経路も通ります。なお、True は**連続2回の読み取りの差が0.5°以内だった**ことを示し、その後も物理的に静止し続ける保証ではありません。

- **C1 ✅ OK — 記録を閉じられない場合**  
  `recorder.close()` の `BaseException` は捕捉され、保持を試みてから腕を閉じます。その後はコピー・台帳追記・ローカル削除を行わず、終了値1になります。結果入力中の Ctrl-C は結果を空にしています。

- **B3 ✅ OK — 空・作りかけのローカル記録**  
  [drop_empty_local](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:460) は、開始前の存在確認を通過した今回の試行パスについて、`LOCAL_RUNS` の配下かつ名前が `so101_` で始まる場合に削除します。Recorder の初期化途中の失敗と、0コマのまま閉じられた場合も対象です。閉じるのに失敗した記録は削除されません。KIOXIA 側の孤立フォルダについては、ご提示どおり変更されていません。

- **A1 ✅ OK・推奨**  
  [apply の説明](/Users/shimazueiichi/r2r2r-scripts/so101/ideal_var/rule_401.py:125) は、`ok` の条件と a がねらいであることを区別しています。

- **テスト ⚠️ 補足・推奨**  
  追加された3本は確認できました。`execute` の異常経路を確認したモックスクリプトは保存されていないため、今回その内容は確認できません。後始末の順序を修正する際は、結果入力の異常後に **保持→記録を閉じる→腕を閉じる** となることも確認してください。今回は依頼どおりテストを実行していません。

**C2・C3をエイイチが決めたものとしても、結果入力中の異常時に保持を先に試みる修正が済むまで、場所3を1回流すことは勧めません。**
```

### codex へのレビューの依頼文（5回目）so101/check_401/review_request_401_r5.md

```markdown
# コードレビュー依頼（3 回目の直しの確かめ・2 度目）：依頼 401 rule_401 を実機に流すスクリプト

**読むだけにしてください。ファイルは書き換えないでください。テストも走らせなくてよいです。**

前の依頼は `so101/check_401/review_request_401_r4.md`、答えは `review_r4.txt`。そこで残った必須 1 つを直した。**直した所だけ**を見てほしい（流す経路は同じ：場所3 を `--first` で 1 回。C2・C3 はエイイチが決めること）。

- **C1 後始末の順**：`run_rule401.py` の `execute` の `finally`。結果を聞く間（`ask_result`・`ask_fail_reason`）の `BaseException` を受けたら、**その場で** `safe_hold(arm)` を呼び（本体の例外ですでに呼んだときは呼ばない. `held` で 2 度呼ばない）、そのあと `recorder.close()`、最後に `arm.close()`。記録を閉じる間に初めて異常が出たときは、`arm.close()` の前に `safe_hold` を呼ぶ（今までどおり）
- テスト `test_execute_cleanup_order` を足した（20 本。全部通る）：`execute` をモック（腕・記録・キー・prepare・KIOXIA の確かめ）で回し、
  (1) 記録を作ったあと 0 コマ目の送信で失敗 → 順が `hold → rec.close → arm.close`、ローカルの空の記録が消える、
  (2) 道を全部送ったあと 結果を聞く間に Ctrl-C → 順が `hold → rec.close → arm.close`

見てほしいこと：この直しで残った必須が解けているか、新しい抜けがないか。
結果は同じ形（✅ / ⚠️ / ❌、必須か推奨か）で、最後に「C2・C3 をエイイチが決めたものとして、場所3 を 1 回流してよいか」を 1 行で。日本語で。
```

### codex の答え（5回目）so101/check_401/review_r5.txt

```
- **C1 ✅ OK・必須** — [後始末の処理](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/run_rule401.py:557)では、結果入力中の `BaseException` を受けた直後に `safe_hold` を試み、その後に記録、腕の順で閉じます。すでに保持を試みた場合は `held` により重複しません。記録を閉じる際に初めて異常が出た場合も、腕を閉じる前に保持を試みます。前回の必須指摘は解消しています。

- **テスト ✅ OK・推奨** — [追加テスト](/Users/shimazueiichi/r2r2r-scripts/so101/check_401/test_run_rule401.py:237)で、0コマ目の送信失敗と結果入力中の Ctrl-C について、指定の順序を確認しています。前者では空のローカル記録の削除も確認しています。コードを読んだ範囲で新たな必須の抜けは見当たりません。依頼どおりテストは実行していません。

**C2・C3をエイイチが決めたものとして、今回確認した修正を理由に場所3を `--first` で1回流すことを止める必要はありません。**
```

### so101/check_401/test_run_rule401.py

```python
"""依頼 401: run_rule401.py のテスト (アーム・カメラなし).
  SO101_VAR_ROLL_RANGE=-67,58 /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python -m unittest so101/check_401/test_run_rule401.py -v
"""
import sys
import time
import unittest
from pathlib import Path

import numpy as np

HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE))
import run_rule401 as RR  # noqa: E402

R = RR.R


class FakeArm:
    def __init__(self, start):
        self.state = np.asarray(start, np.float64).copy()
        self.last_sent = self.state.copy()
        self.sent = []

    def observe(self):
        return self.state.copy(), np.zeros((4, 4, 3), np.uint8), np.zeros((4, 4, 3), np.uint8)

    def send(self, t):
        t = np.asarray(t, np.float64)
        d = np.clip(t - self.last_sent, [-10] * 5 + [-20], [10] * 5 + [20])      # 入口の B
        self.last_sent = self.last_sent + d
        self.state = self.last_sent.copy()
        self.sent.append(self.last_sent.copy())
        return self.last_sent


class FakeRec:
    def __init__(self):
        self.rows, self.n, self.modes = [], 0, []

    def add(self, state, desk, wrist, action, sent, mode, **k):
        self.rows.append((np.asarray(action), np.asarray(sent), mode))
        self.n += 1
        self.modes.append(mode)


class Keys:
    def __init__(self, at=None):
        self.k, self.at = 0, at

    def poll(self):
        self.k += 1
        return " " if self.at is not None and self.k == self.at else None


def path_of(n=20):
    home = np.array([-8.0, -103.0, 90.0, 20.0, -3.0, 1.0])
    p = np.repeat(home[None], n, 0)
    p[:, 1] += np.linspace(0, 30, n)
    p[:, 5] = np.linspace(1, 59, n)
    return p


def runner(arm, rec, keys, max_step=10.0):
    return RR.Runner(arm, rec, keys, max_step, out=lambda *a: None, clock=lambda: 0.0, sleep=lambda s: None)


class FakeW:
    """rule_401.apply の解き方だけを見る: 予想・指令のつかむ所の爪と机 = 元 + 傾き × dz (+ 段)"""

    def __init__(self, p0, c0, kp=1.0, kc=1.0, jump=0.0):
        self.p0, self.c0, self.kp, self.kc, self.jump = p0, c0, kp, kc, jump

    def variant(self, res, e, og, gap, dz):
        return {"ok": True, "path": [0], "frames": {}, "info": {}, "dz": dz}


def fake_measure(W, v, e):
    dz = v["dz"]
    pj = W.p0 + W.kp * dz + (W.jump if dz < -1.0 else 0.0)
    return {"cmd": {"grasp_jaw_table": W.c0 + W.kc * dz}, "pred": {"grasp_jaw_table": pj, "close_found": True}, "Qp": None}


class Solve(unittest.TestCase):
    def setUp(self):
        import rule_401 as R401
        self.R, self.m0 = R401, R401.measure
        R401.measure = fake_measure

    def tearDown(self):
        self.R.measure = self.m0

    def run_(self, *a, **k):
        return self.R.apply(FakeW(*a, **k), {"ok": True}, {"pixel": [0, 0], "yaw": 0})

    def test_ok(self):
        o = self.run_(1.0, 3.0)                    # 予想 −2 に dz −3 → 指令 0 (≤ +1)
        self.assertEqual(o["status"], "ok")
        self.assertAlmostEqual(o["dz_mm"], -3.0, delta=0.3)

    def test_cmd_pushes_deeper(self):
        o = self.run_(-1.0, 4.0)                   # 予想 −2 で dz −1 → 指令 +3 → +1 まで下げる (予想 −4)
        self.assertEqual(o["status"], "ok")
        self.assertLessEqual(o["cmd"]["grasp_jaw_table"], 1.05)

    def test_conflict(self):
        o = self.run_(-4.0, 6.0)                   # 指令 +1 には dz −5 (予想 −9) → −6 に戻す → 指令 +4
        self.assertEqual(o["status"], "conflict")
        self.assertGreaterEqual(o["pred"]["grasp_jaw_table"], -6.05)

    def test_deep_at_zero(self):
        o = self.run_(-8.0, 3.0)
        self.assertEqual(o["status"], "deep_at_zero")
        self.assertEqual(o["dz_mm"], 0.0)

    def test_jump_not_labelled_ok(self):
        """dz −1 より下で 予想が 6 mm 跳ぶ (不連続): ok にも deep_at_zero にも誤って入れない"""
        o = self.run_(-1.5, 1.5, jump=-6.0)
        self.assertIn(o["status"], ("ok", "conflict", "not_converged"))
        if o["status"] == "ok":
            self.assertGreaterEqual(o["pred"]["grasp_jaw_table"], -6.05)
            self.assertLessEqual(o["cmd"]["grasp_jaw_table"], 1.05)


class T(unittest.TestCase):
    def test_runs_whole_path_and_records_code_mode(self):
        p = path_of()
        arm, rec = FakeArm(p[0] + [3, 0, 0, 0, 0, 0]), FakeRec()
        r = runner(arm, rec, Keys())
        self.assertTrue(r.run(p))
        self.assertEqual(rec.n, len(p))
        self.assertEqual(set(rec.modes), {R.CODE})
        self.assertTrue(np.allclose(rec.rows[-1][0], p[-1]))
        self.assertEqual(r.info["status"], "done")

    def test_refuses_far_from_home(self):
        p = path_of()
        arm = FakeArm(p[0] + [12, 0, 0, 0, 0, 0])
        with self.assertRaises(RR.Refused):
            runner(arm, FakeRec(), Keys()).run(p)
        self.assertEqual(arm.sent, [])

    def test_stop_key_holds_in_place(self):
        p = path_of()
        arm, rec = FakeArm(p[0]), FakeRec()
        r = runner(arm, rec, Keys(at=6))
        self.assertFalse(r.run(p))
        self.assertEqual(r.info["status"], "stopped")
        self.assertTrue(np.allclose(arm.sent[-1][:5], arm.state[:5]))

    def test_max_step_refuses_path_that_would_be_cut(self):
        """--max-step-deg で切ると確かめた道と違う道になるので 送らない (codex R1 C1)"""
        p = path_of(4)
        p[2, 1] = p[1, 1] + 8.0
        arm = FakeArm(p[0])
        with self.assertRaises(RR.Refused):
            runner(arm, FakeRec(), Keys(), max_step=3.0).run(p)
        self.assertEqual(arm.sent, [])

    def test_tracking_stop(self):
        """実際の関節が予想から 10° より離れたら その場で止める"""
        p = path_of()
        pred = p.copy()
        pred[5:, 1] += 15.0
        arm, rec = FakeArm(p[0]), FakeRec()
        r = runner(arm, rec, Keys())
        self.assertFalse(r.run(p, pred))
        self.assertIn("予想", r.info["stopped"])
        self.assertLess(rec.n, len(p))

    def test_recorder_made_only_when_path_starts(self):
        """寄せ・HOME で止めたときは 記録を作らない (codex R1 B3)"""
        p = path_of()
        made = []
        arm = FakeArm(p[0] + [5, 0, 0, 0, 0, 0])
        r = runner(arm, lambda: made.append(FakeRec()) or made[-1], Keys(at=1))
        self.assertFalse(r.run(p))
        self.assertEqual(made, [])
        r = runner(FakeArm(p[0]), lambda: made.append(FakeRec()) or made[-1], Keys())
        self.assertTrue(r.run(p))
        self.assertEqual(len(made), 1)
        self.assertEqual(made[0].n, len(p))

    def test_hold_reaches_present_through_B(self):
        """止める目標が入口の B (10°) で切られても 今の位置に届くまで送り直す (codex R2 C1)"""
        arm = FakeArm(path_of()[0])
        arm.last_sent = arm.state + [25, 0, 0, 0, 0, 0]       # 目標が 今の位置から 25° 先にある (腕が遅れている)
        arm.observe = lambda: (np.asarray(path_of()[0]), None, None)   # 腕は動かない
        self.assertTrue(RR.hold_here(arm, clock=lambda: 0.0, sleep=lambda s: None))
        self.assertTrue(np.allclose(arm.last_sent[:5], path_of()[0][:5]))
        self.assertGreaterEqual(len(arm.sent), 3)

    def test_hold_not_still_is_failure(self):
        """腕が動き続けている (読むたびに 2° ずつ動く) と 止まったとは言わない. Runner は stopped_not_held にする (codex R3 C1)"""
        arm = FakeArm(path_of()[0])
        pos = [np.asarray(path_of()[0])]

        def moving():
            pos[0] = pos[0] + [2, 0, 0, 0, 0, 0]
            return pos[0].copy(), None, None
        arm.observe = moving
        self.assertFalse(RR.hold_here(arm, clock=lambda: 0.0, sleep=lambda s: None))
        self.assertEqual(len(arm.sent), RR.HOLD_MAX)
        r = runner(arm, FakeRec(), Keys())
        self.assertFalse(r.hold_here())
        r._stopped("テスト")
        self.assertEqual(r.info["status"], "stopped_not_held")
        self.assertTrue(r.info["hold_failed"])

    def test_hold_ok_marks_stopped(self):
        p = path_of()
        r = runner(FakeArm(p[0]), FakeRec(), Keys(at=6))
        self.assertFalse(r.run(p))
        self.assertTrue(r.info["hold_ok"])
        self.assertEqual(r.info["status"], "stopped")

    def test_drop_empty_local(self):
        """0 コマ目を記録する前に止まった回の 空の記録は 今回の試行のフォルダだけ消す (codex R3 B3)"""
        import tempfile
        old = R.LOCAL_RUNS
        with tempfile.TemporaryDirectory() as d:
            try:
                R.LOCAL_RUNS = Path(d)
                t = Path(d) / "so101_Log12" / "so101_20261201_000000"
                (t / "meta").mkdir(parents=True)
                self.assertFalse(RR.drop_empty_local(t, existed=True))
                self.assertTrue(t.exists())
                other = Path(d) / "so101_Log12" / "other"
                other.mkdir()
                self.assertFalse(RR.drop_empty_local(other, existed=False))
                self.assertTrue(RR.drop_empty_local(t, existed=False))
                self.assertFalse(t.exists())
                self.assertTrue(other.exists())
            finally:
                R.LOCAL_RUNS = old
        self.assertFalse(RR.drop_empty_local(Path(d) / "so101_x", existed=False))

    def test_execute_cleanup_order(self):
        """execute (モック): 結果を聞く間の Ctrl-C → 止める目標 → 記録を閉じる → 腕を閉じる の順 (codex R4 C1).
        記録を作ったあと 0 コマ目の送信で失敗 → 止める目標を送り ローカルの空の記録を消す (codex R3 B3)"""
        import builtins
        import tempfile
        import types
        p = path_of()
        order = []
        saved = {k: getattr(R, k) for k in ("LOCAL_RUNS", "LiveArm", "Recorder", "KeyReader", "ask_result", "ask_fail_reason")}
        saved_rr = {k: getattr(RR, k) for k in ("kioxia_bad", "world", "prepare", "hold_here")}
        saved_input, saved_mod = builtins.input, sys.modules.get("lerobot_safe_259")

        class Arm(FakeArm):
            fail_send = False

            def send(self, t):
                if self.fail_send and getattr(self, "rec_made", False):
                    raise IOError("送れない")
                return super().send(t)

            def close(self):
                order.append("arm.close")

        class Rec(FakeRec):
            def __init__(self, root, *a, **k):
                super().__init__()
                (Path(root) / "meta").mkdir(parents=True)
                arms[-1].rec_made = True

            def close(self):
                order.append("rec.close")

        class NoKeys:
            def __enter__(self):
                return self

            def __exit__(self, *a):
                return False

            def start(self):
                pass

            def poll(self):
                return None

        def ctrl_c():
            raise KeyboardInterrupt

        arms = []
        with tempfile.TemporaryDirectory() as d:
            try:
                R.LOCAL_RUNS, R.Recorder, R.KeyReader = Path(d), Rec, NoKeys
                R.ask_fail_reason = lambda: ""
                RR.kioxia_bad, RR.world = (lambda x: ""), (lambda: None)
                RR.prepare = lambda *a, **k: ({"path": p, "v": {"pred_path": p, "keyframes": {}}, "res": {"path": p}}, {"status": "ok"})
                RR.hold_here = lambda arm, *a: order.append("hold") or saved_rr["hold_here"](arm, clock=lambda: 0.0, sleep=lambda s: None)
                builtins.input = lambda *a: ""
                sys.modules["lerobot_safe_259"] = types.SimpleNamespace(check_dataset_root=lambda x: None)
                log = Path(d) / "kx" / "so101_Log12"
                log.mkdir(parents=True)
                args = types.SimpleNamespace(log_dir=str(log), currents="off", place=3, place1_candidate=False, allow_status=[],
                                             skip_first_confirm=True, max_step_deg=10.0, plan=str(RR.PLAN))

                def go(fail_send, ask):
                    order.clear()
                    R.ask_result = ask
                    R.LiveArm = lambda *a: arms.append(Arm(p[0])) or setattr(arms[-1], "fail_send", fail_send) or arms[-1]
                    return RR.execute(args, None, np.zeros(6), np.zeros(6))

                rc = go(True, lambda: "success")
                self.assertEqual(rc, RR.EXIT_REFUSED)
                self.assertEqual(order, ["hold", "rec.close", "arm.close"])
                self.assertEqual(list((Path(d) / "so101_Log12").glob("so101_*")), [])          # 空の記録は消した
                order.clear()
                time.sleep(1.1)                                                                # 試行の名前 (秒) を変える
                go(False, ctrl_c)
                self.assertEqual(order[:3], ["hold", "rec.close", "arm.close"])
            finally:
                for k, v in saved.items():
                    setattr(R, k, v)
                for k, v in saved_rr.items():
                    setattr(RR, k, v)
                builtins.input = saved_input
                if saved_mod is None:
                    sys.modules.pop("lerobot_safe_259", None)
                else:
                    sys.modules["lerobot_safe_259"] = saved_mod

    def test_safe_hold_survives_errors(self):
        class Bad:
            def observe(self):
                raise IOError("通信の失敗")
        RR.safe_hold(Bad())
        RR.safe_hold(None)

    def test_kioxia_bad(self):
        self.assertTrue(RR.kioxia_bad("/tmp"))

    def test_check_guards(self):
        b = {"guards": {"clear_345": True, "in_range": True, "step": True, "push_limit": True, "status": "conflict"}}
        self.assertIn("status", RR.check_guards(b))
        self.assertIsNone(RR.check_guards(b, ("conflict",)))
        b["guards"]["push_limit"] = "予想 -7"
        self.assertIn("push_limit", RR.check_guards(b, ("conflict",)))

    def test_plan_and_marker_guards(self):
        """割り振りが読めて, 目印の画素 (読んだことにする) で道が作れ, 既存のガードを通る (シム. 数秒)"""
        plan, lo, hi = RR.load_plan()
        self.assertLessEqual(hi[5], 59.51)
        self.assertLessEqual(RR.R401_open(), hi[5])
        W = RR.world()
        e = RR.episode_of(plan, 3)
        b = RR.build(W, e, np.asarray(e["pixel"], float), 0.0, lo, hi, plan["jaw_table_min_mm"])
        self.assertLessEqual(b["path"][:, 5].max(), hi[5] + 1e-9)
        for k in ("clear_345", "in_range", "step"):
            self.assertIs(b["guards"][k], True)
        with self.assertRaises(RR.Refused):
            RR.episode_of(plan, 1)
        with self.assertRaises(RR.Refused):
            RR.build(W, e, np.asarray(e["pixel"], float), 0.0, lo, hi, -20.0)        # 下限を緩める値は受けない


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


## 実機で流したスクリプト ― ガードの値をその回だけ変えられるようにした

実機の回の途中で、既定の値は変えずに、環境変数でその回だけガードの値を変えられるようにした。その差分（commit 0ee3388）と、直したあとの run_rule401.py・session_401.sh の全文。

実際に流したコマンド（目印から外した置き方の最後の回）：


```bash
cd ~/r2r2r-scripts
R401_PUSH_LIMIT_MM=-12 R401_ALLOW_DEEP=1 R401_COUNT_OFFSET=2 R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=20 N=12 PLACES="2 3 4 5" ./so101/check_401/session_401.sh
```

### commit 0ee3388 の差分

```diff
commit 0ee33884d5b3acf050783756ba8727727f911ef0
Author: Claude <noreply@anthropic.com>
Date:   Tue Dec 1 02:06:31 2026 +0000

    依頼401 の実機: ガードの値をその回だけ環境変数で変えられるようにした (既定は変えていない). R401_PUSH_LIMIT_MM・R401_PUSH_WINDOW_MM・R401_PIXEL_TOL_PX・R401_YAW_TOL_DEG・R401_START_TOL_DEG・R401_ALLOW_DEEP・R401_COUNT_OFFSET. HOME から遠いときは寄せる目標を 1 コマ 2° に切って送る. 2026-12-01 に code_rule401 を 57 回流し 56 回成功 (目印 24/24・目印から外す 32/32・追従の差で止めた 1 回)
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01LevEXWUXX1spsz46VupRRe

diff --git a/so101/check_401/run_rule401.py b/so101/check_401/run_rule401.py
index a2b71f0..06d0a58 100644
--- a/so101/check_401/run_rule401.py
+++ b/so101/check_401/run_rule401.py
@@ -161,7 +161,9 @@ def build(W, e, uv, yaw, lo, hi, jaw_table_min=None):
     sj, sg = float(d[:, :5].max()), float(d[:, 5].max())
     g["step"] = (sj <= V.STEP_LIMIT_DEG + 1e-9 and sg <= V.STEP_LIMIT_GRIP + 1e-9) or f"1 コマ 関節 {sj:.2f}°・爪 {sg:.2f}"
     pj = v["pred"]["grasp_jaw_table"]
-    g["push_limit"] = pj >= R401.PUSH_LIMIT_MM - 0.05 or f"予想のつかむ所の爪と机 {pj:+.2f} mm (上限 {R401.PUSH_LIMIT_MM:g})"
+    pl = float(os.environ.get("R401_PUSH_LIMIT_MM", R401.PUSH_LIMIT_MM))   # 2026-12-01 エイイチ: つかむ所の上限も環境変数で変えられる (既定 −6)
+    out["push_limit_mm_used"] = pl
+    g["push_limit"] = pj >= pl - 0.05 or f"予想のつかむ所の爪と机 {pj:+.2f} mm (上限 {pl:g})"
     # codex R1 C2: 閉じる間と持ち上げの始め (10 コマ) の 予想の爪と机の いちばん深い所にも 同じ −6 mm を当てる
     pw = min(v["pred"]["close_jaw_table_min"], v["pred"]["lift_start_jaw_table_min"], pj)
     # 2026-12-01 エイイチ: 閉じる間〜持ち上げの始めの上限だけ 環境変数 R401_PUSH_WINDOW_MM で変えられる (既定 −6. つかむ所の push_limit は −6 のまま)
@@ -211,10 +213,12 @@ def prepare(W, plan, place, lo, hi, desk_rgb=None, fake=None, use_candidate=Fals
             "pixel_from_plan_px": round(float(np.linalg.norm(uv - np.asarray(e["pixel"]))), 1)}
     d_px = float(np.linalg.norm(uv - np.asarray(e["pixel"])))
     try:
-        if d_px > PIXEL_TOL_PX:                      # 丸める前の値で比べる (codex R1 C4)
-            raise Refused(f"ブロックが 場所{place} の目印から {info['pixel_from_plan_px']:.0f} 画素 離れている (許し {PIXEL_TOL_PX:g} 画素). 置き直す")
-        if abs(yaw_raw - yaw_plan) > Y.YAW_TOL_DEG:            # 丸める前の値で比べる (codex R2 C4)
-            raise Refused(f"ブロックの向き {yaw:+.1f}° が 割り振りの向き ({yaw_plan:+.1f}°) から ±{Y.YAW_TOL_DEG:g}° より離れている. 置き直す")
+        ptol = float(os.environ.get("R401_PIXEL_TOL_PX", PIXEL_TOL_PX))   # 2026-12-01 エイイチ: 環境変数で広げられる
+        if d_px > ptol:                              # 丸める前の値で比べる (codex R1 C4)
+            raise Refused(f"ブロックが 場所{place} の目印から {info['pixel_from_plan_px']:.0f} 画素 離れている (許し {ptol:g} 画素). 置き直す")
+        ytol = float(os.environ.get("R401_YAW_TOL_DEG", Y.YAW_TOL_DEG))   # 2026-12-01 エイイチ: 目印から外した置き方の試しで広げる
+        if abs(yaw_raw - yaw_plan) > ytol:            # 丸める前の値で比べる (codex R2 C4)
+            raise Refused(f"ブロックの向き {yaw:+.1f}° が 割り振りの向き ({yaw_plan:+.1f}°) から ±{ytol:g}° より離れている. 置き直す")
         b = build(W, e, uv, yaw, lo, hi, plan.get("jaw_table_min_mm"))
         info.update(summary(b))
         bad = check_guards(b, allow_status)
@@ -334,14 +338,21 @@ class Runner:
         state0, _, _ = arm.observe()
         d0 = float(np.abs(np.asarray(state0, np.float64)[:5] - path[0, :5]).max())
         self.info["start_from_home_deg"] = round(d0, 2)
-        if d0 > START_TOL_DEG:
-            raise Refused(f"今の姿勢が HOME から {d0:.1f}° 離れている (許し {START_TOL_DEG:g}°). 腕を休みの姿勢に戻してから")
+        # 2026-12-01 エイイチ: 許しを環境変数 R401_START_TOL_DEG で広げられる (既定 10°). 広げた分の寄せは 1 コマ 2° に切ってゆっくり
+        tol = float(os.environ.get("R401_START_TOL_DEG", START_TOL_DEG))
+        dj = np.round(np.asarray(state0, np.float64)[:5] - path[0, :5], 1).tolist()
+        self.info["start_from_home_joints_deg"] = dj
+        if d0 > tol:
+            raise Refused(f"今の姿勢が HOME から {d0:.1f}° 離れている (許し {tol:g}°. 関節ごとの差 {dj}). 腕を休みの姿勢に戻してから")
         self.info["status"] = "approach"
         n, nxt = 0, self.clock()
         while True:                                     # 寄せる (録らない)
             if self.stop_key(f"寄せの {n} コマ目"):
                 return False
-            sent = self.send(path[0])
+            tgt = path[0]
+            if d0 > START_TOL_DEG:
+                tgt, _ = R.step_clip(np.asarray(path[0], np.float64), self.arm.last_sent, 2.0)
+            sent = self.send(tgt)
             n += 1
             if np.all(np.abs(np.asarray(sent, np.float64) - path[0]) < 1e-6):
                 break
@@ -515,8 +526,10 @@ def execute(args, plan, lo, hi):
         print_summary(info, True, "")
         st0, _, _ = arm.observe()
         d0 = float(np.abs(np.asarray(st0, np.float64)[:5] - b["path"][0, :5]).max())
-        if d0 > START_TOL_DEG:                   # Runner.run も確かめる. 記録を作る前に止める
-            print(f"\n\033[1;37;41m   動かしません: 今の姿勢が HOME から {d0:.1f}° 離れている (許し {START_TOL_DEG:g}°)   \033[0m")
+        tol0 = float(os.environ.get("R401_START_TOL_DEG", START_TOL_DEG))
+        if d0 > tol0:                            # Runner.run も確かめる. 記録を作る前に止める
+            dj0 = np.round(np.asarray(st0, np.float64)[:5] - b["path"][0, :5], 1).tolist()
+            print(f"\n\033[1;37;41m   動かしません: 今の姿勢が HOME から {d0:.1f}° 離れている (許し {tol0:g}°. 関節ごとの差 {dj0})   \033[0m")
             return EXIT_REFUSED
         loosened = [x for x in (f"status {info.get('status')} (--allow-status)" if info.get("status") != "ok" else "",
                                 "場所1 の候補の置き方 (--place1-candidate)" if info.get("from_candidate") else "") if x]
@@ -626,7 +639,7 @@ def main(argv=None):
     ap.add_argument("--skip-first-confirm", action="store_true", help="始めの確かめ (Enter) を待たない (2 回目の試行から)")
     ap.add_argument("--max-step-deg", type=float, default=R.MAX_STEP_DEG, help="関節 5 つの 1 コマの変化の上限 (1〜10. 緩めない)")
     ap.add_argument("--currents", choices=sorted(R.CURRENT_SETS), default="off")
-    ap.add_argument("--allow-status", nargs="*", default=[], choices=["conflict"],
+    ap.add_argument("--allow-status", nargs="*", default=[], choices=["conflict", "deep_at_zero"],
                     help="rule_401 の status が ok でなくても流す (conflict = 予想で −6 mm を守り 指令が +1 mm より上. エイイチが決めたときだけ)")
     ap.add_argument("--place1-candidate", action="store_true", help="場所1 は割り振りの候補 (目印から寄せた所) を使う (エイイチが決めたときだけ)")
     args = ap.parse_args(argv)
diff --git a/so101/check_401/session_401.sh b/so101/check_401/session_401.sh
index 32977ce..865973b 100755
--- a/so101/check_401/session_401.sh
+++ b/so101/check_401/session_401.sh
@@ -18,6 +18,8 @@ PLACES=${PLACES:-"2 3 4 5"}
 N=${N:-6}
 MODE=run; [ "${1:-}" = --first ] && MODE=first; [ "${1:-}" = --dry ] && MODE=dry
 EXTRA=(); [ "${R401_PLACE1:-0}" = 1 ] && EXTRA+=(--place1-candidate)
+ST=(); [ "${R401_ALLOW_CONFLICT:-0}" = 1 ] && ST+=(conflict); [ "${R401_ALLOW_DEEP:-0}" = 1 ] && ST+=(deep_at_zero)
+[ ${#ST[@]} -gt 0 ] && EXTRA+=(--allow-status "${ST[@]}")   # 2026-12-01 エイイチ: 場所2・4 の conflict も流す (毎回 yes)
 export SO101_VAR_ROLL_RANGE=-67,58
 
 [ -d "$LOG" ] || { echo "[ERROR] KIOXIA がつながっていない: $LOG"; exit 1; }
@@ -36,7 +38,8 @@ try:
                 n += 1
 except FileNotFoundError:
     pass
-print(n)
+import os
+print(max(0, n - int(os.environ.get("R401_COUNT_OFFSET", "0"))))   # 2026-12-01: 置き方を間違えた回を数えずにやり直すとき (台帳は書き換えない)
 EOF
 }
 
```

### so101/check_401/run_rule401.py

```python
#!/usr/bin/env python3
"""依頼 401 の 3: つかみ方の決まり rule_401 (案 C. ideal_var/rule_401.py) を コードだけで実機に流す (学習なし. 推論のサーバーは使わない).
1 回 = 1 試行 (run_so101_policy.py と同じ数え方. 場所1〜5 × 各 6 回は session_401.sh が回す).

1 回の流れ:
  1. 割り振り plan_401.json (plan_401.py が作った. 場所ごとの rule_351 の 面のずらし・爪の傾き) を アーム・カメラを開く前に読み,
     校正の点の SHA-256・道を作る範囲 (handover_392.rule_range = お手本と同じ rule_351 の範囲)・腕の動きの予想の値の SHA-256 が
     作ったときと同じかを確かめる. 違えば始めない
  2. 机のカメラの 1 コマから ブロックの位置と向きを読む (yaw_lib_343.read_block. 依頼 351・392 と同じ読み方).
     読めない・割り振りの画素から 10 画素より離れている・向きが割り振りの向きから ±8° より離れている → 動かさずに止める
  3. rule_351 の道を作る (var_lib_314.make_path. 始め HOME・ずらしなし・外れて戻る道なし. 割り振りの面・傾きのまま. 依頼 392 と同じ)
     → rule_401 で作り替える (開き 59・固定側 12 mm・つかむ所の下げは 腕の動きの予想 dir_s で解く)
  4. ガード (どれかに当たれば 動かさずに止める. 既存のものは緩めない):
     - clear_345.check_path (全区間. 爪の先と机は割り振りの jaw_table_min_mm = rule_351.JAW_TABLE_MIN_MM −11 mm)
     - 道の関節 6 つが 道を作る範囲 (爪の上限 59.5 を含む) の中. 1 コマの変化 関節 10°・爪 20 以下 (入口の B と同じ)
     - rule_401 の status が ok (予想のつかむ所の爪と机 ≥ −6 mm・指令 ≤ +1 mm). ok でない所は --allow-status で渡したときだけ
       (予想で −6 mm より深い・指令で +1 mm より上. 決めるのはエイイチ)
     - 予想のつかむ所の 爪と机 が PUSH_LIMIT_MM (−6) − 0.05 より深くない (status によらず)
  5. 確かめ (Enter. --skip-first-confirm なら待たない) → 今の姿勢から 道の 1 コマ目 (HOME) へ寄せる (録らない. 1 コマ関節 --max-step-deg まで.
     今の姿勢が HOME から 10° より離れていれば寄せない. 寄せたあと 実際の関節が HOME から 5° に入るのを 30 コマまで待つ. 依頼 394 と同じ)
     → 道を 30fps で全部送りながら録る (ptm.mode = 3 (CODE). 送る前に --max-step-deg で切る. 入口の B が効く)
     スペース・q: その場で止める (関節 5 つは今の位置・爪は前の目標) → 結果は聞かない
  6. 結果 (y / n / Enter = 記録しない) と 失敗の場所の番号 (run_so101_policy.FAIL_REASONS) を聞く. 閉じる (入口が休みの姿勢を確かめる)
  7. 記録: run_so101_policy と同じ LeRobot v3.0 (observation.state・action・ptm.sent・ptm.mode・カメラ 2 台・ptm.current は --currents)
     を ~/so101_runs/<Log>/<試行>/ に書き, <--log-dir>/so101/<試行>/ へ写す. 試行のフォルダに rule401_plan.json (道・予想の道・すき間).
     台帳 <--log-dir>/so101_trials.csv に 1 行 (TRIAL_COLUMNS のまま. model = code_rule401・step = rule_401・operator = code)

--dry-run (アームにつながない. 送らない. 台帳・KIOXIA には書かない):
  道と予想のすき間・ガードの答えを check_401/dry_run/ に書き出す. --fake U,V,YAW なら カメラも開かずに その画素・向きを読んだことにする
  (--fake marker なら 割り振りの目印の画素・向き 0°). --fake がなければ 机のカメラを開いて読む (run_so101_policy の DryArm)

  P=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python
  $P so101/check_401/run_rule401.py --place 2 --dry-run --fake marker
  $P so101/check_401/run_rule401.py --place 2 --log-dir /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12 --execute
"""
import argparse
import hashlib
import json
import os
import sys
import time
from datetime import datetime
from pathlib import Path

import numpy as np

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

import run_so101_policy as R  # noqa: E402

PLAN = HERE / "plan_401.json"
DRY_DIR = HERE / "dry_run"
ARM_RESPONSE = SO101 / "sim/look_400/arm_response_400.json"
MODEL_NAME = "code_rule401"
STEP_NAME = "rule_401"
OPERATOR = "code"
PIXEL_TOL_PX = 10.0                 # 依頼 394 と同じ (決まりの置き方の余り ±10 画素)
START_TOL_DEG = 10.0                # 依頼 394 と同じ
HOME_SETTLE_DEG = 5.0
HOME_SETTLE_MAX = 30
APPROACH_MAX_FRAMES = 30 * 60
RANGE_TOL = 1e-3
EXIT_REFUSED = 3
PLAN_FILE = "rule401_plan.json"
TRACK_STOP_DEG = 10.0               # 道を送る間 実際の関節 5 つが 予想 (指令の 1 コマ前への応え) からこれより離れたら止める (依頼 396 の戻る道と同じ 10°)
KIOXIA = Path("/Volumes/KIOXIA")    # 記録・台帳は KIOXIA の上だけ (つながっていなければ止める. ローカルへ逃げない)


class Refused(Exception):
    """道を作らない・流さない (動かす前). 理由は文字"""


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


def R401_open():
    import rule_401 as R401
    return R401.OPEN_G


def load_plan(path=PLAN, calib=None):
    import handover_392 as H
    import rule_401 as R401
    import var_lib_314 as V
    plan = json.loads(Path(path).read_text())
    if plan.get("request") != 401 or plan.get("grasp_rule") != R401.RULE_NAME:
        raise Refused(f"依頼 401 の割り振りではない: {path}")
    if plan.get(R401.RULE_NAME) != json.loads(json.dumps(R401.RULE, ensure_ascii=False)):
        raise Refused("割り振りを作ったときの rule_401 の値と 今の rule_401.py の値が違う. 割り振りを作り直す (plan_401.py)")
    bad = V.check_plan_calib(plan, calib or plan["calib"])
    if bad:
        raise Refused(bad)
    lo, hi = H.rule_range()
    s = plan.get("rule_safe_range") or {}
    if not s or np.abs(np.asarray(s["lo"]) - lo).max() > RANGE_TOL or np.abs(np.asarray(s["hi"]) - hi).max() > RANGE_TOL:
        raise Refused("割り振りを作ったときの 道を作る範囲と 今の範囲が違う. 割り振りを作り直す (plan_401.py)")
    if plan.get("arm_response_sha256") != sha256(ARM_RESPONSE):
        raise Refused("割り振りを作ったときの 腕の動きの予想の値 (arm_response_400.json) と 今の値が違う")
    if [e.get("place") for e in plan.get("episodes", [])] != [1, 2, 3, 4, 5]:
        raise Refused("割り振りに場所1〜5 がない")
    return plan, lo, hi


def episode_of(plan, place, use_candidate=False):
    e = plan["episodes"][int(place) - 1]
    if e.get("ok"):
        return e
    if use_candidate and e.get("candidate") and e["candidate"].get("pixel"):
        return dict(e["candidate"], place=e["place"], ok=True, from_candidate=True)
    raise Refused(f"場所{place} は割り振りで道が作れない: {e.get('why')}")


def world():
    """rule_401 の world (lib_399.World + ArmResponse). 道を作る範囲が handover_392.rule_range と同じかを確かめる"""
    import handover_392 as H
    import rule_351 as R351
    os.environ["SO101_VAR_ROLL_RANGE"] = R351.ROLL_RANGE         # 道を作る範囲を rule_351 の範囲にする (割り振りと同じ)
    import rule_401 as R401
    W = R401.world()
    lo, hi = H.rule_range()
    if np.abs(W.w.lo - lo).max() > RANGE_TOL or np.abs(W.w.hi - hi).max() > RANGE_TOL:
        raise Refused(f"rule_401 の道を作る範囲が rule_351 の範囲と違う: {W.w.lo} / {W.w.hi}")
    return W


def build(W, e, uv, yaw, lo, hi, jaw_table_min=None):
    """読んだ画素 uv・向き yaw で rule_351 の道 → rule_401 → ガード. → dict. だめなら Refused (アームは動かさない)"""
    import clear_345 as CL
    import face_349 as F
    import rule_351 as R351
    import rule_401 as R401
    import var_lib_314 as V
    import yaw_lib_343 as Y
    jt_min = R351.JAW_TABLE_MIN_MM if jaw_table_min is None else float(jaw_table_min)
    if jt_min < R351.JAW_TABLE_MIN_MM:
        raise Refused(f"爪の先と机の下限 {jt_min} が rule_351 の {R351.JAW_TABLE_MIN_MM} より緩い")
    uv = np.asarray(uv, np.float64)
    res = V.make_path(W.w.gmap, uv, W.w.chain, lo, hi, offset=None, detour=None, A=None,
                      yaw=yaw + F.plan_face(e), tilt_s=F.plan_tilt_s(e))
    if not res["ok"]:
        raise Refused(f"rule_351 の道が作れない: {res['why']}")
    ee = {"pixel": uv.tolist(), "yaw": float(yaw)}
    v = R401.apply(W, res, ee)
    if v.get("path") is None or not v.get("ok"):
        raise Refused(f"rule_401 の道が作れない: {v.get('why')}")
    bxy = np.asarray(Y.pixel_to_desk_mm(W.w.cam, uv), np.float64)
    clear = CL.check_path(v, bxy, yaw, jaw_table_min=jt_min)
    path = np.asarray(v["path"], np.float64)
    out = {"v": v, "res": res, "path": path, "bxy": bxy, "uv": uv, "yaw": float(yaw), "clear": clear["dist"], "clear_ok": clear["ok"],
           "guards": {}}
    g = out["guards"]
    g["clear_345"] = clear["ok"] or clear["why"]
    inr = bool(((path >= lo - 1e-9) & (path <= hi + 1e-9)).all())
    g["in_range"] = inr or ", ".join(sorted({R.MOTORS[i] for i in np.where(((path < lo) | (path > hi)).any(0))[0]}))
    d = np.abs(np.diff(path, axis=0))
    sj, sg = float(d[:, :5].max()), float(d[:, 5].max())
    g["step"] = (sj <= V.STEP_LIMIT_DEG + 1e-9 and sg <= V.STEP_LIMIT_GRIP + 1e-9) or f"1 コマ 関節 {sj:.2f}°・爪 {sg:.2f}"
    pj = v["pred"]["grasp_jaw_table"]
    pl = float(os.environ.get("R401_PUSH_LIMIT_MM", R401.PUSH_LIMIT_MM))   # 2026-12-01 エイイチ: つかむ所の上限も環境変数で変えられる (既定 −6)
    out["push_limit_mm_used"] = pl
    g["push_limit"] = pj >= pl - 0.05 or f"予想のつかむ所の爪と机 {pj:+.2f} mm (上限 {pl:g})"
    # codex R1 C2: 閉じる間と持ち上げの始め (10 コマ) の 予想の爪と机の いちばん深い所にも 同じ −6 mm を当てる
    pw = min(v["pred"]["close_jaw_table_min"], v["pred"]["lift_start_jaw_table_min"], pj)
    # 2026-12-01 エイイチ: 閉じる間〜持ち上げの始めの上限だけ 環境変数 R401_PUSH_WINDOW_MM で変えられる (既定 −6. つかむ所の push_limit は −6 のまま)
    pwl = float(os.environ.get("R401_PUSH_WINDOW_MM", R401.PUSH_LIMIT_MM))
    out["push_window_limit_mm"] = pwl
    g["push_window"] = pw >= pwl - 0.05 or f"予想の 閉じる間〜持ち上げの始めの 爪と机 {pw:+.2f} mm (上限 {pwl:g})"
    g["status"] = v["status"] == "ok" or v["status"]
    out["step_max_joint_deg"], out["step_max_grip"] = round(sj, 2), round(sg, 2)
    return out


def check_guards(b, allow_status=()):
    """→ 止める理由 (文字) か None"""
    bad = []
    for k, x in b["guards"].items():
        if x is True:
            continue
        if k == "status" and x in allow_status:
            continue
        bad.append(f"{k}: {x}")
    return " / ".join(bad) or None


def read_block(W, desk_rgb, fake=None):
    """→ (画素, 向き, 読んだ答え). fake = (u, v, yaw) なら読んだことにする"""
    import yaw_lib_343 as Y
    if fake is not None:
        return np.asarray(fake[:2], np.float64), Y.fold(float(fake[2])), {"fake": True}
    yr, why = Y.read_block(np.asarray(desk_rgb)[..., ::-1], W.w.cam)
    if yr is None:
        raise Refused(f"ブロックが読めない: {why}")
    det = json.loads(json.dumps({k: yr[k] for k in ("u", "v", "yaw", "xy_mm", "size_mm", "iou", "yaw_margin", "red_px") if k in yr},
                                default=lambda x: x.tolist() if hasattr(x, "tolist") else float(x)))
    return np.array([yr["u"], yr["v"]], np.float64), float(yr["yaw"]), det


def prepare(W, plan, place, lo, hi, desk_rgb=None, fake=None, use_candidate=False, allow_status=()):
    """読む → 割り振りと比べる → 道 → ガード. → (b, info). 止めるときは Refused (info は Refused.info)"""
    import yaw_lib_343 as Y
    e = episode_of(plan, place, use_candidate)
    uv, yaw_read, det = read_block(W, desk_rgb, fake)
    yaw_plan = float(e["yaw"])
    yaw_raw = float(Y.unwrap_near(yaw_read, yaw_plan))
    yaw = round(yaw_raw, 1)
    info = {"place": int(place), "block_pixel": np.round(uv, 1).tolist(), "block_yaw_deg": yaw, "block_read": det,
            "plan_pixel": e["pixel"], "yaw_plan": yaw_plan, "from_candidate": bool(e.get("from_candidate")),
            "pixel_from_plan_px": round(float(np.linalg.norm(uv - np.asarray(e["pixel"]))), 1)}
    d_px = float(np.linalg.norm(uv - np.asarray(e["pixel"])))
    try:
        ptol = float(os.environ.get("R401_PIXEL_TOL_PX", PIXEL_TOL_PX))   # 2026-12-01 エイイチ: 環境変数で広げられる
        if d_px > ptol:                              # 丸める前の値で比べる (codex R1 C4)
            raise Refused(f"ブロックが 場所{place} の目印から {info['pixel_from_plan_px']:.0f} 画素 離れている (許し {ptol:g} 画素). 置き直す")
        ytol = float(os.environ.get("R401_YAW_TOL_DEG", Y.YAW_TOL_DEG))   # 2026-12-01 エイイチ: 目印から外した置き方の試しで広げる
        if abs(yaw_raw - yaw_plan) > ytol:            # 丸める前の値で比べる (codex R2 C4)
            raise Refused(f"ブロックの向き {yaw:+.1f}° が 割り振りの向き ({yaw_plan:+.1f}°) から ±{ytol:g}° より離れている. 置き直す")
        b = build(W, e, uv, yaw, lo, hi, plan.get("jaw_table_min_mm"))
        info.update(summary(b))
        bad = check_guards(b, allow_status)
        if bad:
            raise Refused(f"ガードに当たった: {bad}")
    except Refused as x:
        x.info = info
        raise
    return b, info


def summary(b):
    v = b["v"]
    return {"status": v["status"], "dz_mm": v["dz_mm"], "cmd": v["cmd"], "pred": v["pred"], "clearance_mm": b["clear"],
            "guards": b["guards"], "frames": len(b["path"]), "keyframes": {k: int(x) for k, x in v["frames"].items()},
            "shift_right_fwd_mm": v["info"].get("shift_right_fwd_mm"), "above_shifted": v["info"].get("above_shifted"),
            "step_max_joint_deg": b["step_max_joint_deg"], "step_max_grip": b["step_max_grip"], "solve_steps": v.get("steps")}


def plan_doc(b, info, plan_path):
    d = {"request": 401, "what": "rule_401 のコードの道 (HOME → つかむ → 箱 → HOME). 関節 6 つ (LeRobot の度・爪 0〜100)",
         "joints": R.MOTORS, "fps": R.FPS, "plan_sha256": sha256(plan_path), "arm_response_sha256": sha256(ARM_RESPONSE), **info}
    if b is not None:
        d["path"] = np.round(b["path"], 3).tolist()
        d["pred_path"] = np.round(np.asarray(b["v"]["pred_path"]), 3).tolist()
        d["rule351_path"] = np.round(np.asarray(b["res"]["path"]), 3).tolist()
        d["keyframes_pose"] = b["v"]["keyframes"]
    return d


# ---- 流す ------------------------------------------------------------------------------------------

def _pace(nxt, clock, sleep):
    nxt += 1.0 / R.FPS
    dt = nxt - clock()
    if dt > 0:
        sleep(dt)
        return nxt
    return clock()


HOLD_MAX = 60                       # 2 秒
HOLD_STILL_DEG = 0.5                # 止まったとみなす: 続けて読んだ関節 5 つの差がこれ以下 (codex R3 C1)


def hold_here(arm, clock=time.perf_counter, sleep=time.sleep):
    """関節 5 つを今の位置・爪を前の目標にして 送る (入口の B で切られても 毎コマ読み直して HOLD_MAX コマまで送り直す).
    → 止まったか: 送れた目標が その直前に読んだ位置と同じ (B・安全範囲 A で切られていない) で, かつ 前のコマに読んだ位置から
    関節 5 つが HOLD_STILL_DEG 以内 (腕が止まっている) とき True. 腕が動き続けている・A で切られる・届かないときは False
    (呼ぶ側は「止めました」と言わず 止まり切っていないと出す. codex R3 C1)"""
    nxt, prev = clock(), None
    for _ in range(HOLD_MAX):
        p, _, _ = arm.observe()
        p = np.asarray(p, np.float64)
        t = R.pause_target(p, arm.last_sent)
        sent = arm.send(t)
        reached = bool(np.all(np.abs(np.asarray(sent, np.float64) - t) < 1e-6))
        still = prev is not None and float(np.abs(p[:5] - prev[:5]).max()) <= HOLD_STILL_DEG
        if reached and still:
            return True
        prev = p
        nxt = _pace(nxt, clock, sleep)
    return False


HOLD_FAILED = "止める目標が今の位置に届かない・腕が止まり切らない ({} コマ). 最後に送れた目標のまま. 腕を見てください"


class Runner:
    def __init__(self, arm, recorder, keys, max_step, out=print, clock=time.perf_counter, sleep=time.sleep):
        """recorder: 記録 (add を持つ) か 記録を作る関数 (道の 1 コマ目を送る直前に呼ぶ. 寄せ・HOME で止めたときは作らない. codex R1 B3)"""
        self.arm, self.rec, self.keys, self.max_step = arm, recorder, keys, float(max_step)
        self.out, self.clock, self.sleep = out, clock, sleep
        self.info = {"frames_code": 0, "step_clipped_frames": 0, "stopped": "", "status": "not_started"}

    def send(self, target, count=False):
        t = np.asarray(target, np.float64)
        if self.max_step < R.MAX_STEP_DEG:
            t, cut = R.step_clip(t, self.arm.last_sent, self.max_step)
            if count:
                self.info["step_clipped_frames"] += int(cut)
        return self.arm.send(t)

    def hold_here(self):
        """その場で止める (関節 5 つは今の位置・爪は前の目標). 入口の B (1 コマ 関節 10°) で切られて今の位置に届かないときは
        届くまで送り直す (HOLD_MAX コマまで. codex R2 C1). → 止まったか. 止まり切らないときは info に hold_failed を立てて
        「止めました」と区別して出す (codex R3 C1)"""
        ok = hold_here(self.arm, self.clock, self.sleep)
        self.info["hold_ok"] = ok
        if not ok:
            self.info["hold_failed"] = True
            self.out(f"\033[1;37;41m[STOP  ] {HOLD_FAILED.format(HOLD_MAX)}\033[0m")
        return ok

    def _stopped(self, why):
        self.info.update(status="stopped" if self.info.get("hold_ok") else "stopped_not_held", stopped=why)
        self.out(f"[R401  ] {why}. " + ("その場で止めました" if self.info.get("hold_ok") else "止める目標を送ったが 止まり切っていない"))

    def stop_key(self, where):
        k = self.keys.poll()
        if k not in (" ", "q"):
            return False
        self.hold_here()
        self._stopped(f"{'スペース' if k == ' ' else 'q'} ({where})")
        return True

    def run(self, path, pred=None):
        """寄せる → HOME で待つ → 道を送りながら録る. → True (全部送った) / False (止めた).
        pred: 予想の道 (rule_401 の pred_path. pred[k] = 指令 k への応え). あれば 道の k コマ目で読んだ関節と pred[k − 1] の差が
        TRACK_STOP_DEG を超えたら その場で止める (codex R1 C1). 道の 1 コマの変化が --max-step-deg を超える道は 送らない
        (切ると 確かめた道と違う道を送るため)"""
        arm = self.arm
        path = np.asarray(path, np.float64)
        step = float(np.abs(np.diff(path[:, :5], axis=0)).max())
        if step > self.max_step + 1e-9:
            raise Refused(f"道の 1 コマの変化 {step:.2f}° が --max-step-deg {self.max_step:g}° を超える (切ると確かめた道と違う道になる)")
        state0, _, _ = arm.observe()
        d0 = float(np.abs(np.asarray(state0, np.float64)[:5] - path[0, :5]).max())
        self.info["start_from_home_deg"] = round(d0, 2)
        # 2026-12-01 エイイチ: 許しを環境変数 R401_START_TOL_DEG で広げられる (既定 10°). 広げた分の寄せは 1 コマ 2° に切ってゆっくり
        tol = float(os.environ.get("R401_START_TOL_DEG", START_TOL_DEG))
        dj = np.round(np.asarray(state0, np.float64)[:5] - path[0, :5], 1).tolist()
        self.info["start_from_home_joints_deg"] = dj
        if d0 > tol:
            raise Refused(f"今の姿勢が HOME から {d0:.1f}° 離れている (許し {tol:g}°. 関節ごとの差 {dj}). 腕を休みの姿勢に戻してから")
        self.info["status"] = "approach"
        n, nxt = 0, self.clock()
        while True:                                     # 寄せる (録らない)
            if self.stop_key(f"寄せの {n} コマ目"):
                return False
            tgt = path[0]
            if d0 > START_TOL_DEG:
                tgt, _ = R.step_clip(np.asarray(path[0], np.float64), self.arm.last_sent, 2.0)
            sent = self.send(tgt)
            n += 1
            if np.all(np.abs(np.asarray(sent, np.float64) - path[0]) < 1e-6):
                break
            if n > APPROACH_MAX_FRAMES:
                raise RuntimeError(f"{APPROACH_MAX_FRAMES} コマ送っても道の 1 コマ目に着かない")
            nxt = _pace(nxt, self.clock, self.sleep)
        self.info["approach_frames"] = n
        nxt = self.clock()
        for k in range(HOME_SETTLE_MAX + 1):            # HOME で待つ (録らない)
            if self.stop_key(f"HOME で待つ {k} コマ目"):
                return False
            st, _, _ = arm.observe()
            d = float(np.abs(np.asarray(st, np.float64)[:5] - path[0, :5]).max())
            if d <= HOME_SETTLE_DEG:
                self.info.update(home_settle_frames=k, home_settle_deg=round(d, 2))
                break
            if k == HOME_SETTLE_MAX:
                self.hold_here()
                self._stopped(f"HOME で {HOME_SETTLE_MAX} コマ待っても {d:.1f}° (許し {HOME_SETTLE_DEG:g}°)")
                return False
            self.send(path[0])
            nxt = _pace(nxt, self.clock, self.sleep)
        self.info["status"] = "running"
        self.info["track_max_deg"] = 0.0
        nxt = self.clock()
        for i, target in enumerate(path):
            if self.stop_key(f"道の {i} コマ目"):
                return False
            state, desk, wrist = arm.observe()
            if pred is not None and i > 0:
                dt = float(np.abs(np.asarray(state, np.float64)[:5] - np.asarray(pred[i - 1], np.float64)[:5]).max())
                self.info["track_max_deg"] = max(self.info["track_max_deg"], round(dt, 2))
                if dt > TRACK_STOP_DEG:
                    self.hold_here()
                    self._stopped(f"道の {i} コマ目で 実際の関節が予想から {dt:.1f}° (許し {TRACK_STOP_DEG:g}°)")
                    return False
            current = arm.read_currents() if hasattr(arm, "read_currents") else None
            if callable(self.rec) and not hasattr(self.rec, "add"):
                self.rec = self.rec()            # 記録は 1 コマ目を送る直前に作る (codex R2 B3). 作ってから 0 コマ目を記録する前に止まったら
                #                                  execute が空の記録を消す (drop_empty_local. codex R3 B3)
            sent = self.send(target, count=True)
            kw = {"current": current} if current is not None else {}
            self.rec.add(state, desk, wrist, target, sent, R.CODE, **kw)
            self.info["frames_code"] = i + 1
            nxt = _pace(nxt, self.clock, self.sleep)
        self.info["status"] = "done"
        return True


# ---- 1 回 ------------------------------------------------------------------------------------------

def parse_fake(s, plan, place, use_candidate):
    if s is None:
        return None
    if s == "marker":
        e = episode_of(plan, place, use_candidate)
        return (float(e["pixel"][0]), float(e["pixel"][1]), 0.0)
    u, v, y = (float(x) for x in s.split(","))
    return (u, v, y)


def dry_run(args, plan, lo, hi):
    W = world()
    arm = None
    try:
        fake = parse_fake(args.fake, plan, args.place, args.place1_candidate)
        desk = None
        if fake is None:
            arm = R.DryArm()
            _, desk, _ = arm.observe()
        try:
            b, info = prepare(W, plan, args.place, lo, hi, desk, fake, args.place1_candidate, tuple(args.allow_status))
            ok, why = True, ""
        except Refused as x:
            b, info, ok, why = None, getattr(x, "info", {}), False, str(x)
    finally:
        if arm is not None:
            arm.close()
    DRY_DIR.mkdir(parents=True, exist_ok=True)
    stamp = datetime.now().strftime("%Y%m%d_%H%M%S")
    name = f"dry_place{args.place}_{'fake' if fake is not None else 'cam'}_{stamp}.json"
    doc = dict(plan_doc(b, info, args.plan), dry_run=True, fake=fake, would_send=ok, refused=why)
    (DRY_DIR / name).write_text(json.dumps(doc, ensure_ascii=False) + "\n")
    print_summary(info, ok, why)
    print(f"[DRY   ] {DRY_DIR / name}")
    return 0 if ok else EXIT_REFUSED


def print_summary(info, ok, why):
    p, c = info.get("pred") or {}, info.get("cmd") or {}
    print(f"[R401  ] 場所{info.get('place')}: ブロック 画素 {info.get('block_pixel')}・向き {info.get('block_yaw_deg')}°・"
          f"目印から {info.get('pixel_from_plan_px')} 画素")
    if c:
        print(f"[R401  ] 下げ {info.get('dz_mm')} mm ({info.get('status')}). つかむ所の爪と机 指令 {c.get('grasp_jaw_table')}・予想 "
              f"{p.get('grasp_jaw_table')}・沈み最大 {c.get('grasp_jaw_table_sagmax')} mm. 下りる間 固定側 指令 {c.get('fixed_min')}/予想 "
              f"{p.get('fixed_min')}・動く爪 {c.get('moving_min')}/{p.get('moving_min')} mm. 持ち上げの始めの予想 {p.get('lift_start_jaw_table_min')} mm")
        print(f"[R401  ] 道 {info.get('frames')} コマ ({(info.get('frames') or 0) / R.FPS:.1f} 秒). 1 コマ最大 {info.get('step_max_joint_deg')}°・"
              f"爪 {info.get('step_max_grip')}. シムの距離 (mm) {info.get('clearance_mm')}")
    print(f"[R401  ] {'送れる' if ok else '動かさない: ' + why}")


def safe_hold(arm):
    """例外・Ctrl-C のあと 閉じる前に その場で止める (codex R2 C1). → 止まったか.
    読めない・送れない・止まり切らないときは 最後に送れた目標のまま (サーボが保つ) 閉じる (codex R3 C1: 出す文を実際に合わせた)"""
    if arm is None:
        return False
    try:
        ok = hold_here(arm)
        if ok:
            print("[STOP  ] その場で止める目標を送り 腕が止まりました")
        else:
            print(f"\033[1;37;41m[STOP  ] {HOLD_FAILED.format(HOLD_MAX)}\033[0m")
        return ok
    except BaseException as x:          # 読めない・送れない (通信の失敗・もう一度の Ctrl-C など)
        print(f"\033[1;37;41m[STOP  ] その場で止める目標を送れない ({type(x).__name__}: {x}). 最後に送れた目標のまま閉じます. 腕を見てください\033[0m")
        return False


def drop_empty_local(local, existed):
    """道の 0 コマ目を記録する前に止まった回の ローカルの記録 (空・作りかけ) を消す (codex R3 B3). 今回作ったフォルダだけ
    (始める前になかった・~/so101_runs の下・試行の名前). → 消したか"""
    import shutil
    local = Path(local)
    if existed or not local.exists():
        return False
    if R.LOCAL_RUNS.resolve() not in local.resolve().parents or not local.name.startswith("so101_"):
        return False
    shutil.rmtree(local)
    return True


def kioxia_bad(log_dir):
    """記録の置き場所が つながっている KIOXIA の上のフォルダか. → だめな理由 か "" (codex R1 D6)"""
    p = Path(log_dir).resolve()
    if not os.path.ismount(KIOXIA):
        return f"KIOXIA がつながっていない ({KIOXIA})"
    if KIOXIA not in p.parents:
        return f"記録の置き場所が KIOXIA の上ではない: {p}"
    if not p.is_dir():
        return f"記録の置き場所がない: {p}"
    return ""


def execute(args, plan, lo, hi):
    import lerobot_safe_259 as safe
    log_dir = Path(args.log_dir)
    bad = kioxia_bad(log_dir)
    if bad:
        sys.exit(f"[ERROR] {bad}")
    W = world()                                  # アームを開く前に読む
    stamp = datetime.now().strftime("%Y%m%d_%H%M%S")
    trial = f"so101_{stamp}"
    local = R.LOCAL_RUNS / log_dir.name / trial
    local.parent.mkdir(parents=True, exist_ok=True)
    safe.check_dataset_root(local)
    if local.exists():                           # 止まった回に消すのは 今回作ったフォルダだけ (codex R3 B3)
        sys.exit(f"[ERROR] ローカルの記録がもうある: {local}")
    current_motors = R.CURRENT_SETS[args.currents]
    arm, recorder, runner, b, info, err, result, reason = None, None, None, None, {}, "", "", ""
    held = False                                 # 例外・Ctrl-C のあと safe_hold を呼んだか
    try:
        arm = R.LiveArm(current_motors)
        _, desk, _ = arm.observe()
        try:
            b, info = prepare(W, plan, args.place, lo, hi, desk, None, args.place1_candidate, tuple(args.allow_status))
        except Refused as x:
            info = getattr(x, "info", {})
            print_summary(info, False, str(x))
            print(f"\n\033[1;37;41m   動かしません: {x}   \033[0m")
            return EXIT_REFUSED
        print_summary(info, True, "")
        st0, _, _ = arm.observe()
        d0 = float(np.abs(np.asarray(st0, np.float64)[:5] - b["path"][0, :5]).max())
        tol0 = float(os.environ.get("R401_START_TOL_DEG", START_TOL_DEG))
        if d0 > tol0:                            # Runner.run も確かめる. 記録を作る前に止める
            dj0 = np.round(np.asarray(st0, np.float64)[:5] - b["path"][0, :5], 1).tolist()
            print(f"\n\033[1;37;41m   動かしません: 今の姿勢が HOME から {d0:.1f}° 離れている (許し {tol0:g}°. 関節ごとの差 {dj0})   \033[0m")
            return EXIT_REFUSED
        loosened = [x for x in (f"status {info.get('status')} (--allow-status)" if info.get("status") != "ok" else "",
                                "場所1 の候補の置き方 (--place1-candidate)" if info.get("from_candidate") else "") if x]
        if loosened:                             # codex R1 C5: 緩める口を使う回は 毎回 yes を打つ (--skip-first-confirm でも)
            print(f"\033[1;33m[R401  ] この回は 決まりの外の口を使います: {' / '.join(loosened)}\033[0m")
            if input("流すなら yes と打つ > ").strip() != "yes":
                print("[R401  ] yes でないので動かしません")
                return EXIT_REFUSED
        elif not args.skip_first_confirm:
            input("Enter で始める (Ctrl-C でやめる) > ")
        made = []

        def make_recorder():
            made.append(R.Recorder(local, f"local/{trial}", current_motors=current_motors, max_step=args.max_step_deg))
            return made[0]
        with R.KeyReader() as keys:
            keys.start()
            runner = Runner(arm, make_recorder, keys, args.max_step_deg)
            try:
                runner.run(b["path"], b["v"]["pred_path"])
            finally:
                recorder = made[0] if made else None
    except KeyboardInterrupt:
        err = "Ctrl-C"
        print("\n[STOP  ] Ctrl-C で止めました")
        held = True
        safe_hold(arm)
    except Refused as x:
        err = str(x)
        print(f"\n\033[1;37;41m   動かしません: {x}   \033[0m")
        held = True
        safe_hold(arm)
    except Exception as x:
        err = f"{type(x).__name__}: {x}"
        print(f"\n[STOP  ] 失敗で止まりました: {err}")
        held = True
        safe_hold(arm)
    finally:
        # 後始末 (結果を聞く・記録を閉じる) の間の Ctrl-C・例外も 閉じる前に その場で止める目標を送る (codex R3 C1)
        cleanup_err, close_failed = "", False
        try:
            if recorder is not None and recorder.n and runner is not None and runner.info.get("status") == "done":
                result = R.ask_result()
                reason = R.ask_fail_reason() if result == "failure" else ""
        except BaseException as x:               # Ctrl-C・EOF なら 結果は記録しない (今までどおり)
            result, reason = "", ""
            cleanup_err = f"結果を聞く間に {type(x).__name__}"
            print(f"\n[STOP  ] {cleanup_err}")
            if not held:                          # 記録を閉じる前に 止める目標を送る (codex R4 C1: 止める → 記録を閉じる → 腕を閉じる)
                held = True
                safe_hold(arm)
        try:
            try:
                if recorder is not None:
                    recorder.close()
            except BaseException as x:
                cleanup_err = f"記録を閉じる間に {type(x).__name__}: {x}"
                err = err or cleanup_err
                recorder, close_failed = None, True     # 閉じられなかった記録は 写さない・台帳に書かない・消さない
                print(f"\n[STOP  ] {cleanup_err}")
                if not held:
                    held = True
                    safe_hold(arm)
        finally:
            if arm is not None:
                arm.close()
    if recorder is None or not recorder.n:       # 道を送る前に止めた (寄せの途中を含む. 記録も台帳も KIOXIA に作らない)
        if close_failed:
            print(f"[ERROR] 記録を閉じられない. ローカル {local} を見てください (台帳には書いていません)")
            return 1
        if drop_empty_local(local, existed=False):      # 0 コマ目を記録する前に止まった回の 空・作りかけの記録 (codex R3 B3)
            print(f"[R401  ] 0 コマ目を記録する前に止まったので ローカルの空の記録を消しました: {local}")
        print(f"[R401  ] 道を送る前に止めたので 台帳に書きません ({err or (runner.info.get('stopped') if runner else '')})")
        return EXIT_REFUSED if err else 0
    bad = kioxia_bad(log_dir)
    if bad:                                      # 写す前にも確かめる (ローカルの記録は ~/so101_runs に残る)
        print(f"[ERROR] {bad}. 記録はローカル {local} に残っています (台帳には書いていません)")
        return 1
    dst = log_dir / "so101" / trial
    dst.parent.mkdir(parents=True, exist_ok=True)
    n_files = R.copy_record(local, dst)
    modes = recorder.modes
    ri = runner.info if runner is not None else {}
    row = {"trial": trial, "started_at": stamp, "operator": OPERATOR, "place": args.place, "model": MODEL_NAME, "step": STEP_NAME,
           "exec_steps": "", "execute": 1, "result": result, "frames": len(modes), "frames_model": modes.count(R.MODEL),
           "frames_correct": modes.count(R.CORRECT), "frames_pause": modes.count(R.PAUSE), "queries": 0,
           "clipped_frames": ri.get("step_clipped_frames", 0), "record_dir": str(dst), "prefetch": "", "fail_reason": reason,
           "currents": args.currents, "play_speed": 1.0, "rtc": 0, "blend": 0, "max_step_deg": args.max_step_deg}
    R.append_trial(log_dir / R.TRIALS_CSV, row)
    (dst / PLAN_FILE).write_text(json.dumps(plan_doc(b, info, args.plan), ensure_ascii=False) + "\n")
    (dst / "trial.json").write_text(json.dumps({**row, "rule401": {k: v for k, v in info.items()}, "run": ri, "stopped_by": err,
                                                 "safe_range": {"lo": lo.tolist(), "hi": hi.tolist()}},
                                                ensure_ascii=False, indent=2, default=str) + "\n")
    print(f"[RECORD] {dst} ({n_files} ファイル) / 1 行 → {log_dir / R.TRIALS_CSV}")
    return 0


def main(argv=None):
    ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    ap.add_argument("--place", type=int, choices=range(1, 6), required=True)
    ap.add_argument("--plan", default=str(PLAN))
    ap.add_argument("--log-dir", help="記録の置き場所 (KIOXIA の lab/<Log>). --execute のとき要る")
    g = ap.add_mutually_exclusive_group(required=True)
    g.add_argument("--execute", action="store_true", help="フォロワーに送る")
    g.add_argument("--dry-run", action="store_true", help="送らない. 道と予想のすき間を check_401/dry_run/ に書く")
    ap.add_argument("--fake", default=None, help="--dry-run で カメラを開かず U,V,YAW (画素・度) か marker (割り振りの目印・0°) を読んだことにする")
    ap.add_argument("--skip-first-confirm", action="store_true", help="始めの確かめ (Enter) を待たない (2 回目の試行から)")
    ap.add_argument("--max-step-deg", type=float, default=R.MAX_STEP_DEG, help="関節 5 つの 1 コマの変化の上限 (1〜10. 緩めない)")
    ap.add_argument("--currents", choices=sorted(R.CURRENT_SETS), default="off")
    ap.add_argument("--allow-status", nargs="*", default=[], choices=["conflict", "deep_at_zero"],
                    help="rule_401 の status が ok でなくても流す (conflict = 予想で −6 mm を守り 指令が +1 mm より上. エイイチが決めたときだけ)")
    ap.add_argument("--place1-candidate", action="store_true", help="場所1 は割り振りの候補 (目印から寄せた所) を使う (エイイチが決めたときだけ)")
    args = ap.parse_args(argv)
    if not 1.0 <= args.max_step_deg <= R.MAX_STEP_DEG:
        ap.error(f"--max-step-deg は 1〜{R.MAX_STEP_DEG:g}")
    if args.fake is not None and not args.dry_run:
        ap.error("--fake は --dry-run のときだけ")
    if args.execute and not args.log_dir:
        ap.error("--execute には --log-dir が要る")
    try:
        plan, lo, hi = load_plan(args.plan)
    except Refused as x:
        sys.exit(f"[ERROR] {x}")
    if args.dry_run:
        return dry_run(args, plan, lo, hi)
    return execute(args, plan, lo, hi)


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

### so101/check_401/session_401.sh

```bash
#!/bin/bash
# 依頼 401: つかみ方の決まり rule_401 (案 C) を コードだけで実機に流す案内 (学習なし・Pod なし). エイイチの確かめのあとに使う.
#   1 回 = so101/check_401/run_rule401.py を 1 度. 場所ごとに 6 回 (so101f・g と同じ数え方). 台帳は KIOXIA lab/so101_Log12/so101_trials.csv
#   (model = code_rule401). 途中で止めて打ち直すと, 台帳で済んだ回を数えて続ける.
#   ブロックは目印 (場所の番号の所) に まっすぐ (0°) 置く (session_373・394 と同じ). 読めない・目印から 10 画素・向き ±8° → 動かさずに止まる.
#   場所1 は 目印では道が作れない (plan_401.json の candidate). PLACES に 1 を入れても run_rule401 が止める
#   (候補の所に置くと決めたときだけ R401_PLACE1=1 を付ける → --place1-candidate).
#
#   ./so101/check_401/session_401.sh --first      場所 (PLACES の最初. 既定 2) を 1 回だけ流して止める
#   ./so101/check_401/session_401.sh              PLACES × 6 回 (既定 2 3 4 5)
#   ./so101/check_401/session_401.sh --dry        アームなし (机のカメラだけ開いて読む. 送らない. check_401/dry_run/ に書く)
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
PLACES=${PLACES:-"2 3 4 5"}
N=${N:-6}
MODE=run; [ "${1:-}" = --first ] && MODE=first; [ "${1:-}" = --dry ] && MODE=dry
EXTRA=(); [ "${R401_PLACE1:-0}" = 1 ] && EXTRA+=(--place1-candidate)
ST=(); [ "${R401_ALLOW_CONFLICT:-0}" = 1 ] && ST+=(conflict); [ "${R401_ALLOW_DEEP:-0}" = 1 ] && ST+=(deep_at_zero)
[ ${#ST[@]} -gt 0 ] && EXTRA+=(--allow-status "${ST[@]}")   # 2026-12-01 エイイチ: 場所2・4 の conflict も流す (毎回 yes)
export SO101_VAR_ROLL_RANGE=-67,58

[ -d "$LOG" ] || { echo "[ERROR] KIOXIA がつながっていない: $LOG"; exit 1; }
[ -f so101/check_401/plan_401.json ] || { echo "[ERROR] 割り振りがない: so101/check_401/plan_401.json (plan_401.py で作る)"; exit 1; }

done_n() {   # 台帳で その場所の code_rule401 の 結果のある回 (y/n) を数える
    "$PY" - "$LOG/so101_trials.csv" "$1" <<'EOF'
import csv, sys
sys.path.insert(0, "so101")
import run_so101_policy as R
n = 0
try:
    with open(sys.argv[1], newline="") as f:
        for r in csv.DictReader(f, fieldnames=R.TRIAL_COLUMNS, restkey="_more"):
            if r["model"] == "code_rule401" and r["place"] == sys.argv[2] and r["result"] in ("success", "failure") and r["execute"] == "1":
                n += 1
except FileNotFoundError:
    pass
import os
print(max(0, n - int(os.environ.get("R401_COUNT_OFFSET", "0"))))   # 2026-12-01: 置き方を間違えた回を数えずにやり直すとき (台帳は書き換えない)
EOF
}

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

if [ $MODE = dry ]; then
    for p in $PLACES; do
        big "dry: 場所$p にブロックを まっすぐ置いて Enter"
        read -r _
        "$PY" so101/check_401/run_rule401.py --place "$p" --dry-run ${EXTRA[@]+"${EXTRA[@]}"}
    done
    exit 0
fi

first=1
for round in $(seq 1 "$N"); do
    for p in $PLACES; do
        while [ "$(done_n "$p")" -lt "$round" ]; do      # 動かさずに止まった・結果を記録しなかった回は 同じ回をやり直す
            d=$(done_n "$p")
            big "場所$p の $((d + 1)) 回目 (全 $N 回): ブロックを 場所$p の目印に まっすぐ置いて Enter (q で終わる)"
            read -r a
            [ "$a" = q ] && exit 0
            args=(--place "$p" --log-dir "$LOG" --execute ${EXTRA[@]+"${EXTRA[@]}"})
            [ $first = 0 ] && args+=(--skip-first-confirm)
            "$PY" so101/check_401/run_rule401.py "${args[@]}"
            rc=$?
            first=0
            if [ $rc = 3 ]; then
                echo "[INFO] 動かさずに止まった (置き直してもう一度)"
            elif [ $rc != 0 ]; then
                echo "[ERROR] 止まった (終了コード $rc). 続けるなら打ち直す"; exit $rc
            fi
            if [ $MODE = first ]; then
                echo "[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh"
                exit 0
            fi
        done
    done
done
big "済み: $(for p in $PLACES; do printf '場所%s %s 回  ' "$p" "$(done_n "$p")"; done)"
```


## 実機の57回を数えた ― analyze_618.py

台帳 so101_trials.csv の code_rule401 の57行と、各回の trial.json を読んで数えた（読むだけ）。置き方の組は、ブロックを置いた順番（時刻）で分けた。


### LOG618_work/analyze_618.py

```python
"""LOG618: rule_401 をコードだけで実機に流した 57 回 (2026-12-01) を数える.
読むだけ: KIOXIA lab/so101_Log12/so101_trials.csv と 各試行の trial.json.
置き方の組は、エイイチが置いた順番 (時刻) で分ける:
  目印にまっすぐ        : 10:11:00 より前
  目印から右へ 1.5cm   : 10:11:00〜10:25:39 (7回目のつもりで 4 か所 × 3 回置いた)
  8〜12 回目            : 10:28:06 から 4 回ずつ (場所2・3・4・5 の順) 左・奥・手前・回す・斜め＋回す
"""
import csv, json, os, sys, statistics as st
from collections import OrderedDict

ROOT = sys.argv[1] if len(sys.argv) > 1 else "/Volumes/KIOXIA/r2r2r-data/lab/so101_Log12"
ROUNDS = ["左へ 1.5cm", "奥へ 1.5cm", "手前へ 1.5cm", "15° ほど回す", "斜めに 2cm＋10° 回す"]

rows = [r for r in csv.DictReader(open(os.path.join(ROOT, "so101_trials.csv"))) if r["model"] == "code_rule401"]
out = []
later = [r for r in rows if r["started_at"] >= "20261201_102806"]
for r in rows:
    t = json.load(open(os.path.join(ROOT, "so101", r["trial"], "trial.json")))
    q, run = t["rule401"], t.get("run", {})
    s = r["started_at"]
    if s < "20261201_101100":
        g = "目印にまっすぐ"
    elif s < "20261201_102806":
        g = "目印から右へ 1.5cm"
    else:
        g = ROUNDS[later.index(r) // 4]
    out.append(OrderedDict(trial=r["trial"], time=s[9:], place=int(r["place"]), group=g,
        result=r["result"] or "-", run=run.get("status"), track_max_deg=run.get("track_max_deg"),
        status=q["status"], dz_mm=q["dz_mm"], px=q["pixel_from_plan_px"], yaw=q["block_yaw_deg"],
        grasp_cmd=q["cmd"]["grasp_jaw_table"], grasp_pred=q["pred"]["grasp_jaw_table"],
        lift_pred=q["pred"]["lift_start_jaw_table_min"], fixed_pred=q["pred"]["fixed_min"],
        start_from_home=run.get("start_from_home_deg")))

print("# 1 回ずつ")
print("| # | 時刻 | 場所 | 置き方 | 結果 | status | 下げ mm | 目印から 画素 | 向き ° | つかむ所 指令/予想 mm | 持ち上げの始め 予想 mm | 固定側 予想 mm | 追従の差 最大 ° |")
print("|---|---|---|---|---|---|---|---|---|---|---|---|---|")
for i, o in enumerate(out, 1):
    print(f"| {i} | {o['time']} | {o['place']} | {o['group']} | {o['result']}{'' if o['run']=='done' else '（'+str(o['run'])+'）'} | {o['status']} | {o['dz_mm']:+.2f} | {o['px']:.1f} | {o['yaw']:+.1f} | {o['grasp_cmd']:+.1f} / {o['grasp_pred']:+.1f} | {o['lift_pred']:+.1f} | {o['fixed_pred']:+.1f} | {o['track_max_deg']} |")

def summ(sel):
    ok = sum(o["result"] == "success" for o in sel)
    return ok, len(sel)

print("\n# 置き方ごと (途中で止めた回は 回数に入れない)")
print("| 置き方 | 場所2 | 場所3 | 場所4 | 場所5 | 計 | 目印から 画素 (幅) | 向き ° (幅) |")
print("|---|---|---|---|---|---|---|---|")
for g in ["目印にまっすぐ", "目印から右へ 1.5cm"] + ROUNDS:
    sel = [o for o in out if o["group"] == g and o["run"] == "done"]
    cells = []
    for p in (2, 3, 4, 5):
        a, b = summ([o for o in sel if o["place"] == p]); cells.append(f"{a}/{b}")
    a, b = summ(sel)
    px = [o["px"] for o in sel]; yw = [o["yaw"] for o in sel]
    print(f"| {g} | " + " | ".join(cells) + f" | {a}/{b} | {min(px):.1f}〜{max(px):.1f} | {min(yw):+.1f}〜{max(yw):+.1f} |")
done = [o for o in out if o["run"] == "done"]
a, b = summ(done)
print(f"| 計 | | | | | {a}/{b} | | |")
stopped = [o for o in out if o["run"] != "done"]
print(f"\n途中で止めた回: {len(stopped)}  " + "; ".join(f"{o['trial']} 場所{o['place']} {o['run']} 追従の差 {o['track_max_deg']}°" for o in stopped))

print("\n# status ごと (流し切った回)")
for s in ("ok", "conflict", "deep_at_zero"):
    sel = [o for o in done if o["status"] == s]
    if sel:
        a, b = summ(sel)
        print(f"- {s}: {a}/{b}  下げ {min(o['dz_mm'] for o in sel):+.2f}〜{max(o['dz_mm'] for o in sel):+.2f} mm・持ち上げの始め 予想 {min(o['lift_pred'] for o in sel):+.1f}〜{max(o['lift_pred'] for o in sel):+.1f} mm")
print(f"\n持ち上げの始めの予想が −6 mm より深かった回 (依頼401 の push_window で止まっていた回): {sum(o['lift_pred'] < -6.05 for o in done)}/{len(done)}")
print(f"目印から 10 画素より離れていた回 (依頼401 の許しの外): {sum(o['px'] > 10 for o in done)}/{len(done)}")
print(f"向きが割り振りから ±8° より離れていた回: {sum(abs(o['yaw']) > 8 and o['place'] != 5 or (o['place']==5 and abs(o['yaw']+2.5) > 8) for o in done)}/{len(done)}")
print(f"HOME から 10° より離れて始めた回: {sum((o['start_from_home'] or 0) > 10 for o in done)}/{len(done)}")
print(f"追従の差 最大 (流し切った回): 中央値 {st.median(o['track_max_deg'] for o in done):.2f}°・最大 {max(o['track_max_deg'] for o in done):.2f}°")
json.dump(out, open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "result_618.json"), "w"), ensure_ascii=False, indent=1)
```

### analyze_618.py の出力（analyze_618_out.txt）

```
# 1 回ずつ
| # | 時刻 | 場所 | 置き方 | 結果 | status | 下げ mm | 目印から 画素 | 向き ° | つかむ所 指令/予想 mm | 持ち上げの始め 予想 mm | 固定側 予想 mm | 追従の差 最大 ° |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 092453 | 3 | 目印にまっすぐ | success | ok | -0.79 | 9.1 | +2.2 | +0.9 / -2.4 | -6.1 | +7.4 | 4.17 |
| 2 | 092549 | 3 | 目印にまっすぐ | success | ok | -0.79 | 7.6 | -2.9 | +0.9 / -2.4 | -6.2 | +6.9 | 4.07 |
| 3 | 092935 | 3 | 目印にまっすぐ | success | ok | -0.79 | 5.3 | +2.8 | +0.9 / -2.4 | -6.0 | +7.4 | 2.74 |
| 4 | 093018 | 3 | 目印にまっすぐ | success | ok | -0.79 | 7.4 | +2.5 | +0.9 / -2.4 | -6.0 | +7.3 | 2.67 |
| 5 | 093131 | 3 | 目印にまっすぐ | success | ok | -0.79 | 8.8 | +0.8 | +0.9 / -2.4 | -6.0 | +7.3 | 2.42 |
| 6 | 093251 | 3 | 目印にまっすぐ | success | ok | -0.79 | 7.0 | -0.5 | +0.9 / -2.4 | -6.1 | +7.3 | 2.96 |
| 7 | 093506 | 2 | 目印にまっすぐ | success | conflict | -3.44 | 9.1 | +3.1 | +1.5 / -5.9 | -11.1 | +6.7 | 2.42 |
| 8 | 093547 | 4 | 目印にまっすぐ | success | conflict | -5.27 | 9.9 | +3.2 | +1.7 / -5.9 | -10.8 | +8.2 | 1.77 |
| 9 | 093749 | 5 | 目印にまっすぐ | success | ok | -2.70 | 8.1 | -0.1 | +0.9 / -2.4 | -9.9 | +14.0 | 2.4 |
| 10 | 093932 | 2 | 目印にまっすぐ | success | conflict | -3.65 | 10.1 | +4.5 | +1.2 / -5.9 | -6.7 | +7.0 | 2.33 |
| 11 | 094011 | 4 | 目印にまっすぐ | success | conflict | -4.84 | 6.6 | +2.6 | +2.2 / -5.9 | -10.6 | +7.8 | 1.52 |
| 12 | 094157 | 5 | 目印にまっすぐ | success | ok | -3.04 | 9.9 | -4.8 | +0.9 / -2.8 | -5.2 | +13.6 | 2.24 |
| 13 | 094318 | 2 | 目印にまっすぐ | success | conflict | -3.49 | 9.7 | +3.3 | +1.4 / -5.9 | -11.4 | +6.8 | 2.55 |
| 14 | 094418 | 4 | 目印にまっすぐ | success | conflict | -5.11 | 7.0 | +3.0 | +1.9 / -5.9 | -10.8 | +8.0 | 1.5 |
| 15 | 094609 | 5 | 目印にまっすぐ | success | ok | -2.76 | 16.2 | -2.2 | +0.9 / -2.4 | -9.9 | +14.1 | 2.6 |
| 16 | 094707 | 2 | 目印にまっすぐ | success | conflict | -3.20 | 11.1 | +1.0 | +1.8 / -5.9 | -11.0 | +6.6 | 2.38 |
| 17 | 094744 | 4 | 目印にまっすぐ | success | conflict | -5.00 | 11.4 | +2.3 | +2.0 / -5.9 | -10.6 | +8.1 | 1.57 |
| 18 | 095034 | 5 | 目印にまっすぐ | success | ok | -2.99 | 14.8 | -4.6 | +0.9 / -2.6 | -4.9 | +13.6 | 2.42 |
| 19 | 095108 | 2 | 目印にまっすぐ | -（stopped） | conflict | -3.60 | 12.2 | +3.8 | +1.3 / -5.9 | -6.7 | +6.8 | 11.51 |
| 20 | 095203 | 2 | 目印にまっすぐ | success | conflict | -3.31 | 12.1 | +1.7 | +1.6 / -5.9 | -6.5 | +6.7 | 2.42 |
| 21 | 095242 | 4 | 目印にまっすぐ | success | ok | -5.75 | 10.3 | +6.7 | +0.9 / -5.6 | -10.8 | +8.5 | 1.66 |
| 22 | 100116 | 5 | 目印にまっすぐ | success | ok | -2.49 | 14.5 | +1.6 | +0.9 / -2.4 | -9.9 | +14.2 | 2.55 |
| 23 | 100155 | 2 | 目印にまっすぐ | success | conflict | -3.55 | 14.0 | +2.9 | +1.3 / -5.9 | -11.1 | +6.9 | 2.54 |
| 24 | 100355 | 4 | 目印にまっすぐ | success | conflict | -4.92 | 9.2 | +1.9 | +2.1 / -5.9 | -10.7 | +8.0 | 2.71 |
| 25 | 100702 | 5 | 目印にまっすぐ | success | ok | -2.51 | 11.6 | +2.1 | +0.9 / -2.4 | -9.6 | +14.1 | 2.56 |
| 26 | 101100 | 2 | 目印から右へ 1.5cm | success | conflict | -3.67 | 13.0 | +3.9 | +1.2 / -5.9 | -11.2 | +7.0 | 2.56 |
| 27 | 101251 | 3 | 目印から右へ 1.5cm | success | ok | -0.79 | 16.7 | +3.6 | +0.9 / -2.4 | -5.8 | +7.4 | 3.14 |
| 28 | 101340 | 4 | 目印から右へ 1.5cm | success | conflict | -5.29 | 17.4 | +1.4 | +1.7 / -5.9 | -10.9 | +8.2 | 1.76 |
| 29 | 101611 | 5 | 目印から右へ 1.5cm | success | ok | -2.88 | 20.8 | -4.5 | +0.9 / -2.5 | -10.0 | +13.9 | 2.45 |
| 30 | 101648 | 2 | 目印から右へ 1.5cm | success | conflict | -3.64 | 17.7 | +2.9 | +1.2 / -5.9 | -6.6 | +7.0 | 2.42 |
| 31 | 101808 | 3 | 目印から右へ 1.5cm | success | ok | -0.79 | 16.0 | +3.0 | +0.9 / -2.4 | -5.9 | +7.4 | 2.93 |
| 32 | 101843 | 4 | 目印から右へ 1.5cm | success | ok | -5.87 | 12.4 | +4.4 | +0.9 / -6.0 | -11.2 | +8.3 | 1.34 |
| 33 | 102015 | 5 | 目印から右へ 1.5cm | success | ok | -2.41 | 20.6 | +1.7 | +0.9 / -2.4 | -4.8 | +14.3 | 2.42 |
| 34 | 102051 | 2 | 目印から右へ 1.5cm | success | ok | -3.84 | 18.2 | +4.9 | +0.9 / -5.8 | -11.2 | +7.2 | 2.67 |
| 35 | 102138 | 3 | 目印から右へ 1.5cm | success | ok | -0.79 | 11.6 | +1.2 | +0.9 / -2.3 | -5.8 | +7.5 | 2.56 |
| 36 | 102214 | 4 | 目印から右へ 1.5cm | success | conflict | -5.48 | 14.4 | +2.8 | +1.4 / -5.9 | -10.9 | +8.2 | 1.64 |
| 37 | 102539 | 5 | 目印から右へ 1.5cm | success | ok | -3.14 | 17.7 | -7.5 | +0.9 / -3.1 | -9.4 | +13.5 | 2.39 |
| 38 | 102806 | 2 | 左へ 1.5cm | success | conflict | -2.53 | 6.6 | -3.2 | +2.6 / -5.9 | -6.7 | +6.2 | 2.24 |
| 39 | 102845 | 3 | 左へ 1.5cm | success | ok | -0.79 | 10.5 | +1.4 | +0.9 / -2.4 | -6.2 | +7.3 | 4.23 |
| 40 | 102919 | 4 | 左へ 1.5cm | success | conflict | -4.58 | 2.0 | +2.5 | +2.6 / -5.9 | -10.5 | +7.7 | 1.66 |
| 41 | 102958 | 5 | 左へ 1.5cm | success | ok | -2.71 | 6.7 | +0.5 | +0.9 / -2.4 | -9.6 | +14.1 | 2.41 |
| 42 | 103106 | 2 | 奥へ 1.5cm | success | conflict | -3.61 | 14.6 | +3.4 | +1.2 / -5.9 | -11.4 | +6.8 | 2.51 |
| 43 | 103144 | 3 | 奥へ 1.5cm | success | ok | -0.79 | 20.2 | +5.7 | +0.9 / -2.5 | -6.0 | +7.4 | 3.82 |
| 44 | 103217 | 4 | 奥へ 1.5cm | success | conflict | -5.14 | 13.2 | +1.9 | +1.9 / -5.9 | -10.9 | +8.1 | 2.04 |
| 45 | 103331 | 5 | 奥へ 1.5cm | success | ok | -2.52 | 9.7 | +2.0 | +0.9 / -2.4 | -9.9 | +14.1 | 2.7 |
| 46 | 103405 | 2 | 手前へ 1.5cm | success | conflict | -3.59 | 17.7 | +2.8 | +1.3 / -5.9 | -9.3 | +6.9 | 2.24 |
| 47 | 103445 | 3 | 手前へ 1.5cm | success | ok | -0.79 | 6.4 | +2.4 | +0.9 / -2.3 | -5.8 | +7.4 | 2.61 |
| 48 | 103518 | 4 | 手前へ 1.5cm | success | conflict | -5.02 | 11.7 | +2.6 | +2.0 / -5.9 | -10.6 | +8.1 | 1.4 |
| 49 | 103612 | 5 | 手前へ 1.5cm | success | ok | -3.00 | 17.2 | -5.0 | +0.9 / -2.6 | -5.0 | +13.7 | 2.42 |
| 50 | 103818 | 2 | 15° ほど回す | success | ok | -3.29 | 14.1 | +17.0 | +0.9 / -3.8 | -6.7 | +8.3 | 2.33 |
| 51 | 103851 | 3 | 15° ほど回す | success | ok | -0.79 | 11.7 | +11.7 | +0.9 / -2.4 | -5.8 | +7.8 | 2.96 |
| 52 | 103926 | 4 | 15° ほど回す | success | conflict | -5.45 | 7.3 | +4.4 | +1.5 / -5.9 | -10.9 | +8.2 | 1.83 |
| 53 | 104502 | 5 | 15° ほど回す | success | ok | -2.49 | 15.2 | +1.6 | +0.9 / -2.4 | -9.6 | +14.2 | 2.49 |
| 54 | 104539 | 2 | 斜めに 2cm＋10° 回す | success | conflict | +0.00 | 35.7 | -2.7 | +4.9 / -2.7 | -5.7 | +6.5 | 2.68 |
| 55 | 104646 | 3 | 斜めに 2cm＋10° 回す | success | ok | -0.79 | 6.7 | +7.6 | +0.9 / -2.4 | -5.8 | +7.2 | 3.35 |
| 56 | 104832 | 4 | 斜めに 2cm＋10° 回す | success | ok | -4.95 | 29.0 | +11.5 | +0.9 / -2.8 | -8.9 | +11.3 | 1.75 |
| 57 | 105045 | 5 | 斜めに 2cm＋10° 回す | success | ok | -2.84 | 6.9 | +0.3 | +0.9 / -2.4 | -10.0 | +13.9 | 2.42 |

# 置き方ごと (途中で止めた回は 回数に入れない)
| 置き方 | 場所2 | 場所3 | 場所4 | 場所5 | 計 | 目印から 画素 (幅) | 向き ° (幅) |
|---|---|---|---|---|---|---|---|
| 目印にまっすぐ | 6/6 | 6/6 | 6/6 | 6/6 | 24/24 | 5.3〜16.2 | -4.8〜+6.7 |
| 目印から右へ 1.5cm | 3/3 | 3/3 | 3/3 | 3/3 | 12/12 | 11.6〜20.8 | -7.5〜+4.9 |
| 左へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 2.0〜10.5 | -3.2〜+2.5 |
| 奥へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 9.7〜20.2 | +1.9〜+5.7 |
| 手前へ 1.5cm | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 6.4〜17.7 | -5.0〜+2.8 |
| 15° ほど回す | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 7.3〜15.2 | +1.6〜+17.0 |
| 斜めに 2cm＋10° 回す | 1/1 | 1/1 | 1/1 | 1/1 | 4/4 | 6.7〜35.7 | -2.7〜+11.5 |
| 計 | | | | | 56/56 | | |

途中で止めた回: 1  so101_20261201_095108 場所2 stopped 追従の差 11.51°

# status ごと (流し切った回)
- ok: 33/33  下げ -5.87〜-0.79 mm・持ち上げの始め 予想 -11.2〜-4.8 mm
- conflict: 23/23  下げ -5.48〜+0.00 mm・持ち上げの始め 予想 -11.4〜-5.7 mm

持ち上げの始めの予想が −6 mm より深かった回 (依頼401 の push_window で止まっていた回): 41/56
目印から 10 画素より離れていた回 (依頼401 の許しの外): 34/56
向きが割り振りから ±8° より離れていた回: 3/56
HOME から 10° より離れて始めた回: 2/56
追従の差 最大 (流し切った回): 中央値 2.42°・最大 4.23°
```


## 実機のログ（ターミナルの出力の全部）

エイイチの Mac のターミナルの出力を、そのまま載せる。1つ目は目印どおりに置いた回（場所3の最初の回から、場所2・4・5の6回目まで）。止まった理由（ガードの値）と、値を変えて流し直したところも含む。2つ目は目印から外して置いた回。最後の2行の session_401.sh の文法の誤りは、回している間にスクリプトを書き換えたためで、書き換えたあとのファイルは文法の確かめを通っている。


### ターミナルの出力 1（目印どおり）

```
Last login: Mon Nov 30 15:55:43 on ttys003
(base) shimazueiichi@shimadzueiichinoMacBook-Pro ~ % cd ~/r2r2r-scripts
export SO101_VAR_ROLL_RANGE=-67,58
P=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python

# 0. カメラで読むだけ（アームは動かない）
$P so101/check_401/run_rule401.py --place 3 --dry-run

# 1. 場所3 を1回だけ流して止める
PLACES="3" ./so101/check_401/session_401.sh --first
zsh: command not found: #
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: ブロック 画素 [379.3, 100.0]・向き 0.1°・目印から 308.9 画素
[R401  ] 動かさない: ブロックが 場所3 の目印から 309 画素 離れている (許し 10 画素). 置き直す
[DRY   ] /Users/shimazueiichi/r2r2r-scripts/so101/check_401/dry_run/dry_place3_cam_20261201_091843.json
zsh: command not found: #

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

objc[3770]: 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 (0x1029143a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15b8183a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3770]: 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 (0x1029143f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15b8183f8). 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: ブロック 画素 [154.8, 307.2]・向き 2.7°・目印から 8.6 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -19.98 mm. 下りる間 固定側 指令 11.07/予想 7.39・動く爪 29.82/31.04 mm. 持ち上げの始めの予想 -6.12 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 136.1, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 動かさない: ガードに当たった: push_window: 予想の 閉じる間〜持ち上げの始めの 爪と机 -6.12 mm (上限 -6)

   動かしません: ガードに当たった: push_window: 予想の 閉じる間〜持ち上げの始めの 爪と机 -6.12 mm (上限 -6)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4049]: 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 (0x106ef03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12a5d03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4049]: 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 (0x106ef03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12a5d03f8). 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: ブロック 画素 [154.4, 307.0]・向き 2.8°・目印から 9.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.01 mm. 下りる間 固定側 指令 11.07/予想 7.39・動く爪 29.82/31.04 mm. 持ち上げの始めの予想 -6.13 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 136.5, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 動かさない: ガードに当たった: push_window: 予想の 閉じる間〜持ち上げの始めの 爪と机 -6.13 mm (上限 -6)

   動かしません: ガードに当たった: push_window: 予想の 閉じる間〜持ち上げの始めの 爪と机 -6.13 mm (上限 -6)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4155]: 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 (0x1046183a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1167483a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4155]: 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 (0x1046183f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1167483f8). 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: ブロック 画素 [154.4, 307.3]・向き 1.3°・目印から 8.7 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.07 mm. 下りる間 固定側 指令 11.09/予想 7.38・動く爪 29.8/31.05 mm. 持ち上げの始めの予想 -6.16 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 135.3, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる

   動かしません: 今の姿勢が HOME から 19.2° 離れている (許し 10°)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4461]: 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 (0x1027d83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1265943a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4461]: 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 (0x1027d83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1265943f8). 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: ブロック 画素 [154.7, 306.9]・向き 1.2°・目印から 9.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.08 mm. 下りる間 固定側 指令 11.08/予想 7.37・動く爪 29.81/31.05 mm. 持ち上げの始めの予想 -6.16 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 135.4, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる

   動かしません: 今の姿勢が HOME から 19.2° 離れている (許し 10°)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4577]: 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 (0x1023243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16569c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4577]: 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 (0x1023243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16569c3f8). 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: ブロック 画素 [154.7, 307.1]・向き 1.8°・目印から 8.8 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.04 mm. 下りる間 固定側 指令 11.08/予想 7.38・動く爪 29.81/31.05 mm. 持ち上げの始めの予想 -6.14 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 135.7, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる

   動かしません: 今の姿勢が HOME から 19.2° 離れている (許し 10°)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4634]: 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 (0x102cd83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d0143a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4634]: 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 (0x102cd83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d0143f8). 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: ブロック 画素 [154.7, 307.1]・向き 1.6°・目印から 8.8 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.05 mm. 下りる間 固定側 指令 11.08/予想 7.38・動く爪 29.81/31.05 mm. 持ち上げの始めの予想 -6.15 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 135.5, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる

   動かしません: 今の姿勢が HOME から 19.0° 離れている (許し 10°)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4691]: 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 (0x102b943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x117f343a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4691]: 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 (0x102b943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x117f343f8). 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: ブロック 画素 [154.4, 306.9]・向き 2.2°・目印から 9.1 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.05 mm. 下りる間 固定側 指令 11.08/予想 7.39・動く爪 29.81/31.04 mm. 持ち上げの始めの予想 -6.14 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 136.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[4691]: 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 (0x102b943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f7b0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4691]: 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 (0x102b943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f7b07c8). 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, 3199.98 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
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]: 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]
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_20261201_092453 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4788]: 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 (0x1063e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e0783a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4788]: 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 (0x1063e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e0783f8). 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  ] 場所None: ブロック 画素 None・向き None°・目印から None 画素
[R401  ] 動かさない: ブロックが読めない: 赤い塊が 2 つある (872・697 画素)

   動かしません: ブロックが読めない: 赤い塊が 2 つある (872・697 画素)   
[INFO] 動かさずに止まった (置き直してもう一度)
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh --first

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

objc[4848]: 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 (0x1042343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e9843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4848]: 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 (0x1042343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e9843f8). 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: ブロック 画素 [155.6, 308.0]・向き -2.9°・目印から 7.6 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.39・沈み最大 -20.13 mm. 下りる間 固定側 指令 10.68/予想 6.9・動く爪 30.06/31.37 mm. 持ち上げの始めの予想 -6.2 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 131.2, 'arm_block_pad10': 26.2, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[4848]: 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 (0x1042343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176ec8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4848]: 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 (0x1042343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176ec87c8). 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, 3138.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[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_20261201_092549 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
[INFO] --first: 1 回で止めます. 記録を見てから 続きを打つ: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-8 PLACES="3" ./so101/check_401/session_401.sh

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

objc[4992]: 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 (0x106b803a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1361983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4992]: 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 (0x106b803f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1361983f8). 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: ブロック 画素 [159.8, 310.4]・向き 2.8°・目印から 5.3 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.38・沈み最大 -19.51 mm. 下りる間 固定側 指令 11.02/予想 7.38・動く爪 29.85/31.08 mm. 持ち上げの始めの予想 -5.99 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 131.4, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
Enter で始める (Ctrl-C でやめる) > 
objc[4992]: 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 (0x106b803a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f470778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[4992]: 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 (0x106b803f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f4707c8). 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, 3282.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[warn]: Svt[info]: Preset M12 is mapped to M10.
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_20261201_092935 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[5086]: 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 (0x1064543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1472a43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5086]: 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 (0x1064543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1472a43f8). 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: ブロック 画素 [159.7, 308.1]・向き 2.5°・目印から 7.4 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.4・沈み最大 -19.65 mm. 下りる間 固定側 指令 11.0/予想 7.35・動く爪 29.87/31.09 mm. 持ち上げの始めの予想 -6.03 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 133.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[5086]: 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 (0x1064543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176200778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5086]: 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 (0x1064543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1762007c8). 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, 3551.16 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_20261201_093018 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[5161]: 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 (0x1027f03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14c0243a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5161]: 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 (0x1027f03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14c0243f8). 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.0, 306.6]・向き -0.4°・目印から 11.3 画素
[R401  ] 動かさない: ブロックが 場所3 の目印から 11 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所3 の目印から 11 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5214]: 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 (0x1029e83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1138fc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5214]: 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 (0x1029e83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1138fc3f8). 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.3, 309.4]・向き 0.8°・目印から 8.8 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.36・沈み最大 -19.4 mm. 下りる間 固定側 指令 10.93/予想 7.29・動く爪 29.9/31.16 mm. 持ち上げの始めの予想 -5.97 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 129.1, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[5214]: 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 (0x1029e83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x335318778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5214]: 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 (0x1029e83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3353187c8). 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, 3326.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_20261201_093131 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[5338]: 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 (0x1061ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14422c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5338]: 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 (0x1061ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14422c3f8). 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: ブロック 画素 [160.5, 308.8]・向き -0.5°・目印から 7.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.38・沈み最大 -19.72 mm. 下りる間 固定側 指令 11.02/予想 7.32・動く爪 29.84/31.13 mm. 持ち上げの始めの予想 -6.07 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 130.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[5338]: 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 (0x1061ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x301370778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5338]: 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 (0x1061ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3013707c8). 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, 3375.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 				: Svt[warn]: Preset M12 is mapped to M10.
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_20261201_093251 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  済み: 場所3 6 回  
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 PLACES="2 4 5" ./so101/check_401/session_401.sh

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

objc[5467]: 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 (0x1065643a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15d5b83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5467]: 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 (0x1065643f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15d5b83f8). 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: ブロック 画素 [240.1, 172.1]・向き 2.9°・目印から 7.5 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.9・予想 -8.87・沈み最大 -23.38 mm. 下りる間 固定側 指令 10.39/予想 3.63・動く爪 28.37/25.4 mm. 持ち上げの始めの予想 -9.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 196.4, 'arm_block_pad10': 29.3, 'held_table': 68.9, 'held_box': 32.9, 'jaw_table_grasp': 0.7}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.87 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.87 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5524]: 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 (0x1060243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1348f43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5524]: 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 (0x1060243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1348f43f8). 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: ブロック 画素 [241.4, 173.1]・向き 3.1°・目印から 9.1 画素
[R401  ] 下げ -3.44 mm (conflict). つかむ所の爪と机 指令 1.46・予想 -5.89・沈み最大 -26.7 mm. 下りる間 固定側 指令 10.33/予想 6.69・動く爪 24.77/25.42 mm. 持ち上げの始めの予想 -11.08 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 194.7, 'arm_block_pad10': 30.3, 'held_table': 72.3, 'held_box': 35.3, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[5524]: 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 (0x1060243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d554778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5524]: 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 (0x1060243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d5547c8). 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, 3120.48 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_20261201_093506 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[5619]: 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 (0x1050103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12349c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5619]: 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 (0x1050103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12349c3f8). 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.7, 256.7]・向き 3.2°・目印から 9.9 画素
[R401  ] 下げ -5.27 mm (conflict). つかむ所の爪と机 指令 1.7・予想 -5.89・沈み最大 -20.47 mm. 下りる間 固定側 指令 10.5/予想 8.2・動く爪 22.8/23.88 mm. 持ち上げの始めの予想 -10.82 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.0, 'arm_box': 33.1, 'arm_base': 91.5, 'arm_block_pad10': 32.9, 'held_table': 73.0, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[5619]: 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 (0x1050103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d7d8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5619]: 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 (0x1050103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d7d87c8). 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, 3408.48 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_20261201_093547 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[5703]: 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 (0x1066d43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1199dc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5703]: 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 (0x1066d43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1199dc3f8). 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.9, 161.7]・向き -3.7°・目印から 10.8 画素
[R401  ] 動かさない: ブロックが 場所5 の目印から 11 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所5 の目印から 11 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5757]: 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 (0x1058543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1577e43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5757]: 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 (0x1058543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1577e43f8). 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.4, 161.0]・向き -2.3°・目印から 12.6 画素
[R401  ] 動かさない: ブロックが 場所5 の目印から 13 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所5 の目印から 13 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5812]: 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 (0x1022283a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12ed583a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5812]: 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 (0x1022283f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12ed583f8). 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.0, 162.2]・向き 1.0°・目印から 10.5 画素
[R401  ] 動かさない: ブロックが 場所5 の目印から 10 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所5 の目印から 10 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5863]: 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 (0x1067383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11faec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5863]: 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 (0x1067383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11faec3f8). 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.0, 162.7]・向き -0.5°・目印から 10.8 画素
[R401  ] 動かさない: ブロックが 場所5 の目印から 11 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所5 の目印から 11 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[5913]: 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 (0x104e443a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x116f403a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5913]: 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 (0x104e443f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x116f403f8). 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.1, 157.3]・向き -0.1°・目印から 8.1 画素
[R401  ] 下げ -2.7 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.43・沈み最大 -27.46 mm. 下りる間 固定側 指令 11.08/予想 14.03・動く爪 29.61/25.55 mm. 持ち上げの始めの予想 -9.95 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.6, 'arm_box': 33.1, 'arm_base': 198.7, 'arm_block_pad10': 28.2, 'held_table': 70.0, 'held_box': 33.5, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[5913]: 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 (0x104e443a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16dcd4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[5913]: 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 (0x104e443f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16dcd47c8). 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, 2924.22 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
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_20261201_093749 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6015]: 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 (0x102cd03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x138dec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6015]: 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 (0x102cd03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x138dec3f8). 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.2, 170.9]・向き 2.7°・目印から 10.0 画素
[R401  ] 動かさない: ブロックが 場所2 の目印から 10 画素 離れている (許し 10 画素). 置き直す

   動かしません: ブロックが 場所2 の目印から 10 画素 離れている (許し 10 画素). 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  場所2 の 2 回目 (全 6 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================
q
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 R401_PIXEL_TOL_PX=20 PLACES="2 4 5" ./so101/check_401/session_401.sh

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

objc[6083]: 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 (0x1024203a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1425143a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6083]: 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 (0x1024203f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1425143f8). 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.2, 171.2]・向き 3.2°・目印から 10.1 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.87・予想 -8.75・沈み最大 -23.37 mm. 下りる間 固定側 指令 10.4/予想 3.76・動く爪 28.52/25.47 mm. 持ち上げの始めの予想 -9.81 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 196.3, 'arm_block_pad10': 29.2, 'held_table': 68.9, 'held_box': 32.9, 'jaw_table_grasp': 0.8}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.75 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.75 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[6136]: 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 (0x1044483a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a9443a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6136]: 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 (0x1044483f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a9443f8). 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.1, 174.0]・向き 4.5°・目印から 10.1 画素
[R401  ] 下げ -3.65 mm (conflict). つかむ所の爪と机 指令 1.2・予想 -5.9・沈み最大 -26.78 mm. 下りる間 固定側 指令 10.56/予想 7.04・動く爪 24.67/25.27 mm. 持ち上げの始めの予想 -6.66 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 196.6, 'arm_block_pad10': 30.3, 'held_table': 72.5, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[6136]: 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 (0x1044483a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ed38778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6136]: 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 (0x1044483f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16ed387c8). 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, 3328.11 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_20261201_093932 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6231]: 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 (0x102d583a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152dec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6231]: 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 (0x102d583f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152dec3f8). 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: ブロック 画素 [279.2, 257.4]・向き 2.6°・目印から 6.6 画素
[R401  ] 下げ -4.84 mm (conflict). つかむ所の爪と机 指令 2.25・予想 -5.86・沈み最大 -20.02 mm. 下りる間 固定側 指令 10.25/予想 7.84・動く爪 22.84/23.99 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.3, 'arm_block_pad10': 32.9, 'held_table': 72.6, 'held_box': 35.0, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[6231]: 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 (0x102d583a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174d0c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6231]: 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 (0x102d583f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174d0c7c8). 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, 3405.73 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_20261201_094011 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6358]: 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 (0x1022e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1317083a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6358]: 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 (0x1022e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1317083f8). 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] 動かさずに止まった (置き直してもう一度)

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

objc[6400]: 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 (0x102d843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1544583a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6400]: 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 (0x102d843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1544583f8). 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.0, 161.3]・向き -4.8°・目印から 9.9 画素
[R401  ] 下げ -3.04 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.79・沈み最大 -27.45 mm. 下りる間 固定側 指令 10.86/予想 13.56・動く爪 28.52/24.69 mm. 持ち上げの始めの予想 -5.22 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.9, 'arm_box': 33.1, 'arm_base': 199.8, 'arm_block_pad10': 28.5, 'held_table': 70.8, 'held_box': 33.8, 'jaw_table_grasp': 0.6}
[R401  ] 送れる
objc[6400]: 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 (0x102d843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1702c0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6400]: 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 (0x102d843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1702c07c8). 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, 3242.40 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_20261201_094157 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6492]: 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 (0x1061e83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f1803a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6492]: 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 (0x1061e83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f1803f8). 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: ブロック 画素 [245.6, 170.9]・向き -0.5°・目印から 12.4 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.99・予想 -9.21・沈み最大 -23.45 mm. 下りる間 固定側 指令 10.29/予想 3.21・動く爪 27.97/25.19 mm. 持ち上げの始めの予想 -10.05 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 197.2, 'arm_block_pad10': 29.5, 'held_table': 68.9, 'held_box': 33.0, 'jaw_table_grasp': 0.3}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.21 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.21 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[6546]: 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 (0x105a243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15541c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6546]: 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 (0x105a243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15541c3f8). 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: ブロック 画素 [240.3, 168.5]・向き 5.3°・目印から 6.9 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.8・予想 -8.61・沈み最大 -23.58 mm. 下りる間 固定側 指令 10.42/予想 3.95・動く爪 28.85/25.59 mm. 持ち上げの始めの予想 -9.46 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 202.2, 'arm_block_pad10': 29.1, 'held_table': 68.9, 'held_box': 32.8, 'jaw_table_grasp': 1.0}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.61 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.61 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[6608]: 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 (0x1045b43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1332683a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6608]: 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 (0x1045b43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1332683f8). 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.7, 166.2]・向き 3.3°・目印から 9.7 画素
[R401  ] 下げ -3.49 mm (conflict). つかむ所の爪と机 指令 1.38・予想 -5.9・沈み最大 -27.25 mm. 下りる間 固定側 指令 10.42/予想 6.77・動く爪 24.77/25.38 mm. 持ち上げの始めの予想 -11.42 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.7, 'arm_box': 33.1, 'arm_base': 195.8, 'arm_block_pad10': 23.5, 'held_table': 72.3, 'held_box': 35.3, 'jaw_table_grasp': -2.7}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[6608]: 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 (0x1045b43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fff8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6608]: 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 (0x1045b43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fff87c8). 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, 3423.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_20261201_094318 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6712]: 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 (0x1048b43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1297643a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6712]: 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 (0x1048b43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1297643f8). 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.6, 253.1]・向き 3.0°・目印から 7.0 画素
[R401  ] 下げ -5.11 mm (conflict). つかむ所の爪と机 指令 1.9・予想 -5.87・沈み最大 -20.56 mm. 下りる間 固定側 指令 10.37/予想 8.0・動く爪 22.87/23.96 mm. 持ち上げの始めの予想 -10.8 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.0, 'arm_box': 33.1, 'arm_base': 94.8, 'arm_block_pad10': 32.9, 'held_table': 72.8, 'held_box': 35.1, 'jaw_table_grasp': -2.9}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[6712]: 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 (0x1048b43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16da8c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6712]: 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 (0x1048b43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16da8c7c8). 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, 3460.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[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_20261201_094418 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[6787]: 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 (0x102f843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b85c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6787]: 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 (0x102f843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b85c3f8). 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: ブロック 画素 [411.8, 161.0]・向き 5.2°・目印から 7.4 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +5.2°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +5.2°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[6849]: 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 (0x106e583a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x124a003a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6849]: 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 (0x106e583f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x124a003f8). 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] 動かさずに止まった (置き直してもう一度)

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

objc[6883]: 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 (0x1075a83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7fc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6883]: 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 (0x1075a83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7fc3f8). 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: ブロック 画素 [419.6, 157.4]・向き 4.1°・目印から 12.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +4.1°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +4.1°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[6938]: 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 (0x102d343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14a7983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6938]: 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 (0x102d343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14a7983f8). 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: ブロック 画素 [423.0, 159.1]・向き -2.2°・目印から 16.2 画素
[R401  ] 下げ -2.76 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.43・沈み最大 -27.54 mm. 下りる間 固定側 指令 11.16/予想 14.08・動く爪 29.39/25.35 mm. 持ち上げの始めの予想 -9.95 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.7, 'arm_box': 33.1, 'arm_base': 199.3, 'arm_block_pad10': 28.3, 'held_table': 70.2, 'held_box': 33.5, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[6938]: 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 (0x102d343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1702a4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[6938]: 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 (0x102d343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1702a47c8). 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, 3385.16 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_20261201_094609 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7032]: 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 (0x104d603a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1541683a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7032]: 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 (0x104d603f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1541683f8). 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, 166.7]・向き 1.3°・目印から 14.3 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.91・予想 -9.0・沈み最大 -23.68 mm. 下りる間 固定側 指令 10.51/予想 3.66・動く爪 28.23/25.21 mm. 持ち上げの始めの予想 -9.0 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 194.4, 'arm_block_pad10': 29.4, 'held_table': 68.9, 'held_box': 32.9, 'jaw_table_grasp': 0.6}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.00 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.00 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[7089]: 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 (0x1025f83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12e2303a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7089]: 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 (0x1025f83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12e2303f8). 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, 174.2]・向き 1.0°・目印から 11.1 画素
[R401  ] 下げ -3.2 mm (conflict). つかむ所の爪と机 指令 1.77・予想 -5.89・沈み最大 -26.41 mm. 下りる間 固定側 指令 10.37/予想 6.63・動く爪 24.61/25.35 mm. 持ち上げの始めの予想 -10.98 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 193.7, 'arm_block_pad10': 30.4, 'held_table': 72.0, 'held_box': 35.3, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[7089]: 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 (0x1025f83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fc60778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7089]: 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 (0x1025f83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fc607c8). 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, 3178.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[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[info]: SVT [config]: main profile	tier (auto)	level (auto)
-------------------------------------------
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 [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_20261201_094707 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7220]: 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 (0x1027483a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x138a943a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7220]: 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 (0x1027483f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x138a943f8). 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, 259.9]・向き 2.3°・目印から 11.4 画素
[R401  ] 下げ -5.0 mm (conflict). つかむ所の爪と机 指令 2.05・予想 -5.87・沈み最大 -19.99 mm. 下りる間 固定側 指令 10.44/予想 8.09・動く爪 22.73/23.86 mm. 持ち上げの始めの予想 -10.63 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.1, 'arm_box': 33.1, 'arm_base': 89.6, 'arm_block_pad10': 33.0, 'held_table': 72.7, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[7220]: 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 (0x1027483a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fc54778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7220]: 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 (0x1027483f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fc547c8). 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, 3329.13 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[warn]: SVT [config]: AQ mode / variance boost 			: 2 / 0
Preset M12 is mapped to M10.
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_20261201_094744 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7353]: 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 (0x1047c03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154e1c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7353]: 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 (0x1047c03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154e1c3f8). 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, 166.8]・向き -4.6°・目印から 14.8 画素
[R401  ] 下げ -2.99 mm (ok). つかむ所の爪と机 指令 0.91・予想 -2.63・沈み最大 -27.01 mm. 下りる間 固定側 指令 10.88/予想 13.59・動く爪 28.7/24.91 mm. 持ち上げの始めの予想 -4.86 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.9, 'arm_box': 33.1, 'arm_base': 200.2, 'arm_block_pad10': 28.0, 'held_table': 70.7, 'held_box': 33.8, 'jaw_table_grasp': 0.7}
[R401  ] 送れる
objc[7353]: 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 (0x1047c03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x172230778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7353]: 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 (0x1047c03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1722307c8). 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, 3216.17 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_20261201_095034 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7446]: 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 (0x102eb43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x115f203a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7446]: 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 (0x102eb43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x115f203f8). 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: ブロック 画素 [244.0, 174.8]・向き 3.8°・目印から 12.2 画素
[R401  ] 下げ -3.6 mm (conflict). つかむ所の爪と机 指令 1.26・予想 -5.89・沈み最大 -26.64 mm. 下りる間 固定側 指令 10.36/予想 6.82・動く爪 24.79/25.41 mm. 持ち上げの始めの予想 -6.73 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 195.2, 'arm_block_pad10': 30.2, 'held_table': 72.4, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[7446]: 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 (0x102eb43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f528778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7446]: 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 (0x102eb43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f5287c8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
[R401  ] 道の 40 コマ目で 実際の関節が予想から 11.5° (許し 10°). その場で止めました
Map: 100%|████████████████████████████| 40/40 [00:00<00:00, 1920.29 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_20261201_095108 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7557]: 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 (0x10753c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14d4a83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7557]: 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 (0x10753c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14d4a83f8). 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: ブロック 画素 [244.1, 174.5]・向き 1.7°・目印から 12.1 画素
[R401  ] 下げ -3.31 mm (conflict). つかむ所の爪と机 指令 1.63・予想 -5.88・沈み最大 -26.44 mm. 下りる間 固定側 指令 10.37/予想 6.69・動く爪 24.67/25.37 mm. 持ち上げの始めの予想 -6.48 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 197.2, 'arm_block_pad10': 30.4, 'held_table': 72.1, 'held_box': 35.3, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[7557]: 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 (0x10753c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x126a58778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7557]: 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 (0x10753c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x126a587c8). 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, 3526.62 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_20261201_095203 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7650]: 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 (0x10336c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x10fa243a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7650]: 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 (0x10336c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x10fa243f8). 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, 258.3]・向き 6.7°・目印から 10.3 画素
[R401  ] 下げ -5.75 mm (ok). つかむ所の爪と机 指令 0.94・予想 -5.6・沈み最大 -20.88 mm. 下りる間 固定側 指令 10.54/予想 8.48・動く爪 23.59/24.5 mm. 持ち上げの始めの予想 -10.81 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.7, 'arm_box': 33.1, 'arm_base': 88.2, 'arm_block_pad10': 32.2, 'held_table': 73.4, 'held_box': 35.0, 'jaw_table_grasp': -2.6}
[R401  ] 送れる
objc[7650]: 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 (0x10336c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17063c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7650]: 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 (0x10336c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17063c7c8). 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, 3223.32 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]: [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
Level of Parallelism: 4
Svt[info]: Svt[info]: SVT [config]: bit-depth / color format 			: 8 / YUV420
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_20261201_095242 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[7820]: 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 (0x1029d83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b2bc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7820]: 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 (0x1029d83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b2bc3f8). 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: ブロック 画素 [417.1, 165.3]・向き 11.8°・目印から 14.1 画素
[R401  ] 動かさない: ブロックの向き +11.8° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +11.8° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[7888]: 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 (0x102abc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1556d03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7888]: 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 (0x102abc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1556d03f8). 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: ブロック 画素 [417.2, 159.7]・向き 4.8°・目印から 10.9 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +4.8°): 爪の面を机に垂直にできない (爪の面の傾き -9.2°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +4.8°): 爪の面を机に垂直にできない (爪の面の傾き -9.2°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[7941]: 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 (0x106bfc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f1883a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7941]: 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 (0x106bfc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14f1883f8). 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: ブロック 画素 [419.1, 156.7]・向き 7.1°・目印から 11.9 画素
[R401  ] 動かさない: ブロックの向き +7.1° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +7.1° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[7992]: 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 (0x104fc83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154dfc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7992]: 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 (0x104fc83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154dfc3f8). 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.9, 163.6]・向き 5.9°・目印から 14.4 画素
[R401  ] 動かさない: ブロックの向き +5.9° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +5.9° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8043]: 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 (0x102c243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1545cc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8043]: 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 (0x102c243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1545cc3f8). 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.8, 164.2]・向き 11.4°・目印から 14.7 画素
[R401  ] 動かさない: ブロックの向き +11.4° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +11.4° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8100]: 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 (0x104bf03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e3843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8100]: 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 (0x104bf03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13e3843f8). 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: ブロック 画素 [420.4, 159.7]・向き 9.0°・目印から 13.9 画素
[R401  ] 動かさない: ブロックの向き +9.0° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +9.0° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8159]: 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 (0x104dcc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1355903a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8159]: 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 (0x104dcc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1355903f8). 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.6, 157.2]・向き 1.6°・目印から 14.5 画素
[R401  ] 下げ -2.49 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -27.44 mm. 下りる間 固定側 指令 11.13/予想 14.22・動く爪 30.35/26.16 mm. 持ち上げの始めの予想 -9.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 200.1, 'arm_block_pad10': 27.9, 'held_table': 69.6, 'held_box': 33.3, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[8159]: 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 (0x104dcc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1739bc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8159]: 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 (0x104dcc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1739bc7c8). 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, 3150.87 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
Svt[info]: Level of Parallelism: 4
Number of PPCS 59
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 [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 [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_20261201_100116 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[8253]: 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 (0x1065f03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1175043a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8253]: 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 (0x1065f03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1175043f8). 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.1, 171.5]・向き 2.9°・目印から 14.0 画素
[R401  ] 下げ -3.55 mm (conflict). つかむ所の爪と机 指令 1.32・予想 -5.9・沈み最大 -26.81 mm. 下りる間 固定側 指令 10.52/予想 6.94・動く爪 24.65/25.27 mm. 持ち上げの始めの予想 -11.14 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 194.9, 'arm_block_pad10': 30.3, 'held_table': 72.4, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[8253]: 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 (0x1065f03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16bd5c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8253]: 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 (0x1065f03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16bd5c7c8). 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, 3504.11 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_20261201_100155 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[8367]: 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 (0x106d303a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1470743a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8367]: 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 (0x106d303f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1470743f8). 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.4, 255.4]・向き 1.9°・目印から 9.2 画素
[R401  ] 下げ -4.92 mm (conflict). つかむ所の爪と机 指令 2.15・予想 -5.88・沈み最大 -20.2 mm. 下りる間 固定側 指令 10.37/予想 7.97・動く爪 22.75/23.89 mm. 持ち上げの始めの予想 -10.67 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.1, 'arm_box': 33.1, 'arm_base': 93.4, 'arm_block_pad10': 33.0, 'held_table': 72.7, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[8367]: 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 (0x106d303a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x11a240778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8367]: 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 (0x106d303f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x11a2407c8). 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, 3471.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[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_20261201_100355 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[8503]: 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 (0x1048fc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d7183a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8503]: 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 (0x1048fc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d7183f8). 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: ブロック 画素 [419.3, 162.4]・向き 5.9°・目印から 14.0 画素
[R401  ] 動かさない: ブロックの向き +5.9° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す

   動かしません: ブロックの向き +5.9° が 割り振りの向き (-2.5°) から ±8° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8554]: 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 (0x10299c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a5ac3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8554]: 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 (0x10299c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a5ac3f8). 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.9, 161.6]・向き 1.5°・目印から 16.9 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.36・予想 -6.49・沈み最大 -24.7 mm. 下りる間 固定側 指令 11.17/予想 13.08・動く爪 32.89/23.57 mm. 持ち上げの始めの予想 -8.9 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 202.3, 'arm_block_pad10': 26.8, 'held_table': 67.1, 'held_box': 31.9, 'jaw_table_grasp': 3.4}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.49 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.49 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8605]: 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 (0x1031303a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x139d983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8605]: 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 (0x1031303f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x139d983f8). 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: ブロック 画素 [423.5, 159.3]・向き 3.6°・目印から 16.7 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +3.6°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +3.6°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8656]: 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 (0x1033e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152ed43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8656]: 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 (0x1033e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152ed43f8). 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.9, 163.9]・向き 2.1°・目印から 11.6 画素
[R401  ] 下げ -2.51 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.36・沈み最大 -26.81 mm. 下りる間 固定側 指令 11.04/予想 14.07・動く爪 30.31/26.24 mm. 持ち上げの始めの予想 -9.57 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 197.2, 'arm_block_pad10': 27.2, 'held_table': 69.6, 'held_box': 33.3, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[8656]: 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 (0x1033e43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1730a0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8656]: 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 (0x1033e43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1730a07c8). 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, 3406.81 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_20261201_100702 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

### ターミナルの出力 2（目印から外して置いた回）

```
Last login: Mon Nov 30 22:16:39 on ttys004
(base) shimazueiichi@shimadzueiichinoMacBook-Pro ~ % R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=20 N=12 PLACES="2 3 4 5" ./so101/check_401/session_401.sh
zsh: no such file or directory: ./so101/check_401/session_401.sh
(base) shimazueiichi@shimadzueiichinoMacBook-Pro ~ % cd ~/r2r2r-scripts
R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=20 N=12 PLACES="2 3 4 5" ./so101/check_401/session_401.sh

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

objc[8889]: 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 (0x104a1c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1462a43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8889]: 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 (0x104a1c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1462a43f8). 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: ブロック 画素 [244.4, 170.1]・向き 4.0°・目印から 11.1 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.83・予想 -8.63・沈み最大 -23.41 mm. 下りる間 固定側 指令 10.42/予想 3.91・動く爪 28.71/25.56 mm. 持ち上げの始めの予想 -9.73 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 197.0, 'arm_block_pad10': 29.1, 'held_table': 68.9, 'held_box': 32.8, 'jaw_table_grasp': 0.9}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.63 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.63 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[8947]: 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 (0x106cd43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1596803a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8947]: 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 (0x106cd43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1596803f8). 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: ブロック 画素 [246.2, 170.9]・向き 3.9°・目印から 13.0 画素
[R401  ] 下げ -3.67 mm (conflict). つかむ所の爪と机 指令 1.17・予想 -5.9・沈み最大 -26.97 mm. 下りる間 固定側 指令 10.5/予想 6.98・動く爪 24.72/25.3 mm. 持ち上げの始めの予想 -11.19 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 195.5, 'arm_block_pad10': 30.3, 'held_table': 72.5, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[8947]: 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 (0x106cd43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x170420778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[8947]: 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 (0x106cd43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1704207c8). 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, 3480.45 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_20261201_101100 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9102]: 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 (0x1068903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x119b943a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9102]: 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 (0x1068903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x119b943f8). 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: ブロック 画素 [172.3, 307.0]・向き 3.6°・目印から 16.7 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.36・沈み最大 -18.95 mm. 下りる間 固定側 指令 10.89/予想 7.37・動く爪 29.93/31.11 mm. 持ち上げの始めの予想 -5.79 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 130.2, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[9102]: 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 (0x1068903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1706c4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9102]: 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 (0x1068903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1706c47c8). 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, 3339.19 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]: Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
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 [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_20261201_101251 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9203]: 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 (0x106cc43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x168d103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9203]: 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 (0x106cc43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x168d103f8). 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: ブロック 画素 [292.0, 253.2]・向き 1.4°・目印から 17.4 画素
[R401  ] 下げ -5.29 mm (conflict). つかむ所の爪と机 指令 1.67・予想 -5.89・沈み最大 -20.68 mm. 下りる間 固定側 指令 10.52/予想 8.21・動く爪 22.8/23.87 mm. 持ち上げの始めの予想 -10.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.0, 'arm_box': 33.1, 'arm_base': 93.7, 'arm_block_pad10': 32.9, 'held_table': 73.0, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[9203]: 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 (0x106cc43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ffa8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9203]: 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 (0x106cc43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17ffa87c8). 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.11 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[warn]: Svt[info]: Svt[info]: -------------------------------------------
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_20261201_101340 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9307]: 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 (0x1062983a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x135e783a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9307]: 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 (0x1062983f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x135e783f8). 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: ブロック 画素 [427.8, 164.3]・向き 7.1°・目印から 22.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +7.1°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +7.1°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[9366]: 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 (0x106b583a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11b0303a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9366]: 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 (0x106b583f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11b0303f8). 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: ブロック 画素 [434.0, 159.6]・向き 7.6°・目印から 27.1 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +7.6°): 爪の面を机に垂直にできない (爪の面の傾き -11.0°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +7.6°): 爪の面を机に垂直にできない (爪の面の傾き -11.0°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[9431]: 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 (0x1070003a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13c6283a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9431]: 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 (0x1070003f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13c6283f8). 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: ブロック 画素 [428.3, 161.5]・向き 7.2°・目印から 22.0 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +7.2°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +7.2°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[9497]: 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 (0x105dec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15f1f43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9497]: 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 (0x105dec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15f1f43f8). 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: ブロック 画素 [427.3, 159.4]・向き 5.5°・目印から 20.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +5.5°): 爪の面を机に垂直にできない (爪の面の傾き -10.0°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +5.5°): 爪の面を机に垂直にできない (爪の面の傾き -10.0°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[9565]: 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 (0x1021b83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x151bc83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9565]: 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 (0x1021b83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x151bc83f8). 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: ブロック 画素 [427.5, 160.0]・向き -4.5°・目印から 20.8 画素
[R401  ] 下げ -2.88 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.45・沈み最大 -27.67 mm. 下りる間 固定側 指令 11.09/予想 13.95・動く爪 29.02/25.04 mm. 持ち上げの始めの予想 -9.97 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.8, 'arm_box': 33.1, 'arm_base': 200.3, 'arm_block_pad10': 28.4, 'held_table': 70.4, 'held_box': 33.7, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[9565]: 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 (0x1021b83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x170350778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9565]: 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 (0x1021b83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1703507c8). 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, 3364.83 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_20261201_101611 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9688]: 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 (0x105be83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x153e503a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9688]: 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 (0x105be83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x153e503f8). 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: ブロック 画素 [250.7, 172.3]・向き 2.9°・目印から 17.7 画素
[R401  ] 下げ -3.64 mm (conflict). つかむ所の爪と机 指令 1.21・予想 -5.9・沈み最大 -26.76 mm. 下りる間 固定側 指令 10.56/予想 7.03・動く爪 24.65/25.25 mm. 持ち上げの始めの予想 -6.64 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 196.5, 'arm_block_pad10': 30.3, 'held_table': 72.5, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[9688]: 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 (0x105be83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16efc8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9688]: 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 (0x105be83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16efc87c8). 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, 3381.70 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_20261201_101648 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9771]: 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 (0x1065603a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1473183a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9771]: 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 (0x1065603f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1473183f8). 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: ブロック 画素 [290.8, 252.4]・向き 1.1°・目印から 147.1 画素
[R401  ] 動かさない: ブロックが 場所3 の目印から 147 画素 離れている (許し 40 画素). 置き直す

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

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

objc[9821]: 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 (0x102cb03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154a983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9821]: 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 (0x102cb03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x154a983f8). 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: ブロック 画素 [293.1, 253.1]・向き 2.5°・目印から 148.9 画素
[R401  ] 動かさない: ブロックが 場所3 の目印から 149 画素 離れている (許し 40 画素). 置き直す

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

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

objc[9872]: 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 (0x1070ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1583883a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9872]: 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 (0x1070ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1583883f8). 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: ブロック 画素 [170.0, 304.9]・向き 3.0°・目印から 16.0 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.38・沈み最大 -19.23 mm. 下りる間 固定側 指令 10.93/予想 7.38・動く爪 29.91/31.09 mm. 持ち上げの始めの予想 -5.88 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 132.3, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[9872]: 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 (0x1070ec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3185e4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9872]: 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 (0x1070ec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3185e47c8). 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, 3329.88 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_20261201_101808 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[9972]: 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 (0x1063183a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1445483a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9972]: 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 (0x1063183f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1445483f8). 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.7, 255.2]・向き 4.4°・目印から 12.4 画素
[R401  ] 下げ -5.87 mm (ok). つかむ所の爪と机 指令 0.94・予想 -6.0・沈み最大 -21.15 mm. 下りる間 固定側 指令 10.5/予想 8.33・動く爪 22.95/23.92 mm. 持ち上げの始めの予想 -11.18 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.8, 'arm_box': 33.1, 'arm_base': 91.2, 'arm_block_pad10': 32.6, 'held_table': 73.6, 'held_box': 35.3, 'jaw_table_grasp': -3.1}
[R401  ] 送れる
objc[9972]: 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 (0x1063183a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x173108778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[9972]: 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 (0x1063183f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1731087c8). 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, 3336.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_20261201_101843 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[10056]: 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 (0x106aec3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16881c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10056]: 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 (0x106aec3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16881c3f8). 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.5, 161.9]・向き 6.8°・目印から 16.7 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +6.8°): 爪の面を机に垂直にできない (爪の面の傾き -10.2°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +6.8°): 爪の面を机に垂直にできない (爪の面の傾き -10.2°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10108]: 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 (0x15da683a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10108]: 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 (0x15da683f8). 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: ブロック 画素 [423.8, 164.5]・向き 5.9°・目印から 19.0 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +5.9°): 爪の面を机に垂直にできない (爪の面の傾き -10.0°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +5.9°): 爪の面を机に垂直にできない (爪の面の傾き -10.0°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10159]: 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 (0x1056403a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16675c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10159]: 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 (0x1056403f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x16675c3f8). 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: ブロック 画素 [426.3, 163.8]・向き 5.2°・目印から 20.9 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +5.2°): 爪の面を机に垂直にできない (爪の面の傾き -9.9°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +5.2°): 爪の面を机に垂直にできない (爪の面の傾き -9.9°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10212]: 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 (0x118d403a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1574303a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10212]: 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 (0x118d403f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1574303f8). 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: ブロック 画素 [426.8, 161.7]・向き 1.7°・目印から 20.6 画素
[R401  ] 下げ -2.41 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.39・沈み最大 -27.15 mm. 下りる間 固定側 指令 11.19/予想 14.33・動く爪 30.64/26.45 mm. 持ち上げの始めの予想 -4.79 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.3, 'arm_box': 33.1, 'arm_base': 199.0, 'arm_block_pad10': 27.9, 'held_table': 69.4, 'held_box': 33.2, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[10212]: 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 (0x118d403a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x317bec778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10212]: 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 (0x118d403f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x317bec7c8). 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, 3338.93 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_20261201_102015 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[10309]: 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 (0x1042503a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15ee7c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10309]: 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 (0x1042503f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15ee7c3f8). 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: ブロック 画素 [251.6, 169.5]・向き 4.9°・目印から 18.2 画素
[R401  ] 下げ -3.84 mm (ok). つかむ所の爪と机 指令 0.92・予想 -5.81・沈み最大 -27.1 mm. 下りる間 固定側 指令 10.55/予想 7.18・動く爪 24.91/25.4 mm. 持ち上げの始めの予想 -11.23 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.8, 'arm_box': 33.1, 'arm_base': 195.3, 'arm_block_pad10': 30.1, 'held_table': 72.7, 'held_box': 35.4, 'jaw_table_grasp': -2.7}
[R401  ] 送れる
objc[10309]: 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 (0x1042503a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1769bc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10309]: 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 (0x1042503f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1769bc7c8). 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, 3225.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_20261201_102051 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[10399]: 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 (0x102b9c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1491a43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10399]: 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 (0x102b9c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1491a43f8). 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: ブロック 画素 [168.7, 311.4]・向き 1.2°・目印から 11.6 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -19.04 mm. 下りる間 固定側 指令 11.09/予想 7.48・動く爪 29.8/31.07 mm. 持ち上げの始めの予想 -5.85 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 126.1, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[10399]: 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 (0x102b9c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x300038778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10399]: 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 (0x102b9c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3000387c8). 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, 3377.06 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_20261201_102138 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[10458]: 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 (0x104d743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b09c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10458]: 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 (0x104d743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b09c3f8). 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: ブロック 画素 [289.0, 253.7]・向き 2.8°・目印から 14.4 画素
[R401  ] 下げ -5.48 mm (conflict). つかむ所の爪と机 指令 1.42・予想 -5.89・沈み最大 -20.85 mm. 下りる間 固定側 指令 10.5/予想 8.24・動く爪 22.92/23.94 mm. 持ち上げの始めの予想 -10.95 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.9, 'arm_box': 33.1, 'arm_base': 93.0, 'arm_block_pad10': 32.7, 'held_table': 73.2, 'held_box': 35.2, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[10458]: 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 (0x104d743a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17d870778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10458]: 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 (0x104d743f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17d8707c8). 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, 3167.01 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_20261201_102214 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[10559]: 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 (0x104c283a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b5ec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10559]: 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 (0x104c283f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13b5ec3f8). 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: ブロック 画素 [423.0, 161.4]・向き 1.2°・目印から 16.9 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.38・予想 -6.48・沈み最大 -24.71 mm. 下りる間 固定側 指令 11.16/予想 13.03・動く爪 32.85/23.54 mm. 持ち上げの始めの予想 -8.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.3, 'arm_box': 33.1, 'arm_base': 202.8, 'arm_block_pad10': 26.8, 'held_table': 67.1, 'held_box': 31.9, 'jaw_table_grasp': 3.4}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.48 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.48 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10611]: 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 (0x10275c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a28c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10611]: 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 (0x10275c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13a28c3f8). 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.2, 163.5]・向き -2.4°・目印から 17.1 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.66・予想 -6.21・沈み最大 -24.49 mm. 下りる間 固定側 指令 11.09/予想 12.51・動く爪 32.2/23.29 mm. 持ち上げの始めの予想 -8.72 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.7, 'arm_box': 33.1, 'arm_base': 200.8, 'arm_block_pad10': 27.2, 'held_table': 67.5, 'held_box': 31.9, 'jaw_table_grasp': 3.7}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.21 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.21 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10692]: 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 (0x10513c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1457bc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10692]: 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 (0x10513c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1457bc3f8). 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: ブロック 画素 [430.8, 156.0]・向き 2.4°・目印から 23.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +2.4°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +2.4°): 爪の面を机に垂直にできない (爪の面の傾き -9.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10766]: 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 (0x1050283a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ba883a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10766]: 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 (0x1050283f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ba883f8). 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: ブロック 画素 [433.7, 153.4]・向き 5.7°・目印から 26.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +5.7°): 爪の面を机に垂直にできない (爪の面の傾き -10.3°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +5.7°): 爪の面を机に垂直にできない (爪の面の傾き -10.3°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10826]: 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 (0x1470ec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10826]: 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 (0x1470ec3f8). 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: ブロック 画素 [434.4, 155.8]・向き 6.1°・目印から 27.1 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +6.1°): 爪の面を机に垂直にできない (爪の面の傾き -10.4°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +6.1°): 爪の面を机に垂直にできない (爪の面の傾き -10.4°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10878]: 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 (0x1083843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13f7e03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10878]: 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 (0x1083843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13f7e03f8). 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: ブロック 画素 [431.8, 156.5]・向き 3.5°・目印から 24.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +3.5°): 爪の面を机に垂直にできない (爪の面の傾き -9.5°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +3.5°): 爪の面を机に垂直にできない (爪の面の傾き -9.5°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10938]: 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 (0x1051603a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7c43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10938]: 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 (0x1051603f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7c43f8). 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: ブロック 画素 [427.1, 163.0]・向き 1.3°・目印から 21.3 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 3.32・予想 -6.51・沈み最大 -24.7 mm. 下りる間 固定側 指令 11.28/予想 13.25・動く爪 32.95/23.58 mm. 持ち上げの始めの予想 -8.94 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.3, 'arm_box': 33.1, 'arm_base': 201.8, 'arm_block_pad10': 26.8, 'held_table': 67.1, 'held_box': 31.9, 'jaw_table_grasp': 3.3}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.51 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.51 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[10989]: 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 (0x103e3c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d5803a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[10989]: 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 (0x103e3c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13d5803f8). 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: ブロック 画素 [420.5, 162.3]・向き 8.4°・目印から 15.0 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +8.4°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +8.4°): 爪の面を机に垂直にできない (爪の面の傾き -10.6°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[11040]: 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 (0x1066dc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1407843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11040]: 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 (0x1066dc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1407843f8). 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: ブロック 画素 [423.4, 162.4]・向き -7.5°・目印から 17.7 画素
[R401  ] 下げ -3.14 mm (ok). つかむ所の爪と机 指令 0.9・予想 -3.09・沈み最大 -27.63 mm. 下りる間 固定側 指令 10.85/予想 13.5・動く爪 28.2/24.42 mm. 持ち上げの始めの予想 -9.44 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.0, 'arm_box': 33.1, 'arm_base': 197.3, 'arm_block_pad10': 28.7, 'held_table': 71.1, 'held_box': 34.0, 'jaw_table_grasp': 0.5}
[R401  ] 送れる
objc[11040]: 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 (0x1066dc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3006a0778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11040]: 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 (0x1066dc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3006a07c8). 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, 3291.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_20261201_102539 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

==================================================
  場所2 の 10 回目 (全 12 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================
s
q
objc[11160]: 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 (0x136b243a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11160]: 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 (0x136b243f8). 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: ブロック 画素 [253.7, 169.4]・向き -1.0°・目印から 20.3 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.96・予想 -9.08・沈み最大 -23.41 mm. 下りる間 固定側 指令 10.35/予想 3.39・動く爪 28.09/25.24 mm. 持ち上げの始めの予想 -9.98 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 196.7, 'arm_block_pad10': 29.4, 'held_table': 68.9, 'held_box': 33.0, 'jaw_table_grasp': 0.4}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.08 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.08 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

==================================================
  場所2 の 10 回目 (全 12 回): ブロックを 場所2 の目印に まっすぐ置いて Enter (q で終わる)
==================================================
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % R401_COUNT_OFFSET=2 R401_START_TOL_DEG=25 R401_PUSH_WINDOW_MM=-12 R401_ALLOW_CONFLICT=1 R401_PIXEL_TOL_PX=40 R401_YAW_TOL_DEG=20 N=12 PLACES="2 3 4 5" ./so101/check_401/session_401.sh

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

objc[11284]: 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 (0x106de83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1685903a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11284]: 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 (0x106de83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1685903f8). 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: ブロック 画素 [234.9, 172.2]・向き 1.8°・目印から 3.7 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.98・予想 -9.18・沈み最大 -23.53 mm. 下りる間 固定側 指令 10.34/予想 3.31・動く爪 28.04/25.2 mm. 持ち上げの始めの予想 -9.98 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 198.9, 'arm_block_pad10': 29.5, 'held_table': 68.9, 'held_box': 33.0, 'jaw_table_grasp': 0.4}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.18 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -9.18 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[11336]: 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 (0x1080c03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x155d743a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11336]: 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 (0x1080c03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x155d743f8). 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: ブロック 画素 [239.1, 172.1]・向き -3.2°・目印から 6.6 画素
[R401  ] 下げ -2.53 mm (conflict). つかむ所の爪と机 指令 2.6・予想 -5.88・沈み最大 -26.14 mm. 下りる間 固定側 指令 10.23/予想 6.23・動く爪 24.51/25.41 mm. 持ち上げの始めの予想 -6.74 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 197.3, 'arm_block_pad10': 23.9, 'held_table': 71.3, 'held_box': 35.1, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[11336]: 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 (0x1080c03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f6b8778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11336]: 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 (0x1080c03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17f6b87c8). 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, 3441.38 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_20261201_102806 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11463]: 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 (0x1066ac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1670103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11463]: 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 (0x1066ac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1670103f8). 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: ブロック 画素 [156.8, 304.8]・向き 1.4°・目印から 10.5 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.42・沈み最大 -20.06 mm. 下りる間 固定側 指令 11.03/予想 7.33・動く爪 29.84/31.07 mm. 持ち上げの始めの予想 -6.15 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 136.4, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[11463]: 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 (0x1066ac3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x315eac778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11463]: 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 (0x1066ac3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x315eac7c8). 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, 3138.51 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_20261201_102845 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11547]: 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 (0x1047083a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15efac3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11547]: 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 (0x1047083f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15efac3f8). 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: ブロック 画素 [274.7, 254.7]・向き 2.5°・目印から 2.0 画素
[R401  ] 下げ -4.58 mm (conflict). つかむ所の爪と机 指令 2.58・予想 -5.86・沈み最大 -19.98 mm. 下りる間 固定側 指令 10.23/予想 7.73・動く爪 22.74/23.94 mm. 持ち上げの始めの予想 -10.54 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.2, 'arm_box': 33.1, 'arm_base': 95.5, 'arm_block_pad10': 33.1, 'held_table': 72.4, 'held_box': 35.0, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[11547]: 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 (0x1047083a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176a4c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11547]: 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 (0x1047083f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x176a4c7c8). 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, 3453.45 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_20261201_102919 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11641]: 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 (0x1049943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b5043a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11641]: 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 (0x1049943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14b5043f8). 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: ブロック 画素 [409.4, 161.5]・向き 0.5°・目印から 6.7 画素
[R401  ] 下げ -2.71 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.39・沈み最大 -27.04 mm. 下りる間 固定側 指令 11.16/予想 14.06・動く爪 29.51/25.52 mm. 持ち上げの始めの予想 -9.61 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.6, 'arm_box': 33.1, 'arm_base': 198.9, 'arm_block_pad10': 27.6, 'held_table': 70.1, 'held_box': 33.5, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[11641]: 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 (0x1049943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x174808778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11641]: 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 (0x1049943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1748087c8). 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.50 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_20261201_102958 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11721]: 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 (0x10353c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1652583a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11721]: 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 (0x10353c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1652583f8). 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: ブロック 画素 [245.6, 162.6]・向き 5.6°・目印から 13.7 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.74・予想 -8.55・沈み最大 -23.92 mm. 下りる間 固定側 指令 10.58/予想 4.22・動く爪 28.99/25.54 mm. 持ち上げの始めの予想 -9.87 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.6, 'arm_box': 33.1, 'arm_base': 198.7, 'arm_block_pad10': 23.4, 'held_table': 68.9, 'held_box': 32.7, 'jaw_table_grasp': 1.2}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.55 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -8.55 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[11783]: 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 (0x1064c43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12527c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11783]: 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 (0x1064c43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12527c3f8). 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.2, 163.9]・向き 3.4°・目印から 14.6 画素
[R401  ] 下げ -3.61 mm (conflict). つかむ所の爪と机 指令 1.23・予想 -5.9・沈み最大 -27.45 mm. 下りる間 固定側 指令 10.39/予想 6.79・動く爪 24.85/25.42 mm. 持ち上げの始めの予想 -11.45 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.7, 'arm_box': 33.1, 'arm_base': 197.1, 'arm_block_pad10': 23.5, 'held_table': 72.4, 'held_box': 35.4, 'jaw_table_grasp': -2.7}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[11783]: 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 (0x1064c43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f570778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11783]: 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 (0x1064c43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16f5707c8). 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, 3386.07 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_20261201_103106 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11873]: 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 (0x106cc03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11990c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11873]: 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 (0x106cc03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x11990c3f8). 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.8, 296.8]・向き 5.7°・目印から 20.2 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.46・沈み最大 -19.77 mm. 下りる間 固定側 指令 10.96/予想 7.44・動く爪 29.89/30.97 mm. 持ち上げの始めの予想 -6.01 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 142.2, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[11873]: 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 (0x106cc03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x175814778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11873]: 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 (0x106cc03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1758147c8). 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, 3609.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_20261201_103144 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[11938]: 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 (0x106d683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1617283a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11938]: 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 (0x106d683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1617283f8). 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.7, 247.5]・向き 1.9°・目印から 13.2 画素
[R401  ] 下げ -5.14 mm (conflict). つかむ所の爪と机 指令 1.85・予想 -5.89・沈み最大 -20.94 mm. 下りる間 固定側 指令 10.47/予想 8.08・動く爪 22.8/23.88 mm. 持ち上げの始めの予想 -10.92 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.0, 'arm_box': 33.1, 'arm_base': 98.9, 'arm_block_pad10': 32.9, 'held_table': 72.9, 'held_box': 35.1, 'jaw_table_grasp': -2.9}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[11938]: 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 (0x106d683a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x177e24778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[11938]: 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 (0x106d683f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x177e247c8). 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, 3315.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[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_20261201_103217 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12052]: 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 (0x1046203a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x156e183a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12052]: 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 (0x1046203f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x156e183f8). 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: ブロック 画素 [417.6, 153.9]・向き 7.6°・目印から 10.4 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +7.6°): 爪の面を机に垂直にできない (爪の面の傾き -10.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +7.6°): 爪の面を机に垂直にできない (爪の面の傾き -10.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12110]: 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 (0x102afc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x153edc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12110]: 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 (0x102afc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x153edc3f8). 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: ブロック 画素 [417.7, 158.3]・向き 11.2°・目印から 10.9 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +11.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.3°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +11.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.3°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12161]: 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 (0x104d9c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13f0443a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12161]: 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 (0x104d9c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13f0443f8). 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, 157.7]・向き 2.0°・目印から 9.7 画素
[R401  ] 下げ -2.52 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.41・沈み最大 -27.32 mm. 下りる間 固定側 指令 11.06/予想 14.12・動く爪 30.27/26.12 mm. 持ち上げの始めの予想 -9.9 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 198.2, 'arm_block_pad10': 27.9, 'held_table': 69.6, 'held_box': 33.3, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[12161]: 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 (0x104d9c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x177a44778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12161]: 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 (0x104d9c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x177a447c8). 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, 3372.66 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_20261201_103331 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12247]: 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 (0x1041f43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1544ec3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12247]: 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 (0x1041f43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1544ec3f8). 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: ブロック 画素 [248.8, 177.6]・向き 2.8°・目印から 17.7 画素
[R401  ] 下げ -3.59 mm (conflict). つかむ所の爪と机 指令 1.28・予想 -5.9・沈み最大 -26.34 mm. 下りる間 固定側 指令 10.44/予想 6.91・動く爪 24.68/25.32 mm. 持ち上げの始めの予想 -9.34 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.9, 'arm_box': 33.1, 'arm_base': 190.9, 'arm_block_pad10': 30.3, 'held_table': 72.4, 'held_box': 35.4, 'jaw_table_grasp': -2.8}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[12247]: 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 (0x1041f43a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e570778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12247]: 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 (0x1041f43f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16e5707c8). 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, 3350.78 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_20261201_103405 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12330]: 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 (0x10275c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1446c03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12330]: 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 (0x10275c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1446c03f8). 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.2, 314.8]・向き 2.4°・目印から 6.4 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.34・沈み最大 -19.03 mm. 下りる間 固定側 指令 11.01/予想 7.4・動く爪 29.86/31.12 mm. 持ち上げの始めの予想 -5.85 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 125.7, 'arm_block_pad10': 26.4, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[12330]: 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 (0x10275c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x313abc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12330]: 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 (0x10275c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x313abc7c8). 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, 3273.60 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_20261201_103445 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12426]: 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 (0x1059903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7e83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12426]: 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 (0x1059903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14e7e83f8). 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: ブロック 画素 [282.6, 261.3]・向き 2.6°・目印から 11.7 画素
[R401  ] 下げ -5.02 mm (conflict). つかむ所の爪と机 指令 2.03・予想 -5.88・沈み最大 -19.92 mm. 下りる間 固定側 指令 10.43/予想 8.09・動く爪 22.74/23.87 mm. 持ち上げの始めの予想 -10.61 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 57.1, 'arm_box': 33.1, 'arm_base': 88.6, 'arm_block_pad10': 33.0, 'held_table': 72.8, 'held_box': 35.1, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[12426]: 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 (0x1059903a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d354778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12426]: 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 (0x1059903f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16d3547c8). 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, 3549.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[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_20261201_103518 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12484]: 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 (0x1044383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x134db83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12484]: 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 (0x1044383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x134db83f8). 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.4, 168.3]・向き 8.0°・目印から 15.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +8.0°): 爪の面を机に垂直にできない (爪の面の傾き -10.3°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +8.0°): 爪の面を机に垂直にできない (爪の面の傾き -10.3°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12543]: 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 (0x1051243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1567583a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12543]: 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 (0x1051243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1567583f8). 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: ブロック 画素 [417.9, 168.7]・向き -5.0°・目印から 17.2 画素
[R401  ] 下げ -3.0 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.64・沈み最大 -26.91 mm. 下りる間 固定側 指令 10.95/予想 13.65・動く爪 28.65/24.88 mm. 持ち上げの始めの予想 -5.05 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.9, 'arm_box': 33.1, 'arm_base': 198.4, 'arm_block_pad10': 28.1, 'held_table': 70.7, 'held_box': 33.8, 'jaw_table_grasp': 0.7}
[R401  ] 送れる
objc[12543]: 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 (0x1051243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x177064778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12543]: 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 (0x1051243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1770647c8). 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, 3395.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_20261201_103612 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12648]: 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 (0x1061503a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1558403a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12648]: 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 (0x1061503f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1558403f8). 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.3, 168.4]・向き 21.6°・目印から 13.9 画素
[R401  ] 動かさない: ブロックの向き +21.6° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す

   動かしません: ブロックの向き +21.6° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12702]: 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 (0x10721c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1553103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12702]: 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 (0x10721c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1553103f8). 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: ブロック 画素 [248.4, 168.2]・向き 25.8°・目印から 15.0 画素
[R401  ] 動かさない: ブロックの向き +25.8° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す

   動かしません: ブロックの向き +25.8° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12756]: 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 (0x1024703a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x130d943a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12756]: 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 (0x1024703f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x130d943f8). 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: ブロック 画素 [248.3, 168.3]・向き 22.1°・目印から 14.9 画素
[R401  ] 動かさない: ブロックの向き +22.1° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す

   動かしません: ブロックの向き +22.1° が 割り振りの向き (+0.0°) から ±20° より離れている. 置き直す   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[12807]: 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 (0x1046943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14d1983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12807]: 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 (0x1046943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14d1983f8). 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, 168.1]・向き 17.0°・目印から 14.1 画素
[R401  ] 下げ -3.29 mm (ok). つかむ所の爪と机 指令 0.91・予想 -3.83・沈み最大 -26.44 mm. 下りる間 固定側 指令 10.79/予想 8.28・動く爪 27.84/27.75 mm. 持ち上げの始めの予想 -6.66 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.2, 'arm_box': 33.1, 'arm_base': 192.9, 'arm_block_pad10': 28.7, 'held_table': 71.7, 'held_box': 34.4, 'jaw_table_grasp': -0.5}
[R401  ] 送れる
objc[12807]: 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 (0x1046943a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17332c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12807]: 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 (0x1046943f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17332c7c8). 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, 3392.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_20261201_103818 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12895]: 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 (0x106f843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1462bc3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12895]: 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 (0x106f843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1462bc3f8). 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.2, 305.5]・向き 11.7°・目印から 11.7 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.43・沈み最大 -19.04 mm. 下りる間 固定側 指令 11.12/予想 7.75・動く爪 29.81/30.79 mm. 持ち上げの始めの予想 -5.82 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 136.4, 'arm_block_pad10': 26.5, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[12895]: 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 (0x106f843a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1792dc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12895]: 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 (0x106f843f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1792dc7c8). 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, 3350.24 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_20261201_103851 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[12976]: 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 (0x1023cc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1536103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12976]: 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 (0x1023cc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1536103f8). 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.4, 255.3]・向き 4.4°・目印から 7.3 画素
[R401  ] 下げ -5.45 mm (conflict). つかむ所の爪と机 指令 1.46・予想 -5.88・沈み最大 -20.76 mm. 下りる間 固定側 指令 10.49/予想 8.23・動く爪 22.92/23.96 mm. 持ち上げの始めの予想 -10.93 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 56.9, 'arm_box': 33.1, 'arm_base': 92.3, 'arm_block_pad10': 32.7, 'held_table': 73.1, 'held_box': 35.2, 'jaw_table_grasp': -3.0}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[12976]: 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 (0x1023cc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fedc778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[12976]: 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 (0x1023cc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x16fedc7c8). 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, 3173.12 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_20261201_103926 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[13043]: 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 (0x1044f03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13cbb03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13043]: 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 (0x1044f03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13cbb03f8). 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: ブロック 画素 [417.2, 163.3]・向き 11.2°・目印から 12.9 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +11.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.3°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +11.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.3°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13118]: 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 (0x104f9c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x166fd83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13118]: 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 (0x104f9c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x166fd83f8). 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: ブロック 画素 [419.3, 164.7]・向き 17.0°・目印から 15.4 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +17.0°): 爪の面を机に垂直にできない (爪の面の傾き -13.2°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +17.0°): 爪の面を机に垂直にできない (爪の面の傾き -13.2°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13178]: 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 (0x1069343a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12a5683a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13178]: 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 (0x1069343f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x12a5683f8). 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: ブロック 画素 [419.5, 165.6]・向き 14.2°・目印から 16.1 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +14.2°): 爪の面を机に垂直にできない (爪の面の傾き -12.4°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +14.2°): 爪の面を机に垂直にできない (爪の面の傾き -12.4°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13244]: 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 (0x1026243a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152f843a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13244]: 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 (0x1026243f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x152f843f8). 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.4, 161.4]・向き 13.5°・目印から 9.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +13.5°): 爪の面を机に垂直にできない (爪の面の傾き -11.9°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +13.5°): 爪の面を机に垂直にできない (爪の面の傾き -11.9°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13299]: 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 (0x1032883a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13be1c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13299]: 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 (0x1032883f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13be1c3f8). 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: ブロック 画素 [420.9, 164.3]・向き 16.3°・目印から 16.4 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +16.3°): 爪の面を机に垂直にできない (爪の面の傾き -13.1°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +16.3°): 爪の面を机に垂直にできない (爪の面の傾き -13.1°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13350]: 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 (0x1024b83a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x126b183a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13350]: 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 (0x1024b83f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x126b183f8). 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: ブロック 画素 [419.5, 164.6]・向き 12.2°・目印から 15.5 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +12.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.8°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +12.2°): 爪の面を机に垂直にできない (爪の面の傾き -11.8°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13411]: 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 (0x10303c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14c2243a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13411]: 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 (0x10303c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x14c2243f8). 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.2, 163.5]・向き 12.1°・目印から 16.2 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +12.1°): 爪の面を机に垂直にできない (爪の面の傾き -11.8°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +12.1°): 爪の面を机に垂直にできない (爪の面の傾き -11.8°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13467]: 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 (0x103a503a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1345a03a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13467]: 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 (0x103a503f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1345a03f8). 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: ブロック 画素 [420.6, 163.2]・向き 12.4°・目印から 15.6 画素
[R401  ] 動かさない: rule_351 の道が作れない: つかむ所 (向き +12.4°): 爪の面を机に垂直にできない (爪の面の傾き -11.9°・許し ±8°)

   動かしません: rule_351 の道が作れない: つかむ所 (向き +12.4°): 爪の面を机に垂直にできない (爪の面の傾き -11.9°・許し ±8°)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[13519]: 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 (0x1048383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15de9c3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13519]: 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 (0x1048383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x15de9c3f8). 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: ブロック 画素 [419.8, 163.7]・向き 1.6°・目印から 15.2 画素
[R401  ] 下げ -2.49 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.37・沈み最大 -26.91 mm. 下りる間 固定側 指令 11.1/予想 14.16・動く爪 30.37/26.27 mm. 持ち上げの始めの予想 -9.56 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.4, 'arm_box': 33.1, 'arm_base': 198.7, 'arm_block_pad10': 27.2, 'held_table': 69.6, 'held_box': 33.3, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[13519]: 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 (0x1048383a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1787a4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13519]: 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 (0x1048383f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1787a47c8). 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, 3304.67 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_20261201_104502 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[13614]: 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 (0x102b103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1362d83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13614]: 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 (0x102b103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1362d83f8). 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: ブロック 画素 [265.4, 152.9]・向き -2.7°・目印から 35.7 画素
[R401  ] 下げ 0.0 mm (conflict). つかむ所の爪と机 指令 4.93・予想 -2.67・沈み最大 -24.51 mm. 下りる間 固定側 指令 10.42/予想 6.55・動く爪 28.14/28.77 mm. 持ち上げの始めの予想 -5.67 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.0, 'arm_box': 33.1, 'arm_base': 194.1, 'arm_block_pad10': 28.3, 'held_table': 68.9, 'held_box': 33.0, 'jaw_table_grasp': 0.5}
[R401  ] 送れる
[R401  ] この回は 決まりの外の口を使います: status conflict (--allow-status)
流すなら yes と打つ > yes
objc[13614]: 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 (0x102b103a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17c26c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13614]: 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 (0x102b103f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17c26c7c8). 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.35 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]: Svt[warn]: Level of Parallelism: 4
Preset M12 is mapped to M10.
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]: Level of Parallelism: 4
Svt[info]: 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_20261201_104539 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[13710]: 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 (0x1031543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13c9103a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13710]: 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 (0x1031543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13c9103f8). 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: ブロック 画素 [154.1, 320.9]・向き 7.6°・目印から 6.7 画素
[R401  ] 下げ -0.79 mm (ok). つかむ所の爪と机 指令 0.9・予想 -2.35・沈み最大 -19.03 mm. 下りる間 固定側 指令 10.81/予想 7.24・動く爪 30.0/31.21 mm. 持ち上げの始めの予想 -5.82 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 51.7, 'arm_box': 33.1, 'arm_base': 128.5, 'arm_block_pad10': 26.3, 'held_table': 71.4, 'held_box': 35.3, 'jaw_table_grasp': -0.7}
[R401  ] 送れる
objc[13710]: 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 (0x1031543a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3004e4778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13710]: 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 (0x1031543f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x3004e47c8). 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, 3344.88 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_20261201_104646 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[13894]: 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 (0x1067043a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1419a43a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13894]: 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 (0x1067043f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1419a43f8). 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: ブロック 画素 [298.9, 268.5]・向き 11.5°・目印から 29.0 画素
[R401  ] 下げ -4.95 mm (ok). つかむ所の爪と机 指令 0.91・予想 -2.75・沈み最大 -19.75 mm. 下りる間 固定側 指令 11.03/予想 11.34・動く爪 26.97/26.21 mm. 持ち上げの始めの予想 -8.88 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 55.9, 'arm_box': 33.1, 'arm_base': 74.8, 'arm_block_pad10': 30.4, 'held_table': 71.9, 'held_box': 33.1, 'jaw_table_grasp': 0.4}
[R401  ] 送れる
objc[13894]: 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 (0x1067043a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17189c778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[13894]: 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 (0x1067043f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x17189c7c8). 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, 3278.17 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[warn]: Svt[info]: Preset M12 is mapped to M10.
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]: 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_20261201_104832 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv

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

objc[14021]: 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 (0x104f183a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1270f83a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14021]: 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 (0x104f183f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1270f83f8). 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: ブロック 画素 [397.6, 145.9]・向き -14.2°・目印から 13.4 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.75・予想 -7.79・沈み最大 -25.26 mm. 下りる間 固定側 指令 10.66/予想 10.16・動く爪 29.16/22.52 mm. 持ち上げの始めの予想 -10.74 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.7, 'arm_box': 33.1, 'arm_base': 199.0, 'arm_block_pad10': 28.3, 'held_table': 68.9, 'held_box': 32.3, 'jaw_table_grasp': 2.0}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -7.79 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -7.79 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[14074]: 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 (0x10236c3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ff983a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14074]: 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 (0x10236c3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x13ff983f8). 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: ブロック 画素 [399.0, 146.5]・向き -3.6°・目印から 12.0 画素
[R401  ] 下げ 0.0 mm (deep_at_zero). つかむ所の爪と机 指令 4.05・予想 -6.51・沈み最大 -25.27 mm. 下りる間 固定側 指令 10.99/予想 12.28・動く爪 31.06/23.17 mm. 持ち上げの始めの予想 -8.83 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 54.1, 'arm_box': 33.1, 'arm_base': 200.6, 'arm_block_pad10': 28.7, 'held_table': 68.0, 'held_box': 32.0, 'jaw_table_grasp': 3.6}
[R401  ] 動かさない: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.51 mm (上限 -6) / status: deep_at_zero

   動かしません: ガードに当たった: push_limit: 予想のつかむ所の爪と机 -6.51 mm (上限 -6) / status: deep_at_zero   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[14131]: 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 (0x1063f03a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158fac3a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14131]: 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 (0x1063f03f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158fac3f8). 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  ] 場所None: ブロック 画素 None・向き None°・目印から None 画素
[R401  ] 動かさない: ブロックが読めない: 形の合いが低い (IoU 0.88. 0.89 以上. 隠れた・欠けたなど)

   動かしません: ブロックが読めない: 形の合いが低い (IoU 0.88. 0.89 以上. 隠れた・欠けたなど)   
[INFO] 動かさずに止まった (置き直してもう一度)

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


objc[14193]: 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 (0x102ebc3a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1551603a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14193]: 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 (0x102ebc3f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x1551603f8). 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  ] 場所None: ブロック 画素 None・向き None°・目印から None 画素
[R401  ] 動かさない: ブロックが読めない: 形の合いが低い (IoU 0.89. 0.89 以上. 隠れた・欠けたなど)

   動かしません: ブロックが読めない: 形の合いが低い (IoU 0.89. 0.89 以上. 隠れた・欠けたなど)   
[INFO] 動かさずに止まった (置き直してもう一度)

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

objc[14247]: 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 (0x106b403a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158c243a8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14247]: 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 (0x106b403f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/python3.12/site-packages/av/.dylibs/libavdevice.61.3.100.dylib (0x158c243f8). 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: ブロック 画素 [400.6, 153.3]・向き 0.3°・目印から 6.9 画素
[R401  ] 下げ -2.84 mm (ok). つかむ所の爪と机 指令 0.91・予想 -2.44・沈み最大 -27.62 mm. 下りる間 固定側 指令 11.07/予想 13.89・動く爪 29.0/25.01 mm. 持ち上げの始めの予想 -9.96 mm
[R401  ] 道 251 コマ (8.4 秒). 1 コマ最大 6.22°・爪 10.64. シムの距離 (mm) {'arm_table': 53.7, 'arm_box': 33.1, 'arm_base': 200.1, 'arm_block_pad10': 28.4, 'held_table': 70.4, 'held_box': 33.6, 'jaw_table_grasp': 0.9}
[R401  ] 送れる
objc[14247]: 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 (0x106b403a8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x173824778). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[14247]: 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 (0x106b403f8) and /opt/homebrew/Caskroom/miniforge/base/envs/lerobot/lib/libavdevice.59.7.100.dylib (0x1738247c8). 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, 3302.63 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]: Svt[warn]: Preset M12 is mapped to M10.
Svt[info]: Level of Parallelism: 4
Svt[info]: Number of PPCS 59
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]: [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_20261201_105045 (7 ファイル) / 1 行 → /Volumes/KIOXIA/r2r2r-data/lab/so101_Log12/so101_trials.csv
./so101/check_401/session_401.sh: line 87: unexpected EOF while looking for matching `"'
./so101/check_401/session_401.sh: line 88: syntax error: unexpected end of file
(base) shimazueiichi@shimadzueiichinoMacBook-Pro r2r2r-scripts % 
```

