Public Member Functions | |
List< Object > | deleteParam (String callerId, String key) |
List< Object > | getParam (String callerId, String key) |
List< Object > | getParamNames (String callerId) |
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 > | hasParam (String callerId, String key) |
List< Object > | lookupNode (String callerId, String nodeName) |
List< Object > | lookupService (String callerId, String serviceName) |
MasterXmlRpcEndpointImpl (MasterServer master) | |
List< Object > | registerPublisher (String callerId, String topicName, String topicMessageType, String callerSlaveUri) |
List< Object > | registerService (String callerId, String serviceName, String serviceUri, String callerSlaveUri) |
List< Object > | registerSubscriber (String callerId, String topicName, String topicMessageType, String callerSlaveUri) |
List< Object > | searchParam (String callerId, String key) |
List< Object > | setParam (String callerId, String key, Boolean value) |
List< Object > | setParam (String callerId, String key, Integer value) |
List< Object > | setParam (String callerId, String key, Double value) |
List< Object > | setParam (String callerId, String key, String value) |
List< Object > | setParam (String callerId, String key, List<?> value) |
List< Object > | setParam (String callerId, String key, Map<?,?> value) |
List< Object > | subscribeParam (String callerId, String callerSlaveUri, String key) |
List< Object > | unregisterPublisher (String callerId, String topicName, String callerSlaveUri) |
List< Object > | unregisterService (String callerId, String serviceName, String serviceUri) |
List< Object > | unregisterSubscriber (String callerId, String topicName, String callerSlaveUri) |
List< Object > | unsubscribeParam (String callerId, String callerSlaveUri, String key) |
Private Attributes | |
final MasterServer | master |
final ParameterServer | parameterServer |
A combined XML-RPC endpoint for the master and parameter servers.
Definition at line 40 of file MasterXmlRpcEndpointImpl.java.
org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.MasterXmlRpcEndpointImpl | ( | MasterServer | master | ) | [inline] |
Definition at line 46 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.deleteParam | ( | String | callerId, |
String | key | ||
) | [inline] |
Deletes a parameter.
callerId | ROS caller ID |
key | parameter name |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 238 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getParam | ( | String | callerId, |
String | key | ||
) | [inline] |
Retrieve parameter value from server.
If code is not 1, parameterValue should be ignored. If key is a namespace, the return value will be a dictionary, where each key is a parameter in that namespace. Sub-namespaces are also represented as dictionaries.
callerId | ROS caller ID |
key | Parameter name. If key is a namespace, getParam() will return a parameter tree. |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 207 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getParamNames | ( | String | callerId | ) | [inline] |
Gets the list of all parameter names stored on this server.
callerId | ROS caller ID. |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 249 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getPid | ( | String | callerId | ) | [inline] |
Get the PID for the master process.
callerId | ROS caller ID |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 52 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getPublishedTopics | ( | String | callerId, |
String | subgraph | ||
) | [inline] |
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.
callerId | ROS caller ID |
subgraph | Restrict 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. |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 57 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getSystemState | ( | String | callerId | ) | [inline] |
Retrieve list representation of system state (i.e. publishers, subscribers, and services).
callerId | ROS caller ID |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 69 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getTopicTypes | ( | String | callerId | ) | [inline] |
Get a list of all topic types.
callerId | ROS caller ID |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 63 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.getUri | ( | String | callerId | ) | [inline] |
Get the URI of the the master.
callerId | ROS caller ID |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 74 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.hasParam | ( | String | callerId, |
String | key | ||
) | [inline] |
Check if parameter is stored on server.
callerId | ROS caller ID. |
key | Parameter name. |
true
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 244 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.lookupNode | ( | String | callerId, |
String | nodeName | ||
) | [inline] |
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.
callerId | ROS caller ID |
nodeName | Name of node to lookup |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 79 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.lookupService | ( | String | callerId, |
String | service | ||
) | [inline] |
Lookup all provider of a particular service.
callerId | ROS caller ID |
service | Fully-qualified name of service |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 138 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.registerPublisher | ( | String | callerId, |
String | topicName, | ||
String | topicType, | ||
String | callerApi | ||
) | [inline] |
Register the caller as a publisher the topic.
callerId | ROS caller ID |
topicName | fully-qualified name of topic to register |
topicType | topic type, must be a package-resource name, i.e. the .msg name. |
callerApi | API URI of publisher to register |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 89 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.registerService | ( | String | callerId, |
String | service, | ||
String | serviceApi, | ||
String | callerApi | ||
) | [inline] |
Register the caller as a provider of the specified service.
callerId | ROS caller ID |
service | Fully-qualified name of service |
serviceApi | XML-RPC URI of caller node |
callerApi |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 147 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.registerSubscriber | ( | String | callerId, |
String | topicName, | ||
String | topicType, | ||
String | callerApi | ||
) | [inline] |
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.
callerId | ROS caller ID |
topicName | Fully-qualified name of topic |
topicType | topic type, must be a package-resource name, i.e. the .msg name |
callerApi | API URI of subscriber to register. Will be used for new publisher notifications |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 113 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.searchParam | ( | String | callerId, |
String | key | ||
) | [inline] |
Searches for a parameter key on the ParameterServer.
Search starts in caller's namespace and proceeds upwards through parent namespaces until Parameter Server finds a matching key. searchParam()'s behavior is to search for the first partial match. For example, imagine that there are two 'robot_description' parameters /robot_description /robot_description/arm /robot_description/base /pr2/robot_description /pr2/robot_description/base If I start in the namespace /pr2/foo and search for robot_description, searchParam() will match /pr2/robot_description. If I search for robot_description/arm it will return /pr2/robot_description/arm, even though that parameter does not exist (yet).
If code is not 1, foundKey should be ignored.
callerId | ROS caller ID |
key | Parameter name to search for. |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 216 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
Boolean | value | ||
) | [inline] |
Sets a parameter.
NOTE: if value is a dictionary it will be treated as a parameter tree, where key is the parameter namespace. For example {'x':1,'y':2,'sub':{'z':3}} will set key/x=1, key/y=2, and key/sub/z=3. Furthermore, it will replace all existing parameters in the key parameter namespace with the parameters in value. You must set parameters individually if you wish to perform a union update.
callerId | ROS caller ID |
key | Parameter name. |
value | Parameter value. |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 171 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
Integer | value | ||
) | [inline] |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 177 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
Double | value | ||
) | [inline] |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 183 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
String | value | ||
) | [inline] |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 189 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
List<?> | value | ||
) | [inline] |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 195 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.setParam | ( | String | callerId, |
String | key, | ||
Map<?,?> | value | ||
) | [inline] |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 201 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.subscribeParam | ( | String | callerId, |
String | callerApi, | ||
String | key | ||
) | [inline] |
Retrieves the parameter value from server and subscribe to updates to that param. See paramUpdate() in the Node API.
If code is not 1, parameterValue should be ignored. parameterValue is an empty dictionary if the parameter has not been set yet.
callerId | ROS caller ID |
callerApi | Node API URI of subscriber for paramUpdate callbacks. |
key |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 221 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.unregisterPublisher | ( | String | callerId, |
String | topicName, | ||
String | callerApi | ||
) | [inline] |
Unregister the caller as a publisher of the topic.
callerId | ROS caller ID |
topicName | Fully-qualified name of topic. |
callerApi | API URI of publisher to unregister. Unregistration will only occur if current registration matches. |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 107 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.unregisterService | ( | String | callerId, |
String | service, | ||
String | serviceApi | ||
) | [inline] |
Unregister the caller as a provider of the specified service.
callerId | ROS caller ID |
service | Fully-qualified name of service |
serviceApi | API URI of service to unregister. Unregistration will only occur if current registration matches. |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 159 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.unregisterSubscriber | ( | String | callerId, |
String | topicName, | ||
String | callerApi | ||
) | [inline] |
Unregister the caller as a publisher of the topic.
callerId | ROS caller ID |
topicName | Fully-qualified name of topic. |
callerApi | API URI of service to unregister. Unregistration will only occur if current registration matches. |
Implements org.ros.internal.node.xmlrpc.MasterXmlRpcEndpoint.
Definition at line 132 of file MasterXmlRpcEndpointImpl.java.
List<Object> org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.unsubscribeParam | ( | String | callerId, |
String | callerApi, | ||
String | key | ||
) | [inline] |
Unsubscribes from updates to the specified param. See paramUpdate() in the Node API.
A return value of zero means that the caller was not subscribed to the parameter.
callerId | ROS caller ID |
callerApi | Node API URI of subscriber |
key | Parameter name |
Implements org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.
Definition at line 233 of file MasterXmlRpcEndpointImpl.java.
Definition at line 43 of file MasterXmlRpcEndpointImpl.java.
final ParameterServer org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl.parameterServer [private] |
Definition at line 44 of file MasterXmlRpcEndpointImpl.java.