メッセージ・サービス型
PyLoN独自のROS 2インターフェースを型ごとに参照できます。各ページはフィールド型、配列の上限、定数、コメントを含む元の定義を掲載します。入れ子のメッセージ型は定義ページへ、標準型はROS 2 Jazzyの公式リファレンスへリンクします。
Messages (.msg)
pylon_interfaces/msg/BodyWrenchCommandpylon_interfaces/msg/ControlAuthorityCommandpylon_interfaces/msg/ControlAuthorityStatepylon_interfaces/msg/ControlBatchpylon_interfaces/msg/ControlSetpointpylon_interfaces/msg/ControlSnapshotpylon_interfaces/msg/DockingPortCommandpylon_interfaces/msg/DockingPortStatepylon_interfaces/msg/EngineCommandpylon_interfaces/msg/EngineStatepylon_interfaces/msg/FlightControlCommandpylon_interfaces/msg/FlightStatepylon_interfaces/msg/MotorCommandpylon_interfaces/msg/MotorStatepylon_interfaces/msg/NearbyVesselpylon_interfaces/msg/NearbyVesselspylon_interfaces/msg/PartThermalStatepylon_interfaces/msg/RcsCommandpylon_interfaces/msg/RcsStatepylon_interfaces/msg/RelativeTargetpylon_interfaces/msg/SeparationCommandpylon_interfaces/msg/SeparationResultpylon_interfaces/msg/SeparationStatepylon_interfaces/msg/SimulatorStatepylon_interfaces/msg/StarTrackerStatepylon_interfaces/msg/VehicleHealthpylon_interfaces/msg/VesselLifecyclepylon_interfaces/msg/WheelCommandpylon_interfaces/msg/WheelStatepylon_interfaces/msg/WrenchFeedback
Services (.srv)
型の表記と確認方法
Topicの型はパッケージ/msg/型名、サービスはパッケージ/srv/型名で表記します。.msg内のgeometry_msgs/Pointはgeometry_msgs/msg/Point、EngineCommandは同じパッケージのpylon_interfaces/msg/EngineCommandを参照します。
float64[9]は固定長9要素、EngineCommand[<=16]は最大16要素の可変長配列、string[]は上限を指定しない可変長配列です。値の欄の—は明示既定値がないことを表します。ROS 2の暗黙の既定値は数値が0、boolがfalse、stringが空文字列、可変長配列が空配列です。定数はフィールドと分けて掲載し、単位・座標系・valid条件などは元の定義のコメントと各APIページで確認できます。型から単位を推測しないでください。
ROS環境とPyLoNワークスペースをsourceした後、実際にインストールされた型を次のコマンドで確認できます。
ros2 interface list
ros2 topic type /ksp_vessel/ground_truth/flight
ros2 interface show pylon_interfaces/msg/FlightState
ros2 interface show pylon_interfaces/srv/GetSeparationResultROS 2インターフェース定義の仕様に従う表記です。
定義の取得元
PyLoN/Ros2/pylon_interfaces · Git base: 59a5805cf260
取得時のローカル変更を含みます。上記commitそのものの定義ではありません。 サイト内の保存済み定義から生成するため、本体のcloneはサイトのビルドに不要です。インストール済みの版と異なる場合はros2 interface showの出力を確認してください。更新手順はdocsのREADMEを参照してください。