Go to the documentation of this file.
17 #ifndef PINOCCHIO_MODEL_DIR
18 #define PINOCCHIO_MODEL_DIR "path_to_the_model_dir"
21 int main(
int argc,
char ** argv)
28 + std::string(
"/example-robot-data/robots/"
29 "ur_description/urdf/ur5_robot.urdf")
41 Eigen::VectorXd
v = Eigen::VectorXd::Zero(
model.nv);
42 Eigen::VectorXd
a = Eigen::VectorXd::Zero(
model.nv);
48 std::cout <<
"Joint torques: " <<
data.tau.transpose() << std::endl;
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.
int main(int argc, char **argv)
#define PINOCCHIO_MODEL_DIR
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > const Eigen::MatrixBase< TangentVectorType > & v
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...
JointCollectionTpl & model
Main pinocchio namespace.
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:18