3 sim = hrpsys.Simulator()
6 body = sim.createBody(
"body")
9 s1 = root.addCube(0.2, 1.0, 0.2)
10 s1.diffuse = [1,0,0,1]
12 child = root.addChildLink(
"child")
14 child.jointType =
"rotate" 18 child.I = [1,0,0,0,1,0,0,0,1]
19 s2 = child.addCube(0.5, 1.0, 0.1)
21 s2.diffuse = [0,1,0,1]