concepts.hw_interface.realsense.device.RealSenseDevice#

class RealSenseDevice[source]#

Bases: object

Methods

capture_color_image()

capture_depth_image()

capture_images()

Capture color and depth images

find_devices([device_filter])

Get devices as detected by RealSense and filter devices that only contain the provided device_filter string in their name.

from_rs_device(dev)

start_pipeline()

Start RealSense pipeline

stop_pipeline()

Stop RealSense pipeline

Attributes

__init__(name, serial_number, align_to='color')[source]#
Parameters:
  • name (str)

  • serial_number (str)

  • align_to (str)

__new__(**kwargs)#
capture_color_image()[source]#
Return type:

ndarray

capture_depth_image()[source]#
Return type:

ndarray

capture_images()[source]#

Capture color and depth images

Return type:

Tuple[ndarray, ndarray]

classmethod find_devices(device_filter='')[source]#

Get devices as detected by RealSense and filter devices that only contain the provided device_filter string in their name. e.g. to filter for D435 only you can call find_devices(“D435”)

Parameters:

device_filter (str)

Return type:

List[RealSenseDevice]

classmethod from_rs_device(dev)[source]#
Parameters:

dev (pyrealsense2.device)

Return type:

RealSenseDevice

start_pipeline()[source]#

Start RealSense pipeline

Return type:

None

stop_pipeline()[source]#

Stop RealSense pipeline

Return type:

None

property stream_configurations: List[Tuple]#