How to publish a geometry_msgs/PiontStamped from Matlab

asked 2014-07-16 05:27:17 -0600

elybetty gravatar image

Hi all,

I'm a newest user under rosmatlab, I had made the basic tutorial and it works fine. Now I'm trying to publish a geometry_msgs/PiontStamped, then:

% Lauch roscore on port 11311

roscore = rosmatlab.roscore(11311);

% create a new node

node = rosmatlab.node('NaplesUAVM',roscore.RosMasterUri);

% create a publisher

publisher = rosmatlab.publisher('time','geometry_msgs/PointStamped',node);

% create a subscriber

msg = rosmatlab.message('geometry_msgs/PointStamped',node);

Now, when I write the message values, I only have two possibilities :

msg.setHeader and msg.setPiont

but I don't know what's the correct syntax.

Can anyone help me??

Thanks in advance Elisabetta

edit retag flag offensive close merge delete