get_zones()
- 1 Minute to read
get_zones()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
get_zones()
Retrieve all saved zone areas in a specific map.
Reference
Arguments
Arguments | Type | Default value | |
---|---|---|---|
map_name | str | The requested map. |
Return
Dict
with zone name as key and Dict
with data of the zone as value.
Key | Type | Info |
---|---|---|
$zone_name_0 | Dict | zone_limits : list of X,Y points limiting zone, zone_points : list of X,Y points inside zone. |
$zone_name_1 | Dict | zone_limits : list of X,Y points limiting zone, zone_points : list of X,Y points inside zone. |
... | ... | ... |
$zone_name_n | Dict | zone_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
Exception | Condition |
---|---|
RayaNavNotLocated | The robot is not located on the map. |
RayaNavZonesNotFound | No zones found on the map. |
RayaNavUnkownError | An unknown error occurs. |
See the complete list of Raya Exceptions. |
Example
Was this article helpful?