Unable to serialize Python list in message
How do you store a list of uints in a ROS message? I have a message like:
string frame
string type
uint8 quality
uint8[] a
uint8[] b
uint8[] c
uint8[] d
uint8 width
uint8 height
string data
but when I try to store:
mymsg.a = [1, 2]
mypub.publish(mymsg)
I get the error:
ROSSerializationException: field a[] exceeds specified width [uint8]
Why is this?