get_locations()
  • 1 Minute to read

get_locations()


Article summary

get_locations()

Retrieve all saved locations in a specific map.

Reference

Arguments

ArgumentsTypeDefault value
map_namestrThe requested map.

Return

Dict with zone name as key and Dict with data of the zone as value.

KeyTypeInfo
$location_name_0Dictx: x position, y: y position.
$location_name_1Dictx: x position, y: y position.
.........
$location_name_nDictx: x position, y: y position.

Exceptions

ExceptionCondition
RayaNavNotLocatedThe robot is not located on the map.
RayaNavZonesNotFoundNo zones found on the map.
RayaNavUnkownErrorAn unknown error occurs.
See the complete list of Raya Exceptions.

Was this article helpful?