Go to the documentation of this file.
   14 int main(
int argc, 
const char ** argv)
 
   17   using namespace Eigen;
 
   21     + std::string(
"/example-robot-data/robots/ur_description/urdf/ur5_robot.urdf");
 
   25   std::cout << 
"Opening file: " << 
filename << std::endl;
 
   42   MatrixXd & 
M = crba_code_gen.
M;
 
   45   M.template triangularView<Eigen::StrictlyLower>() =
 
   46     M.transpose().template triangularView<Eigen::StrictlyLower>();
 
   52   data_check.
M.triangularView<Eigen::StrictlyLower>() =
 
   53     data_check.
M.transpose().triangularView<Eigen::StrictlyLower>();
 
   55   const MatrixXd & M_check = data_check.
M;
 
   56   if (M_check.isApprox(
M))
 
   58     std::cout << 
"Super! The two results are the same." << std::endl;
 
   63     std::cout << 
"Not Super! The results do not match." << std::endl;
 
  
MatrixXs M
The joint space inertia matrix (a square matrix of dim model.nv).
int main(int argc, const char **argv)
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...
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.
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
void compileAndLoadLib(const std::string &gcc_path)
void evalFunction(const Eigen::MatrixBase< ConfigVectorType > &q)
JointCollectionTpl & model
Main pinocchio namespace.
#define PINOCCHIO_MODEL_DIR
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModel(const std::string &filename, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointModel &rootJoint, const std::string &rootJointName, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false, const bool mimic=false)
Build the model from a URDF file with a particular joint as root of the model tree inside the model g...
pinocchio
Author(s): 
autogenerated on Wed May 28 2025 02:41:16