Script execution
This commit is contained in:
@@ -402,14 +402,14 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
time.sleep(0.5) #get_task_status needs time
|
||||
|
||||
def stop_task(self):
|
||||
tasks = [] # [t for t in self.high_level_tasks]
|
||||
tasks = [t for t in self.high_level_tasks]
|
||||
if (self.current_task is not None) and (not self.current_task in tasks):
|
||||
tasks.append(self.current_task)
|
||||
for task in tasks:
|
||||
if self.get_task_status(task)[0]>=0:
|
||||
time.sleep(0.2)
|
||||
self.task_kill(task)
|
||||
time.sleep(0.2)
|
||||
if self.get_task_status(task)[0]>=0:
|
||||
time.sleep(0.2)
|
||||
self.task_kill(task)
|
||||
|
||||
def get_task(self):
|
||||
if self.current_task is not None:
|
||||
|
||||
Reference in New Issue
Block a user