Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 99

How to publish a 2 dimensional array of known values

$
0
0
Hello, I'm stuck at my program to publish a 2 dimensional array. The array kinda looks like this: int deptharray[4][5] = { {0, 0, 0, 0}, {0, average11, average21, average31, average41}, {0, average12, average22, average32, average42}, 0, average13, average23, average33, average43}, }; I also read several posts about how to publish an int32MultiArray but unfortunately none of my attemps to publish this array of known values worked. All examples that I have seen have unknown sizes and then use the push_back function in a for loop. I'd be really glad if you could help me. Thank you very much

Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>