From 933cfbfc8a00ef460254e4a1f7f83a514d934ef4 Mon Sep 17 00:00:00 2001 From: zhanli <719901725@qq.com> Date: Mon, 11 Dec 2023 11:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=B0=8F=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?README.md=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../null/bin/win32/driver_null.dll | Bin .../null/bin/win32/driver_null.dll.sig | Bin .../null/bin/win64/driver_null.dll | Bin .../null/bin/win64/driver_null.dll.sig | Bin .../null/driver.vrdrivermanifest | 0 .../resources/settings/default.vrsettings | 0 README.md | 34 +++++++++++------- 7 files changed, 22 insertions(+), 12 deletions(-) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/bin/win32/driver_null.dll (100%) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/bin/win32/driver_null.dll.sig (100%) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/bin/win64/driver_null.dll (100%) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/bin/win64/driver_null.dll.sig (100%) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/driver.vrdrivermanifest (100%) rename Code/steamvr_config/SteamVR/{driver => drivers}/null/resources/settings/default.vrsettings (100%) diff --git a/Code/steamvr_config/SteamVR/driver/null/bin/win32/driver_null.dll b/Code/steamvr_config/SteamVR/drivers/null/bin/win32/driver_null.dll similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/bin/win32/driver_null.dll rename to Code/steamvr_config/SteamVR/drivers/null/bin/win32/driver_null.dll diff --git a/Code/steamvr_config/SteamVR/driver/null/bin/win32/driver_null.dll.sig b/Code/steamvr_config/SteamVR/drivers/null/bin/win32/driver_null.dll.sig similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/bin/win32/driver_null.dll.sig rename to Code/steamvr_config/SteamVR/drivers/null/bin/win32/driver_null.dll.sig diff --git a/Code/steamvr_config/SteamVR/driver/null/bin/win64/driver_null.dll b/Code/steamvr_config/SteamVR/drivers/null/bin/win64/driver_null.dll similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/bin/win64/driver_null.dll rename to Code/steamvr_config/SteamVR/drivers/null/bin/win64/driver_null.dll diff --git a/Code/steamvr_config/SteamVR/driver/null/bin/win64/driver_null.dll.sig b/Code/steamvr_config/SteamVR/drivers/null/bin/win64/driver_null.dll.sig similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/bin/win64/driver_null.dll.sig rename to Code/steamvr_config/SteamVR/drivers/null/bin/win64/driver_null.dll.sig diff --git a/Code/steamvr_config/SteamVR/driver/null/driver.vrdrivermanifest b/Code/steamvr_config/SteamVR/drivers/null/driver.vrdrivermanifest similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/driver.vrdrivermanifest rename to Code/steamvr_config/SteamVR/drivers/null/driver.vrdrivermanifest diff --git a/Code/steamvr_config/SteamVR/driver/null/resources/settings/default.vrsettings b/Code/steamvr_config/SteamVR/drivers/null/resources/settings/default.vrsettings similarity index 100% rename from Code/steamvr_config/SteamVR/driver/null/resources/settings/default.vrsettings rename to Code/steamvr_config/SteamVR/drivers/null/resources/settings/default.vrsettings diff --git a/README.md b/README.md index 68a52f7..ccf406a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ### 1.1 设备的准备 -​ 将Lighthouse用于定位参考设备,只需要准备如下即可。 +​ 将Lighthouse用于定位参考设备,只需要准备如下即可,目前经过实验室的是1.0版本的9灯基站和以及1.0的手柄。 | 设备名 | 数量 | 备注 | | ------------------- | ---- | ------------------------------------------------------------ | @@ -22,20 +22,17 @@ ## 二、软件的准备 -### 2.1 软件的安装概况 +​ 软件的核心安装步骤有3个步骤。主要容易出问题的是步骤2。目前提供的样例配置文件会针对特定的手柄设备,如果硬件ID不一样,可能需要通过2.1到2.3中的配置原理,进行变更。核心步骤如下: -​ 软件方面主要需要安装Steam平台和SteamVR。理论上SteamVR底层的OpenVR可以支持各种语言。目前最简单的是采用python读取数据,python的运行脚本如下所示: +1. Steam和SteamVR的安装 +2. **更换配置文件,样例的配置文件在`Code\steamvr_config`目录下**,直接替换Steam下面的目录文件`C:\Program Files (x86)\Steam\steamapps\common`(默认)即可 +3. Python安装以及openvr库的安装,运行Python读取坐标 -```shell -# 安装openvr库 -pip install openvr -# 进入工作目录 -cd Code/triad_openvr -# 获取指定设备的位置和姿态, 这里需要根据实际的设备类型对代码进行调整 -python tracker_test.py -``` +### 2.1 软件的配置原理 -## 2.2 SteamVR的配置 +​ 软件方面主要需要安装Steam平台和SteamVR。理论上SteamVR底层的OpenVR可以支持各种语言。目前最简单的是采用python读取数据。 + +### 2.2 SteamVR的配置原理 ​ 正常来说,SteamVR的启动必须需要头显才能启动。所以,采取的方式有两种,第一种是绕过头盔启动。第二种方式是把控制器的虚拟为头盔。 @@ -120,6 +117,19 @@ python tracker_test.py } ``` +### 2.3 Python读取定位数据 + +```shell +# 安装openvr库 +pip install openvr +# 进入工作目录 +cd Code/triad_openvr +# 获取指定设备的位置和姿态, 这里需要根据实际的设备类型对代码进行调整 +python tracker_test.py +``` + + + ## 三、问题和解决方案 ### 3.1 此设备目前不在定位,请确认其在一个定位器的定位范围内。