java - Leap Motion Listener onFrame is Skipping/Ignoring Code -


i developing custom gesture creation application leap in java. in onframe function code being executed point , rest of code skipped.

the code onframe below:

public void onframe(controller controller) {     frame frame = controller.frame();     if (recordableframe(frame, minrecordingvelocity)){          /*          * if first frame in gesture, clean running         values          */         if (!recording) {              recording = true;              framecount = 0;         }          framecount++;         system.out.println("in frame... " + integer.tostring(framecount));         recordframe(frame);         system.out.println("recording frame...");     }     } 

everything works fine, until "recordframe(frame) function called. function , code in onframe after function ignored/not executed. instead of skipping frames, seem skipping code.

the code recordframe below:

/**  * function called each frame during gesture recording,   * , responsible adding values in frames using provided   * recordpoint function (which accepts vector).  */ public void recordframe(frame frame) {     handlist hands = frame.hands();     int handcount = hands.count();      hand hand;      finger finger;      fingerlist fingers;      int fingercount;      int l = handcount;     (int = 0; < l; i++) {   //for each hand in frame         hand = hands.get(i);          recordpoint(hand.stabilizedpalmposition()); //record palm position          fingers = hand.fingers();         fingercount = fingers.count();          int k = fingercount;         (int j = 0; j < k; j++) {  //for each finger in hand             finger = fingers.get(j);             recordpoint(finger.stabilizedtipposition();//record fingertip position.         }     }     system.out.println("recording frame..."); } 

from leap motion forum:

"i found issue. in gesture class declare arraylist never initialize = new arraylist(); (weird didn't throw compiler error)

once did worked fine. i've got working , running."

https://community.leapmotion.com/t/listener-onframe-is-skipping-code/3108/7


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -