How to define message types in client/service? #304
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Documentation says that |
Beta Was this translation helpful? Give feedback.
-
@ekkaiasmith sorry for the slow reply. Messages are defined the standard ROS way, that is, by creating For more info on how to create custom messages, you can follow the official documentation at https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Custom-ROS2-Interfaces.html |
Beta Was this translation helpful? Give feedback.
@ekkaiasmith sorry for the slow reply. Messages are defined the standard ROS way, that is, by creating
.msg
and.srv
text files that are then converted into structures suitable for a client library. TheAddTwoInts
service messages are defined in theexample_interfaces
package: https://github.com/ros2/example_interfacesFor more info on how to create custom messages, you can follow the official documentation at https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Custom-ROS2-Interfaces.html