Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sample
script
simTest.py
Go to the documentation of this file.
1
import
time
2
import
com.generalrobotix.ui.item.GrxSimulationItem
as
GrxSimulationItem
3
import
syncExec
4
import
java.lang.Runnable
as
Runnable
5
6
class
StartSim
(Runnable):
7
def
run
(self):
8
sim.startSimulation(0)
9
return
None
10
11
class
SetTime
(Runnable):
12
def
run
(self):
13
sim.setDbl(
"totalTime"
, 5.0)
14
return
None
15
16
sim = uimanager.getSelectedItem(GrxSimulationItem,
None
)
17
syncExec.Exec
(
SetTime
())
18
19
for
i
in
range(3):
20
syncExec.Exec
(
StartSim
())
21
sim.waitStopSimulation()
22
simTest.StartSim
Definition:
simTest.py:6
simTest.SetTime
Definition:
simTest.py:11
simTest.StartSim.run
def run(self)
Definition:
simTest.py:7
simTest.SetTime.run
def run(self)
Definition:
simTest.py:12
syncExec.Exec
def Exec(r)
Definition:
syncExec.py:3
com.generalrobotix.ui.item.GrxSimulationItem
Definition:
GrxSimulationItem.java:74
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:25