def realsense_device_manager.DeviceManager.__init__ |
( |
|
self, |
|
|
|
context, |
|
|
|
pipeline_configuration |
|
) |
| |
Class to manage the Intel RealSense devices
Parameters:
-----------
context : rs.context()
The context created for using the realsense library
pipeline_configuration : rs.config()
The realsense library configuration to be used for the application
Definition at line 116 of file realsense_device_manager.py.
def realsense_device_manager.DeviceManager.disable_streams |
( |
|
self | ) |
|
def realsense_device_manager.DeviceManager.enable_all_devices |
( |
|
self, |
|
|
|
enable_ir_emitter = False |
|
) |
| |
def realsense_device_manager.DeviceManager.enable_device |
( |
|
self, |
|
|
|
device_serial, |
|
|
|
enable_ir_emitter |
|
) |
| |
Enable an Intel RealSense Device
Parameters:
-----------
device_serial : string
Serial number of the realsense device
enable_ir_emitter : bool
Enable/Disable the IR-Emitter of the device
Definition at line 136 of file realsense_device_manager.py.
def realsense_device_manager.DeviceManager.enable_emitter |
( |
|
self, |
|
|
|
enable_ir_emitter = True |
|
) |
| |
def realsense_device_manager.DeviceManager.get_depth_shape |
( |
|
self | ) |
|
Retruns width and height of the depth stream for one arbitrary device
Returns:
-----------
width : int
height: int
Definition at line 222 of file realsense_device_manager.py.
def realsense_device_manager.DeviceManager.get_depth_to_color_extrinsics |
( |
|
self, |
|
|
|
frames |
|
) |
| |
Get the extrinsics between the depth imager 1 and the color imager using its frame delivered by the realsense device
Parameters:
-----------
frames : rs::frame
The frame grabbed from the imager inside the Intel RealSense for which the intrinsic is needed
Return:
-----------
device_intrinsics : dict
keys : serial
Serial number of the device
values: [key]
Extrinsics of the corresponding device
Definition at line 264 of file realsense_device_manager.py.
def realsense_device_manager.DeviceManager.get_device_intrinsics |
( |
|
self, |
|
|
|
frames |
|
) |
| |
Get the intrinsics of the imager using its frame delivered by the realsense device
Parameters:
-----------
frames : rs::frame
The frame grabbed from the imager inside the Intel RealSense for which the intrinsic is needed
Return:
-----------
device_intrinsics : dict
keys : serial
Serial number of the device
values: [key]
Intrinsics of the corresponding device
Definition at line 240 of file realsense_device_manager.py.
def realsense_device_manager.DeviceManager.load_settings_json |
( |
|
self, |
|
|
|
path_to_settings_file |
|
) |
| |
def realsense_device_manager.DeviceManager.poll_frames |
( |
|
self | ) |
|
Poll for frames from the enabled Intel RealSense devices. This will return at least one frame from each device.
If temporal post processing is enabled, the depth stream is averaged over a certain amount of frames
Parameters:
-----------
Definition at line 196 of file realsense_device_manager.py.
realsense_device_manager.DeviceManager._available_devices |
|
private |
realsense_device_manager.DeviceManager._config |
|
private |
realsense_device_manager.DeviceManager._context |
|
private |
realsense_device_manager.DeviceManager._enabled_devices |
|
private |
realsense_device_manager.DeviceManager._frame_counter |
|
private |
The documentation for this class was generated from the following file: