#1
|
|||
|
|||
Using Oculus and Vicon for updating in pit
Hi,
I have troubling using Oculus DK2 for orientation updating and Vicon for position updating in pit. The following is the snippet of codes I use for updating HTML Code:
def UpdateView(): p = pos.getPosition() ##use Vicon for position updating x = -p[1]/1000 ## position conversion y = p[2]/1000 z = p[0]/1000 o = sensor.getEuler() ##use Oculus for orientation updating viz.MainView.setEuler(o[0], o[1], o[2],viz.BODY_ORI) viz.MainView.setPosition(x,y,z,viz.HEAD_POS) ##set the position vizact.ontimer(0,UpdateView) HTML Code:
faller = PitTrackedFaller(head_tracker) viz.link(faller,viz.MainView) |
#2
|
|||
|
|||
I just figure out. All I need to do is replace the
viz.MainView.setPosition(x,y,z,viz.HEAD_POS) with head_tracker.setPosition(x,1.5,z,viz.HEAD_POS) |
Tags |
oculus, pit, vicon |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
oculus DK2 in vizard 5 | green951 | Vizard | 1 | 06-18-2015 09:12 AM |