Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
external_packages
qpoases3
include
qpOASES_e
Types.h
Go to the documentation of this file.
1
/*
2
* This file is part of qpOASES.
3
*
4
* qpOASES -- An Implementation of the Online Active Set Strategy.
5
* Copyright (C) 2007-2015 by Hans Joachim Ferreau, Andreas Potschka,
6
* Christian Kirches et al. All rights reserved.
7
*
8
* qpOASES is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* qpOASES is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
* See the GNU Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with qpOASES; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*
22
*/
23
24
35
#ifndef QPOASES_TYPES_H
36
#define QPOASES_TYPES_H
37
38
39
/* If your compiler does not support the snprintf() function,
40
* uncomment the following line and try to compile again. */
41
/* #define __NO_SNPRINTF__ */
42
43
44
/* Uncomment the following line for setting the __DSPACE__ flag. */
45
/* #define __DSPACE__ */
46
47
/* Uncomment the following line for setting the __XPCTARGET__ flag. */
48
/* #define __XPCTARGET__ */
49
50
51
/* Uncomment the following line for setting the __NO_FMATH__ flag. */
52
/* #define __NO_FMATH__ */
53
54
/* Uncomment the following line to enable debug information. */
55
/* #define __DEBUG__ */
56
57
/* Uncomment the following line to enable suppress any kind of console output. */
58
/* #define __SUPPRESSANYOUTPUT__ */
59
60
63
#define __ALWAYS_INITIALISE_WITH_ALL_EQUALITIES__
64
65
/* Uncomment the following line to activate the use of an alternative Givens
66
* plane rotation requiring only three multiplications. */
67
/* #define __USE_THREE_MULTS_GIVENS__ */
68
69
/* Uncomment the following line to activate the use of single precision arithmetic. */
70
/* #define __USE_SINGLE_PRECISION__ */
71
72
/* The inline keyword is skipped by default as it is not part of the C90 standard.
73
* However, by uncommenting the following line, use of the inline keyword can be enforced. */
74
/* #define __USE_INLINE__ */
75
76
77
/* Work-around for Borland BCC 5.5 compiler. */
78
#ifdef __BORLANDC__
79
#if __BORLANDC__ < 0x0561
80
#define __STDC__ 1
81
#endif
82
#endif
83
84
85
/* Work-around for Microsoft compilers. */
86
#ifdef _MSC_VER
87
#define __NO_SNPRINTF__
88
#pragma warning( disable : 4061 4100 4250 4514 4996 )
89
#endif
90
91
92
/* Apply pre-processor settings when using qpOASES within auto-generated code. */
93
#ifdef __CODE_GENERATION__
94
#define __NO_COPYRIGHT__
95
#define __EXTERNAL_DIMENSIONS__
96
#endif
/* __CODE_GENERATION__ */
97
98
99
/* Avoid using static variables declaration within functions. */
100
#ifdef __NO_STATIC__
101
#define myStatic
102
#else
103
#define myStatic static
104
#endif
/* __NO_STATIC__ */
105
106
107
/* Skip inline keyword if not specified otherwise. */
108
#ifndef __USE_INLINE__
109
#define inline
110
#endif
111
112
113
/* Avoid any printing on embedded platforms. */
114
#if defined(__DSPACE__) || defined(__XPCTARGET__)
115
#define __SUPPRESSANYOUTPUT__
116
#define __NO_SNPRINTF__
117
#endif
118
119
120
#ifdef __NO_SNPRINTF__
121
#if (!defined(_MSC_VER)) || defined(__DSPACE__) || defined(__XPCTARGET__)
122
/* If snprintf is not available, provide an empty implementation... */
123
int
snprintf(
char
* s,
size_t
n,
const
char
* format, ... );
124
#else
125
/* ... or substitute snprintf by _snprintf for Microsoft compilers. */
126
#define snprintf _snprintf
127
#endif
128
#endif
/* __NO_SNPRINTF__ */
129
130
132
#define BEGIN_NAMESPACE_QPOASES
133
135
#define END_NAMESPACE_QPOASES
136
138
#define USING_NAMESPACE_QPOASES
139
141
#define REFER_NAMESPACE_QPOASES
/*::*/
142
143
145
#define RR( I,J ) _THIS->R[(I)+NVMAX*(J)]
146
148
#define QQ( I,J ) _THIS->Q[(I)+NVMAX*(J)]
149
151
#define TT( I,J ) _THIS->T[(I)*NVCMIN+(J)]
152
153
154
155
BEGIN_NAMESPACE_QPOASES
156
157
160
#ifndef __CODE_GENERATION__
161
162
#ifdef __USE_SINGLE_PRECISION__
163
typedef
float
real_t
;
164
#else
165
typedef
double
real_t
;
166
#endif
/* __USE_SINGLE_PRECISION__ */
167
168
#endif
/* __CODE_GENERATION__ */
169
170
172
typedef
enum
173
{
174
BT_FALSE
= 0,
175
BT_TRUE
176
}
BooleanType
;
177
178
181
typedef
enum
182
{
183
PL_DEBUG_ITER
= -2,
184
PL_TABULAR
,
185
PL_NONE
,
186
PL_LOW
,
187
PL_MEDIUM
,
188
PL_HIGH
189
}
PrintLevel
;
190
191
193
typedef
enum
194
{
195
VS_HIDDEN
,
196
VS_VISIBLE
197
}
VisibilityStatus
;
198
199
202
typedef
enum
203
{
204
QPS_NOTINITIALISED
,
205
QPS_PREPARINGAUXILIARYQP
,
207
QPS_AUXILIARYQPSOLVED
,
209
QPS_PERFORMINGHOMOTOPY
,
211
QPS_HOMOTOPYQPSOLVED
,
212
QPS_SOLVED
213
}
QProblemStatus
;
214
215
217
typedef
enum
218
{
219
HST_ZERO
,
220
HST_IDENTITY
,
221
HST_POSDEF
,
222
HST_POSDEF_NULLSPACE
,
223
HST_SEMIDEF
,
224
HST_INDEF
,
225
HST_UNKNOWN
226
}
HessianType
;
227
228
230
typedef
enum
231
{
232
ST_UNBOUNDED
,
233
ST_BOUNDED
,
234
ST_EQUALITY
,
235
ST_DISABLED
,
236
ST_UNKNOWN
237
}
SubjectToType
;
238
239
241
typedef
enum
242
{
243
ST_LOWER
= -1,
244
ST_INACTIVE
,
245
ST_UPPER
,
246
ST_INFEASIBLE_LOWER
,
247
ST_INFEASIBLE_UPPER
,
248
ST_UNDEFINED
249
}
SubjectToStatus
;
250
251
262
typedef
struct
263
{
264
int
idxAddB
;
265
int
idxRemB
;
266
int
idxAddC
;
267
int
idxRemC
;
268
int
excAddB
;
269
int
excRemB
;
270
int
excAddC
;
271
int
excRemC
;
272
}
TabularOutput
;
273
288
typedef
struct
289
{
290
long
numericFormat;
291
long
nRows;
292
long
nCols;
293
long
imaginaryPart;
294
long
nCharName;
295
}
MatMatrixHeader
;
296
297
298
END_NAMESPACE_QPOASES
299
300
301
#endif
/* QPOASES_TYPES_H */
302
303
304
/*
305
* end of file
306
*/
ST_BOUNDED
Definition:
Types.h:233
VS_VISIBLE
Definition:
Types.h:196
HessianType
HessianType
Definition:
Types.h:217
HST_ZERO
Definition:
Types.h:219
VisibilityStatus
VisibilityStatus
Definition:
Types.h:193
ST_EQUALITY
Definition:
Types.h:234
HST_IDENTITY
Definition:
Types.h:220
HST_UNKNOWN
Definition:
Types.h:225
HST_SEMIDEF
Definition:
Types.h:223
QPS_PREPARINGAUXILIARYQP
Definition:
Types.h:205
ST_UPPER
Definition:
Types.h:245
ST_UNKNOWN
Definition:
Types.h:236
PL_NONE
Definition:
Types.h:185
BT_TRUE
Definition:
Types.h:175
QPS_SOLVED
Definition:
Types.h:212
PrintLevel
PrintLevel
Definition:
Types.h:181
HST_POSDEF_NULLSPACE
Definition:
Types.h:222
BooleanType
BooleanType
Definition:
Types.h:172
HST_INDEF
Definition:
Types.h:224
ST_UNDEFINED
Definition:
Types.h:248
ST_UNBOUNDED
Definition:
Types.h:232
real_t
BEGIN_NAMESPACE_QPOASES typedef double real_t
Definition:
Types.h:165
TabularOutput::idxRemB
int idxRemB
Definition:
Types.h:265
HST_POSDEF
Definition:
Types.h:221
QProblemStatus
QProblemStatus
Definition:
Types.h:202
PL_TABULAR
Definition:
Types.h:184
TabularOutput::excRemC
int excRemC
Definition:
Types.h:271
PL_DEBUG_ITER
Definition:
Types.h:183
ST_LOWER
Definition:
Types.h:243
ST_INFEASIBLE_LOWER
Definition:
Types.h:246
TabularOutput::idxAddB
int idxAddB
Definition:
Types.h:264
TabularOutput::excAddB
int excAddB
Definition:
Types.h:268
ST_DISABLED
Definition:
Types.h:235
SubjectToStatus
SubjectToStatus
Definition:
Types.h:241
TabularOutput::idxAddC
int idxAddC
Definition:
Types.h:266
QPS_HOMOTOPYQPSOLVED
Definition:
Types.h:211
PL_LOW
Definition:
Types.h:186
PL_HIGH
Definition:
Types.h:188
QPS_PERFORMINGHOMOTOPY
Definition:
Types.h:209
TabularOutput::idxRemC
int idxRemC
Definition:
Types.h:267
TabularOutput
Stores internal information for tabular (debugging) output.
Definition:
external_packages/qpOASES-3.2.0/include/qpOASES/Types.hpp:298
TabularOutput::excRemB
int excRemB
Definition:
Types.h:269
QPS_NOTINITIALISED
Definition:
Types.h:204
MatMatrixHeader
Struct containing the variable header for mat file.
Definition:
external_packages/qpOASES-3.2.0/include/qpOASES/Types.hpp:325
PL_MEDIUM
Definition:
Types.h:187
TabularOutput::excAddC
int excAddC
Definition:
Types.h:270
VS_HIDDEN
Definition:
Types.h:195
ST_INACTIVE
Definition:
Types.h:244
SubjectToType
SubjectToType
Definition:
Types.h:230
END_NAMESPACE_QPOASES
#define END_NAMESPACE_QPOASES
Definition:
Types.h:135
BT_FALSE
Definition:
Types.h:174
QPS_AUXILIARYQPSOLVED
Definition:
Types.h:207
ST_INFEASIBLE_UPPER
Definition:
Types.h:247
BEGIN_NAMESPACE_QPOASES
#define BEGIN_NAMESPACE_QPOASES
Definition:
Types.h:132
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:15