is_camera_enabled()
  • 1 Minute to read

is_camera_enabled()


Article summary

This method checks whether a specific camera is enabled.

Reference

Arguments

ArgumentTypeDefault valueDescription
camera_namestr
-Name of the camera to check.

Return

TypeDescription
bool
Returns a boolean indicating whether the camera is enabled or not.

Exceptions

  • RayaCameraInvalidName

See the complete list of cameras exceptions.

Usage Example

1. Get camera enabled check

...
self.cameras = await self.enable_controller('cameras')
...
chest_is_enabled = self.cameras.is_camera_enabled(camera_name='chest')
print(chest_is_enabled)
...

Output:

False

Was this article helpful?