Package org.ros.node
Class AnonymousParmeterTree
java.lang.Object
org.ros.node.AnonymousParmeterTree
- All Implemented Interfaces:
ParameterTree
- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameterListener(String name, ParameterListener listener) voidaddParameterListener(GraphName name, ParameterListener listener) Subscribes to changes to the specified parameter.voidvoidDeletes a specified parameter.booleangetBoolean(String name) booleangetBoolean(String name, boolean defaultValue) booleangetBoolean(GraphName name) booleangetBoolean(GraphName name, boolean defaultValue) doubledoubledoubledoubleintgetInteger(String name) intgetInteger(String name, int defaultValue) intgetInteger(GraphName name) intgetInteger(GraphName name, int defaultValue) List<?>List<?>List<?>List<?>Map<?,?> Map<?,?> Map<?,?> Map<?,?> getNames()booleanbooleanSearch for parameter key on the Parameter Server.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
AnonymousParmeterTree
-
-
Method Details
-
getBoolean
- Specified by:
getBooleanin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value
-
getBoolean
- Specified by:
getBooleanin interfaceParameterTree- See Also:
-
getBoolean
- Specified by:
getBooleanin interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getBoolean
- Specified by:
getBooleanin interfaceParameterTree- See Also:
-
getInteger
- Specified by:
getIntegerin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value
-
getInteger
- Specified by:
getIntegerin interfaceParameterTree- See Also:
-
getInteger
- Specified by:
getIntegerin interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getInteger
- Specified by:
getIntegerin interfaceParameterTree- See Also:
-
getDouble
- Specified by:
getDoublein interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value
-
getDouble
- Specified by:
getDoublein interfaceParameterTree- See Also:
-
getDouble
- Specified by:
getDoublein interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getDouble
- Specified by:
getDoublein interfaceParameterTree- See Also:
-
getString
- Specified by:
getStringin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value:w
-
getString
- Specified by:
getStringin interfaceParameterTree- See Also:
-
getString
- Specified by:
getStringin interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getString
- Specified by:
getStringin interfaceParameterTree- See Also:
-
getList
- Specified by:
getListin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value
-
getList
- Specified by:
getListin interfaceParameterTree- See Also:
-
getList
- Specified by:
getListin interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getList
- Specified by:
getListin interfaceParameterTree- See Also:
-
getMap
- Specified by:
getMapin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
- the parameter value
-
getMap
- Specified by:
getMapin interfaceParameterTree- See Also:
-
getMap
- Specified by:
getMapin interfaceParameterTree- Parameters:
name- the parameter namedefaultValue- the default value- Returns:
- the parameter value or the default value if the parameter does not exist
-
getMap
- Specified by:
getMapin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
set
- Specified by:
setin interfaceParameterTree- Parameters:
name- the parameter namevalue- the value that the parameter will be set to
-
set
- Specified by:
setin interfaceParameterTree- See Also:
-
has
- Specified by:
hasin interfaceParameterTree- Parameters:
name- the parameter name- Returns:
trueif a parameter with the given name exists,falseotherwise
-
has
- Specified by:
hasin interfaceParameterTree- See Also:
-
delete
Description copied from interface:ParameterTreeDeletes a specified parameter.- Specified by:
deletein interfaceParameterTree- Parameters:
name- the parameter name
-
delete
- Specified by:
deletein interfaceParameterTree- See Also:
-
search
Description copied from interface:ParameterTreeSearch for parameter key on the Parameter Server. Search starts in caller's namespace and proceeds upwards through parent namespaces until theParameterServerfinds a matching key.- Specified by:
searchin interfaceParameterTree- Parameters:
name- the parameter name to search for- Returns:
- the name of the found parameter or
nullif no matching parameter was found
-
search
- Specified by:
searchin interfaceParameterTree- See Also:
-
getNames
- Specified by:
getNamesin interfaceParameterTree- Returns:
- all known parameter names
-
addParameterListener
Description copied from interface:ParameterTreeSubscribes to changes to the specified parameter.- Specified by:
addParameterListenerin interfaceParameterTree- Parameters:
name- the parameter name to subscribe tolistener- aParameterListenerthat will be called when the subscribed parameter changes- Throws:
UnsupportedOperationException
-
addParameterListener
- Specified by:
addParameterListenerin interfaceParameterTree- Throws:
UnsupportedOperationException- See Also:
-