Go to the documentation of this file.
9 #ifndef PINOCCHIO_MODEL_DIR
10 #define PINOCCHIO_MODEL_DIR "path_to_the_model_dir"
13 int main(
int argc,
char ** argv)
21 + std::string(
"/example-robot-data/robots/ur_description/urdf/ur5_robot.urdf")
33 Eigen::VectorXd
v = Eigen::VectorXd::Zero(
model.nv);
34 Eigen::VectorXd
tau = Eigen::VectorXd::Zero(
model.nv);
37 Eigen::MatrixXd djoint_acc_dq = Eigen::MatrixXd::Zero(
model.nv,
model.nv);
38 Eigen::MatrixXd djoint_acc_dv = Eigen::MatrixXd::Zero(
model.nv,
model.nv);
39 Eigen::MatrixXd djoint_acc_dtau = Eigen::MatrixXd::Zero(
model.nv,
model.nv);
45 std::cout <<
"Joint acceleration: " <<
data.ddq.transpose() << std::endl;
int main(int argc, char **argv)
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.
#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)
Build the model from a URDF file with a particular joint as root of the model tree inside the model g...
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > const Eigen::MatrixBase< TangentVectorType > & v
void computeABADerivatives(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 > &tau, const Eigen::MatrixBase< MatrixType1 > &aba_partial_dq, const Eigen::MatrixBase< MatrixType2 > &aba_partial_dv, const Eigen::MatrixBase< MatrixType3 > &aba_partial_dtau)
The derivatives of the Articulated-Body algorithm.
JointCollectionTpl & model
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09