ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The AddTwoInts.srv file is the contains the definition of the message. But this would not be readable in python. So catkin takes this files and generates python code ouf it. (see https://wiki.ros.org/rosbuild/CMakeLists#Message_.2BAC8_service_macros)

You can then access the code under beginner_tutorials.srv. This is just where catkin generates it under <package_name>.srv

(see https://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv#Using_srv)