Ask Your Question
0

how to use srv in another package?

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

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 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 618 times

Last updated: Feb 03 '15