pegsim oprgb × image2d × matrix → tableimport fullseye as fs; fs.ledger.peg_tip_from_rgbd(rgb, depth, K, r_peg: 'float' = 0.005, peg_mask=None) -> 'dict' (実装を直接呼ぶなら import pegsim; pegsim.peg_tip_from_rgbd(rgb, depth, K, r_peg: 'float' = 0.005, peg_mask=None) -> 'dict'、台帳から引くなら opsdrive.get("peg_tip_from_rgbd"))手首 RGB-D 1 枚からペグ先端の中心を 3-D(カメラ座標)で: ペグの画素 → depth の点群 → PCA の軸 → 既知半径の円柱当てはめ、 先端の軸方向は影の端(副画素、被覆率)を、投影した縁の円の端と一致させる模型で決める。
返り: tip_cam(3,)、axis(先端 → 上、単位)、rms_cyl、n_pts、uv(先端の投影)、delta_axial。
正直に: 試作の 16 姿勢で軸方向の誤差 max 0.83 px(横方向 0.004 px)—— 影の端 1 画素の被覆率だけから軸方向を読む限界で、
目標 0.3 px は未達。Raises RuntimeError: ペグが見えない(芯の画素 < 50)。
空の入力(rgb が 0 要素)は ValueError。
py -3.11 examples/gallery_drive_peg.pytable を入力に取れる)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
pegsim)peg_params · whitney_clearance · two_point_depth · wedging_check · jamming_diagram · chamfer_capture · contact_state_predict · circle_fit_known_radius
Provenance: pegsim.py — DRIVE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.