org.ros.master.client
Class MasterStateClient
java.lang.Object
org.ros.master.client.MasterStateClient
public class MasterStateClient
- extends java.lang.Object
A remote client for obtaining system information from a master.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MasterStateClient
public MasterStateClient(Node caller,
java.net.URI masterUri)
lookupNode
public java.net.URI lookupNode(java.lang.String nodeName)
- Parameters:
nodeName
- the name of the Node
to lookup
- Returns:
- the
URI
of the Node
with the given name
getUri
public java.net.URI getUri()
- Returns:
- the
URI
of the MasterServer
lookupService
public java.net.URI lookupService(java.lang.String serviceName)
- Parameters:
serviceName
- the name of the ServiceServer
to look up
- Returns:
- the
URI
of the ServiceServer
with the given name
getPublishedTopics
public java.util.List<TopicDeclaration> getPublishedTopics(java.lang.String subgraph)
- Parameters:
subgraph
- the subgraph of the topics
- Returns:
- a
List
of TopicDeclaration
s for published topics
getTopicTypes
public java.util.List<TopicType> getTopicTypes()
- Returns:
- a
List
of TopicType
s known by the master
getSystemState
public SystemState getSystemState()
- Returns:
- the current
SystemState