get_localization_status()
  • 1 Minute to read

get_localization_status()


Article summary

Get current localization status.

Reference

Arguments

ArgumentsType
ang_unitANGLE_UNITENUM (0 Degrees, 1 Radians)
pos_unitPOSITION_UNITENUM (0 Pixels, 1 Meters)

Return

TypeDescription
dictReturn dictionary with angle, x and y.

Exceptions

  • RayaStatusServerProviderDown

See the complete status exceptions..

Usage example

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}


Was this article helpful?