![]() |
|
#1
|
|||
|
|||
|
LEAP Motion Listener
Hi everyone,
I am trying to use the LEAP Motion Controller in a Vizard 5.1 script. Creating a Controller is not a problem but everytime I try to register a Listener, Vizard crashes. Here's my code: Code:
class SampleListener(Leap.Listener):
finger_names = ['Thumb', 'Index', 'Middle', 'Ring', 'Pinky']
bone_names = ['Metacarpal', 'Proximal', 'Intermediate', 'Distal']
state_names = ['STATE_INVALID', 'STATE_START', 'STATE_UPDATE', 'STATE_END']
def on_init(self, controller):
print "Initialized"
def on_connect(self, controller):
print "Connected"
def main():
import viz
viz.addChild("dojo.OSGB")
viz.go()
# Create a sample listener and controller
listener = SampleListener()
# Have the sample listener receive events from the controller
controller.add_listener(listener)
Any helpful ideas? Edit: For additional hints, I've added the crashrpt.xml Last edited by Pip; 06-29-2015 at 02:57 AM. Reason: file added |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Leap Motion | rlh001 | Vizard | 2 | 01-22-2015 05:46 AM |
| PPT Mocap and Motion Builder Connection Problem | hxphan | Precision Position Tracker (PPT) | 3 | 02-22-2011 12:01 PM |
| an object in motion does not stay in motion? | driechers | Vizard | 2 | 11-09-2010 04:51 PM |
| Motion Capture & CyberGloves | EnvisMJ | Vizard | 1 | 10-01-2009 05:21 PM |
| Eliminate Sideways Motion when colliding w/Objects | Feuereissen | Vizard | 3 | 07-09-2009 01:43 PM |