simTest1.py
Go to the documentation of this file.
1 #
2 # test script for Simulator component
3 #
4 # start hrpsys-viewer and SimulatorComp before running this script
5 #
6 import rtm
7 import commands
8 
9 openhrp_dir = commands.getoutput("pkg-config --variable=prefix openhrp3.1")
10 project = "file://"+openhrp_dir+"/share/OpenHRP-3.1/sample/project/Sample.xml"
11 sim = rtm.findRTC("Simulator0")
12 print "sim:",sim
13 sim.setProperty("project", project)
14 sim.setProperty("useOLV", "1")
15 sim.start()
def findRTC(name, rnc=None)
get RT component
Definition: jython/rtm.py:341


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51