20 #include <boost/test/unit_test.hpp> 21 #include <boost/utility/binary.hpp> 24 #include <pinocchio/algorithm/joint-configuration.hpp> 30 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
39 package_dirs.push_back(romeo_model_path);
40 string urdfFileName = package_dirs[0] +
"/urdf/romeo.urdf";
49 lb.head<3>().
fill(-10.);
50 lb.segment<4>(3).
fill(-1.);
53 ub.head<3>().
fill(10.);
54 ub.segment<4>(3).
fill(1.);
62 std::cout << com << std::endl;
63 BOOST_CHECK(robot.
nq() == 38);
64 BOOST_CHECK(robot.
nv() == 37);
67 BOOST_AUTO_TEST_SUITE_END()
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
ConfigVectorType lowerPositionLimit
const Model & model() const
Accessor to model.
Eigen::Matrix< Scalar, 3, 1 > Vector3
void randomConfiguration(const LieGroupGenericTpl< LieGroupCollection > &lg, const Eigen::MatrixBase< ConfigL_t > &q0, const Eigen::MatrixBase< ConfigR_t > &q1, const Eigen::MatrixBase< ConfigOut_t > &qout)
void com(const Data &data, RefVector com_pos, RefVector com_vel, RefVector com_acc) const
BOOST_AUTO_TEST_CASE(test_robot_wrapper)
Wrapper for a robot based on pinocchio.
void computeAllTerms(Data &data, const Vector &q, const Vector &v) const
ConfigVectorType upperPositionLimit