%% Set and Get Parameter Value
%
% Connect to the ROS network.

rosinit

%
% Create a ROS parameter tree. Set a double parameter. Get the parameter to verify it was set.

ptree = rosparam;
set(ptree,'DoubleParam',1.0)
get(ptree,'DoubleParam')

%
% Shut down the ROS network.

rosshutdown

% Copyright 2019 The MathWorks, Inc.