#1
|
|||
|
|||
Wireless InertiaCube3 with Vizard
The wireless IC3 is supported from Vizard version 2.51 on/
Here a couple of tricks: A) IServer: The IServer application (version 1.40) that comes with the IC3 seems to be stable and functional and we recommend to use it. If several InertiaCubes are connected, the IServer application shows separate tabs for each. B) Device Tool: The Device tool that comes with the IC3 is well documented. It allows configuration of wireless InertiaCube3 sender / receiver combinations. C) Vizard: different InertiaCubes can be added one by one by using the commands: tracker = viz.add('intersense.dls') tracker2 = viz.add('intersense.dls') etc. If you want to specify which port is connected with which IC3, use PORT_INTERSENSE = 13 tracker = viz.add('intersense.dls') PORT_INTERSENSE = 14 tracker2 = viz.add('intersense.dls') etc. D) if the IC3 is not detected in Vizard or the IServer application, try unplugging senders (battery) and receivers (USB port), quit IServer or the Vizard application. Then plug back in and restart IServer or the Vizard application. E) example for using two IC3-s for manipulating a simple envirnment: import viz viz.go() #Add a ground plane and hedra viz.add('tut_ground.wrl') hedra = viz.add('tut_hedra.wrl') #add Intersense tracker tracker = viz.add('intersense.dls') tracker2 = viz.add('intersense.dls') # The timer function that will grab the # tracker data and update the orientation def mytimer(num): #Get the data from the tracker data = tracker.get() #Only rotate the yaw of the body orientation viz.reset(viz.BODY_ORI) viz.rotate(viz.BODY_ORI,data[3],0,0) hedra.rotate(tracker2.get()[3:6]) def mykeyboard(key): #If the R key is pressed, reset the tracker if key in ['R','r']: tracker.reset() #Create the keyboard and timer callbacks viz.callback(viz.TIMER_EVENT,mytimer) viz.callback(viz.KEYBOARD_EVENT,mykeyboard) #Start the timer viz.starttimer(0,0.01,-1) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|