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

services running in a node [closed]

asked 2013-09-20 01:29:08 -0500

Miguel Riem de Oliveira gravatar image

updated 2013-09-20 04:23:36 -0500

Hello

I was wondering if its possible to get a list of all services to which a node is connected, either as a client or as a server.

Somethis similar to ros::this_node::getSubscribedTopics()

http://docs.ros.org/electric/api/roscpp/html/namespaceros_1_1this__node.html#a81620bbd1e0a3196d694c38fbd4dea8a

Also, is it possible to know which parameters a node has read.

Thanks

Miguel Oliveira

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Miguel Riem de Oliveira
close date 2013-10-22 23:33:28

Comments

Hi everyone I found a workaround for this one. I use the shell ros service list api from ros. To make a system call and then get back the result I use ipstream library. Perhaps it is helpfull for someone. PS: I just did not find a way to get the client services a node is connected to ...

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-10-01 22:24:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-05 11:45:07 -0500

unknown_entity1 gravatar image

Hi Miguel,

You need to call getSystemState(caller_id) from the ROS XMLRPC Master API, and it returns a list of all the subscribers, publishers, and services. The Master API documentation URL: wiki.ros.org/ROS/Master_API

Thanks,

Aaron

edit flag offensive delete link more

Comments

Thanks for the answer Aaron. I'll do that. Miguel

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-10-22 23:33:03 -0500 )edit

Your welcome! There are multiple deficiencies in the API related to Services. Including the inability to obtain the Service Topic Type, and the inability to request MD5 information for Topics/Services.

unknown_entity1 gravatar image unknown_entity1  ( 2013-10-23 11:04:13 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2013-09-20 01:29:08 -0500

Seen: 378 times

Last updated: Oct 05 '13