simTest.py
Go to the documentation of this file.
00001 import time
00002 import com.generalrobotix.ui.item.GrxSimulationItem as GrxSimulationItem
00003 import syncExec
00004 import java.lang.Runnable as Runnable
00005 
00006 class StartSim(Runnable):
00007         def run(self):
00008                 sim.startSimulation(0)
00009                 return None
00010 
00011 class SetTime(Runnable):
00012         def run(self):
00013                 sim.setDbl("totalTime", 5.0)
00014                 return None
00015 
00016 sim   = uimanager.getSelectedItem(GrxSimulationItem, None)
00017 syncExec.Exec(SetTime())
00018 
00019 for i in range(3):
00020         syncExec.Exec(StartSim())
00021         sim.waitStopSimulation()
00022 


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:19