2 import pinocchio
as pin
5 from test_case
import PinocchioTestCase
10 self.
model = pin.buildSampleModelHumanoidRandom()
14 self.
q = pin.randomConfiguration(self.
model)
15 self.
v = np.random.rand((self.
model.nv))
16 self.
a = np.random.rand((self.
model.nv))
29 pin.computeForwardKinematicsDerivatives(model,data,q,v,a)
31 pin.getJointVelocityDerivatives(model,data,self.
joint_idx,pin.WORLD)
32 pin.getJointVelocityDerivatives(model,data,self.
joint_idx,pin.LOCAL)
33 pin.getJointVelocityDerivatives(model,data,self.
joint_idx,pin.LOCAL_WORLD_ALIGNED)
35 pin.getJointAccelerationDerivatives(model,data,self.
joint_idx,pin.WORLD)
36 pin.getJointAccelerationDerivatives(model,data,self.
joint_idx,pin.LOCAL)
37 pin.getJointAccelerationDerivatives(model,data,self.
joint_idx,pin.LOCAL_WORLD_ALIGNED)
39 if __name__ ==
'__main__':
JointDataTpl< Scalar, Options, JointCollectionTpl > createData(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through CreateData visitor to create a JointDataTpl.
def test_derivatives(self)