Skip to content

PythonとC++のコードに対するリファクタリングの実施#95

Open
motty-mio2 wants to merge 8 commits into
masterfrom
feature/refactor
Open

PythonとC++のコードに対するリファクタリングの実施#95
motty-mio2 wants to merge 8 commits into
masterfrom
feature/refactor

Conversation

@motty-mio2

Copy link
Copy Markdown

What does this implement/fix?

PythonとC++のコードに対するリファクタリングの実施

  • コメント粒度の調整
  • main処理の軽量化、コンストラクタ・init での初期化の導入
  • Python, C++ 間での粒度の統一

Does this close any currently open issues?

なし

How has this been tested?

実機動作にて動作を確認予定

Any other comments?

AI を使って作成

Checklists

motty-mio2 and others added 8 commits June 29, 2026 10:06
- C++: Nodeを継承するクラスをノードを受け取るstandaloneクラスに統一(pick_and_place_tf除く)
- C++: camelCaseメソッド名をsnake_caseに統一(move_arm_to_named_pose, move_gripper_angle等)
- pick_and_place: Poseオブジェクトのメンバ変数をcontrol_arm(x,y,z,r,p,y)パターンに変更
- pick_and_place: 座標定数をAPPROACH/PICK/PLACE/LIFTING_HEIGHTとしてmainに宣言
- pick_and_place_tf: privateアンダースコア付き定数をpublic static定数に変更
- pick_and_place_tf: set_constraints/clear_constraintsメソッドを追加
- Python: クラスレベル定数(GRIPPER_*)を追加し、selfからクラス参照に統一
- Python: pick_and_place_tfの座標定数をインスタンス変数からクラス変数に変更

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- aruco_detection: message_filtersのTimeSynchronizerで画像とカメラ情報を同期受信
  marker_dictをコールバック内の毎回生成からコンストラクタのインスタンス変数に変更
- color_detection: 同様にmessage_filtersで2トピックを同期、camera_info_callbackを廃止
  d_area <= 10000の早期リターンパターンをcrane_x7に合わせて統一
- package.xml: cv_bridge, geometry_msgs, image_geometry, message_filters,
  python3-opencv, sensor_msgs, tf2_rosの不足dependを追加

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- aruco_detection: image_transport::create_camera_subscriptionで画像とカメラ情報を同期受信
  marker_dict_をコールバック内の毎回生成からコンストラクタのメンバ変数に変更
  クォータニオン変換をtf2::Matrix3x3+Rodriguesからcv::Quatd::createFromRvecに簡略化
- color_detection: message_filtersのExactTimeで2トピックを同期、camera_info_callbackを廃止
  d_area <= 10000の早期リターンパターンをcrane_x7に合わせて統一
- CMakeLists.txt: angles, image_transport, message_filtersのfind_packageと依存を追加
- package.xml: angles, image_transport, message_filtersの不足dependを追加

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ライセンスヘッダを標準書式(各行間に空行あり)に修正
- コメントを英語から日本語に統一(「軌道を計画する」「計画した軌道を実行する」)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@motty-mio2 motty-mio2 requested a review from Kuwamai July 2, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant