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

Revision history [back]

click to hide/show revision 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).