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

publish array

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

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
1

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

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

Stats

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

Seen: 724 times

Last updated: Aug 27 '12