From f5c039d7af02e93baef14e1f07e13a9f1dc2e68f Mon Sep 17 00:00:00 2001
From: indidev <indidev@042f3d55-54a8-47e9-b7fb-15903f145c44>
Date: Sat, 20 Sep 2014 10:08:08 +0000
Subject: [PATCH] added no failure output option in comik solver

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@698 042f3d55-54a8-47e9-b7fb-15903f145c44
---
 VirtualRobot/IK/CoMIK.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/VirtualRobot/IK/CoMIK.cpp b/VirtualRobot/IK/CoMIK.cpp
index ee735a6d5..ccd9e2fcd 100644
--- a/VirtualRobot/IK/CoMIK.cpp
+++ b/VirtualRobot/IK/CoMIK.cpp
@@ -201,9 +201,10 @@ bool CoMIK::computeSteps(float stepSize, float minumChange, int maxNStep)
 		lastDist = d;
 		step++;
 	}
-
-	VR_INFO << "IK failed, loop:" << step << endl;
-    VR_INFO << "error:" << (target - rns->getCoM().head(target.rows())).norm() << endl;
+	#ifndef NO_FAILURE_OUTPUT
+	//VR_INFO << "IK failed, loop:" << step << endl;
+    	//VR_INFO << "error:" << (target - rns->getCoM().head(target.rows())).norm() << endl;
+	#endif
 	return false;
 }
 
-- 
GitLab