Go to the documentation of this file.
11 #include <boost/test/unit_test.hpp>
12 #include <boost/utility/binary.hpp>
14 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
18 using namespace Eigen;
24 model.upperPositionLimit.head<3>().
fill(100);
26 model.lowerPositionLimit.head<7>() = -
model.upperPositionLimit.head<7>();
30 VectorXd
v(VectorXd::Random(
model.nv));
31 VectorXd
a(VectorXd::Random(
model.nv));
41 BOOST_CHECK(
data.oMi[
i] == data_ref.oMi[
i]);
48 BOOST_CHECK(
data.oMi[
i] == data_ref.oMi[
i]);
49 BOOST_CHECK(
data.v[
i] == data_ref.v[
i]);
56 BOOST_CHECK(
data.oMi[
i] == data_ref.oMi[
i]);
57 BOOST_CHECK(
data.v[
i] == data_ref.v[
i]);
58 BOOST_CHECK(
data.a[
i] == data_ref.a[
i]);
59 BOOST_CHECK(
data.a_gf[
i] == data_ref.a_gf[
i]);
63 BOOST_AUTO_TEST_SUITE_END()
void forwardKinematics(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q)
Update the joint placements according to the current joint configuration.
void humanoidRandom(ModelTpl< Scalar, Options, JointCollectionTpl > &model, bool usingFF=true)
Create a humanoid kinematic tree with 6-DOF limbs and random joint placements.
void randomConfiguration(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorIn1 > &lowerLimits, const Eigen::MatrixBase< ConfigVectorIn2 > &upperLimits, const Eigen::MatrixBase< ReturnType > &qout)
Generate a configuration vector uniformly sampled among provided limits.
pinocchio::JointIndex JointIndex
const DataTpl< Scalar, Options, JointCollectionTpl >::TangentVectorType & rnea(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 > &a)
The Recursive Newton-Euler algorithm. It computes the inverse dynamics, aka the joint torques accordi...
void copy(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &origin, DataTpl< Scalar, Options, JointCollectionTpl > &dest, KinematicLevel kinematic_level)
Copy part of the data from origin to dest. Template parameter can be used to select at which differen...
void setOnes(Eigen::Ref< MatType > mat)
BOOST_AUTO_TEST_CASE(test_data_copy)
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:43