get_zones()
  • 1 Minute to read

get_zones()


Article summary

get_zones()

Retrieve all saved zone areas 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
$zone_name_0Dictzone_limits: list of X,Y points limiting zone, zone_points: list of X,Y points inside zone.
$zone_name_1Dictzone_limits: list of X,Y points limiting zone, zone_points: list of X,Y points inside zone.
.........
$zone_name_nDictzone_limits: list of X,Y points limiting zone, zone_points: list of X,Y points inside zone.

zones[zone.zone_name] = {'zone_limits': zone_limit_points, 'zone_points': zone_points_points}

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.

Example


Was this article helpful?

What's Next