get
Get ROS parameter value
Syntax
Description
returns
a dictionary of parameter values under the root namespace: pvalue = get(ptree)/.
The dictionary is stored in a structure.
gets the value of the parameter with the name pvalue = get(ptree,paramname)paramname from
the parameter tree object ptree.
returns
a dictionary of parameter values under the specified namespace.pvalue = get(ptree,namespace)
The following ROS data types are supported as values of parameters. For each ROS data type, the corresponding MATLAB® data type is also listed.
32-bit integer —
int32Boolean —
logicaldouble —
doublestrings — string scalar,
string, or character vector,charlist — cell array (
cell)dictionary — structure (
struct)
Examples
Input Arguments
Output Arguments
Limitations
Base64-encoded binary data and iso 8601 data from ROS are not supported.
Extended Capabilities
Version History
Introduced in R2019b