ただし、ros2 topic listでトピック一覧には表示される この結果からFast DDSかつnet=hostオプションのみの場合を除いて、同一PC上でROS 2のDockerコンテナを複数起動して、コンテナ間でROS 2のpub/subができていることがわかります。さ
補足 terminal $ros2 node list# ノード一覧が表示される$ros2 interface list# メッセージ一覧が表示される$ros2 interface show example_interfaces/msg/String# example_interfaces/msg/Stringの構造が表示される$ros2 topic list# トピック一覧が表示される$ros2 topic pub /topic_test std_msgs/Stri...
rclcpp::Node::SharedPtrnode_ptr_;rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtrjoy_publisher_;};}// namespace srs_rviz_plugins getTopicList()は特定のmsgtypeのrostopicの名前を抜き出すメソッドです。rclcppのメソッドとしてget_topic_names_and_types()を呼ぶとそのノードが認識してい...