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

How can I get all currently running nodes from the master in rosjava?

asked 2012-09-03 00:34:44 -0600

sacrif gravatar image

Is there a simple way to retrieve all currently running nodes from the ros master in rosjava? In order to obtain all topics in the system the following works:

MasterClient masterClient = new MasterClient(this.node.getMasterUri());
Response<SystemState> systemState = masterClient.getSystemState(defaultNodeName);
List<TopicSystemState> topicSystemStateList = systemState.getResult().getTopics();

Is there something similar to obtain all running nodes? The only way I found is to indirectly retrieve them via TopicSystemState.getPublishers() and TopicSystemState.getSubscribers() - but this would ignore nodes which do not subscribe or publish anything.

Regards scr

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-12 02:15:04 -0600

damonkohler gravatar image

While the underlying information is available, much of the master API is not yet exposed as a public API. Feel free to file a feature request.

http://code.google.com/p/rosjava/issues/list

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-09-03 00:34:44 -0600

Seen: 1,055 times

Last updated: Sep 12 '12