#1
|
|||
|
|||
using sensor.
Hi worldviz
i want to use sensor of three. so, i make a code following. vrpn = viz.add('vrpn7.dle') tracker1 = vrpn.addTracker('PPT0@166.104.29.228',0) tracker2 = vrpn.addTracker('PPT0@166.104.29.228',1) tracker3 = vrpn.addTracker('PPT0@166.104.29.228',2) def update(): position1 = tracker1.getPosition() position2 = tracker2.getPosition() position3 = tracker3.getPosition() a = position1[0] a1 = position1[1] a2 = position1[2] #print a1 b = position2[0] b1 = position2[1] b2 = position2[2] print b1 c = position3[0] c1 = position3[1] c2 = position3[2] #print c1 vizact.ontimer(0,update) but !! the location of sensor is frequently change. How can i ?? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a Vizard Sensor Plugin | farshizzo | Plug-in development | 25 | 08-01-2019 12:24 AM |
Sensor gets confused | durf | Precision Position Tracker (PPT) | 1 | 04-23-2009 12:41 PM |
wiimote and sensor bar | masaki | Vizard | 1 | 03-06-2008 03:07 PM |
Multiple Copies of same sensor plugin | RedSpikeyThing | Plug-in development | 2 | 02-12-2008 02:10 PM |
using sensor data in Physics1.py | Eunice | Vizard | 4 | 01-03-2006 05:18 AM |