simTest4.py
Go to the documentation of this file.
1 import hrpsys
2 import commands
3 
4 openhrp_dir = commands.getoutput("pkg-config --variable=prefix openhrp3.1")
5 model_dir="file://"+openhrp_dir+"/share/OpenHRP-3.1/sample/model/"
6 
7 sim = hrpsys.Simulator()
8 sim.initViewer()
9 box = sim.loadBody("box", model_dir+"box.wrl")
10 box.rootLink().R = [0,0,0]
11 box2 = sim.loadBody("box2", model_dir+"box2.wrl")
12 sim.addCollisionCheckPair(box, box2)
13 sim.initialize()
14 sim.simulate(1.0)


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