void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EstimateParameters)) { LogError("owner is not initialized. Add Action \"newEstimateParameters\"."); return; } OpenCVForUnity.ArucoModule.EstimateParameters wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EstimateParameters, OpenCVForUnity.ArucoModule.EstimateParameters>(owner); wrapped_owner.set_useExtrinsicGuess(useExtrinsicGuess.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EstimateParameters)) { LogError("owner is not initialized. Add Action \"newEstimateParameters\"."); return; } OpenCVForUnity.ArucoModule.EstimateParameters wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EstimateParameters, OpenCVForUnity.ArucoModule.EstimateParameters>(owner); storeResult.Value = wrapped_owner.get_solvePnPMethod(); }
void DoProcess() { List <OpenCVForUnity.CoreModule.Mat> wrapped_corners = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(corners, wrapped_corners); if (!(cameraMatrix.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("cameraMatrix is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_cameraMatrix = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(cameraMatrix); if (!(distCoeffs.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("distCoeffs is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_distCoeffs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(distCoeffs); if (!(rvecs.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("rvecs is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_rvecs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(rvecs); if (!(tvecs.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("tvecs is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_tvecs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(tvecs); if (!(_objPoints.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("_objPoints is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped__objPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(_objPoints); if (!(estimateParameters.Value is OpenCVForUnityPlayMakerActions.EstimateParameters)) { LogError("estimateParameters is not initialized. Add Action \"newEstimateParameters\"."); return; } OpenCVForUnity.ArucoModule.EstimateParameters wrapped_estimateParameters = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EstimateParameters, OpenCVForUnity.ArucoModule.EstimateParameters>(estimateParameters); OpenCVForUnity.ArucoModule.Aruco.estimatePoseSingleMarkers(wrapped_corners, markerLength.Value, wrapped_cameraMatrix, wrapped_distCoeffs, wrapped_rvecs, wrapped_tvecs, wrapped__objPoints, wrapped_estimateParameters); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_corners, corners); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EstimateParameters)) { LogError("owner is not initialized. Add Action \"newEstimateParameters\"."); return; } OpenCVForUnity.ArucoModule.EstimateParameters wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EstimateParameters, OpenCVForUnity.ArucoModule.EstimateParameters>(owner); storeResult.Value = wrapped_owner.get_useExtrinsicGuess(); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }
public EstimateParameters(OpenCVForUnity.ArucoModule.EstimateParameters nativeObj) : base(nativeObj) { }