Skip to content
Snippets Groups Projects
Unverified Commit 56d0ea14 authored by Fernbach Pierre's avatar Fernbach Pierre Committed by GitHub
Browse files

Merge pull request #5 from pFernbach/topic/array

Fix python API when using Array
parents 4a845ebf 6c294495
No related branches found
No related tags found
No related merge requests found
......@@ -224,15 +224,13 @@ struct DummyPath {
point3_t operator()(double /*u*/) const { return point3_t::Zero(); }
};
typedef std::pair<Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic>,
Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic> >
linear_points_t;
typedef std::pair<MatrixXX,VectorX> linear_points_t;
typedef Eigen::Matrix<real, 3, Eigen::Dynamic> point_list_t;
struct MatrixVector {
linear_points_t res;
Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic> A() { return res.first; }
Eigen::Matrix<real, Eigen::Dynamic, Eigen::Dynamic> b() { return res.second; }
MatrixXX A() { return res.first; }
VectorX b() { return res.second; }
};
ResultDataCOMTraj* computeEndEffector(const ProblemData& pData, const double time) {
......@@ -289,6 +287,7 @@ BOOST_PYTHON_MODULE(hpp_bezier_com_traj) {
ENABLE_SPECIFIC_MATRIX_TYPE(Vector3);
ENABLE_SPECIFIC_MATRIX_TYPE(VectorX);
ENABLE_SPECIFIC_MATRIX_TYPE(MatrixX3);
ENABLE_SPECIFIC_MATRIX_TYPE(MatrixXX);
/** END eigenpy init**/
/*eigenpy::exposeAngleAxis();
......
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