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 a = np.random.rand(model.nv, 1)
29 pin.computeRNEADerivatives(model, data, q, v, a)
33 dtau_dq = data.dtau_dq
34 dtau_dv = data.dtau_dv