Cameras
  • 1 Minute to read

Cameras


Article summary

1. Overview

The controller provides methods for managing cameras in the system. It enables and disables cameras, retrieves frames from them, and sets up event listeners for captured frames. The methods allow these operations to be performed both synchronously and asynchronously, with options to obtain images and timestamps. The class is versatile and can be used for both color and depth cameras, providing an abstraction layer for controlling and accessing the available cameras in the robot.

For example, Gary's cameras are identified by the following names and could be:

Camera  nameType
head_frontRGBD
nav_bottomRGBD
chestRGB

2. Using the Controller

Creating the controller in your app:

from raya.application_base import RayaApplicationBase

class RayaApplication(RayaApplicationBase):
    async def setup(self):
        ...
        self.cameras = await self.enable_controller('cameras')
        ...

3. Methods

The controller class includes a set of methods to access the cameras, to obtain detailed information about each method, click on the respective name:

Synchronoys methods:

Asynchronoys methods:

3. Full examples

The following full examples use this controller:


Was this article helpful?