Skip to content
Snippets Groups Projects
Commit dd98270d authored by jcarpent's avatar jcarpent
Browse files

[Incremental][Python] Expose computeAllTerms algorithm

parent 7e3b6474
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@
#include "pinocchio/algorithm/jacobian.hpp"
#include "pinocchio/algorithm/center-of-mass.hpp"
#include "pinocchio/simulation/compute-all-terms.hpp"
namespace se3
{
namespace python
......@@ -84,6 +86,14 @@ namespace se3
geometry(*model,*data,q);
}
static void computeAllTerms_proxy(const ModelHandler & model,
DataHandler & data,
const VectorXd_fx & q,
const VectorXd_fx & v)
{
computeAllTerms(*model,*data,q,v);
}
/* --- Expose --------------------------------------------------------- */
......@@ -130,6 +140,13 @@ namespace se3
"Compute the placements of all the frames of the kinematic "
"tree and put the results in data.");
bp::def("geometry",computeAllTerms_proxy,
bp::args("Model","Data",
"Configuration q (size Model::nq)",
"Velocity v (size Model::nv)"),
"Compute all the terms M, non linear effects and Jacobians in"
"in the same loop and put the results in data.");
bp::def("jacobian",jacobian_proxy,
bp::args("Model","Data",
"Configuration q (size Model::nq)",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment