set
Set value of ROS parameter or add new parameter
Description
set(
assigns
the value ptree
,paramname
,pvalue
)pvalue
to the parameter with the name paramname
.
This parameter is sent to the parameter tree ptree
.
set(
assigns
multiple values as a dictionary in ptree
,namespace
,pvalue
)pvalue
under
the specified 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 —
int32
Boolean —
logical
double —
double
strings — string scalar,
string
, or character vector,char
list — cell array (
cell
)dictionary — structure (
struct
)
Examples
Input Arguments
Limitations
Base64-encoded binary data and iso 8601 data from ROS are not supported.
Extended Capabilities
Version History
Introduced in R2019b