Hello!
My question is quite simple is it possible to create publishers/subscriber of a numpy.ndarray topic and how? I searched on the internet and I found these two links :
- https://answers.ros.org/question/323492/publishing-cv2-image-message-in-ros2-rclpy/
- https://answers.ros.org/question/323570/fastest-way-of-publishing-large-ndarray-image-data-as-string-message-on-ros2-rclpy/
I don't know if I understood them wrong but apparently it is possible to do so. I'm using ROS2 Foxy Fitztroy. I tried to create my own custom message type with numpy.ndarray but it never ended up well, and in fact i don't really know in which direction i should search. Is there already some tutorial on how to do it? Should I create a custom message type? Does ROS2 handle it without doing anything? I'm quite lost now so any help would be very much appreciate!
If you need further information to help me let me know!
Originally posted by Kreace on ROS Answers with karma: 5 on 2020-11-02
Post score: 0