get_localization_status()¶
Get current localization status.
Reference¶
Arguments¶
Arguments |
Type |
|
|---|---|---|
|
|
ENUM (0 Degrees, 1 Radians) |
|
|
ENUM (0 Pixels, 1 Meters) |
Return¶
Type |
Description |
|---|---|
|
Return dictionary with angle, x and y. |
Exceptions¶
RayaStatusServerProviderDown
See the complete status exceptions..
Usage example¶
Code:
localization_status = await self.status.get_localization_status(
ang_unit=ANGLE_UNIT.DEGREES,
pos_unit=POSITION_UNIT.METERS,
)
self.log.info(localization_status)
Output:
{'angle': 87.56, 'x': 398.0, 'y': 809.0}