%% Create ROS ParameterTree Object and Modify Parameters
%
% Start the ROS master and create a ROS node.

master = ros.Core;
node = ros.Node('/test1');

%
% Create the parameter tree object.

ptree = ros.ParameterTree(node);

%
% Set multiple parameters.

set(ptree,'DoubleParam',1.0)
set(ptree,'CharParam','test')
set(ptree,'CellParam',{{'test'},{1,2}});

%
% View the available parameters.

parameters = ptree.AvailableParameters

%
% Get a parameter value.

data = get(ptree,'CellParam')

%
% Search for a parameter name.

search(ptree,'char')

%
% Delete the parameter tree and ROS node. Shut down the ROS master.

clear('ptree','node')
clear('master')

%
% Copyright 2019 The MathWorks, Inc.