Skip to content

Commit 75adfd2

Browse files
committed
need to set encoding for img->img_msg
1 parent d0ab791 commit 75adfd2

File tree

1 file changed

+1
-1
lines changed
  • spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception

1 file changed

+1
-1
lines changed

spot/ros_ws/src/rbd_spot_perception/src/rbd_spot_perception/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def imgarray_from_imgmsg(img_msg):
114114
return ros_utils.convert(img_msg)
115115

116116
def imgmsg_from_imgarray(img_arr):
117-
return ros_utils.convert(img_arr)
117+
return ros_utils.convert(img_arr, encoding="rgb8")
118118

119119

120120
def create_client(conn):

0 commit comments

Comments
 (0)