how to save the content of MultiArrayDimension?
Hi! I would like to save the content of a MultiArrayDimension in different variables but I get different kinds of mistakes. Any suggestions? My message is this:
std_msgs/UInt8MultiArray right_beam
std_msgs/MultiArrayLayout layout
std_msgs/MultiArrayDimension[] dim
string label
uint32 size
uint32 stride
uint32 data_offset
uint8[] data
Hi @v.leto, please take a look at this prior answer: https://answers.ros.org/question/3718...
hi @osilva I have already read it but his question was on how to inizializate the fileds. I would like to read them.
My bad. Take a look at this similar example: https://alexsleat.co.uk/2011/07/02/ro...
Is that what you are looking for?
it works for the data field but I have problems with the dim one
I think is better to share your code. Otherwise to help is just guessing
yes, you are right, but it is too big. Thanks anyway