%% Publish Data Without ROS Publisher
% Connect to a ROS network.

rosinit

%
% Create a message to send. Specify the Data property.

msg = rosmessage('std_msgs/String');
msg.Data = 'test phrase';

%
% Send message via the '/chatter' topic.

rospublisher('/chatter',msg)

%
% Shutdown the ROS network.

rosshutdown

% Copyright 2012 The MathWorks, Inc.
%