Open mymrblack opened 4 years ago
Hi mymrblack,
I was able to fix this by supplying the 'encoding' argument. My incoming Image message used the encoding of 'rgb8', so successfully running your function would look like (assuming encoding of 'rgb8'):
img_msg_to_be_publish = ros.numpy.msgify(Image, img_array, encoding='rbg8')
Hi, I am using ros kenetic in Linux 16.04 LTS, and trying to convert numpy array to ros image message. I used the code like:
But I get the error:
Do I use it in a wrong way? Thank you in advance