load_urdf.cpp
Go to the documentation of this file.
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 }
main
int main(int, char **)
Definition: load_urdf.cpp:6
pinocchio::JointModelFreeFlyer
JointModelFreeFlyerTpl< context::Scalar > JointModelFreeFlyer
Definition: multibody/joint/fwd.hpp:110
filename
filename
urdf.hpp
pinocchio::urdf::buildModel
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)
Build the model from a URDF file with a particular joint as root of the model tree inside the model g...
pinocchio::ModelTpl
Definition: context/generic.hpp:20
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
PINOCCHIO_MODEL_DIR
#define PINOCCHIO_MODEL_DIR
Definition: build-reduced-model.cpp:11


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:31