[Jderobot-admin] jderobot-r1107 - trunk/src/stable/libs/parallelIce

rocapal en jderobot.org rocapal en jderobot.org
Jue Nov 14 18:40:05 CET 2013


Author: rocapal
Date: 2013-11-14 18:40:05 +0100 (Thu, 14 Nov 2013)
New Revision: 1107

Modified:
   trunk/src/stable/libs/parallelIce/cameraClient.cpp
   trunk/src/stable/libs/parallelIce/cameraClient.h
Log:
added getSize method


Modified: trunk/src/stable/libs/parallelIce/cameraClient.cpp
===================================================================
--- trunk/src/stable/libs/parallelIce/cameraClient.cpp	2013-11-13 15:51:44 UTC (rev 1106)
+++ trunk/src/stable/libs/parallelIce/cameraClient.cpp	2013-11-14 17:40:05 UTC (rev 1107)
@@ -52,6 +52,10 @@
 		std::cerr << msg << std::endl;
 		std::cout << prefix + " Not camera provided" << std::endl;
 	}
+
+	jderobot::ImageDataPtr data = this->prx->getImageData();
+
+	this->size=cv::Size(data->description->width,data->description->height);
 	_done=false;
 	this->pauseStatus=false;
 }
@@ -118,8 +122,11 @@
 		this->refreshRate= totalRefreshRate / iterIndex;		
 		last=IceUtil::Time::now();
 
-		if (iterIndex == INT_MAX)
+		if (iterIndex == INT_MAX) 
+		{
 			iterIndex = 0;
+			std::cout << "*** Reinicio contador" << std::endl;
+		}
 		
 	}
 }

Modified: trunk/src/stable/libs/parallelIce/cameraClient.h
===================================================================
--- trunk/src/stable/libs/parallelIce/cameraClient.h	2013-11-13 15:51:44 UTC (rev 1106)
+++ trunk/src/stable/libs/parallelIce/cameraClient.h	2013-11-14 17:40:05 UTC (rev 1107)
@@ -46,6 +46,7 @@
 	void pause();
 	void resume();
 	bool getPause(){return pauseStatus;};
+	cv::Size getSize(){return size;};
 
 private:
 	cv::Mat data;
@@ -58,6 +59,7 @@
 	bool _done;
 	int refreshRate;
 	bool pauseStatus;
+	cv::Size size;
 
 	IceUtil::Cond sem;
 



More information about the Jderobot-admin mailing list