From 75adfd2c03eb690c50a6a6c2d2d05c22f9ae32e5 Mon Sep 17 00:00:00 2001 From: Kaiyu Zheng Date: Thu, 14 Jul 2022 10:06:35 -0400 Subject: [PATCH] need to set encoding for img->img_msg --- .../src/rbd_spot_perception/src/rbd_spot_perception/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception/image.py b/spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception/image.py index 7041a84..56734ad 100644 --- a/spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception/image.py +++ b/spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception/image.py @@ -114,7 +114,7 @@ def imgarray_from_imgmsg(img_msg): return ros_utils.convert(img_msg) def imgmsg_from_imgarray(img_arr): - return ros_utils.convert(img_arr) + return ros_utils.convert(img_arr, encoding="rgb8") def create_client(conn):