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

List of all members.

Public Member Functions

List< Object > deleteParam (String callerId, String key)
List< Object > getParam (String callerId, String key)
List< Object > getParamNames (String callerId)
List< Object > hasParam (String callerId, String key)
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 callerApi, String key)
List< Object > unsubscribeParam (String callerId, String callerApi, String key)

Detailed Description

XML-RPC endpoint for a parameter server.

Author:
damonkohler@google.com (Damon Kohler)

Definition at line 30 of file ParameterServerXmlRpcEndpoint.java.


Member Function Documentation

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.deleteParam ( String  callerId,
String  key 
)

Deletes a parameter.

Parameters:
callerIdROS caller ID
keyparameter name
Returns:
void

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.getParam ( String  callerId,
String  key 
)

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.

Parameters:
callerIdROS caller ID
keyParameter name. If key is a namespace, getParam() will return a parameter tree.
Returns:
the parameter value

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

Gets the list of all parameter names stored on this server.

Parameters:
callerIdROS caller ID.
Returns:
a Collection of parameter names

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.hasParam ( String  callerId,
String  key 
)

Check if parameter is stored on server.

Parameters:
callerIdROS caller ID.
keyParameter name.
Returns:
 true 
if the parameter exists

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.searchParam ( String  callerId,
String  key 
)

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.

Parameters:
callerIdROS caller ID
keyParameter name to search for.
Returns:
the found key

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
Boolean  value 
)

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.

Parameters:
callerIdROS caller ID
keyParameter name.
valueParameter value.
Returns:
void

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
Integer  value 
)
List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
Double  value 
)
List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
String  value 
)
List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
List<?>  value 
)
List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.setParam ( String  callerId,
String  key,
Map<?,?>  value 
)
List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.subscribeParam ( String  callerId,
String  callerApi,
String  key 
)

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.

Parameters:
callerIdROS caller ID
callerApiNode API URI of subscriber for paramUpdate callbacks.
key
Returns:
the parameter value

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

List<Object> org.ros.internal.node.xmlrpc.ParameterServerXmlRpcEndpoint.unsubscribeParam ( String  callerId,
String  callerApi,
String  key 
)

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.

Parameters:
callerIdROS caller ID
callerApiNode API URI of subscriber
keyParameter name
Returns:
the number of parameters that were unsubscribed

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