Skip to content

Commit

Permalink
need to set encoding for img->img_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
zkytony committed Jul 14, 2022
1 parent d0ab791 commit 75adfd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 75adfd2

Please sign in to comment.