In order to use a new focus gesture one needs to create a new gesture generator and replace the existing one with it. Note that with the current implementation of NITE one will lose the existing gestures (Click, Wave, RaiseHand) once the generator is replaced.
Creating a new focus gesture is difficult and there are many considerations to be taken when developing one. One of which is detecting the hand position once the gesture is done and provide it eventually to the Hand Generator (the hand tracking system), this is problematic when trying to use a gesture that is not a hand based gesture (like shaking head) because there is no guarantee as to where the hand is at.
If you still want to replace the gesture generator you can find a sample that demonstrate how to replace a Depth Generator (NiSampleModule) that you can use as a reference.
Best Regards,
Lior Cohen
hi all,
Regards,
Gopinder
--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.
Unfortunately, at the moment there is no straight way of adding additional focus gesture on top of the existing ones. This feature will be available in one of the next releases.
There is some workarounds that you might want to consider:
1) create an independent gesture generator (no code available for that, only an OpenNI sample - NiSampleModule, that could assist you on how to create a new module(generator)). After creating your own generator you need to register to it in order to get the GestureRecognizedCB and set the start session with its focus point when the focus was detected. On parallel you will need to seek for the other gestures using the regular NITE code.
2) Another option is to create two different applications that register to different gesture generators (NITE and your own) and one of the applications will provide the relevant information to the other. You can probably also consider in this scenario using the XnVMultiProcessFlowServer and XnVMultiProcessFlowClient for inter-process communication and passing the session information.
Or probably the best way is wait for the upcoming fix and in the meantime create your own gesture generator. You could test it as a separate component and when the fix will be introduce you will be able to use both gesture generators simultaneously with the same SessionManager.
If you replace the gesture generator with one of your own you will still be able to use the NITE controls (WaveDetector, PushDetector...).
That's one of the beauties of OpenNI :-)
> To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/openni-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.
> To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/openni-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.
> To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/openni-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.