reading a ROS Image

asked 2023-06-07 22:18:25 -0600

07hokagw gravatar image

Hi, we are facing the issue of

ImportError: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0

when trying to use the cvbridge function depth_cv = self.cv_bridge.imgmsg_to_cv2(depth) .

So we instead switched to converting ROS Images into numpy arrays using

depth_cv = np.frombuffer(depth.data, dtype=np.uint8).reshape(depth.height, depth.width, -1) im_gray = cv2.cvtColor(im, cv2.COLOR_RGB2GRAY)

It now returns the data as array of NaN. Any suggestion to correctly read the images.

edit retag flag offensive close merge delete