iCub-main
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
3 * Authors: Carlo Ciliberto, Ugo Pattacini
4 * email: carlo.ciliberto@iit.it, ugo.pattacini@iit.it
5 * website: www.robotcub.org
6 * Permission is granted to copy, distribute, and/or modify this program
7 * under the terms of the GNU General Public License, version 2 or any
8 * later version published by the Free Software Foundation.
9 *
10 * A copy of the license can be found at
11 * http://www.robotcub.org/icub/license/gpl.txt
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16 * Public License for more details
17*/
18
19#include <cmath>
20#include <string>
21#include <set>
22#include <vector>
23#include <deque>
24#include <algorithm>
25#include <utility>
26#include <iostream>
27
28#include <opencv2/opencv.hpp>
29#include <opencv2/imgproc.hpp>
30
31#include <yarp/os/all.h>
32#include <yarp/sig/all.h>
33#include <yarp/cv/Cv.h>
34
35// in BGR format
36#define NODE_OFF Scalar(0,0,255)
37#define NODE_ON Scalar(0,255,0)
38
39using namespace std;
40using namespace cv;
41using namespace yarp::os;
42using namespace yarp::sig;
43using namespace yarp::cv;
44
45
46/************************************************************************/
47class Blob
48{
49public:
50 Point centroid;
51 int size;
52
53 /************************************************************************/
55 {
56 centroid.x=0;
57 centroid.y=0;
58 size=0;
59 }
60};
61
62
63/************************************************************************/
64class ProcessThread : public Thread
65{
66protected:
67 ResourceFinder &rf;
68
69 string name;
75 double recogThres;
83 int nodesX;
84 int nodesY;
85
86 ImageOf<PixelMono> imgMonoIn;
87 ImageOf<PixelMono> imgMonoPrev;
88 vector<Mat> pyrPrev;
89 vector<Mat> pyrCurr;
90
91 vector<Point2f> nodesPrev;
92 vector<Point2f> nodesCurr;
93 vector<uchar> featuresFound;
94 vector<float> featuresErrors;
95 vector<int> nodesPersistence;
96
98 deque<Blob> blobSortedList;
99
100 BufferedPort<ImageOf<PixelBgr>> inPort;
101 BufferedPort<ImageOf<PixelBgr>> outPort;
102 BufferedPort<ImageOf<PixelMono>> optPort;
103 BufferedPort<ImageOf<PixelBgr>> cropPort;
104 BufferedPort<Bottle> nodesPort;
105 BufferedPort<Bottle> blobsPort;
106
107public:
108 /************************************************************************/
109 ProcessThread(ResourceFinder &_rf) : rf(_rf) { }
110
111 /************************************************************************/
113 {
114 name=rf.check("name",Value("motionCUT")).asString();
115 coverXratio=rf.check("coverXratio",Value(0.75)).asFloat64();
116 coverYratio=rf.check("coverYratio",Value(0.75)).asFloat64();
117 nodesStep=rf.check("nodesStep",Value(6)).asInt32();
118 winSize=rf.check("winSize",Value(15)).asInt32();
119 recogThres=rf.check("recogThres",Value(0.01)).asFloat64();
120 adjNodesThres=rf.check("adjNodesThres",Value(4)).asInt32();
121 blobMinSizeThres=rf.check("blobMinSizeThres",Value(10)).asInt32();
122 framesPersistence=rf.check("framesPersistence",Value(3)).asInt32();
123 verbosity=rf.check("verbosity");
124
125 cropSize=0;
126 if (rf.check("cropSize"))
127 {
128 Value &vCropSize=rf.find("cropSize");
129 if (!vCropSize.isString())
130 cropSize=vCropSize.asInt32();
131 }
132
134 inhibition=false;
135
136 // thresholding
137 coverXratio=std::min(coverXratio,1.0);
138 coverYratio=std::min(coverYratio,1.0);
139
140 inPort.open("/"+name+"/img:i");
141 outPort.open("/"+name+"/img:o");
142 optPort.open("/"+name+"/opt:o");
143 nodesPort.open("/"+name+"/nodes:o");
144 blobsPort.open("/"+name+"/blobs:o");
145 cropPort.open("/"+name+"/crop:o");
146
148
149 return true;
150 }
151
152 /************************************************************************/
153 void afterStart(bool s)
154 {
155 if (s)
156 {
157 yInfo("Process started successfully");
158 yInfo("Using ...");
159 yInfo("name = %s",name.c_str());
160 yInfo("coverXratio = %g",coverXratio);
161 yInfo("coverYratio = %g",coverYratio);
162 yInfo("nodesStep = %d",nodesStep);
163 yInfo("winSize = %d",winSize);
164 yInfo("recogThres = %g",recogThres);
165 yInfo("recogThresAbs = %g",recogThresAbs);
166 yInfo("adjNodesThres = %d",adjNodesThres);
167 yInfo("blobMinSizeThres = %d",blobMinSizeThres);
168 yInfo("framesPersistence = %d",framesPersistence);
169 if (cropSize>0)
170 yInfo("cropSize = %d",cropSize);
171 else
172 yInfo("cropSize = auto");
173 yInfo("verbosity = %s",verbosity?"on":"off");
174 }
175 else
176 yError("Process did not start");
177 }
178
179 /************************************************************************/
180 void run()
181 {
182 double latch_t, dt0, dt1, dt2;
183
184 while (!isStopping())
185 {
186 // acquire new image
187 ImageOf<PixelBgr> *pImgBgrIn=inPort.read(true);
188 if (isStopping() || (pImgBgrIn==NULL))
189 break;
190
191 // get the envelope from the image
192 Stamp stamp;
193 inPort.getEnvelope(stamp);
194
195 double t0=Time::now();
196
197 // consistency check
198 if (firstConsistencyCheck || (pImgBgrIn->width()!=imgMonoIn.width()) ||
199 (pImgBgrIn->height()!=imgMonoIn.height()))
200 {
202
203 imgMonoIn.resize(*pImgBgrIn);
204 imgMonoPrev.resize(*pImgBgrIn);
205
206 int min_x=(int)(((1.0-coverXratio)/2.0)*imgMonoIn.width());
207 int min_y=(int)(((1.0-coverYratio)/2.0)*imgMonoIn.height());
208
209 nodesX=((int)imgMonoIn.width()-2*min_x)/nodesStep+1;
210 nodesY=((int)imgMonoIn.height()-2*min_y)/nodesStep+1;
211
212 int nodesNum=nodesX*nodesY;
213 nodesPrev.assign(nodesNum,Point2f(0.0f,0.0f));
214 nodesCurr.assign(nodesNum,Point2f(0.0f,0.0f));
215 featuresFound.assign(nodesNum,0);
216 featuresErrors.assign(nodesNum,0.0f);
217 nodesPersistence.assign(nodesNum,0);
218
219 // populate grid
220 size_t cnt=0;
221 for (int y=min_y; y<=(imgMonoIn.height()-min_y); y+=nodesStep)
222 for (int x=min_x; x<=(imgMonoIn.width()-min_x); x+=nodesStep)
223 nodesPrev[cnt++]=Point2f((float)x,(float)y);
224
225 // convert to gray-scale
226 cvtColor(toCvMat(*pImgBgrIn),toCvMat(imgMonoPrev),cv::COLOR_BGR2GRAY);
227
228 if (verbosity)
229 {
230 // log message
231 yInfo("Detected image of size %zdx%zd; using %dx%d=%d nodes; populated %zd nodes",
232 imgMonoIn.width(),imgMonoIn.height(),nodesX,nodesY,nodesNum,cnt);
233 }
234
235 // skip to the next cycle
236 continue;
237 }
238
239 // convert the input image to gray-scale
240 cvtColor(toCvMat(*pImgBgrIn),toCvMat(imgMonoIn),cv::COLOR_BGR2GRAY);
241
242 // copy input image into output image
243 ImageOf<PixelBgr> imgBgrOut=*pImgBgrIn;
244 Mat imgBgrOutMat=toCvMat(imgBgrOut);
245
246 // get optFlow image
247 ImageOf<PixelMono> imgMonoOpt;
248 imgMonoOpt.resize(imgBgrOut);
249 imgMonoOpt.zero();
250 Mat imgMonoOptMat=toCvMat(imgMonoOpt);
251
252 // declare output bottles
253 Bottle nodesBottle;
254 Bottle blobsBottle;
255
256 Bottle &nodesStepBottle=nodesBottle.addList();
257 nodesStepBottle.addString("nodesStep");
258 nodesStepBottle.addInt32(nodesStep);
259
260 // purge the content of variables
261 activeNodesIndexSet.clear();
262 blobSortedList.clear();
263
264 // compute optical flow
265 latch_t=Time::now();
266 constexpr int maxLevel=5;
267 Size ws(winSize,winSize);
268 buildOpticalFlowPyramid(toCvMat(imgMonoPrev),pyrPrev,ws,maxLevel);
269 buildOpticalFlowPyramid(toCvMat(imgMonoIn),pyrCurr,ws,maxLevel);
270 calcOpticalFlowPyrLK(pyrPrev,pyrCurr,nodesPrev,nodesCurr,
271 featuresFound,featuresErrors,ws,maxLevel,
272 TermCriteria(TermCriteria::COUNT+TermCriteria::EPS,30,0.3));
273 dt0=Time::now()-latch_t;
274
275 // assign status to the grid nodes
276 latch_t=Time::now();
277 for (size_t i=0; i<nodesPrev.size(); i++)
278 {
279 bool persistentNode=false;
280 Point node=Point((int)nodesPrev[i].x,(int)nodesPrev[i].y);
281
282 // handle the node persistence
283 if (!inhibition && (nodesPersistence[i]!=0))
284 {
285 circle(imgBgrOutMat,node,1,NODE_ON,2);
286 circle(imgMonoOptMat,node,1,Scalar(255),2);
287
288 Bottle &nodeBottle=nodesBottle.addList();
289 nodeBottle.addInt32((int)nodesPrev[i].x);
290 nodeBottle.addInt32((int)nodesPrev[i].y);
291
292 // update the active nodes set
293 activeNodesIndexSet.insert((int)i);
294
295 nodesPersistence[i]--;
296 persistentNode=true;
297 }
298 else
299 circle(imgBgrOutMat,node,1,NODE_OFF,1);
300
301 // do not consider the border nodes and skip if inhibition is on
302 int row=i%nodesX;
303 bool skip=inhibition || (i<nodesX) || (i>=(nodesPrev.size()-nodesX)) || (row==0) || (row==(nodesX-1));
304
305 if (!skip && (featuresFound[i]!=0) && (featuresErrors[i]>recogThresAbs))
306 {
307 // count the neighbour nodes that are ON
308 // start from -1 to avoid counting the current node
309 int cntAdjNodesOn=-1;
310
311 // scroll per lines
312 for (int j=i-nodesX; j<=(i+nodesX); j+=nodesX)
313 for (int k=j-1; k<=(j+1); k++)
314 cntAdjNodesOn+=(int)((featuresFound[k]!=0)&&(featuresErrors[k]>recogThresAbs));
315
316 // highlight independent moving node if over threhold
317 if (cntAdjNodesOn>=adjNodesThres)
318 {
319 // init the node persistence timeout
321
322 // update only if the node was not persistent
323 if (!persistentNode)
324 {
325 circle(imgBgrOutMat,node,1,NODE_ON,2);
326 circle(imgMonoOptMat,node,1,Scalar(255),2);
327
328 Bottle &nodeBottle=nodesBottle.addList();
329 nodeBottle.addInt32((int)nodesPrev[i].x);
330 nodeBottle.addInt32((int)nodesPrev[i].y);
331
332 // update the active nodes set
333 activeNodesIndexSet.insert((int)i);
334 }
335 }
336 }
337 }
338 dt1=Time::now()-latch_t;
339
340 latch_t=Time::now();
341 findBlobs();
342
343 // prepare the blobs output list and draw their
344 // centroids location
345 for (int i=0; i<(int)blobSortedList.size(); i++)
346 {
347 Blob &blob=blobSortedList[i];
348 int blueLev=255-((100*i)%255);
349 int redLev=(100*i)%255;
350
351 Point centroid=Point(blob.centroid.x,blob.centroid.y);
352
353 Bottle &blobBottle=blobsBottle.addList();
354 blobBottle.addInt32(centroid.x);
355 blobBottle.addInt32(centroid.y);
356 blobBottle.addInt32(blob.size);
357
358 circle(imgBgrOutMat,centroid,4,Scalar(blueLev,0,redLev),3);
359 }
360 dt2=Time::now()-latch_t;
361
362 // send out images, propagating the time-stamp
363 if (outPort.getOutputCount()>0)
364 {
365 outPort.prepare()=imgBgrOut;
366 outPort.setEnvelope(stamp);
367 outPort.write();
368 }
369
370 if (optPort.getOutputCount()>0)
371 {
372 optPort.prepare()=imgMonoOpt;
373 optPort.setEnvelope(stamp);
374 optPort.write();
375 }
376
377 // send out data bottles, propagating the time-stamp
378 if ((nodesPort.getOutputCount()>0) && (nodesBottle.size()>1))
379 {
380 nodesPort.prepare()=nodesBottle;
381 nodesPort.setEnvelope(stamp);
382 nodesPort.write();
383 }
384
385 if ((blobsPort.getOutputCount()>0) && (blobsBottle.size()>0))
386 {
387 blobsPort.prepare()=blobsBottle;
388 blobsPort.setEnvelope(stamp);
389 blobsPort.write();
390 }
391
392 if ((cropPort.getOutputCount()>0) && (blobsBottle.size()>0))
393 {
394 Bottle &blob=*blobsBottle.get(0).asList();
395 int x=blob.get(0).asInt32();
396 int y=blob.get(1).asInt32();
397 int d=(cropSize>0)?cropSize:(int)(nodesStep*sqrt((double)blob.get(2).asInt32()));
398 int d2=d>>1;
399
400 Point tl=Point(std::max(x-d2,0),std::max(y-d2,0));
401 Point br=Point(std::min(x+d2,(int)pImgBgrIn->width()-1),std::min(y+d2,(int)pImgBgrIn->height()-1));
402 Point cropSize=Point(br.x-tl.x,br.y-tl.y);
403
404 ImageOf<PixelBgr> &cropImg=cropPort.prepare();
405 cropImg.resize(cropSize.x,cropSize.y);
406 toCvMat(*pImgBgrIn)(Rect(tl.x,tl.y,cropSize.x,cropSize.y)).copyTo(toCvMat(cropImg));
407
408 cropPort.setEnvelope(stamp);
409 cropPort.write();
410 }
411
412 // save data for next cycle
414
415 double t1=Time::now();
416 if (verbosity)
417 {
418 // dump statistics
419 yInfo("cycle timing [ms]: optflow(%g), colorgrid(%g), blobdetection(%g), overall(%g)",
420 1000.0*dt0,1000.0*dt1,1000.0*dt2,1000.0*(t1-t0));
421 }
422 }
423 }
424
425 /************************************************************************/
426 void onStop()
427 {
428 inPort.interrupt();
429 }
430
431 /************************************************************************/
433 {
434 inPort.close();
435 outPort.close();
436 optPort.close();
437 nodesPort.close();
438 blobsPort.close();
439 cropPort.close();
440 }
441
442 /************************************************************************/
443 string getName()
444 {
445 return name;
446 }
447
448 /************************************************************************/
450 {
451 // iterate until the set is empty
452 while (activeNodesIndexSet.size())
453 {
454 Blob blob;
455
456 // the nodes connected to the current one
457 // will be removed from the list
458 floodFill(*(activeNodesIndexSet.begin()),&blob);
459
460 // update centroid
461 blob.centroid.x/=blob.size;
462 blob.centroid.y/=blob.size;
463
464 // insert iff the blob is big enough
465 if (blob.size>blobMinSizeThres)
466 insertBlob(blob);
467 }
468 }
469
470 /************************************************************************/
471 void floodFill(const int i, Blob *pBlob)
472 {
473 auto el=activeNodesIndexSet.find(i);
474 if ((el!=activeNodesIndexSet.end()) && (pBlob!=NULL))
475 {
476 // update blob
477 pBlob->centroid.x+=(int)nodesPrev[i].x;
478 pBlob->centroid.y+=(int)nodesPrev[i].y;
479 pBlob->size++;
480
481 // remove element from the set
482 activeNodesIndexSet.erase(el);
483
484 // perform recursive exploration
485 for (int j=i-nodesX; j<=(i+nodesX); j+=nodesX)
486 for (int k=j-1; k<=(j+1); k++)
487 if (k!=i)
488 floodFill(k,pBlob);
489 }
490 }
491
492 /************************************************************************/
493 void insertBlob(const Blob &blob)
494 {
495 // insert the blob keeping the decreasing order of the list wrt the size attribute
496 for (deque<Blob>::iterator el=blobSortedList.begin(); el!=blobSortedList.end(); el++)
497 {
498 if (el->size<blob.size)
499 {
500 blobSortedList.insert(el,blob);
501 return;
502 }
503 }
504
505 // reaching this point means that
506 // we have to append the blob
507 blobSortedList.push_back(blob);
508 }
509
510 /************************************************************************/
511 bool execReq(const Bottle &req, Bottle &reply)
512 {
513 if (req.size())
514 {
515 string cmd=req.get(0).asString();
516
517 if (cmd=="set")
518 {
519 if (req.size()<3)
520 return false;
521
522 string subcmd=req.get(1).asString();
523
524 if (subcmd=="winSize")
525 {
526 winSize=req.get(2).asInt32();
527 reply.addString("ack");
528 }
529 else if (subcmd=="recogThres")
530 {
531 recogThres=req.get(2).asFloat64();
533 reply.addString("ack");
534 }
535 else if (subcmd=="adjNodesThres")
536 {
537 adjNodesThres=req.get(2).asInt32();
538 reply.addString("ack");
539 }
540 else if (subcmd=="blobMinSizeThres")
541 {
542 blobMinSizeThres=req.get(2).asInt32();
543 reply.addString("ack");
544 }
545 else if (subcmd=="framesPersistence")
546 {
547 framesPersistence=req.get(2).asInt32();
548 reply.addString("ack");
549 }
550 else if (subcmd=="cropSize")
551 {
552 Value &vCropSize=req.get(2);
553 if (!vCropSize.isString())
554 cropSize=vCropSize.asInt32();
555 else
556 cropSize=0;
557
558 reply.addString("ack");
559 }
560 else if (subcmd=="verbosity")
561 {
562 verbosity=req.get(2).asString()=="on";
563 reply.addString("ack");
564 }
565 else if (subcmd=="inhibition")
566 {
567 inhibition=req.get(2).asString()=="on";
568 reply.addString("ack");
569 }
570 else
571 return false;
572 }
573 else if (cmd=="get")
574 {
575 if (req.size()<2)
576 return false;
577
578 string subcmd=req.get(1).asString();
579
580 if (subcmd=="winSize")
581 reply.addInt32(winSize);
582 else if (subcmd=="recogThres")
583 reply.addFloat64(recogThres);
584 else if (subcmd=="adjNodesThres")
585 reply.addInt32(adjNodesThres);
586 else if (subcmd=="blobMinSizeThres")
587 reply.addInt32(blobMinSizeThres);
588 else if (subcmd=="framesPersistence")
589 reply.addInt32(framesPersistence);
590 else if (subcmd=="cropSize")
591 {
592 if (cropSize>0)
593 reply.addInt32(cropSize);
594 else
595 reply.addString("auto");
596 }
597 else if (subcmd=="verbosity")
598 reply.addString(verbosity?"on":"off");
599 else if (subcmd=="inhibition")
600 reply.addString(inhibition?"on":"off");
601 else
602 return false;
603 }
604 else
605 return false;
606
607 return true;
608 }
609 else
610 return false;
611 }
612};
613
614
615/************************************************************************/
616class ProcessModule: public RFModule
617{
618private:
619 ProcessThread *thr;
620 Port rpcPort;
621
622public:
623 /************************************************************************/
624 ProcessModule() : thr(NULL) { }
625
626 /************************************************************************/
627 bool configure(ResourceFinder &rf)
628 {
629 thr=new ProcessThread(rf);
630 if (!thr->start())
631 {
632 delete thr;
633 return false;
634 }
635
636 rpcPort.open("/"+thr->getName()+"/rpc");
637 attach(rpcPort);
638
639 return true;
640 }
641
642 /************************************************************************/
643 bool respond(const Bottle &command, Bottle &reply)
644 {
645 if (thr->execReq(command,reply))
646 return true;
647 else
648 return RFModule::respond(command,reply);
649 }
650
651 /************************************************************************/
652 bool close()
653 {
654 if (thr!=NULL)
655 {
656 thr->stop();
657 delete thr;
658 }
659
660 rpcPort.interrupt();
661 rpcPort.close();
662
663 return true;
664 }
665
666 /************************************************************************/
667 double getPeriod()
668 {
669 return 1.0;
670 }
671
672 /************************************************************************/
674 {
675 return true;
676 }
677};
678
679
680/************************************************************************/
681int main(int argc, char *argv[])
682{
683 Network yarp;
684
685 ResourceFinder rf;
686 rf.configure(argc,argv);
687
688 if (rf.check("help"))
689 {
690 cout<<"Available options:"<<endl;
691 cout<<"\t--name <string>"<<endl;
692 cout<<"\t--coverXratio <double>"<<endl;
693 cout<<"\t--coverYratio <double>"<<endl;
694 cout<<"\t--nodesStep <int>"<<endl;
695 cout<<"\t--winSize <int>"<<endl;
696 cout<<"\t--recogThres <double>"<<endl;
697 cout<<"\t--adjNodesThres <int>"<<endl;
698 cout<<"\t--blobMinSizeThres <int>"<<endl;
699 cout<<"\t--framesPersistence <int>"<<endl;
700 cout<<"\t--cropSize \"auto\" or <int>"<<endl;
701 cout<<"\t--verbosity"<<endl;
702 cout<<endl;
703 return 0;
704 }
705
706 if (!yarp.checkNetwork())
707 {
708 yError("YARP server not available!");
709 return 1;
710 }
711
712 ProcessModule mod;
713 return mod.runModule(rf);
714}
Definition main.cpp:48
Blob()
Definition main.cpp:54
Point centroid
Definition main.cpp:50
int size
Definition main.cpp:51
bool configure(ResourceFinder &rf)
Definition main.cpp:627
double getPeriod()
Definition main.cpp:667
bool updateModule()
Definition main.cpp:673
bool respond(const Bottle &command, Bottle &reply)
Definition main.cpp:643
bool close()
Definition main.cpp:652
bool verbosity
Definition main.cpp:81
bool inhibition
Definition main.cpp:82
void run()
Definition main.cpp:180
void onStop()
Definition main.cpp:426
ProcessThread(ResourceFinder &_rf)
Definition main.cpp:109
BufferedPort< ImageOf< PixelBgr > > cropPort
Definition main.cpp:103
void floodFill(const int i, Blob *pBlob)
Definition main.cpp:471
bool firstConsistencyCheck
Definition main.cpp:70
int blobMinSizeThres
Definition main.cpp:78
string name
Definition main.cpp:69
void insertBlob(const Blob &blob)
Definition main.cpp:493
int nodesStep
Definition main.cpp:73
BufferedPort< ImageOf< PixelBgr > > outPort
Definition main.cpp:101
vector< Point2f > nodesPrev
Definition main.cpp:91
void threadRelease()
Definition main.cpp:432
ImageOf< PixelMono > imgMonoIn
Definition main.cpp:86
void findBlobs()
Definition main.cpp:449
double coverYratio
Definition main.cpp:72
double recogThresAbs
Definition main.cpp:76
vector< Mat > pyrCurr
Definition main.cpp:89
ResourceFinder & rf
Definition main.cpp:67
bool threadInit()
Definition main.cpp:112
ImageOf< PixelMono > imgMonoPrev
Definition main.cpp:87
string getName()
Definition main.cpp:443
int cropSize
Definition main.cpp:80
double recogThres
Definition main.cpp:75
int framesPersistence
Definition main.cpp:79
BufferedPort< Bottle > nodesPort
Definition main.cpp:104
int winSize
Definition main.cpp:74
set< int > activeNodesIndexSet
Definition main.cpp:97
deque< Blob > blobSortedList
Definition main.cpp:98
BufferedPort< ImageOf< PixelBgr > > inPort
Definition main.cpp:100
vector< uchar > featuresFound
Definition main.cpp:93
BufferedPort< Bottle > blobsPort
Definition main.cpp:105
BufferedPort< ImageOf< PixelMono > > optPort
Definition main.cpp:102
vector< Mat > pyrPrev
Definition main.cpp:88
int adjNodesThres
Definition main.cpp:77
vector< Point2f > nodesCurr
Definition main.cpp:92
double coverXratio
Definition main.cpp:71
vector< float > featuresErrors
Definition main.cpp:94
void afterStart(bool s)
Definition main.cpp:153
vector< int > nodesPersistence
Definition main.cpp:95
bool execReq(const Bottle &req, Bottle &reply)
Definition main.cpp:511
cmd
Definition dataTypes.h:30
#define NODE_OFF
Definition main.cpp:36
#define NODE_ON
Definition main.cpp:37
int main()
Definition main.cpp:67
Copyright (C) 2008 RobotCub Consortium.