Open BB142 opened 1 year ago
Doing stuff with the GpuMat at the listener side is somehow impossible. Functions like download, clone(), etc. yield an invalid argument error. The gpu_mat is not empty.
Thanks for your report! I have't test the post-process of GpuMat. Could you help to reproduce this behavior?
Thanks! @BB142
Thanks for your fast response.
This error happens when splitting the talker and listener in two seperate executor. With one executor everything works fine. Is there a way to get those two nodes running in different executors?
You can not simply use ros2 run
because it will not able to find the image file.
https://github.com/ZhenshengLee/ros2_shm_msgs/blob/42fde5f188dc5a55be54718cbb601539d2823815/cuda/gmat_image_talker.hpp#L51
so, use this command to run the origional executable, to check if there is still output the error.
cd ./install/shm_msgs/lib/shm_msgs/
./gmat_image_node
I will find some time to check your code in the fork. https://github.com/ZhenshengLee/ros2_shm_msgs/compare/humble...BB142:ros2_shm_msgs:humble
Before this , I suggest you run the original code to test the new type adaption feature in humble.
Hey,
thanks a lot for the awesome examples. I tried your cuda GpuMat examples and it is working fine. Doing stuff with the GpuMat at the listener side is somehow impossible. Functions like download, clone(), etc. yield an invalid argument error. The gpu_mat is not empty.
Any idea how to access the data of the GpuMat at listener side?