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

Advertise multiple services with same srv

asked 2016-03-23 22:08:27 -0500

Viggio gravatar image

I have several simultaneously active services that have the same data type for both the Request and Response fields. Can I use the same .srv file for all of the services? Or should I create a uniquely named .srv file for each service (the contents of which would be identical)?

If it's technically acceptable to re-use the same .srv file, is it considered good or bad practice?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-23 23:40:29 -0500

ahendrix gravatar image

Yes; you can re-use the same .srv for multiple services, and it's generally considered good practice.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-03-23 22:08:27 -0500

Seen: 232 times

Last updated: Mar 23 '16