In ROS (Robot Operating System) it’s really easy to publish variables to be used between nodes running on the same roscore however I was having some difficulty doing the same for arrays. The problem came when there was no real examples of how to use them, so here is a working example of std_msgs/*MultiArray in CPP.
Publishing:
[gist][/gist]
Subscribing:
[gist][/gist]
Appreciate it.
Thanks mate, it was very useful!
Thank you so much
Thank you!
Thanks :)
Dear Alex,
just wondering, why doesn’t it work when I change it to Int16MultiArray.
By the way, I’m trying to read int16multiarray