From 7a115367d899dc12e76fba8bb08e092c9fea0f89 Mon Sep 17 00:00:00 2001 From: ReyDoran Date: Fri, 10 Nov 2023 12:02:59 +0100 Subject: [PATCH] getMap function returns a grayscale uint8 array --- .../python_template/ros1_noetic/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/static/exercises/global_navigation_newmanager/python_template/ros1_noetic/map.py b/exercises/static/exercises/global_navigation_newmanager/python_template/ros1_noetic/map.py index 7ce481b20..b3bceeab8 100644 --- a/exercises/static/exercises/global_navigation_newmanager/python_template/ros1_noetic/map.py +++ b/exercises/static/exercises/global_navigation_newmanager/python_template/ros1_noetic/map.py @@ -131,4 +131,4 @@ def robotPose(self): pass def getMap(self, url): - return plt.imread(url) \ No newline at end of file + return cv2.imread(url, cv2.IMREAD_GRAYSCALE) \ No newline at end of file