00001 import hrpsys 00002 import commands 00003 00004 openhrp_dir = commands.getoutput("pkg-config --variable=prefix openhrp3.1") 00005 project = "file://"+openhrp_dir+"/share/OpenHRP-3.1/sample/project/Sample.xml" 00006 00007 sim = hrpsys.Simulator() 00008 sim.initViewer() 00009 sim.loadProject(project) 00010 sim.simulate()