From d9d24f175be0333722aefee18c37707e031219bf Mon Sep 17 00:00:00 2001 From: ReyDoran Date: Tue, 19 Dec 2023 14:16:24 +0100 Subject: [PATCH] Added getMap documentation Amazon Warehouse --- _pages/exercises/MobileRobots/amazon_warehouse.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_pages/exercises/MobileRobots/amazon_warehouse.md b/_pages/exercises/MobileRobots/amazon_warehouse.md index 0014d00ec..edf1bbc4e 100644 --- a/_pages/exercises/MobileRobots/amazon_warehouse.md +++ b/_pages/exercises/MobileRobots/amazon_warehouse.md @@ -123,6 +123,7 @@ while True: * `HAL.lift()` - to lift the platform * `HAL.putdown()` - to put down the platform * `GUI.showPath(array)` - shows a path on the map. The parameter should be a 2D array containing each of the points of the path +* `GUI.getMap(url)` - returns a numpy array with the image data in a 3 dimensional array (R, G, B, A). The URL of the Amazon Warehouse World 1 is '/RoboticsAcademy/exercises/static/exercises/amazon_warehouse_newmanager/resources/images/map.png'. The URL of the Amazon Warehouse World 2 is '/RoboticsAcademy/exercises/static/exercises/amazon_warehouse_newmanager/resources/images/map_2.png'. ## Supporting information