Int16MultiArray messages with rosserial_tivac
Hello All,
I am trying to send Int16MultiArray messages with rosserial_tivac using the code in this here.
There is the statement:
my_array.data = (int*) malloc(sizeof(int) * 8);
which causes compile error:
sketch_mar20b.cpp:23:17: error: cannot convert 'int' to 'int16_t {aka short int*}' in assignment
in order to compile I had to change it to:
my_array.data = (int16_t*) malloc(sizeof(int) * 8);
which will compile, and the rosserial node will declare the published topic (my_array_topic in my case) - but unfortunately, rostopic echo /my_array_topic will not display anything.
Also I have not been able to find good documentation and examples about these MultiArray messages, so it would be great if someone could point me out in the right direction for learning more about them.
Best Regards, C.