concepts.hw_interface.realsense.device.RealSenseDevice#

class RealSenseDevice[source]#

Bases: RealSenseInterface

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)

from_serial_number(serial_number)

get_color_intrinsics()

get_depth_intrinsics()

get_rgbd_image([format])

get_serial_number()

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 (<Mock name='mock.device' id='5332271056'>)

Return type:

RealSenseDevice

classmethod from_serial_number(serial_number)[source]#
Parameters:

serial_number (str)

Return type:

RealSenseDevice

get_color_intrinsics()[source]#
Return type:

ndarray

get_depth_intrinsics()[source]#
Return type:

ndarray

get_rgbd_image(format='rgb')[source]#
Parameters:

format (str)

Return type:

Tuple[ndarray, ndarray]

get_serial_number()[source]#
Return type:

str

start_pipeline()[source]#

Start RealSense pipeline

Return type:

None

stop_pipeline()[source]#

Stop RealSense pipeline

Return type:

None

ctx: context' id='5332269712'>] = <Mock name='mock.context()' id='5332270480'>#
property stream_configurations: List[Tuple]#