Skip to content

How to define message types in client/service? #304

Answered by esteve
ekkaiasmith asked this question in Q&A
Discussion options

You must be logged in to vote

@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. The AddTwoInts service messages are defined in the example_interfaces package: https://github.com/ros2/example_interfaces

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by esteve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants