Camera

class pyrobot.sensors.camera.Camera(configs, ns='')[source]

Bases: object

This is a parent class on which the robot specific Camera classes would be built.

__init__(configs, ns='')[source]

Constructor for Camera parent class.

Parameters

configs (YACS CfgNode) – configurations for camera

get_depth()[source]

This function returns the depth image perceived by the camera.

Return type

np.ndarray or None

get_intrinsics()[source]

This function returns the camera intrinsics.

Return type

np.ndarray

get_rgb()[source]

This function returns the RGB image perceived by the camera.

Return type

np.ndarray or None

get_rgb_depth()[source]

This function returns both the RGB and depth images perceived by the camera.

Return type

np.ndarray or None