ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ROS 2 still requires a proper .srv
file, but in the case of the tutorial you link the authors are reusing an existing definition.
You can find that one in the ros2/example_interfaces repository (specifically: ros2/example_interfaces/srv/AddTwoInts.srv).
Note that the tutorial you link to was (as far as I can tell) quite some time ago already. ROS 2 is still being developed, so pay attention while following the steps, as things could have changed (significantly).