Go to the documentation of this file.
4 import pinocchio
as pin
5 from test_case
import PinocchioTestCase
as TestCase
11 self.
model = pin.buildSampleModelHumanoidRandom()
14 qmax = np.full((self.
model.nq, 1), np.pi)
16 self.
v = np.random.rand(self.
model.nv)
20 for _
in range(self.
model.njoints):
32 null_fext = pin.StdVec_Force()
33 for _
in range(model.njoints):
34 null_fext.append(pin.Force.Zero())
39 self.assertApprox(ddq_null_fext, ddq)
43 null_fext_list.append(f)
45 print(
"size:", len(null_fext_list))
49 self.assertApprox(ddq_null_fext_list, ddq)
55 data2 = model.createData()
58 self.assertApprox(np.linalg.inv(M), Minv)
70 if __name__ ==
"__main__":
void randomConfiguration(const LieGroupGenericTpl< LieGroupCollection > &lg, const Eigen::MatrixBase< ConfigL_t > &q0, const Eigen::MatrixBase< ConfigR_t > &q1, const Eigen::MatrixBase< ConfigOut_t > &qout)
const DataTpl< Scalar, Options, JointCollectionTpl >::MatrixXs & crba(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Convention convention=Convention::LOCAL)
Computes the upper triangular part of the joint space inertia matrix M by using the Composite Rigid B...
ConstraintDataTpl< Scalar, Options, ConstraintCollectionTpl > createData(const ConstraintModelTpl< Scalar, Options, ConstraintCollectionTpl > &cmodel)
def test_computeMinverse(self)
result_of::push_front< V const, T >::type append(T const &t, V const &v)
Append the element T at the front of boost fusion vector V.
const DataTpl< Scalar, Options, JointCollectionTpl >::RowMatrixXs & computeMinverse(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data)
Computes the inverse of the joint space inertia matrix using Articulated Body formulation....
const DataTpl< Scalar, Options, JointCollectionTpl >::TangentVectorType & aba(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType1 > &v, const Eigen::MatrixBase< TangentVectorType2 > &tau, const container::aligned_vector< ForceDerived > &fext, const Convention rf=Convention::LOCAL)
The Articulated-Body algorithm. It computes the forward dynamics, aka the joint accelerations given t...
def test_assert_mimic_not_supported_function(self)
pinocchio
Author(s):
autogenerated on Wed May 28 2025 02:41:14