Ask Your Question
0

Get Service type from C++

asked 2014-04-13 07:49:11 -0500

Bastbeat gravatar image

updated 2016-10-24 09:04:23 -0500

ngrennan gravatar image

In this code there is a function to get the type of a Service "get_service_type()": http://ros-win32.servicerobotics.eu/t... How can I do that from C++?

edit retag flag offensive close merge delete

Comments

What are you trying to achieve with this? Are you just trying to get the name of the service type, or will you try to call it after you've retrieved the type?

ahendrix gravatar image ahendrix  ( 2014-04-13 08:56:35 -0500 )edit

I want to create a Parameter with the information of each Service. Name, Type, Request and Response. To be able to call a service from another computer with rosbridge without having to look at the service from Ros

Bastbeat gravatar image Bastbeat  ( 2014-04-13 09:20:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-13 09:55:48 -0500

ahendrix gravatar image

I believe the functionality you're looking for is already implemented as a service in the rosapi package and it can be accessed natively from roslibjs via the getServices method.

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: 2014-04-13 07:49:11 -0500

Seen: 189 times

Last updated: Apr 13 '14