[Jderobot-admin] jderobot-r1130 - trunk/src/stable/components/openniServer
frivas en jderobot.org
frivas en jderobot.org
Lun Dic 16 23:54:28 CET 2013
Author: frivas
Date: 2013-12-16 23:54:27 +0100 (Mon, 16 Dec 2013)
New Revision: 1130
Modified:
trunk/src/stable/components/openniServer/openniServer.cfg
trunk/src/stable/components/openniServer/openniServer.cpp
Log:
Included debugLevel to openniServer
Modified: trunk/src/stable/components/openniServer/openniServer.cfg
===================================================================
--- trunk/src/stable/components/openniServer/openniServer.cfg 2013-12-13 09:46:35 UTC (rev 1129)
+++ trunk/src/stable/components/openniServer/openniServer.cfg 2013-12-16 22:54:27 UTC (rev 1130)
@@ -43,6 +43,6 @@
openniServer.Pose3DMotorsActive=0
openniServer.KinectLedsActive=0
openniServer.ExtraCalibration=0
-openniServer.Debug=0
+openniServer.Debug=2
openniServer.Fps=20
Modified: trunk/src/stable/components/openniServer/openniServer.cpp
===================================================================
--- trunk/src/stable/components/openniServer/openniServer.cpp 2013-12-13 09:46:35 UTC (rev 1129)
+++ trunk/src/stable/components/openniServer/openniServer.cpp 2013-12-16 22:54:27 UTC (rev 1130)
@@ -55,7 +55,7 @@
#define NUM_THREADS 5
#define MAX_LENGHT 10000
#define SAMPLE_READ_WAIT_TIMEOUT 2000
-#define RETRY_MAX_TIMES 10
+#define RETRY_MAX_TIMES 5
#define CHECK_RC(rc, what) \
if (rc != openni::STATUS_OK) \
@@ -417,7 +417,7 @@
pthread_mutex_unlock(&mutex);
if ((IceUtil::Time::now().toMicroSeconds() - lastIT.toMicroSeconds()) > cycle ){
- if (debug)
+ if (debug==3)
std::cout<<"-------- openniServer: MAIN openni timeout-" << std::endl;
}
else{
@@ -622,7 +622,10 @@
pImageRow += rowSize;
}
-
+ if (debug==2){
+ cv::imshow("OpenniServer RGB", *srcRGB);
+ cv::waitKey(1);
+ }
//test
//CalculateJoints();
@@ -884,8 +887,11 @@
pDepth += restOfRow;
}
+ if (debug==2){
+ cv::imshow("OpenniServer DEPTH", src);
+ cv::waitKey(1);
+ }
-
if ((mycameradepth->imageDescription->width != m_depthFrame.getWidth()) || (mycameradepth->imageDescription->height != m_depthFrame.getHeight())){
//cv::resize(src,dst_resize);
cv::resize(src, dst_resize, dst_resize.size(), 0, 0, cv::INTER_LINEAR);
More information about the Jderobot-admin
mailing list