Compare commits
No commits in common. "4106ae665fafbb1518efb138e22d79c0698550bb" and "28133a45f59b53da4d39200ec578b6d9b67446a2" have entirely different histories.
4106ae665f
...
28133a45f5
|
@ -17,14 +17,10 @@ if interval:
|
|||
while(True):
|
||||
start = time.time()
|
||||
txt = ""
|
||||
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("定位器超出基站扫描视野范围!")
|
||||
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)
|
Loading…
Reference in New Issue