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

How can I represent Multidimensional array in msg format

$
0
0
If i have something like int mein[NUM][4]; in C++. How do I represent it in msg format. Should it be something like uint8[][4] mein Also as NUM is defined in my C++ file and can vary according to certain parameters. Should I just allocate it dynamically in msg format or I should give it a certain value or define NUM in msg format. Do you think there would be any disadvantage if I just allocate it dynamically meaning like `uint8[][4] mein`.

Viewing all articles
Browse latest Browse all 84

Trending Articles



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