Device¶
DeviceInfo¶
-
struct
DeviceInfo
¶ Device information.
Public Members
-
std::int32_t
index
¶ The device index.
-
std::string
name
¶ The device name.
-
std::uint16_t
type
¶ The device type.
-
std::uint16_t
pid
¶ The product id.
-
std::uint16_t
vid
¶ The vendor id.
-
std::uint16_t
chip_id
¶ The chip id.
-
std::string
fw_version
¶ The firmware version.
-
std::string
sn
¶ The serial number.
-
std::int32_t
OpenParams¶
-
struct
OpenParams
¶ Device open parameters.
Public Members
-
std::int32_t
dev_index
¶ Device index.
-
std::int32_t
framerate
¶ Framerate, range [0,60], [0,30](STREAM_2560x720), default 10.
-
DeviceMode
dev_mode
¶ Device mode, default DEVICE_ALL.
DEVICE_COLOR: IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH n
DEVICE_DEPTH: IMAGE_LEFT_COLOR n IMAGE_RIGHT_COLOR n IMAGE_DEPTH y
DEVICE_ALL: IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH y
Could detect image type is enabled after opened through Camera::IsStreamDataEnabled().
Note: y: available, n: unavailable, -: depends on stream_mode
-
StreamMode
stream_mode
¶ Stream mode of color & depth, default STREAM_1280x720.
-
StreamFormat
color_stream_format
¶ Stream format of color, default STREAM_YUYV.
-
StreamFormat
depth_stream_format
¶ Stream format of depth, default STREAM_YUYV.
-
bool
state_ae
¶ Auto-exposure, default true.
-
bool
state_awb
¶ Auto-white balance, default true.
-
std::uint8_t
ir_intensity
¶ IR (Infrared), range [0,10], default 0.
-
bool
ir_depth_only
¶ IR Depth Only mode, default false.
Note: When frame rate less than 30fps, IR Depth Only will be not available.
-
float
colour_depth_value
¶ Colour depth image, default 5000.
[0, 16384]
-
std::int32_t