The easiest way to reset the link of one of the stereo cameras to its factory setting is to use the CalibrateWorkspace command with the Target parameter set to an empty string and explicitly specified Cameras parameter:
NxLibCommand resetLink(cmdCalibrateWorkspace);
resetLink.parameters()[itmCameras] = "232428";
resetLink.parameters()[itmTarget] = "";
resetLink.execute();
This sets the specified camera’s link to an identity transformation with target “”.
The link is only changed temporarily while the camera remains open and will be lost if the camera is closed or disconnected. To store the link permanently on the camera, you need to then use the StoreCalibration command:
NxLibCommand storeCalibration(cmdStoreCalibration);
storeCalibration.parameters()[itmCameras] = "232428";
storeCalibration.parameters()[itmLink] = true;
storeCalibration.execute();