Compare commits
3 Commits
28133a45f5
...
4106ae665f
Author | SHA1 | Date |
---|---|---|
詹力 | 4106ae665f | |
Shi Xiang | f225cd55b7 | |
Shi Xiang | 190526de1c |
|
@ -17,10 +17,14 @@ if interval:
|
||||||
while(True):
|
while(True):
|
||||||
start = time.time()
|
start = time.time()
|
||||||
txt = ""
|
txt = ""
|
||||||
for each in v.devices["hmd_1"].get_pose_euler():
|
pose_euler = v.devices["hmd_1"].get_pose_euler()
|
||||||
|
if pose_euler is not None:
|
||||||
|
for each in pose_euler:
|
||||||
txt += "%.4f" % each
|
txt += "%.4f" % each
|
||||||
txt += " "
|
txt += " "
|
||||||
print("\r" + txt, end="")
|
print("\r" + txt, end="")
|
||||||
sleep_time = interval - (time.time() - start)
|
sleep_time = interval - (time.time() - start)
|
||||||
if sleep_time > 0:
|
if sleep_time > 0:
|
||||||
time.sleep(sleep_time)
|
time.sleep(sleep_time)
|
||||||
|
else:
|
||||||
|
print("定位器超出基站扫描视野范围!")
|
Loading…
Reference in New Issue