autoplay.py
Go to the documentation of this file.
1 import time
2 import com.generalrobotix.ui.item.GrxWorldStateItem as GrxWorldStateItem
3 import syncExec
4 import java.lang.Runnable as Runnable
5 
6 class MyRunnable(Runnable):
7  def run(self):
8  item.setPosition(c)
9  return None
10 
11 item = uimanager.getSelectedItem(GrxWorldStateItem, None)
12 n = item.getLogSize()
13 if n > 0:
14  print "now auto playing..."
15 
16  c = 0
17  while 1:
19  c = c + 100
20  if c > n:
21  c = 0
22  time.sleep(1)
def run(self)
Definition: autoplay.py:7
def Exec(r)
Definition: syncExec.py:3


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:18