ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Thu, 11 Sep 2014 08:53:02 -0500how to publish a list of numpy arrayshttps://answers.ros.org/question/192470/how-to-publish-a-list-of-numpy-arrays/Hello,
I have trouble when publishing a list of numpy arrays (results got from cv2.findContours function),
e.g.: `[array([[[100, 70]], [[90, 70]], ...], dtype=int32), array(...., dtype=int32), ....]`
Is there any good way to publish the whole list? Like:
Header header
NumpyArray[] data
I tried the tutorial for using numpy with rospy (http://wiki.ros.org/rospy_tutorials/Tutorials/numpy), but seems only work if publishing one 1d numpy array.
Thanks a lot in advance!Thu, 11 Sep 2014 08:53:02 -0500https://answers.ros.org/question/192470/how-to-publish-a-list-of-numpy-arrays/