Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sample
script
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:
18
syncExec.Exec
(
MyRunnable
())
19
c = c + 100
20
if
c > n:
21
c = 0
22
time.sleep(1)
com.generalrobotix.ui.item.GrxWorldStateItem
Definition:
GrxWorldStateItem.java:53
autoplay.MyRunnable.run
def run(self)
Definition:
autoplay.py:7
syncExec.Exec
def Exec(r)
Definition:
syncExec.py:3
autoplay.MyRunnable
Definition:
autoplay.py:6
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:36