4 openhrp_dir = commands.getoutput(
"pkg-config --variable=prefix openhrp3.1")
5 model_dir=
"file://"+openhrp_dir+
"/share/OpenHRP-3.1/sample/model/" 7 sim = hrpsys.Simulator()
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)