external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp
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-2011 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_HPP
36 #define QPOASES_TYPES_HPP
37 
38 
39 /* If your compiler does not support the snprintf() function,
40  * uncomment the following line and try to compile again. */
41 /* #define snprintf _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 to enable debug information. */
52 /* #define __DEBUG__ */
53 
54 /* Uncomment the following line to enable debug iteration output. */
55 /* #define __DEBUG_ITER__ */
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 a special treatment of
66  * inactive constraints that is more efficient in case of QP formulations
67  * comprising many constraints. */
68 /* #define __MANY_CONSTRAINTS__ */
69 
70 /* Uncomment the following line to activate the use of an alternative Givens
71  * plane rotation requiring only three multiplications. */
72 /* #define __USE_THREE_MULTS_GIVENS__ */
73 
74 /* Uncomment the following line to activate the use of single precision arithmetic. */
75 /* #define __USE_SINGLE_PRECISION__ */
76 
77 
78 
79 /* Work-around for Borland BCC 5.5 compiler. */
80 #ifdef __BORLANDC__
81  #define __STDC__ 1
82 #endif
83 
84 
85 /* Work-around for Microsoft compilers. */
86 #ifdef _MSC_VER
87 #if (_MSC_VER < 1900)
88 /* Work-around for Microsoft compilers with version older than 2015. */
89  #define snprintf _snprintf
90 #endif
91 #endif
92 
93 
94 #ifdef __DSPACE__
95  /* This fix ensures a compilable code only,
96  * but all snprintf commands won't work. */
97  #define snprintf printf
98 #endif
99 
100 #ifdef __DSPACE__
101 
103  #define BEGIN_NAMESPACE_QPOASES
104 
106  #define END_NAMESPACE_QPOASES
107 
109  #define USING_NAMESPACE_QPOASES
110 
112  #define REFER_NAMESPACE_QPOASES
113 
114 #else
115 
117  #define BEGIN_NAMESPACE_QPOASES namespace qpOASES {
118 
120  #define END_NAMESPACE_QPOASES }
121 
123  #define USING_NAMESPACE_QPOASES using namespace qpOASES;
124 
126  #define REFER_NAMESPACE_QPOASES qpOASES::
127 
128 #endif
129 
130 
132 #define RR( I,J ) R[(I)+nV*(J)]
133 
135 #define QQ( I,J ) Q[(I)+nV*(J)]
136 
138 #define TT( I,J ) T[(I)*sizeT+(J)]
139 
140 
141 
143 
144 
146 #ifdef __USE_SINGLE_PRECISION__
147 typedef float real_t;
148 #else
149 typedef double real_t;
150 #endif /* __USE_SINGLE_PRECISION__ */
151 
152 
154 #if defined( BT_FALSE ) && defined( BT_TRUE )
155 #undef BT_FALSE
156 #undef BT_TRUE
157 #endif /* defined( BT_TRUE ) && defined( BT_FALSE ) */
159 {
162 };
163 
164 
168 {
169  PL_TABULAR = -1,
174 };
175 
176 
179 {
182 };
183 
184 
188 {
198 };
199 
200 
203 {
210 };
211 
212 
215 {
220 };
221 
222 
225 {
230 };
231 
232 
233 
235 
236 
237 #endif /* QPOASES_TYPES_HPP */
238 
239 
240 /*
241  * end of file
242  */
BEGIN_NAMESPACE_QPOASES typedef double real_t
PrintLevel


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:15