2 import pinocchio
as pin
5 from test_case
import PinocchioTestCase
10 self.
model = pin.buildSampleModelHumanoidRandom()
19 self.
q = pin.randomConfiguration(self.
model)
20 self.
v = np.random.rand((self.
model.nv))
21 self.
a = np.random.rand((self.
model.nv))
34 pin.computeForwardKinematicsDerivatives(model,data,q,v,a)
36 pin.getFrameVelocityDerivatives(model,data,self.
frame_idx,pin.WORLD)
37 pin.getFrameVelocityDerivatives(model,data,self.
frame_idx,pin.LOCAL)
38 pin.getFrameVelocityDerivatives(model,data,self.
frame_idx,pin.LOCAL_WORLD_ALIGNED)
40 pin.getFrameAccelerationDerivatives(model,data,self.
frame_idx,pin.WORLD)
41 pin.getFrameAccelerationDerivatives(model,data,self.
frame_idx,pin.LOCAL)
42 pin.getFrameAccelerationDerivatives(model,data,self.
frame_idx,pin.LOCAL_WORLD_ALIGNED)
44 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)