2 import pinocchio
as pin
15 model = pin.buildSampleModelHumanoidRandom()
16 data = model.createData()
20 model.lowerPositionLimit = -np.ones((model.nq, 1))
21 model.upperPositionLimit = np.ones((model.nq, 1))
23 q = pin.randomConfiguration(model)
24 v = np.random.rand(model.nv, 1)
25 tau = np.random.rand(model.nv, 1)
29 pin.computeABADerivatives(model, data, q, v, tau)