修改代码“

git commit -m 修改代码“
main^2
Shi Xiang 2024-10-18 18:17:31 +08:00
parent 28133a45f5
commit 190526de1c
9 changed files with 60 additions and 7 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name Normal file
View File

@ -0,0 +1 @@
tracker_test.py

8
.idea/LightHouse.iml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,13 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="scrapy_project.imagePro_project.imagePro_project.spiders.img.imagePro_project" />
<option value="数据解析.清水湖畔.urllib3" />
</list>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (python3.8)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/LightHouse.iml" filepath="$PROJECT_DIR$/.idea/LightHouse.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -17,10 +17,14 @@ if interval:
while(True):
start = time.time()
txt = ""
for each in v.devices["hmd_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)
pose_euler = v.devices["hmd_1"].get_pose_euler()
if pose_euler is not None:
for each in pose_euler:
txt += "%.4f" % each
txt += " "
print("\r" + txt, end="")
sleep_time = interval - (time.time() - start)
if sleep_time > 0:
time.sleep(sleep_time)
else:
print("定位器超出基站扫描视野范围!")