6 #include "pinocchio/algorithm/parallel/rnea.hpp" 16 const Eigen::MatrixXd &
q,
const Eigen::MatrixXd &
v,
const Eigen::MatrixXd & a,
17 Eigen::Ref<Eigen::MatrixXd>
tau)
19 rnea(num_thread,pool,q,v,a,tau);
23 const Eigen::MatrixXd &
q,
const Eigen::MatrixXd &
v,
const Eigen::MatrixXd & a)
25 Eigen::MatrixXd
tau(v.rows(),v.cols());
26 rnea(num_thread,pool,q,v,a,
tau);
34 using namespace Eigen;
38 bp::args(
"num_thread",
"pool",
"q",
"v",
"a"),
39 "Computes in parallel the RNEA and returns the result.\n\n" 41 "\tnum_thread: number of threads used for the computation\n" 42 "\tpool: pool of model/data\n" 43 "\tq: the joint configuration vector (size model.nq x batch_size)\n" 44 "\tv: the joint velocity vector (size model.nv x batch_size)\n" 45 "\ta: the joint acceleration vector (size model.nv x batch_size)\n");
49 bp::args(
"num_thread",
"pool",
"q",
"v",
"a",
"tau"),
50 "Computes in parallel the RNEA and stores the result in tau.\n\n" 52 "\tnum_thread: number of threads used for the computation\n" 53 "\tpool: pool of model/data\n" 54 "\tq: the joint configuration vector (size model.nq x batch_size)\n" 55 "\tv: the joint velocity vector (size model.nv x batch_size)\n" 56 "\ta: the joint acceleration vector (size model.nv x batch_size)\n" 57 "\ttau: the resulting joint torque vectors (size model.nv x batch_size)\n");
void rnea(const int num_threads, ModelPoolTpl< Scalar, Options, JointCollectionTpl > &pool, const Eigen::MatrixBase< ConfigVectorPool > &q, const Eigen::MatrixBase< TangentVectorPool1 > &v, const Eigen::MatrixBase< TangentVectorPool2 > &a, const Eigen::MatrixBase< TangentVectorPool3 > &tau)
The Recursive Newton-Euler algorithm. It computes the inverse dynamics, aka the joint torques accordi...
void exposeParallelRNEA()
static Eigen::MatrixXd rnea_proxy(const int num_thread, ModelPool &pool, const Eigen::MatrixXd &q, const Eigen::MatrixXd &v, const Eigen::MatrixXd &a)
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
static void rnea_proxy_res(const int num_thread, ModelPool &pool, const Eigen::MatrixXd &q, const Eigen::MatrixXd &v, const Eigen::MatrixXd &a, Eigen::Ref< Eigen::MatrixXd > tau)
Main pinocchio namespace.