Constructor
new RecorderDevice(file, device)
Parameters:
| Name | Type | Description |
|---|---|---|
file |
String | the file name to store the recorded data |
device |
Device | the actual device to be recorded |
Extends
Members
fileName
Gets the name of the file to which the recorder is writing
first
Get the first sensor
- Overrides:
- Source:
isValid
Check if everything is OK, e.g. if the device object is connected to underlying hardware
- Overrides:
- Source:
Methods
(static) from(device) → {RecorderDevice|undefined}
Create a RecorderDevice from another device
Parameters:
| Name | Type | Description |
|---|---|---|
device |
Device | another existing device |
Returns:
If the the input device can be
converted to a RecorderDevice, return the newly created RecorderDevice,
otherwise, undefined is returned.
- Type
- RecorderDevice | undefined
destroy()
Release resources associated with the object
- Overrides:
- Source:
getCameraInfo(infoopt) → {CameraInfoObject|String|undefined}
Get camera information
There are 2 acceptable forms of syntax:
Syntax 1. getCameraInfo()
Syntax 2. getCameraInfo(info)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
info |
String | Integer |
<optional> |
the camera_info type, see camera_info for available values |
- Overrides:
- Source:
Returns:
if no argument is provided, {CameraInfoObject} is
returned. If a camera_info is provided, the specific camera info value string is returned.
- Type
- CameraInfoObject | String | undefined
pause()
Pause the recording device without stopping the actual device from streaming.
querySensors() → {Array.<Sensor>}
get an array of adjacent sensors, sharing the same physical parent composite device
- Overrides:
- Source:
Returns:
- Type
- Array.<Sensor>
reset() → {undefined}
Send hardware reset request to the device.
- Overrides:
- Source:
Returns:
- Type
- undefined
resume()
Resume the recording
supportsCameraInfo(info) → {Boolean|undefined}
Check if specific camera info is supported.
Parameters:
| Name | Type | Description |
|---|---|---|
info |
String | Integer | info type to query. See camera_info for available values |
- Overrides:
- Source:
- See:
-
- enum camera_info
Returns:
Returns undefined if an invalid info type was specified.
- Type
- Boolean | undefined
Example
Example of 3 equivalent calls of the same query
device.supportsCameraInfo('name');
device.supportsCameraInfo(realsense2.camera_info.camera_info_name);
device.supportsCameraInfo(realsense2.camera_info.CAMERA_INFO_NAME);