solvers/fwd.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 //
4 // This file is part of tsid
5 // tsid is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_solvers_fwd_hpp__
19 #define __invdyn_solvers_fwd_hpp__
20 
21 #include <memory>
22 
23 #include "tsid/config.hh"
24 #include "tsid/math/fwd.hpp"
26 #include <pinocchio/container/aligned-vector.hpp>
27 
28 #define DEFAULT_HESSIAN_REGULARIZATION 1e-8
29 
30 namespace tsid {
31 namespace solvers {
32 
36 enum TSID_DLLAPI SolverHQP {
39  SOLVER_HQP_EIQUADPROG_RT = 2
40 #ifdef TSID_QPMAD_FOUND
41  ,
42  SOLVER_HQP_QPMAD
43 #endif
44 #ifdef TSID_WITH_PROXSUITE
45  ,
46  SOLVER_HQP_PROXQP
47 #endif
48 #ifdef TSID_WITH_OSQP
49  ,
50  SOLVER_HQP_OSQP
51 #endif
52 #ifdef QPOASES_FOUND
53  ,
54  SOLVER_HQP_OASES
55 #endif
56 };
57 
61 enum TSID_DLLAPI HQPStatus {
67  HQP_STATUS_ERROR = 4
68 };
69 
70 class HQPOutput;
71 
72 class TSID_DLLAPI SolverHQPBase;
73 
74 template <int nVars, int nEqCon, int nIneqCon>
75 class TSID_DLLAPI SolverHQuadProgRT;
76 
77 template <typename T1, typename T2>
78 class aligned_pair {
79  public:
80  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
81 
82  aligned_pair(const T1& t1, const T2& t2) : first(t1), second(t2) {}
83 
84  T1 first;
85  T2 second;
86 };
87 
88 template <typename T1, typename T2>
89 inline aligned_pair<T1, T2> make_pair(const T1& t1, const T2& t2) {
90  return aligned_pair<T1, T2>(t1, t2);
91 }
92 
94  aligned_pair<double, std::shared_ptr<math::ConstraintBase> > >
101 
105 
106 } // namespace solvers
107 } // namespace tsid
108 
109 #endif // ifndef __invdyn_solvers_fwd_hpp__
solver-qpData.hpp
tsid::solvers::ConstHQPData
pinocchio::container::aligned_vector< ConstConstraintLevel > ConstHQPData
Definition: solvers/fwd.hpp:100
tsid::solvers::QPDataQuadProgTpl< double >
tsid::solvers::make_pair
aligned_pair< T1, T2 > make_pair(const T1 &t1, const T2 &t2)
Definition: solvers/fwd.hpp:89
tsid::solvers::aligned_pair::second
T2 second
Definition: solvers/fwd.hpp:85
tsid::solvers::ConstraintLevel
pinocchio::container::aligned_vector< aligned_pair< double, std::shared_ptr< math::ConstraintBase > > > ConstraintLevel
Definition: solvers/fwd.hpp:95
tsid::solvers::aligned_pair
Definition: solvers/fwd.hpp:78
tsid::solvers::SolverHQuadProgRT
Definition: solver-HQP-eiquadprog-rt.hpp:33
tsid::solvers::aligned_pair::aligned_pair
EIGEN_MAKE_ALIGNED_OPERATOR_NEW aligned_pair(const T1 &t1, const T2 &t2)
Definition: solvers/fwd.hpp:82
tsid::solvers::QPDataTpl< double >
tsid::solvers::QPData
QPDataTpl< double > QPData
Definition: solvers/fwd.hpp:102
HQP_STATUS_UNKNOWN
HQP_STATUS_UNKNOWN
Definition: solvers/fwd.hpp:62
t2
dictionary t2
tsid::solvers::SolverHQPBase
Abstract interface for a Quadratic Program (HQP) solver.
Definition: solver-HQP-base.hpp:34
tsid::solvers::aligned_pair::first
T1 first
Definition: solvers/fwd.hpp:84
fwd.hpp
HQP_STATUS_UNBOUNDED
HQP_STATUS_UNBOUNDED
Definition: solvers/fwd.hpp:65
tsid::solvers::QPDataQuadProg
QPDataQuadProgTpl< double > QPDataQuadProg
Definition: solvers/fwd.hpp:104
SOLVER_HQP_EIQUADPROG
SOLVER_HQP_EIQUADPROG
Definition: solvers/fwd.hpp:37
HQP_STATUS_OPTIMAL
HQP_STATUS_OPTIMAL
Definition: solvers/fwd.hpp:63
HQP_STATUS_MAX_ITER_REACHED
HQP_STATUS_MAX_ITER_REACHED
Definition: solvers/fwd.hpp:66
tsid::solvers::QPDataBase
QPDataBaseTpl< double > QPDataBase
Definition: solvers/fwd.hpp:103
pinocchio::container::aligned_vector
std::vector< T, Eigen::aligned_allocator< T > > aligned_vector
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
HQP_STATUS_INFEASIBLE
HQP_STATUS_INFEASIBLE
Definition: solvers/fwd.hpp:64
tsid::solvers::QPDataBaseTpl< double >
tsid::solvers::HQPData
pinocchio::container::aligned_vector< ConstraintLevel > HQPData
Definition: solvers/fwd.hpp:99
SOLVER_HQP_EIQUADPROG_FAST
SOLVER_HQP_EIQUADPROG_FAST
Definition: solvers/fwd.hpp:38
tsid::solvers::ConstConstraintLevel
pinocchio::container::aligned_vector< aligned_pair< double, std::shared_ptr< const math::ConstraintBase > > > ConstConstraintLevel
Definition: solvers/fwd.hpp:98


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:16