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

how to use srv in another package?

asked 2015-02-03 04:14:49 -0600

babaksn gravatar image

hi. i want to use the srv file that i have created in some package and use it ( include it ) in another package , what should i do ? thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-03 04:22:34 -0600

BennyRe gravatar image

This other package has to depend on the package that contains the srv file. (build and run depend in your CMakeLists.txt)

Then you include the service in the source file where you need it.

Everything is well explained in the tutorials.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-03 04:14:49 -0600

Seen: 995 times

Last updated: Feb 03 '15