How to publish/subscribe to an X,Y,Z array in ROS

asked 2017-02-05 13:16:25 -0500

ryan4588 gravatar image

updated 2017-02-05 13:17:15 -0500

I am trying to publish and subscribe to an array containing X,Y,Z values that I find useful. These values are taken directly from a PointCloud<xyzi>.

The general format for the <float> array is:

my_array[x][y] = z;

However, I can't seem to find any useful tutorials for my setup. I saw multidimensional arrays, but I'm not sure how to apply them to this situation. From what I read, it doesn't seem like it would apply.

Thanks for your help!

edit retag flag offensive close merge delete


You can create and operate the publish/subscribe things by the ros messages defined by yourself.

FrozenCh gravatar image FrozenCh  ( 2017-02-05 20:10:50 -0500 )edit