Public Member Functions | Private Attributes | List of all members
realsense_device_manager.DeviceManager Class Reference

Public Member Functions

def __init__ (self, context, pipeline_configuration)
 
def disable_streams (self)
 
def enable_all_devices (self, enable_ir_emitter=False)
 
def enable_device (self, device_serial, enable_ir_emitter)
 
def enable_emitter (self, enable_ir_emitter=True)
 
def get_depth_shape (self)
 
def get_depth_to_color_extrinsics (self, frames)
 
def get_device_intrinsics (self, frames)
 
def load_settings_json (self, path_to_settings_file)
 
def poll_frames (self)
 

Private Attributes

 _available_devices
 
 _config
 
 _context
 
 _enabled_devices
 
 _frame_counter
 

Detailed Description

Definition at line 115 of file realsense_device_manager.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

def realsense_device_manager.DeviceManager.disable_streams (   self)

Definition at line 288 of file realsense_device_manager.py.

def realsense_device_manager.DeviceManager.enable_all_devices (   self,
  enable_ir_emitter = False 
)
Enable all the Intel RealSense Devices which are connected to the PC

Definition at line 159 of file realsense_device_manager.py.

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 
)
Enable/Disable the emitter of the intel realsense device

Definition at line 169 of file realsense_device_manager.py.

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 
)
Load the settings stored in the JSON file

Definition at line 181 of file realsense_device_manager.py.

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.

Member Data Documentation

realsense_device_manager.DeviceManager._available_devices
private

Definition at line 131 of file realsense_device_manager.py.

realsense_device_manager.DeviceManager._config
private

Definition at line 133 of file realsense_device_manager.py.

realsense_device_manager.DeviceManager._context
private

Definition at line 130 of file realsense_device_manager.py.

realsense_device_manager.DeviceManager._enabled_devices
private

Definition at line 132 of file realsense_device_manager.py.

realsense_device_manager.DeviceManager._frame_counter
private

Definition at line 134 of file realsense_device_manager.py.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40