6#ifndef BEZIER_COM_TRAJ_LIB_COMMON_SOLVE_H
7#define BEZIER_COM_TRAJ_LIB_COMMON_SOLVE_H
26 const std::vector<waypoint6_t>& wps,
27 const std::vector<ndcurves::Bern<double> >& bernstein,
int numSteps);
42 const std::vector<waypoint6_t>& wps,
43 const std::vector<waypoint6_t>& wpL,
44 const bool useAngMomentum,
bool& fail);
59 const std::vector<waypoint6_t>& wps,
60 const std::vector<waypoint6_t>& wpL,
61 const bool useAngMomentum,
bool& fail);
83 const solvers::SolverType solver = solvers::SOLVER_QUADPROG);
97 const solvers::SolverType solver = solvers::SOLVER_QUADPROG);
107solve(
const std::pair<MatrixXX, VectorX>& Ab,
108 const std::pair<MatrixXX, VectorX>& Hg,
const VectorX& init,
109 const solvers::SolverType solver = solvers::SOLVER_QUADPROG);
128solve(
const std::pair<MatrixXX, VectorX>& Ab,
129 const std::pair<MatrixXX, VectorX>& Dd,
130 const std::pair<MatrixXX, VectorX>& Hg,
Cref_vectorX minBounds,
132 const solvers::SolverType solver = solvers::SOLVER_QUADPROG);
134template <
typename Po
int>
139template <
typename Po
int>
146#include "common_solve_methods.inl"
#define BEZIER_COM_TRAJ_DLLAPI
Definition local_config.hh:52
Definition common_solve_methods.hh:15
centroidal_dynamics::VectorX VectorX
Definition definitions.hh:24
BEZIER_COM_TRAJ_DLLAPI std::pair< MatrixXX, VectorX > compute6dControlPointEqualities(const ContactData &cData, const std::vector< waypoint6_t > &wps, const std::vector< waypoint6_t > &wpL, const bool useAngMomentum, bool &fail)
compute6dControlPointEqualities Given linear and angular control waypoints, compute the equality matr...
BEZIER_COM_TRAJ_DLLAPI ResultData solve(Cref_matrixXX A, Cref_vectorX b, Cref_matrixXX H, Cref_vectorX g, Cref_vectorX initGuess, Cref_vectorX minBounds, Cref_vectorX maxBounds, const solvers::SolverType solver=solvers::SOLVER_QUADPROG)
solve x' h x + 2 g' x, subject to A*x <= b using quadprog
const Eigen::Ref< const VectorX > & Cref_vectorX
Definition definitions.hh:33
std::vector< std::pair< double, int > > T_time
Definition definitions.hh:59
BEZIER_COM_TRAJ_DLLAPI std::vector< std::pair< double, Point > > computeDiscretizedWaypoints(const ProblemData &pData, double T, const T_time &timeArray)
const Eigen::Ref< const MatrixXX > & Cref_matrixXX
Definition definitions.hh:34
BEZIER_COM_TRAJ_DLLAPI std::vector< waypoint6_t > ComputeDiscretizedWaypoints(const std::vector< waypoint6_t > &wps, const std::vector< ndcurves::Bern< double > > &bernstein, int numSteps)
ComputeDiscretizedWaypoints Given the waypoints defining a bezier curve, computes a discretization of...
Definition common_solve_methods.cpp:8
BEZIER_COM_TRAJ_DLLAPI std::pair< MatrixXX, VectorX > compute6dControlPointInequalities(const ContactData &cData, const std::vector< waypoint6_t > &wps, const std::vector< waypoint6_t > &wpL, const bool useAngMomentum, bool &fail)
compute6dControlPointInequalities Given linear and angular control waypoints, compute the inequality ...
Definition common_solve_methods.cpp:88
BEZIER_COM_TRAJ_DLLAPI std::vector< std::pair< double, Point > > computeDiscretizedAccelerationWaypoints(const ProblemData &pData, double T, const T_time &timeArray)
Defines all the inputs of the problem: Initial and terminal constraints, as well as selected cost fun...
Definition data.hh:92
Struct used to return the results of the trajectory generation problem.
Definition solver-abstract.hpp:52