Ask Your Question
0

getTopics equivalent for services (C++)

asked 2013-11-18 09:54:38 -0500

brianw1 gravatar image

updated 2014-01-28 17:18:34 -0500

ngrennan gravatar image

I am using "getTopics" in ros/master.h to get a list of possible topics and their types.

There doesn't appear to be any equivalent for getting a list of services and types because services don't register their types with roscore. In the Python rosservice API, rosservice list uses rosgraph to send/recv a probe request over a raw TCP socket to get an individual service type.

Is there a built-in way of doing this with the C++ API? Do I need to resort to Boost.Python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-18 11:29:49 -0500

brianw1 gravatar image

Here's an example that uses Boost.Python to utilize rosservice: [getServices](https://gist.github.com/anonymous/7537252)

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: 2013-11-18 09:54:38 -0500

Seen: 263 times

Last updated: Nov 18 '13