Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
c
d
e
g
h
i
m
n
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
x
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
p
q
r
s
t
v
w
x
Typedefs
c
d
f
h
m
r
s
t
v
Enumerations
Enumerator
Files
File List
File Members
All
b
c
d
e
g
h
l
m
n
p
q
r
s
t
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
b
c
d
e
p
r
s
t
bindings
python
solvers
HQPData.cpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2018 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
#include "
tsid/bindings/python/solvers/expose-solvers.hpp
"
19
#include "
tsid/bindings/python/solvers/HQPData.hpp
"
20
21
namespace
tsid
{
22
namespace
python
{
23
void
exposeConstraintLevel
() {
24
ConstPythonVisitor<ConstraintLevels>::expose
(
"ConstraintLevel"
);
25
}
26
void
exposeHQPData
() {
27
typedef
solvers::QPDataBaseTpl<double>
QPDataBase
;
28
typedef
solvers::QPDataTpl<double>
QPData
;
29
typedef
solvers::QPDataQuadProgTpl<double>
QPDataQuadProg
;
30
31
HQPPythonVisitor<HQPDatas>::expose
(
"HQPData"
);
32
33
// expose QP data structures
34
bp::class_<QPDataBase>(
"QPDataBase"
)
35
.def_readonly(
"H"
, &QPDataBase::H,
"Cost matrix"
)
36
.def_readonly(
"g"
, &
QPDataBase::g
)
37
.def_readonly(
"CE"
, &QPDataBase::CE,
"Equality constraint matrix"
)
38
.def_readonly(
"ce0"
, &QPDataBase::ce0);
39
40
bp::class_<QPData, bp::bases<QPDataBase>>(
"QPData"
)
41
.def_readonly(
"CI"
, &QPData::CI,
"Inequality constraint matrix"
)
42
.def_readonly(
"lb"
, &QPData::ci_lb,
"Inequality constraint lower bound"
)
43
.def_readonly(
"ub"
, &QPData::ci_ub,
"Inequality constraint upper bound"
);
44
45
bp::class_<QPDataQuadProg, bp::bases<QPDataBase>>(
"QPDataQuadProg"
)
46
.def_readonly(
"CI"
, &QPDataQuadProg::CI,
47
"Inequality constraint matrix (unilateral)"
)
48
.def_readonly(
49
"ci0"
, &QPDataQuadProg::ci0,
50
"Inequality constraint vector (stacked lower and upper bounds)"
);
51
}
52
}
// namespace python
53
}
// namespace tsid
HQPData.hpp
tsid::solvers::QPDataQuadProgTpl< double >
expose-solvers.hpp
tsid::python::HQPPythonVisitor::expose
static void expose(const std::string &class_name)
Definition:
HQPData.hpp:61
tsid::python::exposeConstraintLevel
void exposeConstraintLevel()
Definition:
HQPData.cpp:23
tsid::solvers::QPDataTpl< double >
tsid::solvers::QPData
QPDataTpl< double > QPData
Definition:
solvers/fwd.hpp:102
python
tsid::solvers::QPDataQuadProg
QPDataQuadProgTpl< double > QPDataQuadProg
Definition:
solvers/fwd.hpp:104
tsid::python::exposeHQPData
void exposeHQPData()
Definition:
HQPData.cpp:26
tsid::solvers::QPDataBase
QPDataBaseTpl< double > QPDataBase
Definition:
solvers/fwd.hpp:103
tsid
Definition:
bindings/python/constraint/constraint-bound.cpp:21
tsid::solvers::QPDataBaseTpl< double >
tsid::python::ConstPythonVisitor::expose
static void expose(const std::string &class_name)
Definition:
HQPData.hpp:42
ex_4_conf.g
float g
Definition:
ex_4_conf.py:45
tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Thu Apr 3 2025 02:47:15