0
$\begingroup$

Rosanswers logo

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


Originally posted by Bastbeat on ROS Answers with karma: 131 on 2014-04-13

Post score: 0


Original comments

Comment by ahendrix on 2014-04-13:
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?

Comment by Bastbeat on 2014-04-13:
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

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by ahendrix with karma: 47576 on 2014-04-13

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.