ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

publish array

asked 2012-08-27 03:21:52 -0600

shane gravatar image

hi at all,

easy question (or at least i hope so): how can I write a publisher which publishes an float64array? the problem is, i'm quite new to c++ so i don't understand all of the lines in the tutorial, where a string is published.

thx in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-27 23:55:36 -0600

dornhege gravatar image

Whereever the string message would be filled, when you fill the array, you would use push_back as ROS translates the arrays to c++ vectors.

edit flag offensive delete link more

Question Tools


Asked: 2012-08-27 03:21:52 -0600

Seen: 688 times

Last updated: Aug 27 '12