Table of Contents

Class RealSenseDeviceInfo

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

A connected RealSense camera and the stream modes it reports.

public class RealSenseDeviceInfo

Inheritance

Inherited Members

Constructors

RealSenseDeviceInfo(string, string, string, IReadOnlyList<RealSenseStreamProfile>)

Initializes a new instance of the VisioForge.Core.Types.X.Sources.RealSenseDeviceInfo class.

public RealSenseDeviceInfo(string name, string serialNumber, string firmwareVersion, IReadOnlyList<RealSenseStreamProfile> profiles)

Parameters

name string

The camera name.

serialNumber string

The serial number.

firmwareVersion string

The firmware version.

profiles IReadOnlyList<RealSenseStreamProfile>

The stream modes.

Properties

FirmwareVersion

Gets the firmware version.

public string FirmwareVersion { get; }

Property Value

string

Name

Gets the camera name, for example "Intel RealSense D435".

public string Name { get; }

Property Value

string

Profiles

Gets the colour, depth and infrared modes the camera reports, in the formats the block opens them in.

public IReadOnlyList<RealSenseStreamProfile> Profiles { get; }

Property Value

IReadOnlyList<RealSenseStreamProfile>

SerialNumber

Gets the serial number.

public string SerialNumber { get; }

Property Value

string

Methods

FindProfile(RealSenseStreamType, int, int, int, int)

Finds a stream mode the camera reports.

public RealSenseStreamProfile FindProfile(RealSenseStreamType stream, int width, int height, int frameRate, int index = 0)

Parameters

stream RealSenseStreamType

The stream.

width int

The width.

height int

The height.

frameRate int

The frame rate.

index int

The stream index; 0 takes the first index the camera reports for the stream.

Returns

RealSenseStreamProfile

The mode, or null when the camera does not report it.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.