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

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

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

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

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

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.

edit flag offensive delete link more

Question Tools


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

Seen: 1,032 times

Last updated: Sep 12 '12