# camera-ensenso -- Ensenso B57-8/975-N/3-BL, serial 260145, through hdv's EnsensoPlugin (NxLib).
# `enable` is false in settings.json: switch it on on a PC that has this camera attached.
#
# DRIVER: "driver-ensenso" loads "EnsensoPlugin.dll". VGR looks for it in this settings folder
# first, then beside LumiScan_VGR.exe, which ships the copy built with its own hdv_camera.dll --
# so leave no EnsensoPlugin.dll in this folder unless it comes from that same build.
#
# NXLIB RUNTIME: the plugin needs NxLib64.dll and NxLibRemote64.dll, which VGR does not ship.
# Either install the Ensenso SDK 4.3.x (puts NxLib into System32, and brings ensenso-cli and NxView
# for the IP address and firmware), or copy both DLLs into THIS folder: it is VGR's working
# directory, which Windows searches for a plugin's dependencies.
#
# WHAT THE PLUGIN DELIVERS: the Rectified/Left Mono8 image and an organized point cloud, both
# 2472x2064 on a B57 and pixel-aligned -- verified 2026-10-22: zero reprojection residual against the
# camera's CalibFocalLength/CalibOpticalCenter, no shift between depth and image edges. The image is
# taken with the projector on, so it shows the projector's pattern. Unit: millimetres, stated by the
# plugin's HDVPointcloudUnit, so cameraParameters needs no distanceUnit for this camera.
#
# FORMAT: a feature list, not a script -- "<feature name> <value>" per line, no verbs. An entry this
# camera does not have, or cannot currently write, is SKIPPED (the connect log counts them); a value
# the camera rejects fails the open.
#
# FEATURES THE PLUGIN OFFERS: ExposureTime (Float, microseconds), ExposureAuto and GainAuto
# (Off | Continuous), Projector (Bool), TriggerMode (On only -- Off is refused, NxLib's continuous
# mode stops delivering images), TriggerSource (Software | Line1).
#
# NOT AVAILABLE: Scan3dDistanceMin / Scan3dDistanceMax. The v1.x setting limited depth to 900..1500 mm;
# the plugin has no feature for a depth range (NxLib's stereo-matching disparity range would be the
# place to map it), so those lines were skipped without effect and are gone. The cloud is not
# range-limited.

TriggerMode On
TriggerSource Software
Projector true

# A starting value, 5 ms: the plugin opens the camera with auto exposure off. Tune on site.
ExposureAuto Off
ExposureTime 5000
