WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 09-06-2015, 08:36 AM
Qiliang He Qiliang He is offline
Join Date: Mar 2014
Posts: 24
Using Oculus and Vicon for updating in pit


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
The orientation updating is OK but not the position. I have to comment the following codes to make the position tracking work
HTML Code:
faller = PitTrackedFaller(head_tracker),viz.MainView)
However, this disables the faller. When can I do in this case? Thank you!
Reply With Quote
Old 09-06-2015, 02:46 PM
Qiliang He Qiliang He is offline
Join Date: Mar 2014
Posts: 24
I just figure out. All I need to do is replace the



Reply With Quote

oculus, pit, vicon

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
oculus DK2 in vizard 5 green951 Vizard 1 06-18-2015 08:12 AM

All times are GMT -7. The time now is 04:56 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC