MyRobotLab / InMoov

inmoov repo
http://myrobotlab.org
94 stars 65 forks source link

TrackHumans et TrackPoints comeback to origin #52

Closed moz4r closed 7 years ago

hairygael commented 7 years ago

For now these settings are giving good results although the eyes could be even faster. def trackHumans(): global RobotCanMoveHeadWhileSpeaking RobotCanMoveHeadWhileSpeaking=0 i01.headTracking.faceDetect() i01.eyesTracking.faceDetect() i01.setHeadVelocity(80, -1) i01.setEyeVelocity(-1, -1)

What about you?

moz4r commented 7 years ago

setEyeVelocity not reconized I changed to i01.setHeadVelocity(80, -1, -1, -1, -1) Lucky guy !! bad results for me ( using 2042 ) . I need to do more test. I will open a post after

01:00:10.687 [i01.eyesTracking] ERROR c.m.f.Service [Service.java:1514] InvocationTargetException java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_121] at org.myrobotlab.framework.Service.invokeOn(Service.java:1445) [myrobotlab.jar:na] at org.myrobotlab.framework.Service.invoke(Service.java:1383) [myrobotlab.jar:na] at org.myrobotlab.framework.Service.run(Service.java:1794) [myrobotlab.jar:na] at java.lang.Thread.run(Unknown Source) [na:1.8.0_121] Caused by: java.lang.NullPointerException: null at org.myrobotlab.service.data.Point2Df.get(Point2Df.java:44) ~[myrobotlab.jar:na] at org.myrobotlab.service.Tracking.updateTrackingPoint(Tracking.java:573) ~[myrobotlab.jar:na] at org.myrobotlab.service.Tracking.setOpenCVData(Tracking.java:385) ~[myrobotlab.jar:na]

hairygael commented 7 years ago

oops sorry, this is the correct one: def trackHumans(): global RobotCanMoveHeadWhileSpeaking RobotCanMoveHeadWhileSpeaking=0 i01.headTracking.faceDetect() i01.eyesTracking.faceDetect() i01.setHeadVelocity(80, -1) sleep(1) fullspeed()

Working good with version 2006

moz4r commented 7 years ago

TrackHumans et TrackPoints comeback to origin, check !