View Single Post
  #1  
Old 06-29-2015, 01:55 AM
Pip Pip is offline
Member
 
Join Date: Aug 2014
Posts: 3
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)
When using the parent class Leap.Listener(), we experience no crashes.

Any helpful ideas?

Edit:
For additional hints, I've added the crashrpt.xml
Attached Files
File Type: zip e190a5a3-cfbc-46ee-9725-a960ce2f1c91.zip (16.9 KB, 1195 views)

Last edited by Pip; 06-29-2015 at 01:57 AM. Reason: file added
Reply With Quote