Update
This commit is contained in:
parent
d0d12a6ecc
commit
2947a15ae1
10
main.py
10
main.py
@ -22,6 +22,8 @@ import threading
|
|||||||
import object_tf_service as ots
|
import object_tf_service as ots
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
running = True
|
||||||
|
|
||||||
table = {
|
table = {
|
||||||
'id':'t1',
|
'id':'t1',
|
||||||
'rframe':'world',
|
'rframe':'world',
|
||||||
@ -461,12 +463,14 @@ tf_service(init=True)
|
|||||||
|
|
||||||
|
|
||||||
print('Done with task, enter x to kill tf service')
|
print('Done with task, enter x to kill tf service')
|
||||||
while True:
|
while running:
|
||||||
a = raw_input()
|
a = input()
|
||||||
if a == 'x' or x == 'X':
|
if a == 'x':
|
||||||
print("x has been caught, killing tf service")
|
print("x has been caught, killing tf service")
|
||||||
|
running = False
|
||||||
tf_service(init=False)
|
tf_service(init=False)
|
||||||
|
|
||||||
|
|
||||||
print("Done, exiting")
|
print("Done, exiting")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user