[クリーンアップ] crane_senderの未使用GRSIM送信経路を削除 - #1438
Merged
Merged
Conversation
ibis_sender_node の packet_type=grsim 経路(grSim レガシー protobuf 送信)は 実運用で選択されておらず、未使用のまま保守負債になっていたため削除した。 削除範囲: - enum class PacketType の GRSIM 値 - grsim_sender_ メンバ、コンストラクタ内の grsim 分岐 - sendGrSim() 関数、sendCommands の switch 内 GRSIM ケース - GRSIM 専用の grSim protobuf ヘッダ2件の include (robocup_ssl_msgs/grSim_Commands.pb.h, grSim_Packet.pb.h) SSL 経路(PacketType::SSL, PerRobotState, LocalVelocity, KickParams, convertToLocalVelocity(), computeKick(), sim_position_controller.hpp/cpp, test_sim_position_controller.cpp)は意図的に温存した。feature/two-robot-mode (TIGERs Sumatra 対戦用、未push・3ヶ月停滞だが破棄されていない)が standard SSL RobotControl プロトコル経路を将来必要とする可能性があるため。 副次的な変更: - GRSIM 削除に伴い意味が古くなったコメントを修正 ("SSL/GRSIM" 併記や "sendSSL() と sendGrSim()" 等の記述を SSL のみに更新) - crane_bringup/launch/crane.launch.xml の packet_type 引数の説明から grsim を除去。削除後は packet_type=grsim を指定すると不明な値として ibis にフォールバックし、実機ブロードキャストソケット (192.168.20.255)を初期化してしまうため、シミュレータ向け設定のつもりが 意図せず実機宛の通信になり得る。ドキュメント側でも grsim を選択肢として 案内しないよう修正した。 ビルド・テスト確認: - cwm ws build -w feature/remove-dead-ibis-sender-ssl-grsim --packages-select crane_sender - colcon test --packages-select crane_sender --event-handlers console_cohesion+ (4/4 テスト成功)
HansRobo
force-pushed
the
feature/remove-dead-ibis-sender-ssl-grsim
branch
from
September 13, 2026 09:46
6afd7ab to
4a666aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ibis_sender_nodeのpacket_type=grsim経路(grSim レガシー protobuf 送信)を削除しました。実運用で選択されておらず、未使用のまま残っていた保守負債です。経緯(当初検討との差分)
当初は SSL/GRSIM 一式(SSL 経路含む)の削除を検討していましたが、調査の結果、
feature/two-robot-mode(未push・PR無し・3ヶ月停滞だが破棄はされていない)が TIGERs Sumatra との対戦用に standard SSL RobotControl プロトコル経路を将来必要とする可能性があるとの判断になり、SSL 経路は意図的に温存し、GRSIM のみを削除する方針に変更しました(feature/two-robot-modeのcrane_sender/src/ibis_sender_node.cpp/crane_bringup/launch/crane.launch.xmlで実際にPacketType::SSL/sendSSL()/packet_type=sslを参照していることを確認済みです)。削除した内容(GRSIMのみ)
enum class PacketTypeのGRSIM値(SSLは残置)grsim_sender_メンバpacket_type=="grsim"分岐sendGrSim()関数sendCommands()の switch 文中のGRSIMケース(SSLケースは残置)robocup_ssl_msgs/grSim_Commands.pb.hrobocup_ssl_msgs/grSim_Packet.pb.h意図的に温存したもの(SSL経路)
以下は
feature/two-robot-modeが将来必要とする可能性があるため、一切削除していません。PacketType::SSLPerRobotStateLocalVelocityKickParamsconvertToLocalVelocity()computeKick()sim_position_controller.hpp/.cpptest_sim_position_controller.cpprobocup_ssl_msgs,crane_geometryなどSSL側が引き続き使用する依存関係にも一切手を触れていません。副次的な変更
sendSSL()とsendGrSim()のみ」等の記述を SSL のみを指すように更新)crane_bringup/launch/crane.launch.xmlのpacket_type引数の説明からgrsimを除去。削除後はpacket_type=grsimを指定すると不明な値としてibisにフォールバックし、実機ブロードキャストソケット(192.168.20.255)を初期化してしまうため、シミュレータ向け設定のつもりが意図せず実機宛の通信になり得ます。誤って選ばれないようドキュメント側の案内も修正しました。動作確認
cwm ws build -w feature/remove-dead-ibis-sender-ssl-grsim --packages-select crane_sender: ビルド成功colcon test --packages-select crane_sender --event-handlers console_cohesion+: 4/4 テスト成功(test_robot_packet, test_sim_position_controller, copyright, xmllint)テスト計画
crane_senderパッケージのビルド確認crane_senderパッケージの既存テスト(gtest/copyright/xmllint)が全てパスすることを確認