资源简介
openvr for double,对于openvr的修改,支持向本机发送数据,详情见作者博客
代码片段和文件信息
import triad_openvr
import time
import sys
v = triad_openvr.triad_openvr()
v.print_discovered_objects()
if len(sys.argv) == 1:
interval = 1/250
elif len(sys.argv) == 2:
interval = 1/float(sys.argv[0])
else:
print(“Invalid number of arguments“)
interval = False
if interval:
while(True):
start = time.time()
txt = ““
for each in v.devices[“controller_1“].get_pose_euler():
txt += “%.4f“ % each
txt += “ “
print(“\r“ + txt end=““)
sleep_time = interval-(time.time()-start)
if sleep_time>0:
time.sleep(sleep_time)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-22 10:56 openvr for double\
文件 0 2018-09-18 09:32 openvr for double\calibrated.txt
文件 622 2018-05-16 03:19 openvr for double\controller_test.py
文件 3105 2018-05-16 03:19 openvr for double\example_default.vrsettings
文件 643 2018-05-16 03:19 openvr for double\README.md
文件 1522 2018-09-14 08:53 openvr for double\test.py
文件 619 2018-05-16 03:19 openvr for double\tracker_test.py
文件 7914 2018-09-17 16:53 openvr for double\triad_openvr.py
文件 763 2018-05-16 03:19 openvr for double\udp_emitter.py
文件 1664 2018-05-16 03:19 openvr for double\udp_receiver.cs
目录 0 2018-10-22 10:56 openvr for double\__pycache__\
文件 7290 2018-09-17 16:53 openvr for double\__pycache__\triad_openvr.cpython-35.pyc
文件 6566 2018-09-10 16:37 openvr for double\__pycache__\triad_openvr.cpython-37.pyc
- 上一篇:openvr for htc vive
- 下一篇:人口结构的数学建模
评论
共有 条评论