Public Member Functions
org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint Interface Reference
Inheritance diagram for org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

List< Object > getPid (String callerId)
List< Object > getPublishedTopics (String callerId, String subgraph)
List< Object > getSystemState (String callerId)
List< Object > getTopicTypes (String callerId)
List< Object > getUri (String callerId)
List< Object > lookupNode (String callerId, String nodeName)
List< Object > lookupService (String callerId, String service)
List< Object > registerPublisher (String callerId, String topicName, String topicType, String callerApi)
List< Object > registerService (String callerId, String service, String serviceApi, String callerApi)
List< Object > registerSubscriber (String callerId, String topicName, String topicType, String callerApi)
List< Object > unregisterPublisher (String callerId, String topicName, String callerApi)
List< Object > unregisterService (String callerId, String service, String serviceApi)
List< Object > unregisterSubscriber (String callerId, String topicName, String callerApi)

Detailed Description

An XML-RPC endpoint description of a ROS master.

Author:
damonkohler@google.com (Damon Kohler)

Definition at line 26 of file MasterXmlRpcEndpoint.java.


Member Function Documentation

Get the PID for the master process.

Parameters:
callerIdROS caller ID
Returns:
The pid of the process.

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.getPublishedTopics ( String  callerId,
String  subgraph 
)

Get list of topics that can be subscribed to. This does not return topics that have no publishers. See getSystemState() to get more comprehensive list.

Parameters:
callerIdROS caller ID
subgraphRestrict topic names to match within the specified subgraph. Subgraph namespace is resolved relative to the caller's namespace. Use empty string to specify all names.
Returns:
Topics is in list representation [[topic, message type], [topic, message type] ...]

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

Retrieve list representation of system state (i.e. publishers, subscribers, and services).

Parameters:
callerIdROS caller ID
Returns:
System state is in list representation [publishers, subscribers, services] publishers is of the form [ [topic1, [topic1Publisher1...topic1PublisherN]] ... ] subscribers is of the form [ [topic1, [topic1Subscriber1...topic1SubscriberN]] ... ] services is of the form [ [service1, [service1Provider1...service1ProviderN]] ... ]

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

Get a list of all topic types.

Parameters:
callerIdROS caller ID
Returns:
The types are in the list representation [[topic, message type], [topic, message type] ...]

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

Get the URI of the the master.

Parameters:
callerIdROS caller ID
Returns:
URI of the the master

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.lookupNode ( String  callerId,
String  nodeName 
)

Get the XML-RPC URI of the node with the associated name/caller_id. This API is for looking information about publishers and subscribers. Use lookupService instead to lookup ROS-RPC URIs.

Parameters:
callerIdROS caller ID
nodeNameName of node to lookup
Returns:
URI of the node

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.lookupService ( String  callerId,
String  service 
)

Lookup all provider of a particular service.

Parameters:
callerIdROS caller ID
serviceFully-qualified name of service
Returns:
service URL is provides address and port of the service. Fails if there is no provider.

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.registerPublisher ( String  callerId,
String  topicName,
String  topicType,
String  callerApi 
)

Register the caller as a publisher the topic.

Parameters:
callerIdROS caller ID
topicNamefully-qualified name of topic to register
topicTypetopic type, must be a package-resource name, i.e. the .msg name.
callerApiAPI URI of publisher to register
Returns:
list of current subscribers of topic in the form of XML-RPC URIs

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.registerService ( String  callerId,
String  service,
String  serviceApi,
String  callerApi 
)

Register the caller as a provider of the specified service.

Parameters:
callerIdROS caller ID
serviceFully-qualified name of service
serviceApiXML-RPC URI of caller node
callerApi
Returns:
ignore

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.registerSubscriber ( String  callerId,
String  topicName,
String  topicType,
String  callerApi 
)

Subscribe the caller to the specified topic. In addition to receiving a list of current publishers, the subscriber will also receive notifications of new publishers via the publisherUpdate API.

Parameters:
callerIdROS caller ID
topicNameFully-qualified name of topic
topicTypetopic type, must be a package-resource name, i.e. the .msg name
callerApiAPI URI of subscriber to register. Will be used for new publisher notifications
Returns:
publishers as a list of XMLRPC API URIs for nodes currently publishing the specified topic

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.unregisterPublisher ( String  callerId,
String  topicName,
String  callerApi 
)

Unregister the caller as a publisher of the topic.

Parameters:
callerIdROS caller ID
topicNameFully-qualified name of topic.
callerApiAPI URI of publisher to unregister. Unregistration will only occur if current registration matches.
Returns:
If numUnsubscribed is zero it means that the caller was not registered as a subscriber. The call still succeeds as the intended final state is reached.

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.unregisterService ( String  callerId,
String  service,
String  serviceApi 
)

Unregister the caller as a provider of the specified service.

Parameters:
callerIdROS caller ID
serviceFully-qualified name of service
serviceApiAPI URI of service to unregister. Unregistration will only occur if current registration matches.
Returns:
Number of unregistrations (either 0 or 1). If this is zero it means that the caller was not registered as a service provider. The call still succeeds as the intended final state is reached.

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.

List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.unregisterSubscriber ( String  callerId,
String  topicName,
String  callerApi 
)

Unregister the caller as a publisher of the topic.

Parameters:
callerIdROS caller ID
topicNameFully-qualified name of topic.
callerApiAPI URI of service to unregister. Unregistration will only occur if current registration matches.
Returns:
If numUnsubscribed is zero it means that the caller was not registered as a subscriber. The call still succeeds as the intended final state is reached.

Implemented in org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.


The documentation for this interface was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51