6 #include "pinocchio/algorithm/parallel/aba.hpp" 16 const Eigen::MatrixXd &
q,
const Eigen::MatrixXd &
v,
const Eigen::MatrixXd &
tau,
17 Eigen::Ref<Eigen::MatrixXd>
a)
19 aba(num_thread,pool,q,v,tau,a);
23 const Eigen::MatrixXd &
q,
const Eigen::MatrixXd &
v,
const Eigen::MatrixXd &
tau)
25 Eigen::MatrixXd
a(v.rows(),v.cols());
26 aba(num_thread,pool,q,v,tau,
a);
34 using namespace Eigen;
38 bp::args(
"num_thread",
"pool",
"q",
"v",
"a"),
39 "Computes in parallel the ABA 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 "\ttau: the joint torque vector (size model.nv x batch_size)\n");
49 bp::args(
"num_thread",
"pool",
"q",
"v",
"a",
"tau"),
50 "Computes in parallel the ABA, store the result in a.\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 "\ttau: the joint torque vector (size model.nv x batch_size)\n" 57 "\ta: the resulting joint acceleration vectors (size model.nv x batch_size)\n");
const DataTpl< Scalar, Options, JointCollectionTpl >::TangentVectorType & aba(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)
The Articulated-Body algorithm. It computes the forward dynamics, aka the joint accelerations given t...
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
static Eigen::MatrixXd aba_proxy(const int num_thread, ModelPool &pool, const Eigen::MatrixXd &q, const Eigen::MatrixXd &v, const Eigen::MatrixXd &tau)
Main pinocchio namespace.
static void aba_proxy_res(const int num_thread, ModelPool &pool, const Eigen::MatrixXd &q, const Eigen::MatrixXd &v, const Eigen::MatrixXd &tau, Eigen::Ref< Eigen::MatrixXd > a)