1 import pinocchio
as pin
13 model = pin.buildSampleModelHumanoidRandom()
14 data = model.createData()
18 model.lowerPositionLimit = -np.ones((model.nq,1))
19 model.upperPositionLimit = np.ones((model.nq,1))
21 q = pin.randomConfiguration(model)
22 v = np.random.rand(model.nv,1)
23 a = np.random.rand(model.nv,1)
27 pin.computeRNEADerivatives(model,data,q,v,a)
31 dtau_dq = data.dtau_dq
32 dtau_dv = data.dtau_dv