[Jderobot-admin] jderobot-r1171 - trunk/src/stable/components/openni1Server

frivas en jderobot.org frivas en jderobot.org
Mie Feb 19 18:27:42 CET 2014


Author: frivas
Date: 2014-02-19 18:27:42 +0100 (Wed, 19 Feb 2014)
New Revision: 1171

Modified:
   trunk/src/stable/components/openni1Server/openni1Server.cpp
Log:
#175 Openni1Server fixed problems with logger and visionlib


Modified: trunk/src/stable/components/openni1Server/openni1Server.cpp
===================================================================
--- trunk/src/stable/components/openni1Server/openni1Server.cpp	2014-02-19 17:10:18 UTC (rev 1170)
+++ trunk/src/stable/components/openni1Server/openni1Server.cpp	2014-02-19 17:27:42 UTC (rev 1171)
@@ -30,7 +30,7 @@
 #include <jderobot/pose3dmotors.h>
 #include <jderobot/remoteCloud.h>
 #include <jderobot/remoteConfig.h>
-#include <colorspaces/colorspacesmm.h>
+#include <visionlib/colorspaces/colorspacesmm.h>
 #include <tr1/memory>
 #include <list>
 #include <sstream>
@@ -84,7 +84,7 @@
 std::vector<int> pixelsID;
 //int pixelsID[640*480];
 int userGeneratorActive=0;
-int debug;
+int localDebug;
 
 
 struct KinectDevice
@@ -553,7 +553,7 @@
 			pthread_mutex_unlock(&mutex);
 			if (totalpre !=0){
 				if ((totala - totalpre) > cycle ){
-					if (debug)
+					if (localDebug)
 						std::cout<<"-------- openni1Server: WARNING- RGB timeout-" << std::endl; 
 				}
 				else{
@@ -781,7 +781,7 @@
 			pthread_mutex_unlock(&mutex);
 			if (totalpre !=0){
 				if ((totala - totalpre) > cycle ){
-					if (debug)
+					if (localDebug)
 						std::cout<<"-------- openni1Server: WARNING- DEPTH timeout-" << std::endl; 
 				}
 				else{
@@ -985,7 +985,7 @@
 					pthread_mutex_unlock(&mutex);
 					if (totalpre !=0){
 						if ((totala - totalpre) > cycle ){
-							if (debug)
+							if (localDebug)
 								std::cout<<"-------- openni1Server: WARNING- POINTCLOUD timeout-" << std::endl; 
 						}
 						else{
@@ -1262,7 +1262,7 @@
 	int pointCloud = prop->getPropertyAsIntWithDefault(componentPrefix + ".pointCloudActive",0);
 	int playerdetection = prop->getPropertyAsIntWithDefault(componentPrefix + ".PlayerDetection",0);
 	width=prop->getPropertyAsIntWithDefault("openni1Server.Width", 640);
-	debug=prop->getPropertyAsIntWithDefault("openni1Server.Debug", 0);
+	localDebug=prop->getPropertyAsIntWithDefault("openni1Server.Debug", 0);
 	height=prop->getPropertyAsIntWithDefault("openni1Server.Height",480);
 	int fps=prop->getPropertyAsIntWithDefault("openni1Server.Fps",30);
 



More information about the Jderobot-admin mailing list