From: David B. <dav...@br...> - 2006-08-16 19:40:57
|
I tried the pc.Read fix, and it still does not work. using namespace PlayerCc; using namespace std; int main(int argc, char *argv[]) { using namespace PlayerCc; cout<<"roombastart"<<endl; PlayerClient _pc("localhost",6665); cout<<"blobfinderstart"<<endl; BlobfinderProxy _bfp(&_pc,0); BumperProxy _bump(&_pc,0); int m,j; for (m=0;m<100;++m){ _pc.Read(); cout<<"There are "<<_bfp.GetCount()<<" blobs"<<endl; for (j=0; j<_bfp.GetCount(); ++j){ cout<<" Blob "<<j<<" area ="<< (_bfp.GetBlob(j).area)<<endl; cout<<"Bottom "<<_bfp.GetBlob(j).bottom<<endl; cout<<"Top "<<_bfp.GetBlob(j).top<<endl; } if (_bfp.GetCount()==0) cout<<"no blobs"<<endl; cout <<"BumpState ="<< _bump.IsAnyBumped()<<endl; sleep(1); } } On Aug 16, 2006, at 7:17 AM, viddyma wrote: > I am trying to use the cmvision driver to identify blobs using a > firewire > camera. It works fine when I use playerv and display the > blobfinder data. > I can see the blobs. But when I try to write my own client the > BlobfinderProxy reports no blobs, here are my files. That's because you're never reading new data from the server. Look below. Right here, you need to call _pc.Read(). It will block for new data, which will fill in your BlobfinderProxy. -- View this message in context: http://www.nabble.com/Using-CMVision-with-Camera1394-tf2115596.html#a5839157 Sent from the playerstage-developers forum at Nabble.com. |