2017.09.04 Update -
I found a few small bugs, but as Juerg reports there probably is some sort of race condition which messes things up when doing the initial connect. I have "seen" the publishPortNames null pointer exception - but its elusive. I have a pan-tilt kit which was attached to my puter over night. This morning, I was very surprised to see the port missing ! Arduino IDE could not see it either. Unplugging and plugging the cable back in fixed the issue. But leaves me wondering .. hmmmm. Smells of a hardware or operating system driver issue to me...
Tracking is worky for me .. but I used a small pan-tilt-kit (arduino + 2 servos + usb camera)
I also did not use a script but have been using the "main" method in the Tracking service, I created an equivalent script. I could only get the Sarxos frame grabber to work with my usb camera - all the rest could only run my integrated camera on the laptop and not the pan-tilt kit. (mileage will vary) ;)
[[home/GroG/workyTracking.py]]
CheekyMonkey's (aka Acapulco Rolf) version for I2C
[[home/CheekyMonkey/tracking-i2c.py]]
My assistant testing inmoov
My assistant testing inmoov things !
Core seem worky
I use setMinMax instead of map(0,180,x,y) because I had a lot of pid errors.
I notice this issue :
i01.startEyesTracking(MyLeftPort,22,24)
i01.startHeadTracking(MyLeftPort,12,13)
i01.headTracking.faceDetect()
i01.eyesTracking.faceDetect()
no worky, no errors, but tracking did not start
i01.startHeadTracking(MyLeftPort,12,13)
i01.headTracking.faceDetect()
this is ok. seem we cannot use 2 tracking at same time ?
Thanks for investigating
Thanks for investigating moz4r .
Cute girl detector works ! :)
In the past 2 trackings worked at the same time.
When faceDetect was running, the pid controllers of each tracking had different values, such that, the eyes QUICKLY would move, and the head would more SLOWLY track ...
It would be nice to get this to work as it did ...
I'll start trying with the InMoov service and see what happens.. I'll start thinking on how to make a pan-tilt inside a pan-tilt emulating head/eyes tracking in InMoov
Posting Comment on behalf of Juerg
with the Raspberry Pi
with the Raspberry Pi 3
code here :
Mona ! .. "can't take my eyes
Mona ! .. "can't take my eyes off of you ... it just too good to be true..."
An other happy friend
An other happy friend