load_urdf.cpp
Go to the documentation of this file.
1 #include <pinocchio/parsers/urdf.hpp>
2 
3 #include <iostream>
4 #include <string>
5 
6 int main(int /*argc*/, char ** /*argv*/)
7 {
8  using namespace pinocchio;
9 
10  const std::string filename = PINOCCHIO_MODEL_DIR + std::string("/simple_humanoid.urdf");
11  Model model;
13 
14  std::cout << "model.nq: " << model.nq << std::endl;
15  std::cout << "model.nv: " << model.nv << std::endl;
16 
17  return 0;
18 }
int main(int, char **)
Definition: load_urdf.cpp:6
#define PINOCCHIO_MODEL_DIR
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModel(const std::string &filename, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointModel &rootJoint, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from a URDF file with a particular joint as root of the model tree inside the model g...
Main pinocchio namespace.
Definition: timings.cpp:28
int nv
Dimension of the velocity vector space.
filename
JointModelFreeFlyerTpl< double > JointModelFreeFlyer
JointCollectionTpl & model
int nq
Dimension of the configuration vector representation.


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:31