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

Do services in ros 2 require a seperate .srv file ?

asked 2017-09-18 03:28:24 -0500

Skyking gravatar image

updated 2017-09-18 17:23:30 -0500

jayess gravatar image

I was reading this tutorial where they have created a service based server/client for adding two integers.However, they have not created the .srv files as required in ROS 1. Is it possible to mention the service type without creating the .srv files ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-20 16:13:21 -0500

gvdhoorn gravatar image

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).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-09-18 03:28:24 -0500

Seen: 215 times

Last updated: Sep 20 '17