[Jderobot-admin] jderobot-r1229 - trunk/src/stable/components/openniServer
rocapal en jderobot.org
rocapal en jderobot.org
Vie Mayo 9 19:46:41 CEST 2014
Author: rocapal
Date: 2014-05-09 19:46:40 +0200 (Fri, 09 May 2014)
New Revision: 1229
Modified:
trunk/src/stable/components/openniServer/openniServer.cpp
Log:
#222 added sleep to pre-heating
Modified: trunk/src/stable/components/openniServer/openniServer.cpp
===================================================================
--- trunk/src/stable/components/openniServer/openniServer.cpp 2014-05-05 15:38:04 UTC (rev 1228)
+++ trunk/src/stable/components/openniServer/openniServer.cpp 2014-05-09 17:46:40 UTC (rev 1229)
@@ -59,6 +59,7 @@
#define RETRY_MAX_TIMES 5
#define MAX_TIMES_PREHEATING 10
+#define SLEEP_PREHEATING 5
#define CHECK_RC(rc, what) \
if (rc != openni::STATUS_OK) \
@@ -353,6 +354,7 @@
openni::VideoFrameRef mAuxFrame;
depth.readFrame( &mAuxFrame );
}
+ sleep(SLEEP_PREHEATING);
jderobot::Logger::getInstance()->info("End device pre-heating");
sem.broadcast();
More information about the Jderobot-admin
mailing list