Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
RoboClawMsgs_wrap.c
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.8
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 /*! \file
12  * \brief Swig generated RoboClaw messaging wrapper c file.
13  */
14 
15 
16 
17 #ifndef SWIGPYTHON
18 #define SWIGPYTHON
19 #endif
20 
21 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
22 
23 /* -----------------------------------------------------------------------------
24  * This section contains generic SWIG labels for method/variable
25  * declarations/attributes, and other compiler dependent labels.
26  * ----------------------------------------------------------------------------- */
27 
28 /* template workaround for compilers that cannot correctly implement the C++ standard */
29 #ifndef SWIGTEMPLATEDISAMBIGUATOR
30 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
31 # define SWIGTEMPLATEDISAMBIGUATOR template
32 # elif defined(__HP_aCC)
33 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
34 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
35 # define SWIGTEMPLATEDISAMBIGUATOR template
36 # else
37 # define SWIGTEMPLATEDISAMBIGUATOR
38 # endif
39 #endif
40 
41 /* inline attribute */
42 #ifndef SWIGINLINE
43 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
44 # define SWIGINLINE inline
45 # else
46 # define SWIGINLINE
47 # endif
48 #endif
49 
50 /* attribute recognised by some compilers to avoid 'unused' warnings */
51 #ifndef SWIGUNUSED
52 # if defined(__GNUC__)
53 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
54 # define SWIGUNUSED __attribute__ ((__unused__))
55 # else
56 # define SWIGUNUSED
57 # endif
58 # elif defined(__ICC)
59 # define SWIGUNUSED __attribute__ ((__unused__))
60 # else
61 # define SWIGUNUSED
62 # endif
63 #endif
64 
65 #ifndef SWIG_MSC_UNSUPPRESS_4505
66 # if defined(_MSC_VER)
67 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
68 # endif
69 #endif
70 
71 #ifndef SWIGUNUSEDPARM
72 # ifdef __cplusplus
73 # define SWIGUNUSEDPARM(p)
74 # else
75 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
76 # endif
77 #endif
78 
79 /* internal SWIG method */
80 #ifndef SWIGINTERN
81 # define SWIGINTERN static SWIGUNUSED
82 #endif
83 
84 /* internal inline SWIG method */
85 #ifndef SWIGINTERNINLINE
86 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
87 #endif
88 
89 /* exporting methods */
90 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
91 # ifndef GCC_HASCLASSVISIBILITY
92 # define GCC_HASCLASSVISIBILITY
93 # endif
94 #endif
95 
96 #ifndef SWIGEXPORT
97 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
98 # if defined(STATIC_LINKED)
99 # define SWIGEXPORT
100 # else
101 # define SWIGEXPORT __declspec(dllexport)
102 # endif
103 # else
104 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
105 # define SWIGEXPORT __attribute__ ((visibility("default")))
106 # else
107 # define SWIGEXPORT
108 # endif
109 # endif
110 #endif
111 
112 /* calling conventions for Windows */
113 #ifndef SWIGSTDCALL
114 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
115 # define SWIGSTDCALL __stdcall
116 # else
117 # define SWIGSTDCALL
118 # endif
119 #endif
120 
121 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
122 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
123 # define _CRT_SECURE_NO_DEPRECATE
124 #endif
125 
126 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
127 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
128 # define _SCL_SECURE_NO_DEPRECATE
129 #endif
130 
131 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
132 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
133 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
134 #endif
135 
136 /* Intel's compiler complains if a variable which was never initialised is
137  * cast to void, which is a common idiom which we use to indicate that we
138  * are aware a variable isn't used. So we just silence that warning.
139  * See: https://github.com/swig/swig/issues/192 for more discussion.
140  */
141 #ifdef __INTEL_COMPILER
142 # pragma warning disable 592
143 #endif
144 
145 
146 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
147 /* Use debug wrappers with the Python release dll */
148 # undef _DEBUG
149 # include <Python.h>
150 # define _DEBUG
151 #else
152 # include <Python.h>
153 #endif
154 
155 /* -----------------------------------------------------------------------------
156  * swigrun.swg
157  *
158  * This file contains generic C API SWIG runtime support for pointer
159  * type checking.
160  * ----------------------------------------------------------------------------- */
161 
162 /* This should only be incremented when either the layout of swig_type_info changes,
163  or for whatever reason, the runtime changes incompatibly */
164 #define SWIG_RUNTIME_VERSION "4"
165 
166 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
167 #ifdef SWIG_TYPE_TABLE
168 # define SWIG_QUOTE_STRING(x) #x
169 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
170 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
171 #else
172 # define SWIG_TYPE_TABLE_NAME
173 #endif
174 
175 /*
176  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
177  creating a static or dynamic library from the SWIG runtime code.
178  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
179 
180  But only do this if strictly necessary, ie, if you have problems
181  with your compiler or suchlike.
182 */
183 
184 #ifndef SWIGRUNTIME
185 # define SWIGRUNTIME SWIGINTERN
186 #endif
187 
188 #ifndef SWIGRUNTIMEINLINE
189 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
190 #endif
191 
192 /* Generic buffer size */
193 #ifndef SWIG_BUFFER_SIZE
194 # define SWIG_BUFFER_SIZE 1024
195 #endif
196 
197 /* Flags for pointer conversions */
198 #define SWIG_POINTER_DISOWN 0x1
199 #define SWIG_CAST_NEW_MEMORY 0x2
200 
201 /* Flags for new pointer objects */
202 #define SWIG_POINTER_OWN 0x1
203 
204 
205 /*
206  Flags/methods for returning states.
207 
208  The SWIG conversion methods, as ConvertPtr, return an integer
209  that tells if the conversion was successful or not. And if not,
210  an error code can be returned (see swigerrors.swg for the codes).
211 
212  Use the following macros/flags to set or process the returning
213  states.
214 
215  In old versions of SWIG, code such as the following was usually written:
216 
217  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
218  // success code
219  } else {
220  //fail code
221  }
222 
223  Now you can be more explicit:
224 
225  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
226  if (SWIG_IsOK(res)) {
227  // success code
228  } else {
229  // fail code
230  }
231 
232  which is the same really, but now you can also do
233 
234  Type *ptr;
235  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
236  if (SWIG_IsOK(res)) {
237  // success code
238  if (SWIG_IsNewObj(res) {
239  ...
240  delete *ptr;
241  } else {
242  ...
243  }
244  } else {
245  // fail code
246  }
247 
248  I.e., now SWIG_ConvertPtr can return new objects and you can
249  identify the case and take care of the deallocation. Of course that
250  also requires SWIG_ConvertPtr to return new result values, such as
251 
252  int SWIG_ConvertPtr(obj, ptr,...) {
253  if (<obj is ok>) {
254  if (<need new object>) {
255  *ptr = <ptr to new allocated object>;
256  return SWIG_NEWOBJ;
257  } else {
258  *ptr = <ptr to old object>;
259  return SWIG_OLDOBJ;
260  }
261  } else {
262  return SWIG_BADOBJ;
263  }
264  }
265 
266  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
267  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
268  SWIG errors code.
269 
270  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
271  allows to return the 'cast rank', for example, if you have this
272 
273  int food(double)
274  int fooi(int);
275 
276  and you call
277 
278  food(1) // cast rank '1' (1 -> 1.0)
279  fooi(1) // cast rank '0'
280 
281  just use the SWIG_AddCast()/SWIG_CheckState()
282 */
283 
284 #define SWIG_OK (0)
285 #define SWIG_ERROR (-1)
286 #define SWIG_IsOK(r) (r >= 0)
287 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
288 
289 /* The CastRankLimit says how many bits are used for the cast rank */
290 #define SWIG_CASTRANKLIMIT (1 << 8)
291 /* The NewMask denotes the object was created (using new/malloc) */
292 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
293 /* The TmpMask is for in/out typemaps that use temporal objects */
294 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
295 /* Simple returning values */
296 #define SWIG_BADOBJ (SWIG_ERROR)
297 #define SWIG_OLDOBJ (SWIG_OK)
298 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
299 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
300 /* Check, add and del mask methods */
301 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
302 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
303 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
304 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
305 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
306 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
307 
308 /* Cast-Rank Mode */
309 #if defined(SWIG_CASTRANK_MODE)
310 # ifndef SWIG_TypeRank
311 # define SWIG_TypeRank unsigned long
312 # endif
313 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
314 # define SWIG_MAXCASTRANK (2)
315 # endif
316 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
317 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
318 SWIGINTERNINLINE int SWIG_AddCast(int r) {
319  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
320 }
321 SWIGINTERNINLINE int SWIG_CheckState(int r) {
322  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
323 }
324 #else /* no cast-rank mode */
325 # define SWIG_AddCast(r) (r)
326 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
327 #endif
328 
329 
330 #include <string.h>
331 
332 #ifdef __cplusplus
333 extern "C" {
334 #endif
335 
336 typedef void *(*swig_converter_func)(void *, int *);
337 typedef struct swig_type_info *(*swig_dycast_func)(void **);
338 
339 /* Structure to store information on one type */
340 typedef struct swig_type_info {
341  const char *name; /* mangled name of this type */
342  const char *str; /* human readable name of this type */
343  swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
344  struct swig_cast_info *cast; /* linked list of types that can cast into this type */
345  void *clientdata; /* language specific type data */
346  int owndata; /* flag if the structure owns the clientdata */
348 
349 /* Structure to store a type and conversion function used for casting */
350 typedef struct swig_cast_info {
351  swig_type_info *type; /* pointer to type that is equivalent to this type */
352  swig_converter_func converter; /* function to cast the void pointers */
353  struct swig_cast_info *next; /* pointer to next cast in linked list */
354  struct swig_cast_info *prev; /* pointer to the previous cast */
356 
357 /* Structure used to store module information
358  * Each module generates one structure like this, and the runtime collects
359  * all of these structures and stores them in a circularly linked list.*/
360 typedef struct swig_module_info {
361  swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
362  size_t size; /* Number of types in this module */
363  struct swig_module_info *next; /* Pointer to next element in circularly linked list */
364  swig_type_info **type_initial; /* Array of initially generated type structures */
365  swig_cast_info **cast_initial; /* Array of initially generated casting structures */
366  void *clientdata; /* Language specific module data */
368 
369 /*
370  Compare two type names skipping the space characters, therefore
371  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
372 
373  Return 0 when the two name types are equivalent, as in
374  strncmp, but skipping ' '.
375 */
376 SWIGRUNTIME int
377 SWIG_TypeNameComp(const char *f1, const char *l1,
378  const char *f2, const char *l2) {
379  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
380  while ((*f1 == ' ') && (f1 != l1)) ++f1;
381  while ((*f2 == ' ') && (f2 != l2)) ++f2;
382  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
383  }
384  return (int)((l1 - f1) - (l2 - f2));
385 }
386 
387 /*
388  Check type equivalence in a name list like <name1>|<name2>|...
389  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
390 */
391 SWIGRUNTIME int
392 SWIG_TypeCmp(const char *nb, const char *tb) {
393  int equiv = 1;
394  const char* te = tb + strlen(tb);
395  const char* ne = nb;
396  while (equiv != 0 && *ne) {
397  for (nb = ne; *ne; ++ne) {
398  if (*ne == '|') break;
399  }
400  equiv = SWIG_TypeNameComp(nb, ne, tb, te);
401  if (*ne) ++ne;
402  }
403  return equiv;
404 }
405 
406 /*
407  Check type equivalence in a name list like <name1>|<name2>|...
408  Return 0 if not equal, 1 if equal
409 */
410 SWIGRUNTIME int
411 SWIG_TypeEquiv(const char *nb, const char *tb) {
412  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
413 }
414 
415 /*
416  Check the typename
417 */
418 SWIGRUNTIME swig_cast_info *
419 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
420  if (ty) {
421  swig_cast_info *iter = ty->cast;
422  while (iter) {
423  if (strcmp(iter->type->name, c) == 0) {
424  if (iter == ty->cast)
425  return iter;
426  /* Move iter to the top of the linked list */
427  iter->prev->next = iter->next;
428  if (iter->next)
429  iter->next->prev = iter->prev;
430  iter->next = ty->cast;
431  iter->prev = 0;
432  if (ty->cast) ty->cast->prev = iter;
433  ty->cast = iter;
434  return iter;
435  }
436  iter = iter->next;
437  }
438  }
439  return 0;
440 }
441 
442 /*
443  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
444 */
445 SWIGRUNTIME swig_cast_info *
446 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
447  if (ty) {
448  swig_cast_info *iter = ty->cast;
449  while (iter) {
450  if (iter->type == from) {
451  if (iter == ty->cast)
452  return iter;
453  /* Move iter to the top of the linked list */
454  iter->prev->next = iter->next;
455  if (iter->next)
456  iter->next->prev = iter->prev;
457  iter->next = ty->cast;
458  iter->prev = 0;
459  if (ty->cast) ty->cast->prev = iter;
460  ty->cast = iter;
461  return iter;
462  }
463  iter = iter->next;
464  }
465  }
466  return 0;
467 }
468 
469 /*
470  Cast a pointer up an inheritance hierarchy
471 */
472 SWIGRUNTIMEINLINE void *
473 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
474  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
475 }
476 
477 /*
478  Dynamic pointer casting. Down an inheritance hierarchy
479 */
480 SWIGRUNTIME swig_type_info *
481 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
482  swig_type_info *lastty = ty;
483  if (!ty || !ty->dcast) return ty;
484  while (ty && (ty->dcast)) {
485  ty = (*ty->dcast)(ptr);
486  if (ty) lastty = ty;
487  }
488  return lastty;
489 }
490 
491 /*
492  Return the name associated with this type
493 */
494 SWIGRUNTIMEINLINE const char *
495 SWIG_TypeName(const swig_type_info *ty) {
496  return ty->name;
497 }
498 
499 /*
500  Return the pretty name associated with this type,
501  that is an unmangled type name in a form presentable to the user.
502 */
503 SWIGRUNTIME const char *
504 SWIG_TypePrettyName(const swig_type_info *type) {
505  /* The "str" field contains the equivalent pretty names of the
506  type, separated by vertical-bar characters. We choose
507  to print the last name, as it is often (?) the most
508  specific. */
509  if (!type) return NULL;
510  if (type->str != NULL) {
511  const char *last_name = type->str;
512  const char *s;
513  for (s = type->str; *s; s++)
514  if (*s == '|') last_name = s+1;
515  return last_name;
516  }
517  else
518  return type->name;
519 }
520 
521 /*
522  Set the clientdata field for a type
523 */
524 SWIGRUNTIME void
525 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
526  swig_cast_info *cast = ti->cast;
527  /* if (ti->clientdata == clientdata) return; */
528  ti->clientdata = clientdata;
529 
530  while (cast) {
531  if (!cast->converter) {
532  swig_type_info *tc = cast->type;
533  if (!tc->clientdata) {
534  SWIG_TypeClientData(tc, clientdata);
535  }
536  }
537  cast = cast->next;
538  }
539 }
540 SWIGRUNTIME void
541 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
542  SWIG_TypeClientData(ti, clientdata);
543  ti->owndata = 1;
544 }
545 
546 /*
547  Search for a swig_type_info structure only by mangled name
548  Search is a O(log #types)
549 
550  We start searching at module start, and finish searching when start == end.
551  Note: if start == end at the beginning of the function, we go all the way around
552  the circular list.
553 */
554 SWIGRUNTIME swig_type_info *
555 SWIG_MangledTypeQueryModule(swig_module_info *start,
556  swig_module_info *end,
557  const char *name) {
558  swig_module_info *iter = start;
559  do {
560  if (iter->size) {
561  size_t l = 0;
562  size_t r = iter->size - 1;
563  do {
564  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
565  size_t i = (l + r) >> 1;
566  const char *iname = iter->types[i]->name;
567  if (iname) {
568  int compare = strcmp(name, iname);
569  if (compare == 0) {
570  return iter->types[i];
571  } else if (compare < 0) {
572  if (i) {
573  r = i - 1;
574  } else {
575  break;
576  }
577  } else if (compare > 0) {
578  l = i + 1;
579  }
580  } else {
581  break; /* should never happen */
582  }
583  } while (l <= r);
584  }
585  iter = iter->next;
586  } while (iter != end);
587  return 0;
588 }
589 
590 /*
591  Search for a swig_type_info structure for either a mangled name or a human readable name.
592  It first searches the mangled names of the types, which is a O(log #types)
593  If a type is not found it then searches the human readable names, which is O(#types).
594 
595  We start searching at module start, and finish searching when start == end.
596  Note: if start == end at the beginning of the function, we go all the way around
597  the circular list.
598 */
599 SWIGRUNTIME swig_type_info *
600 SWIG_TypeQueryModule(swig_module_info *start,
601  swig_module_info *end,
602  const char *name) {
603  /* STEP 1: Search the name field using binary search */
604  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
605  if (ret) {
606  return ret;
607  } else {
608  /* STEP 2: If the type hasn't been found, do a complete search
609  of the str field (the human readable name) */
610  swig_module_info *iter = start;
611  do {
612  size_t i = 0;
613  for (; i < iter->size; ++i) {
614  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
615  return iter->types[i];
616  }
617  iter = iter->next;
618  } while (iter != end);
619  }
620 
621  /* neither found a match */
622  return 0;
623 }
624 
625 /*
626  Pack binary data into a string
627 */
628 SWIGRUNTIME char *
629 SWIG_PackData(char *c, void *ptr, size_t sz) {
630  static const char hex[17] = "0123456789abcdef";
631  const unsigned char *u = (unsigned char *) ptr;
632  const unsigned char *eu = u + sz;
633  for (; u != eu; ++u) {
634  unsigned char uu = *u;
635  *(c++) = hex[(uu & 0xf0) >> 4];
636  *(c++) = hex[uu & 0xf];
637  }
638  return c;
639 }
640 
641 /*
642  Unpack binary data from a string
643 */
644 SWIGRUNTIME const char *
645 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
646  unsigned char *u = (unsigned char *) ptr;
647  const unsigned char *eu = u + sz;
648  for (; u != eu; ++u) {
649  char d = *(c++);
650  unsigned char uu;
651  if ((d >= '0') && (d <= '9'))
652  uu = ((d - '0') << 4);
653  else if ((d >= 'a') && (d <= 'f'))
654  uu = ((d - ('a'-10)) << 4);
655  else
656  return (char *) 0;
657  d = *(c++);
658  if ((d >= '0') && (d <= '9'))
659  uu |= (d - '0');
660  else if ((d >= 'a') && (d <= 'f'))
661  uu |= (d - ('a'-10));
662  else
663  return (char *) 0;
664  *u = uu;
665  }
666  return c;
667 }
668 
669 /*
670  Pack 'void *' into a string buffer.
671 */
672 SWIGRUNTIME char *
673 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
674  char *r = buff;
675  if ((2*sizeof(void *) + 2) > bsz) return 0;
676  *(r++) = '_';
677  r = SWIG_PackData(r,&ptr,sizeof(void *));
678  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
679  strcpy(r,name);
680  return buff;
681 }
682 
683 SWIGRUNTIME const char *
684 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
685  if (*c != '_') {
686  if (strcmp(c,"NULL") == 0) {
687  *ptr = (void *) 0;
688  return name;
689  } else {
690  return 0;
691  }
692  }
693  return SWIG_UnpackData(++c,ptr,sizeof(void *));
694 }
695 
696 SWIGRUNTIME char *
697 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
698  char *r = buff;
699  size_t lname = (name ? strlen(name) : 0);
700  if ((2*sz + 2 + lname) > bsz) return 0;
701  *(r++) = '_';
702  r = SWIG_PackData(r,ptr,sz);
703  if (lname) {
704  strncpy(r,name,lname+1);
705  } else {
706  *r = 0;
707  }
708  return buff;
709 }
710 
711 SWIGRUNTIME const char *
712 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
713  if (*c != '_') {
714  if (strcmp(c,"NULL") == 0) {
715  memset(ptr,0,sz);
716  return name;
717  } else {
718  return 0;
719  }
720  }
721  return SWIG_UnpackData(++c,ptr,sz);
722 }
723 
724 #ifdef __cplusplus
725 }
726 #endif
727 
728 /* Errors in SWIG */
729 #define SWIG_UnknownError -1
730 #define SWIG_IOError -2
731 #define SWIG_RuntimeError -3
732 #define SWIG_IndexError -4
733 #define SWIG_TypeError -5
734 #define SWIG_DivisionByZero -6
735 #define SWIG_OverflowError -7
736 #define SWIG_SyntaxError -8
737 #define SWIG_ValueError -9
738 #define SWIG_SystemError -10
739 #define SWIG_AttributeError -11
740 #define SWIG_MemoryError -12
741 #define SWIG_NullReferenceError -13
742 
743 
744 
745 /* Compatibility macros for Python 3 */
746 #if PY_VERSION_HEX >= 0x03000000
747 
748 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
749 #define PyInt_Check(x) PyLong_Check(x)
750 #define PyInt_AsLong(x) PyLong_AsLong(x)
751 #define PyInt_FromLong(x) PyLong_FromLong(x)
752 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
753 #define PyString_Check(name) PyBytes_Check(name)
754 #define PyString_FromString(x) PyUnicode_FromString(x)
755 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
756 #define PyString_AsString(str) PyBytes_AsString(str)
757 #define PyString_Size(str) PyBytes_Size(str)
758 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
759 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
760 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
761 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
762 
763 #endif
764 
765 #ifndef Py_TYPE
766 # define Py_TYPE(op) ((op)->ob_type)
767 #endif
768 
769 /* SWIG APIs for compatibility of both Python 2 & 3 */
770 
771 #if PY_VERSION_HEX >= 0x03000000
772 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat
773 #else
774 # define SWIG_Python_str_FromFormat PyString_FromFormat
775 #endif
776 
777 
778 /* Warning: This function will allocate a new string in Python 3,
779  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
780  */
781 SWIGINTERN char*
782 SWIG_Python_str_AsChar(PyObject *str)
783 {
784 #if PY_VERSION_HEX >= 0x03000000
785  char *cstr;
786  char *newstr;
787  Py_ssize_t len;
788  str = PyUnicode_AsUTF8String(str);
789  PyBytes_AsStringAndSize(str, &cstr, &len);
790  newstr = (char *) malloc(len+1);
791  memcpy(newstr, cstr, len+1);
792  Py_XDECREF(str);
793  return newstr;
794 #else
795  return PyString_AsString(str);
796 #endif
797 }
798 
799 #if PY_VERSION_HEX >= 0x03000000
800 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
801 #else
802 # define SWIG_Python_str_DelForPy3(x)
803 #endif
804 
805 
806 SWIGINTERN PyObject*
807 SWIG_Python_str_FromChar(const char *c)
808 {
809 #if PY_VERSION_HEX >= 0x03000000
810  return PyUnicode_FromString(c);
811 #else
812  return PyString_FromString(c);
813 #endif
814 }
815 
816 /* Add PyOS_snprintf for old Pythons */
817 #if PY_VERSION_HEX < 0x02020000
818 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
819 # define PyOS_snprintf _snprintf
820 # else
821 # define PyOS_snprintf snprintf
822 # endif
823 #endif
824 
825 /* A crude PyString_FromFormat implementation for old Pythons */
826 #if PY_VERSION_HEX < 0x02020000
827 
828 #ifndef SWIG_PYBUFFER_SIZE
829 # define SWIG_PYBUFFER_SIZE 1024
830 #endif
831 
832 static PyObject *
833 PyString_FromFormat(const char *fmt, ...) {
834  va_list ap;
835  char buf[SWIG_PYBUFFER_SIZE * 2];
836  int res;
837  va_start(ap, fmt);
838  res = vsnprintf(buf, sizeof(buf), fmt, ap);
839  va_end(ap);
840  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
841 }
842 #endif
843 
844 /* Add PyObject_Del for old Pythons */
845 #if PY_VERSION_HEX < 0x01060000
846 # define PyObject_Del(op) PyMem_DEL((op))
847 #endif
848 #ifndef PyObject_DEL
849 # define PyObject_DEL PyObject_Del
850 #endif
851 
852 /* A crude PyExc_StopIteration exception for old Pythons */
853 #if PY_VERSION_HEX < 0x02020000
854 # ifndef PyExc_StopIteration
855 # define PyExc_StopIteration PyExc_RuntimeError
856 # endif
857 # ifndef PyObject_GenericGetAttr
858 # define PyObject_GenericGetAttr 0
859 # endif
860 #endif
861 
862 /* Py_NotImplemented is defined in 2.1 and up. */
863 #if PY_VERSION_HEX < 0x02010000
864 # ifndef Py_NotImplemented
865 # define Py_NotImplemented PyExc_RuntimeError
866 # endif
867 #endif
868 
869 /* A crude PyString_AsStringAndSize implementation for old Pythons */
870 #if PY_VERSION_HEX < 0x02010000
871 # ifndef PyString_AsStringAndSize
872 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
873 # endif
874 #endif
875 
876 /* PySequence_Size for old Pythons */
877 #if PY_VERSION_HEX < 0x02000000
878 # ifndef PySequence_Size
879 # define PySequence_Size PySequence_Length
880 # endif
881 #endif
882 
883 /* PyBool_FromLong for old Pythons */
884 #if PY_VERSION_HEX < 0x02030000
885 static
886 PyObject *PyBool_FromLong(long ok)
887 {
888  PyObject *result = ok ? Py_True : Py_False;
889  Py_INCREF(result);
890  return result;
891 }
892 #endif
893 
894 /* Py_ssize_t for old Pythons */
895 /* This code is as recommended by: */
896 /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
897 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
898 typedef int Py_ssize_t;
899 # define PY_SSIZE_T_MAX INT_MAX
900 # define PY_SSIZE_T_MIN INT_MIN
901 typedef inquiry lenfunc;
902 typedef intargfunc ssizeargfunc;
903 typedef intintargfunc ssizessizeargfunc;
904 typedef intobjargproc ssizeobjargproc;
905 typedef intintobjargproc ssizessizeobjargproc;
906 typedef getreadbufferproc readbufferproc;
907 typedef getwritebufferproc writebufferproc;
908 typedef getsegcountproc segcountproc;
909 typedef getcharbufferproc charbufferproc;
910 static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
911 {
912  long result = 0;
913  PyObject *i = PyNumber_Int(x);
914  if (i) {
915  result = PyInt_AsLong(i);
916  Py_DECREF(i);
917  }
918  return result;
919 }
920 #endif
921 
922 #if PY_VERSION_HEX < 0x02050000
923 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
924 #endif
925 
926 #if PY_VERSION_HEX < 0x02040000
927 #define Py_VISIT(op) \
928  do { \
929  if (op) { \
930  int vret = visit((op), arg); \
931  if (vret) \
932  return vret; \
933  } \
934  } while (0)
935 #endif
936 
937 #if PY_VERSION_HEX < 0x02030000
938 typedef struct {
939  PyTypeObject type;
940  PyNumberMethods as_number;
941  PyMappingMethods as_mapping;
942  PySequenceMethods as_sequence;
943  PyBufferProcs as_buffer;
944  PyObject *name, *slots;
946 #endif
947 
948 #if PY_VERSION_HEX < 0x02030000
949 typedef destructor freefunc;
950 #endif
951 
952 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
953  (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
954  (PY_MAJOR_VERSION > 3))
955 # define SWIGPY_USE_CAPSULE
956 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
957 #endif
958 
959 #if PY_VERSION_HEX < 0x03020000
960 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
961 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
962 #endif
963 
964 /* -----------------------------------------------------------------------------
965  * error manipulation
966  * ----------------------------------------------------------------------------- */
967 
968 SWIGRUNTIME PyObject*
969 SWIG_Python_ErrorType(int code) {
970  PyObject* type = 0;
971  switch(code) {
972  case SWIG_MemoryError:
973  type = PyExc_MemoryError;
974  break;
975  case SWIG_IOError:
976  type = PyExc_IOError;
977  break;
978  case SWIG_RuntimeError:
979  type = PyExc_RuntimeError;
980  break;
981  case SWIG_IndexError:
982  type = PyExc_IndexError;
983  break;
984  case SWIG_TypeError:
985  type = PyExc_TypeError;
986  break;
987  case SWIG_DivisionByZero:
988  type = PyExc_ZeroDivisionError;
989  break;
990  case SWIG_OverflowError:
991  type = PyExc_OverflowError;
992  break;
993  case SWIG_SyntaxError:
994  type = PyExc_SyntaxError;
995  break;
996  case SWIG_ValueError:
997  type = PyExc_ValueError;
998  break;
999  case SWIG_SystemError:
1000  type = PyExc_SystemError;
1001  break;
1002  case SWIG_AttributeError:
1003  type = PyExc_AttributeError;
1004  break;
1005  default:
1006  type = PyExc_RuntimeError;
1007  }
1008  return type;
1009 }
1010 
1011 
1012 SWIGRUNTIME void
1013 SWIG_Python_AddErrorMsg(const char* mesg)
1014 {
1015  PyObject *type = 0;
1016  PyObject *value = 0;
1017  PyObject *traceback = 0;
1018 
1019  if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1020  if (value) {
1021  char *tmp;
1022  PyObject *old_str = PyObject_Str(value);
1023  PyErr_Clear();
1024  Py_XINCREF(type);
1025 
1026  PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1027  SWIG_Python_str_DelForPy3(tmp);
1028  Py_DECREF(old_str);
1029  Py_DECREF(value);
1030  } else {
1031  PyErr_SetString(PyExc_RuntimeError, mesg);
1032  }
1033 }
1034 
1035 #if defined(SWIG_PYTHON_NO_THREADS)
1036 # if defined(SWIG_PYTHON_THREADS)
1037 # undef SWIG_PYTHON_THREADS
1038 # endif
1039 #endif
1040 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1041 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1042 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1043 # define SWIG_PYTHON_USE_GIL
1044 # endif
1045 # endif
1046 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1047 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
1048 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1049 # endif
1050 # ifdef __cplusplus /* C++ code */
1051  class SWIG_Python_Thread_Block {
1052  bool status;
1053  PyGILState_STATE state;
1054  public:
1055  void end() { if (status) { PyGILState_Release(state); status = false;} }
1056  SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1057  ~SWIG_Python_Thread_Block() { end(); }
1058  };
1059  class SWIG_Python_Thread_Allow {
1060  bool status;
1061  PyThreadState *save;
1062  public:
1063  void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1064  SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1065  ~SWIG_Python_Thread_Allow() { end(); }
1066  };
1067 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1068 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1069 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1070 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1071 # else /* C code */
1072 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1073 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1074 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1075 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1076 # endif
1077 # else /* Old thread way, not implemented, user must provide it */
1078 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1079 # define SWIG_PYTHON_INITIALIZE_THREADS
1080 # endif
1081 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1082 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1083 # endif
1084 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1085 # define SWIG_PYTHON_THREAD_END_BLOCK
1086 # endif
1087 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1088 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1089 # endif
1090 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1091 # define SWIG_PYTHON_THREAD_END_ALLOW
1092 # endif
1093 # endif
1094 #else /* No thread support */
1095 # define SWIG_PYTHON_INITIALIZE_THREADS
1096 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1097 # define SWIG_PYTHON_THREAD_END_BLOCK
1098 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1099 # define SWIG_PYTHON_THREAD_END_ALLOW
1100 #endif
1101 
1102 /* -----------------------------------------------------------------------------
1103  * Python API portion that goes into the runtime
1104  * ----------------------------------------------------------------------------- */
1105 
1106 #ifdef __cplusplus
1107 extern "C" {
1108 #endif
1109 
1110 /* -----------------------------------------------------------------------------
1111  * Constant declarations
1112  * ----------------------------------------------------------------------------- */
1113 
1114 /* Constant Types */
1115 #define SWIG_PY_POINTER 4
1116 #define SWIG_PY_BINARY 5
1117 
1118 /* Constant information structure */
1119 typedef struct swig_const_info {
1120  int type;
1121  char *name;
1122  long lvalue;
1123  double dvalue;
1124  void *pvalue;
1125  swig_type_info **ptype;
1126 } swig_const_info;
1127 
1128 
1129 /* -----------------------------------------------------------------------------
1130  * Wrapper of PyInstanceMethod_New() used in Python 3
1131  * It is exported to the generated module, used for -fastproxy
1132  * ----------------------------------------------------------------------------- */
1133 #if PY_VERSION_HEX >= 0x03000000
1134 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1135 {
1136  return PyInstanceMethod_New(func);
1137 }
1138 #else
1139 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1140 {
1141  return NULL;
1142 }
1143 #endif
1144 
1145 #ifdef __cplusplus
1146 }
1147 #endif
1148 
1149 
1150 /* -----------------------------------------------------------------------------
1151  * pyrun.swg
1152  *
1153  * This file contains the runtime support for Python modules
1154  * and includes code for managing global variables and pointer
1155  * type checking.
1156  *
1157  * ----------------------------------------------------------------------------- */
1158 
1159 /* Common SWIG API */
1160 
1161 /* for raw pointers */
1162 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1163 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1164 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1165 
1166 #ifdef SWIGPYTHON_BUILTIN
1167 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1168 #else
1169 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1170 #endif
1171 
1172 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1173 
1174 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1175 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1176 #define swig_owntype int
1177 
1178 /* for raw packed data */
1179 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1180 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1181 
1182 /* for class or struct pointers */
1183 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1184 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1185 
1186 /* for C or C++ function pointers */
1187 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1188 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1189 
1190 /* for C++ member pointers, ie, member methods */
1191 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1192 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1193 
1194 
1195 /* Runtime API */
1196 
1197 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1198 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1199 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
1200 
1201 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1202 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1203 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1204 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1205 #define SWIG_fail goto fail
1206 
1207 
1208 /* Runtime API implementation */
1209 
1210 /* Error manipulation */
1211 
1212 SWIGINTERN void
1213 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1214  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1215  PyErr_SetObject(errtype, obj);
1216  Py_DECREF(obj);
1217  SWIG_PYTHON_THREAD_END_BLOCK;
1218 }
1219 
1220 SWIGINTERN void
1221 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1222  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1223  PyErr_SetString(errtype, msg);
1224  SWIG_PYTHON_THREAD_END_BLOCK;
1225 }
1226 
1227 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1228 
1229 /* Set a constant value */
1230 
1231 #if defined(SWIGPYTHON_BUILTIN)
1232 
1233 SWIGINTERN void
1234 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1235  PyObject *s = PyString_InternFromString(key);
1236  PyList_Append(seq, s);
1237  Py_DECREF(s);
1238 }
1239 
1240 SWIGINTERN void
1241 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1242 #if PY_VERSION_HEX < 0x02030000
1243  PyDict_SetItemString(d, (char *)name, obj);
1244 #else
1245  PyDict_SetItemString(d, name, obj);
1246 #endif
1247  Py_DECREF(obj);
1248  if (public_interface)
1249  SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1250 }
1251 
1252 #else
1253 
1254 SWIGINTERN void
1255 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1256 #if PY_VERSION_HEX < 0x02030000
1257  PyDict_SetItemString(d, (char *)name, obj);
1258 #else
1259  PyDict_SetItemString(d, name, obj);
1260 #endif
1261  Py_DECREF(obj);
1262 }
1263 
1264 #endif
1265 
1266 /* Append a value to the result obj */
1267 
1268 SWIGINTERN PyObject*
1269 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1270 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1271  if (!result) {
1272  result = obj;
1273  } else if (result == Py_None) {
1274  Py_DECREF(result);
1275  result = obj;
1276  } else {
1277  if (!PyList_Check(result)) {
1278  PyObject *o2 = result;
1279  result = PyList_New(1);
1280  PyList_SetItem(result, 0, o2);
1281  }
1282  PyList_Append(result,obj);
1283  Py_DECREF(obj);
1284  }
1285  return result;
1286 #else
1287  PyObject* o2;
1288  PyObject* o3;
1289  if (!result) {
1290  result = obj;
1291  } else if (result == Py_None) {
1292  Py_DECREF(result);
1293  result = obj;
1294  } else {
1295  if (!PyTuple_Check(result)) {
1296  o2 = result;
1297  result = PyTuple_New(1);
1298  PyTuple_SET_ITEM(result, 0, o2);
1299  }
1300  o3 = PyTuple_New(1);
1301  PyTuple_SET_ITEM(o3, 0, obj);
1302  o2 = result;
1303  result = PySequence_Concat(o2, o3);
1304  Py_DECREF(o2);
1305  Py_DECREF(o3);
1306  }
1307  return result;
1308 #endif
1309 }
1310 
1311 /* Unpack the argument tuple */
1312 
1313 SWIGINTERN Py_ssize_t
1314 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1315 {
1316  if (!args) {
1317  if (!min && !max) {
1318  return 1;
1319  } else {
1320  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1321  name, (min == max ? "" : "at least "), (int)min);
1322  return 0;
1323  }
1324  }
1325  if (!PyTuple_Check(args)) {
1326  if (min <= 1 && max >= 1) {
1327  Py_ssize_t i;
1328  objs[0] = args;
1329  for (i = 1; i < max; ++i) {
1330  objs[i] = 0;
1331  }
1332  return 2;
1333  }
1334  PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1335  return 0;
1336  } else {
1337  Py_ssize_t l = PyTuple_GET_SIZE(args);
1338  if (l < min) {
1339  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1340  name, (min == max ? "" : "at least "), (int)min, (int)l);
1341  return 0;
1342  } else if (l > max) {
1343  PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1344  name, (min == max ? "" : "at most "), (int)max, (int)l);
1345  return 0;
1346  } else {
1347  Py_ssize_t i;
1348  for (i = 0; i < l; ++i) {
1349  objs[i] = PyTuple_GET_ITEM(args, i);
1350  }
1351  for (; l < max; ++l) {
1352  objs[l] = 0;
1353  }
1354  return i + 1;
1355  }
1356  }
1357 }
1358 
1359 /* A functor is a function object with one single object argument */
1360 #if PY_VERSION_HEX >= 0x02020000
1361 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1362 #else
1363 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1364 #endif
1365 
1366 /*
1367  Helper for static pointer initialization for both C and C++ code, for example
1368  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1369 */
1370 #ifdef __cplusplus
1371 #define SWIG_STATIC_POINTER(var) var
1372 #else
1373 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1374 #endif
1375 
1376 /* -----------------------------------------------------------------------------
1377  * Pointer declarations
1378  * ----------------------------------------------------------------------------- */
1379 
1380 /* Flags for new pointer objects */
1381 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1382 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1383 
1384 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1385 
1386 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
1387 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1388 
1389 #ifdef __cplusplus
1390 extern "C" {
1391 #endif
1392 
1393 /* How to access Py_None */
1394 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1395 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1396 # ifndef SWIG_PYTHON_BUILD_NONE
1397 # define SWIG_PYTHON_BUILD_NONE
1398 # endif
1399 # endif
1400 #endif
1401 
1402 #ifdef SWIG_PYTHON_BUILD_NONE
1403 # ifdef Py_None
1404 # undef Py_None
1405 # define Py_None SWIG_Py_None()
1406 # endif
1407 SWIGRUNTIMEINLINE PyObject *
1408 _SWIG_Py_None(void)
1409 {
1410  PyObject *none = Py_BuildValue((char*)"");
1411  Py_DECREF(none);
1412  return none;
1413 }
1414 SWIGRUNTIME PyObject *
1415 SWIG_Py_None(void)
1416 {
1417  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1418  return none;
1419 }
1420 #endif
1421 
1422 /* The python void return value */
1423 
1424 SWIGRUNTIMEINLINE PyObject *
1425 SWIG_Py_Void(void)
1426 {
1427  PyObject *none = Py_None;
1428  Py_INCREF(none);
1429  return none;
1430 }
1431 
1432 /* SwigPyClientData */
1433 
1434 typedef struct {
1435  PyObject *klass;
1436  PyObject *newraw;
1437  PyObject *newargs;
1438  PyObject *destroy;
1439  int delargs;
1440  int implicitconv;
1441  PyTypeObject *pytype;
1443 
1444 SWIGRUNTIMEINLINE int
1445 SWIG_Python_CheckImplicit(swig_type_info *ty)
1446 {
1447  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1448  return data ? data->implicitconv : 0;
1449 }
1450 
1451 SWIGRUNTIMEINLINE PyObject *
1452 SWIG_Python_ExceptionType(swig_type_info *desc) {
1453  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1454  PyObject *klass = data ? data->klass : 0;
1455  return (klass ? klass : PyExc_RuntimeError);
1456 }
1457 
1458 
1459 SWIGRUNTIME SwigPyClientData *
1460 SwigPyClientData_New(PyObject* obj)
1461 {
1462  if (!obj) {
1463  return 0;
1464  } else {
1465  SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1466  /* the klass element */
1467  data->klass = obj;
1468  Py_INCREF(data->klass);
1469  /* the newraw method and newargs arguments used to create a new raw instance */
1470  if (PyClass_Check(obj)) {
1471  data->newraw = 0;
1472  data->newargs = obj;
1473  Py_INCREF(obj);
1474  } else {
1475 #if (PY_VERSION_HEX < 0x02020000)
1476  data->newraw = 0;
1477 #else
1478  data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1479 #endif
1480  if (data->newraw) {
1481  Py_INCREF(data->newraw);
1482  data->newargs = PyTuple_New(1);
1483  PyTuple_SetItem(data->newargs, 0, obj);
1484  } else {
1485  data->newargs = obj;
1486  }
1487  Py_INCREF(data->newargs);
1488  }
1489  /* the destroy method, aka as the C++ delete method */
1490  data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1491  if (PyErr_Occurred()) {
1492  PyErr_Clear();
1493  data->destroy = 0;
1494  }
1495  if (data->destroy) {
1496  int flags;
1497  Py_INCREF(data->destroy);
1498  flags = PyCFunction_GET_FLAGS(data->destroy);
1499 #ifdef METH_O
1500  data->delargs = !(flags & (METH_O));
1501 #else
1502  data->delargs = 0;
1503 #endif
1504  } else {
1505  data->delargs = 0;
1506  }
1507  data->implicitconv = 0;
1508  data->pytype = 0;
1509  return data;
1510  }
1511 }
1512 
1513 SWIGRUNTIME void
1514 SwigPyClientData_Del(SwigPyClientData *data) {
1515  Py_XDECREF(data->newraw);
1516  Py_XDECREF(data->newargs);
1517  Py_XDECREF(data->destroy);
1518 }
1519 
1520 /* =============== SwigPyObject =====================*/
1521 
1522 typedef struct {
1523  PyObject_HEAD
1524  void *ptr;
1525  swig_type_info *ty;
1526  int own;
1527  PyObject *next;
1528 #ifdef SWIGPYTHON_BUILTIN
1529  PyObject *dict;
1530 #endif
1531 } SwigPyObject;
1532 
1533 
1534 #ifdef SWIGPYTHON_BUILTIN
1535 
1536 SWIGRUNTIME PyObject *
1537 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1538 {
1539  SwigPyObject *sobj = (SwigPyObject *)v;
1540 
1541  if (!sobj->dict)
1542  sobj->dict = PyDict_New();
1543 
1544  Py_INCREF(sobj->dict);
1545  return sobj->dict;
1546 }
1547 
1548 #endif
1549 
1550 SWIGRUNTIME PyObject *
1551 SwigPyObject_long(SwigPyObject *v)
1552 {
1553  return PyLong_FromVoidPtr(v->ptr);
1554 }
1555 
1556 SWIGRUNTIME PyObject *
1557 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1558 {
1559  PyObject *res = NULL;
1560  PyObject *args = PyTuple_New(1);
1561  if (args) {
1562  if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1563  PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1564  if (ofmt) {
1565 #if PY_VERSION_HEX >= 0x03000000
1566  res = PyUnicode_Format(ofmt,args);
1567 #else
1568  res = PyString_Format(ofmt,args);
1569 #endif
1570  Py_DECREF(ofmt);
1571  }
1572  Py_DECREF(args);
1573  }
1574  }
1575  return res;
1576 }
1577 
1578 SWIGRUNTIME PyObject *
1579 SwigPyObject_oct(SwigPyObject *v)
1580 {
1581  return SwigPyObject_format("%o",v);
1582 }
1583 
1584 SWIGRUNTIME PyObject *
1585 SwigPyObject_hex(SwigPyObject *v)
1586 {
1587  return SwigPyObject_format("%x",v);
1588 }
1589 
1590 SWIGRUNTIME PyObject *
1591 #ifdef METH_NOARGS
1592 SwigPyObject_repr(SwigPyObject *v)
1593 #else
1594 SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1595 #endif
1596 {
1597  const char *name = SWIG_TypePrettyName(v->ty);
1598  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1599  if (v->next) {
1600 # ifdef METH_NOARGS
1601  PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1602 # else
1603  PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1604 # endif
1605 # if PY_VERSION_HEX >= 0x03000000
1606  PyObject *joined = PyUnicode_Concat(repr, nrep);
1607  Py_DecRef(repr);
1608  Py_DecRef(nrep);
1609  repr = joined;
1610 # else
1611  PyString_ConcatAndDel(&repr,nrep);
1612 # endif
1613  }
1614  return repr;
1615 }
1616 
1617 SWIGRUNTIME int
1618 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1619 {
1620  void *i = v->ptr;
1621  void *j = w->ptr;
1622  return (i < j) ? -1 : ((i > j) ? 1 : 0);
1623 }
1624 
1625 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1626 SWIGRUNTIME PyObject*
1627 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1628 {
1629  PyObject* res;
1630  if( op != Py_EQ && op != Py_NE ) {
1631  Py_INCREF(Py_NotImplemented);
1632  return Py_NotImplemented;
1633  }
1634  res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1635  return res;
1636 }
1637 
1638 
1639 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1640 
1641 #ifdef SWIGPYTHON_BUILTIN
1642 static swig_type_info *SwigPyObject_stype = 0;
1643 SWIGRUNTIME PyTypeObject*
1644 SwigPyObject_type(void) {
1645  SwigPyClientData *cd;
1646  assert(SwigPyObject_stype);
1647  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1648  assert(cd);
1649  assert(cd->pytype);
1650  return cd->pytype;
1651 }
1652 #else
1653 SWIGRUNTIME PyTypeObject*
1654 SwigPyObject_type(void) {
1655  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1656  return type;
1657 }
1658 #endif
1659 
1660 SWIGRUNTIMEINLINE int
1661 SwigPyObject_Check(PyObject *op) {
1662 #ifdef SWIGPYTHON_BUILTIN
1663  PyTypeObject *target_tp = SwigPyObject_type();
1664  if (PyType_IsSubtype(op->ob_type, target_tp))
1665  return 1;
1666  return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1667 #else
1668  return (Py_TYPE(op) == SwigPyObject_type())
1669  || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1670 #endif
1671 }
1672 
1673 SWIGRUNTIME PyObject *
1674 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1675 
1676 SWIGRUNTIME void
1677 SwigPyObject_dealloc(PyObject *v)
1678 {
1679  SwigPyObject *sobj = (SwigPyObject *) v;
1680  PyObject *next = sobj->next;
1681  if (sobj->own == SWIG_POINTER_OWN) {
1682  swig_type_info *ty = sobj->ty;
1683  SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1684  PyObject *destroy = data ? data->destroy : 0;
1685  if (destroy) {
1686  /* destroy is always a VARARGS method */
1687  PyObject *res;
1688 
1689  /* PyObject_CallFunction() has the potential to silently drop
1690  the active active exception. In cases of unnamed temporary
1691  variable or where we just finished iterating over a generator
1692  StopIteration will be active right now, and this needs to
1693  remain true upon return from SwigPyObject_dealloc. So save
1694  and restore. */
1695 
1696  PyObject *val = NULL, *type = NULL, *tb = NULL;
1697  PyErr_Fetch(&val, &type, &tb);
1698 
1699  if (data->delargs) {
1700  /* we need to create a temporary object to carry the destroy operation */
1701  PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1702  res = SWIG_Python_CallFunctor(destroy, tmp);
1703  Py_DECREF(tmp);
1704  } else {
1705  PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1706  PyObject *mself = PyCFunction_GET_SELF(destroy);
1707  res = ((*meth)(mself, v));
1708  }
1709  if (!res)
1710  PyErr_WriteUnraisable(destroy);
1711 
1712  PyErr_Restore(val, type, tb);
1713 
1714  Py_XDECREF(res);
1715  }
1716 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1717  else {
1718  const char *name = SWIG_TypePrettyName(ty);
1719  printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1720  }
1721 #endif
1722  }
1723  Py_XDECREF(next);
1724  PyObject_DEL(v);
1725 }
1726 
1727 SWIGRUNTIME PyObject*
1728 SwigPyObject_append(PyObject* v, PyObject* next)
1729 {
1730  SwigPyObject *sobj = (SwigPyObject *) v;
1731 #ifndef METH_O
1732  PyObject *tmp = 0;
1733  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1734  next = tmp;
1735 #endif
1736  if (!SwigPyObject_Check(next)) {
1737  PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1738  return NULL;
1739  }
1740  sobj->next = next;
1741  Py_INCREF(next);
1742  return SWIG_Py_Void();
1743 }
1744 
1745 SWIGRUNTIME PyObject*
1746 #ifdef METH_NOARGS
1747 SwigPyObject_next(PyObject* v)
1748 #else
1749 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1750 #endif
1751 {
1752  SwigPyObject *sobj = (SwigPyObject *) v;
1753  if (sobj->next) {
1754  Py_INCREF(sobj->next);
1755  return sobj->next;
1756  } else {
1757  return SWIG_Py_Void();
1758  }
1759 }
1760 
1761 SWIGINTERN PyObject*
1762 #ifdef METH_NOARGS
1763 SwigPyObject_disown(PyObject *v)
1764 #else
1765 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1766 #endif
1767 {
1768  SwigPyObject *sobj = (SwigPyObject *)v;
1769  sobj->own = 0;
1770  return SWIG_Py_Void();
1771 }
1772 
1773 SWIGINTERN PyObject*
1774 #ifdef METH_NOARGS
1775 SwigPyObject_acquire(PyObject *v)
1776 #else
1777 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1778 #endif
1779 {
1780  SwigPyObject *sobj = (SwigPyObject *)v;
1781  sobj->own = SWIG_POINTER_OWN;
1782  return SWIG_Py_Void();
1783 }
1784 
1785 SWIGINTERN PyObject*
1786 SwigPyObject_own(PyObject *v, PyObject *args)
1787 {
1788  PyObject *val = 0;
1789 #if (PY_VERSION_HEX < 0x02020000)
1790  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1791 #elif (PY_VERSION_HEX < 0x02050000)
1792  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1793 #else
1794  if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1795 #endif
1796  {
1797  return NULL;
1798  }
1799  else
1800  {
1801  SwigPyObject *sobj = (SwigPyObject *)v;
1802  PyObject *obj = PyBool_FromLong(sobj->own);
1803  if (val) {
1804 #ifdef METH_NOARGS
1805  if (PyObject_IsTrue(val)) {
1806  SwigPyObject_acquire(v);
1807  } else {
1808  SwigPyObject_disown(v);
1809  }
1810 #else
1811  if (PyObject_IsTrue(val)) {
1812  SwigPyObject_acquire(v,args);
1813  } else {
1814  SwigPyObject_disown(v,args);
1815  }
1816 #endif
1817  }
1818  return obj;
1819  }
1820 }
1821 
1822 #ifdef METH_O
1823 static PyMethodDef
1824 swigobject_methods[] = {
1825  {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1826  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"},
1827  {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1828  {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
1829  {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1830  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
1831  {0, 0, 0, 0}
1832 };
1833 #else
1834 static PyMethodDef
1835 swigobject_methods[] = {
1836  {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1837  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
1838  {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1839  {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1840  {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1841  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
1842  {0, 0, 0, 0}
1843 };
1844 #endif
1845 
1846 #if PY_VERSION_HEX < 0x02020000
1847 SWIGINTERN PyObject *
1848 SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1849 {
1850  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1851 }
1852 #endif
1853 
1854 SWIGRUNTIME PyTypeObject*
1855 SwigPyObject_TypeOnce(void) {
1856  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1857 
1858  static PyNumberMethods SwigPyObject_as_number = {
1859  (binaryfunc)0, /*nb_add*/
1860  (binaryfunc)0, /*nb_subtract*/
1861  (binaryfunc)0, /*nb_multiply*/
1862  /* nb_divide removed in Python 3 */
1863 #if PY_VERSION_HEX < 0x03000000
1864  (binaryfunc)0, /*nb_divide*/
1865 #endif
1866  (binaryfunc)0, /*nb_remainder*/
1867  (binaryfunc)0, /*nb_divmod*/
1868  (ternaryfunc)0,/*nb_power*/
1869  (unaryfunc)0, /*nb_negative*/
1870  (unaryfunc)0, /*nb_positive*/
1871  (unaryfunc)0, /*nb_absolute*/
1872  (inquiry)0, /*nb_nonzero*/
1873  0, /*nb_invert*/
1874  0, /*nb_lshift*/
1875  0, /*nb_rshift*/
1876  0, /*nb_and*/
1877  0, /*nb_xor*/
1878  0, /*nb_or*/
1879 #if PY_VERSION_HEX < 0x03000000
1880  0, /*nb_coerce*/
1881 #endif
1882  (unaryfunc)SwigPyObject_long, /*nb_int*/
1883 #if PY_VERSION_HEX < 0x03000000
1884  (unaryfunc)SwigPyObject_long, /*nb_long*/
1885 #else
1886  0, /*nb_reserved*/
1887 #endif
1888  (unaryfunc)0, /*nb_float*/
1889 #if PY_VERSION_HEX < 0x03000000
1890  (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1891  (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1892 #endif
1893 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1894  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1895 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1896  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1897 #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
1898  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1899 #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
1900  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1901 #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
1902  0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1903 #endif
1904  };
1905 
1906  static PyTypeObject swigpyobject_type;
1907  static int type_init = 0;
1908  if (!type_init) {
1909  const PyTypeObject tmp = {
1910  /* PyObject header changed in Python 3 */
1911 #if PY_VERSION_HEX >= 0x03000000
1912  PyVarObject_HEAD_INIT(NULL, 0)
1913 #else
1914  PyObject_HEAD_INIT(NULL)
1915  0, /* ob_size */
1916 #endif
1917  (char *)"SwigPyObject", /* tp_name */
1918  sizeof(SwigPyObject), /* tp_basicsize */
1919  0, /* tp_itemsize */
1920  (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1921  0, /* tp_print */
1922 #if PY_VERSION_HEX < 0x02020000
1923  (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1924 #else
1925  (getattrfunc)0, /* tp_getattr */
1926 #endif
1927  (setattrfunc)0, /* tp_setattr */
1928 #if PY_VERSION_HEX >= 0x03000000
1929  0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1930 #else
1931  (cmpfunc)SwigPyObject_compare, /* tp_compare */
1932 #endif
1933  (reprfunc)SwigPyObject_repr, /* tp_repr */
1934  &SwigPyObject_as_number, /* tp_as_number */
1935  0, /* tp_as_sequence */
1936  0, /* tp_as_mapping */
1937  (hashfunc)0, /* tp_hash */
1938  (ternaryfunc)0, /* tp_call */
1939  0, /* tp_str */
1940  PyObject_GenericGetAttr, /* tp_getattro */
1941  0, /* tp_setattro */
1942  0, /* tp_as_buffer */
1943  Py_TPFLAGS_DEFAULT, /* tp_flags */
1944  swigobject_doc, /* tp_doc */
1945  0, /* tp_traverse */
1946  0, /* tp_clear */
1947  (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1948  0, /* tp_weaklistoffset */
1949 #if PY_VERSION_HEX >= 0x02020000
1950  0, /* tp_iter */
1951  0, /* tp_iternext */
1952  swigobject_methods, /* tp_methods */
1953  0, /* tp_members */
1954  0, /* tp_getset */
1955  0, /* tp_base */
1956  0, /* tp_dict */
1957  0, /* tp_descr_get */
1958  0, /* tp_descr_set */
1959  0, /* tp_dictoffset */
1960  0, /* tp_init */
1961  0, /* tp_alloc */
1962  0, /* tp_new */
1963  0, /* tp_free */
1964  0, /* tp_is_gc */
1965  0, /* tp_bases */
1966  0, /* tp_mro */
1967  0, /* tp_cache */
1968  0, /* tp_subclasses */
1969  0, /* tp_weaklist */
1970 #endif
1971 #if PY_VERSION_HEX >= 0x02030000
1972  0, /* tp_del */
1973 #endif
1974 #if PY_VERSION_HEX >= 0x02060000
1975  0, /* tp_version_tag */
1976 #endif
1977 #if PY_VERSION_HEX >= 0x03040000
1978  0, /* tp_finalize */
1979 #endif
1980 #ifdef COUNT_ALLOCS
1981  0, /* tp_allocs */
1982  0, /* tp_frees */
1983  0, /* tp_maxalloc */
1984 #if PY_VERSION_HEX >= 0x02050000
1985  0, /* tp_prev */
1986 #endif
1987  0 /* tp_next */
1988 #endif
1989  };
1990  swigpyobject_type = tmp;
1991  type_init = 1;
1992 #if PY_VERSION_HEX < 0x02020000
1993  swigpyobject_type.ob_type = &PyType_Type;
1994 #else
1995  if (PyType_Ready(&swigpyobject_type) < 0)
1996  return NULL;
1997 #endif
1998  }
1999  return &swigpyobject_type;
2000 }
2001 
2002 SWIGRUNTIME PyObject *
2003 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2004 {
2005  SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
2006  if (sobj) {
2007  sobj->ptr = ptr;
2008  sobj->ty = ty;
2009  sobj->own = own;
2010  sobj->next = 0;
2011  }
2012  return (PyObject *)sobj;
2013 }
2014 
2015 /* -----------------------------------------------------------------------------
2016  * Implements a simple Swig Packed type, and use it instead of string
2017  * ----------------------------------------------------------------------------- */
2018 
2019 typedef struct {
2020  PyObject_HEAD
2021  void *pack;
2022  swig_type_info *ty;
2023  size_t size;
2024 } SwigPyPacked;
2025 
2026 SWIGRUNTIME int
2027 SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2028 {
2029  char result[SWIG_BUFFER_SIZE];
2030  fputs("<Swig Packed ", fp);
2031  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2032  fputs("at ", fp);
2033  fputs(result, fp);
2034  }
2035  fputs(v->ty->name,fp);
2036  fputs(">", fp);
2037  return 0;
2038 }
2039 
2040 SWIGRUNTIME PyObject *
2041 SwigPyPacked_repr(SwigPyPacked *v)
2042 {
2043  char result[SWIG_BUFFER_SIZE];
2044  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2045  return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2046  } else {
2047  return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
2048  }
2049 }
2050 
2051 SWIGRUNTIME PyObject *
2052 SwigPyPacked_str(SwigPyPacked *v)
2053 {
2054  char result[SWIG_BUFFER_SIZE];
2055  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2056  return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
2057  } else {
2058  return SWIG_Python_str_FromChar(v->ty->name);
2059  }
2060 }
2061 
2062 SWIGRUNTIME int
2063 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2064 {
2065  size_t i = v->size;
2066  size_t j = w->size;
2067  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2068  return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2069 }
2070 
2071 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
2072 
2073 SWIGRUNTIME PyTypeObject*
2074 SwigPyPacked_type(void) {
2075  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2076  return type;
2077 }
2078 
2079 SWIGRUNTIMEINLINE int
2080 SwigPyPacked_Check(PyObject *op) {
2081  return ((op)->ob_type == SwigPyPacked_TypeOnce())
2082  || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2083 }
2084 
2085 SWIGRUNTIME void
2086 SwigPyPacked_dealloc(PyObject *v)
2087 {
2088  if (SwigPyPacked_Check(v)) {
2089  SwigPyPacked *sobj = (SwigPyPacked *) v;
2090  free(sobj->pack);
2091  }
2092  PyObject_DEL(v);
2093 }
2094 
2095 SWIGRUNTIME PyTypeObject*
2096 SwigPyPacked_TypeOnce(void) {
2097  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2098  static PyTypeObject swigpypacked_type;
2099  static int type_init = 0;
2100  if (!type_init) {
2101  const PyTypeObject tmp = {
2102  /* PyObject header changed in Python 3 */
2103 #if PY_VERSION_HEX>=0x03000000
2104  PyVarObject_HEAD_INIT(NULL, 0)
2105 #else
2106  PyObject_HEAD_INIT(NULL)
2107  0, /* ob_size */
2108 #endif
2109  (char *)"SwigPyPacked", /* tp_name */
2110  sizeof(SwigPyPacked), /* tp_basicsize */
2111  0, /* tp_itemsize */
2112  (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2113  (printfunc)SwigPyPacked_print, /* tp_print */
2114  (getattrfunc)0, /* tp_getattr */
2115  (setattrfunc)0, /* tp_setattr */
2116 #if PY_VERSION_HEX>=0x03000000
2117  0, /* tp_reserved in 3.0.1 */
2118 #else
2119  (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2120 #endif
2121  (reprfunc)SwigPyPacked_repr, /* tp_repr */
2122  0, /* tp_as_number */
2123  0, /* tp_as_sequence */
2124  0, /* tp_as_mapping */
2125  (hashfunc)0, /* tp_hash */
2126  (ternaryfunc)0, /* tp_call */
2127  (reprfunc)SwigPyPacked_str, /* tp_str */
2128  PyObject_GenericGetAttr, /* tp_getattro */
2129  0, /* tp_setattro */
2130  0, /* tp_as_buffer */
2131  Py_TPFLAGS_DEFAULT, /* tp_flags */
2132  swigpacked_doc, /* tp_doc */
2133  0, /* tp_traverse */
2134  0, /* tp_clear */
2135  0, /* tp_richcompare */
2136  0, /* tp_weaklistoffset */
2137 #if PY_VERSION_HEX >= 0x02020000
2138  0, /* tp_iter */
2139  0, /* tp_iternext */
2140  0, /* tp_methods */
2141  0, /* tp_members */
2142  0, /* tp_getset */
2143  0, /* tp_base */
2144  0, /* tp_dict */
2145  0, /* tp_descr_get */
2146  0, /* tp_descr_set */
2147  0, /* tp_dictoffset */
2148  0, /* tp_init */
2149  0, /* tp_alloc */
2150  0, /* tp_new */
2151  0, /* tp_free */
2152  0, /* tp_is_gc */
2153  0, /* tp_bases */
2154  0, /* tp_mro */
2155  0, /* tp_cache */
2156  0, /* tp_subclasses */
2157  0, /* tp_weaklist */
2158 #endif
2159 #if PY_VERSION_HEX >= 0x02030000
2160  0, /* tp_del */
2161 #endif
2162 #if PY_VERSION_HEX >= 0x02060000
2163  0, /* tp_version_tag */
2164 #endif
2165 #if PY_VERSION_HEX >= 0x03040000
2166  0, /* tp_finalize */
2167 #endif
2168 #ifdef COUNT_ALLOCS
2169  0, /* tp_allocs */
2170  0, /* tp_frees */
2171  0, /* tp_maxalloc */
2172 #if PY_VERSION_HEX >= 0x02050000
2173  0, /* tp_prev */
2174 #endif
2175  0 /* tp_next */
2176 #endif
2177  };
2178  swigpypacked_type = tmp;
2179  type_init = 1;
2180 #if PY_VERSION_HEX < 0x02020000
2181  swigpypacked_type.ob_type = &PyType_Type;
2182 #else
2183  if (PyType_Ready(&swigpypacked_type) < 0)
2184  return NULL;
2185 #endif
2186  }
2187  return &swigpypacked_type;
2188 }
2189 
2190 SWIGRUNTIME PyObject *
2191 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2192 {
2193  SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
2194  if (sobj) {
2195  void *pack = malloc(size);
2196  if (pack) {
2197  memcpy(pack, ptr, size);
2198  sobj->pack = pack;
2199  sobj->ty = ty;
2200  sobj->size = size;
2201  } else {
2202  PyObject_DEL((PyObject *) sobj);
2203  sobj = 0;
2204  }
2205  }
2206  return (PyObject *) sobj;
2207 }
2208 
2209 SWIGRUNTIME swig_type_info *
2210 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2211 {
2212  if (SwigPyPacked_Check(obj)) {
2213  SwigPyPacked *sobj = (SwigPyPacked *)obj;
2214  if (sobj->size != size) return 0;
2215  memcpy(ptr, sobj->pack, size);
2216  return sobj->ty;
2217  } else {
2218  return 0;
2219  }
2220 }
2221 
2222 /* -----------------------------------------------------------------------------
2223  * pointers/data manipulation
2224  * ----------------------------------------------------------------------------- */
2225 
2226 SWIGRUNTIMEINLINE PyObject *
2227 _SWIG_This(void)
2228 {
2229  return SWIG_Python_str_FromChar("this");
2230 }
2231 
2232 static PyObject *swig_this = NULL;
2233 
2234 SWIGRUNTIME PyObject *
2235 SWIG_This(void)
2236 {
2237  if (swig_this == NULL)
2238  swig_this = _SWIG_This();
2239  return swig_this;
2240 }
2241 
2242 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2243 
2244 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
2245 #if PY_VERSION_HEX>=0x03000000
2246 #define SWIG_PYTHON_SLOW_GETSET_THIS
2247 #endif
2248 
2249 SWIGRUNTIME SwigPyObject *
2250 SWIG_Python_GetSwigThis(PyObject *pyobj)
2251 {
2252  PyObject *obj;
2253 
2254  if (SwigPyObject_Check(pyobj))
2255  return (SwigPyObject *) pyobj;
2256 
2257 #ifdef SWIGPYTHON_BUILTIN
2258  (void)obj;
2259 # ifdef PyWeakref_CheckProxy
2260  if (PyWeakref_CheckProxy(pyobj)) {
2261  pyobj = PyWeakref_GET_OBJECT(pyobj);
2262  if (pyobj && SwigPyObject_Check(pyobj))
2263  return (SwigPyObject*) pyobj;
2264  }
2265 # endif
2266  return NULL;
2267 #else
2268 
2269  obj = 0;
2270 
2271 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2272  if (PyInstance_Check(pyobj)) {
2273  obj = _PyInstance_Lookup(pyobj, SWIG_This());
2274  } else {
2275  PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2276  if (dictptr != NULL) {
2277  PyObject *dict = *dictptr;
2278  obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2279  } else {
2280 #ifdef PyWeakref_CheckProxy
2281  if (PyWeakref_CheckProxy(pyobj)) {
2282  PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2283  return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2284  }
2285 #endif
2286  obj = PyObject_GetAttr(pyobj,SWIG_This());
2287  if (obj) {
2288  Py_DECREF(obj);
2289  } else {
2290  if (PyErr_Occurred()) PyErr_Clear();
2291  return 0;
2292  }
2293  }
2294  }
2295 #else
2296  obj = PyObject_GetAttr(pyobj,SWIG_This());
2297  if (obj) {
2298  Py_DECREF(obj);
2299  } else {
2300  if (PyErr_Occurred()) PyErr_Clear();
2301  return 0;
2302  }
2303 #endif
2304  if (obj && !SwigPyObject_Check(obj)) {
2305  /* a PyObject is called 'this', try to get the 'real this'
2306  SwigPyObject from it */
2307  return SWIG_Python_GetSwigThis(obj);
2308  }
2309  return (SwigPyObject *)obj;
2310 #endif
2311 }
2312 
2313 /* Acquire a pointer value */
2314 
2315 SWIGRUNTIME int
2316 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2317  if (own == SWIG_POINTER_OWN) {
2318  SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2319  if (sobj) {
2320  int oldown = sobj->own;
2321  sobj->own = own;
2322  return oldown;
2323  }
2324  }
2325  return 0;
2326 }
2327 
2328 /* Convert a pointer value */
2329 
2330 SWIGRUNTIME int
2331 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2332  int res;
2333  SwigPyObject *sobj;
2334  int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2335 
2336  if (!obj)
2337  return SWIG_ERROR;
2338  if (obj == Py_None && !implicit_conv) {
2339  if (ptr)
2340  *ptr = 0;
2341  return SWIG_OK;
2342  }
2343 
2344  res = SWIG_ERROR;
2345 
2346  sobj = SWIG_Python_GetSwigThis(obj);
2347  if (own)
2348  *own = 0;
2349  while (sobj) {
2350  void *vptr = sobj->ptr;
2351  if (ty) {
2352  swig_type_info *to = sobj->ty;
2353  if (to == ty) {
2354  /* no type cast needed */
2355  if (ptr) *ptr = vptr;
2356  break;
2357  } else {
2358  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2359  if (!tc) {
2360  sobj = (SwigPyObject *)sobj->next;
2361  } else {
2362  if (ptr) {
2363  int newmemory = 0;
2364  *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2365  if (newmemory == SWIG_CAST_NEW_MEMORY) {
2366  assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2367  if (own)
2368  *own = *own | SWIG_CAST_NEW_MEMORY;
2369  }
2370  }
2371  break;
2372  }
2373  }
2374  } else {
2375  if (ptr) *ptr = vptr;
2376  break;
2377  }
2378  }
2379  if (sobj) {
2380  if (own)
2381  *own = *own | sobj->own;
2382  if (flags & SWIG_POINTER_DISOWN) {
2383  sobj->own = 0;
2384  }
2385  res = SWIG_OK;
2386  } else {
2387  if (implicit_conv) {
2388  SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2389  if (data && !data->implicitconv) {
2390  PyObject *klass = data->klass;
2391  if (klass) {
2392  PyObject *impconv;
2393  data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2394  impconv = SWIG_Python_CallFunctor(klass, obj);
2395  data->implicitconv = 0;
2396  if (PyErr_Occurred()) {
2397  PyErr_Clear();
2398  impconv = 0;
2399  }
2400  if (impconv) {
2401  SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2402  if (iobj) {
2403  void *vptr;
2404  res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2405  if (SWIG_IsOK(res)) {
2406  if (ptr) {
2407  *ptr = vptr;
2408  /* transfer the ownership to 'ptr' */
2409  iobj->own = 0;
2410  res = SWIG_AddCast(res);
2411  res = SWIG_AddNewMask(res);
2412  } else {
2413  res = SWIG_AddCast(res);
2414  }
2415  }
2416  }
2417  Py_DECREF(impconv);
2418  }
2419  }
2420  }
2421  }
2422  if (!SWIG_IsOK(res) && obj == Py_None) {
2423  if (ptr)
2424  *ptr = 0;
2425  if (PyErr_Occurred())
2426  PyErr_Clear();
2427  res = SWIG_OK;
2428  }
2429  }
2430  return res;
2431 }
2432 
2433 /* Convert a function ptr value */
2434 
2435 SWIGRUNTIME int
2436 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2437  if (!PyCFunction_Check(obj)) {
2438  return SWIG_ConvertPtr(obj, ptr, ty, 0);
2439  } else {
2440  void *vptr = 0;
2441 
2442  /* here we get the method pointer for callbacks */
2443  const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2444  const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2445  if (desc)
2446  desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2447  if (!desc)
2448  return SWIG_ERROR;
2449  if (ty) {
2450  swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2451  if (tc) {
2452  int newmemory = 0;
2453  *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2454  assert(!newmemory); /* newmemory handling not yet implemented */
2455  } else {
2456  return SWIG_ERROR;
2457  }
2458  } else {
2459  *ptr = vptr;
2460  }
2461  return SWIG_OK;
2462  }
2463 }
2464 
2465 /* Convert a packed value value */
2466 
2467 SWIGRUNTIME int
2468 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2469  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2470  if (!to) return SWIG_ERROR;
2471  if (ty) {
2472  if (to != ty) {
2473  /* check type cast? */
2474  swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2475  if (!tc) return SWIG_ERROR;
2476  }
2477  }
2478  return SWIG_OK;
2479 }
2480 
2481 /* -----------------------------------------------------------------------------
2482  * Create a new pointer object
2483  * ----------------------------------------------------------------------------- */
2484 
2485 /*
2486  Create a new instance object, without calling __init__, and set the
2487  'this' attribute.
2488 */
2489 
2490 SWIGRUNTIME PyObject*
2491 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2492 {
2493 #if (PY_VERSION_HEX >= 0x02020000)
2494  PyObject *inst = 0;
2495  PyObject *newraw = data->newraw;
2496  if (newraw) {
2497  inst = PyObject_Call(newraw, data->newargs, NULL);
2498  if (inst) {
2499 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2500  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2501  if (dictptr != NULL) {
2502  PyObject *dict = *dictptr;
2503  if (dict == NULL) {
2504  dict = PyDict_New();
2505  *dictptr = dict;
2506  PyDict_SetItem(dict, SWIG_This(), swig_this);
2507  }
2508  }
2509 #else
2510  PyObject *key = SWIG_This();
2511  PyObject_SetAttr(inst, key, swig_this);
2512 #endif
2513  }
2514  } else {
2515 #if PY_VERSION_HEX >= 0x03000000
2516  inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2517  if (inst) {
2518  PyObject_SetAttr(inst, SWIG_This(), swig_this);
2519  Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2520  }
2521 #else
2522  PyObject *dict = PyDict_New();
2523  if (dict) {
2524  PyDict_SetItem(dict, SWIG_This(), swig_this);
2525  inst = PyInstance_NewRaw(data->newargs, dict);
2526  Py_DECREF(dict);
2527  }
2528 #endif
2529  }
2530  return inst;
2531 #else
2532 #if (PY_VERSION_HEX >= 0x02010000)
2533  PyObject *inst = 0;
2534  PyObject *dict = PyDict_New();
2535  if (dict) {
2536  PyDict_SetItem(dict, SWIG_This(), swig_this);
2537  inst = PyInstance_NewRaw(data->newargs, dict);
2538  Py_DECREF(dict);
2539  }
2540  return (PyObject *) inst;
2541 #else
2542  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2543  if (inst == NULL) {
2544  return NULL;
2545  }
2546  inst->in_class = (PyClassObject *)data->newargs;
2547  Py_INCREF(inst->in_class);
2548  inst->in_dict = PyDict_New();
2549  if (inst->in_dict == NULL) {
2550  Py_DECREF(inst);
2551  return NULL;
2552  }
2553 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2554  inst->in_weakreflist = NULL;
2555 #endif
2556 #ifdef Py_TPFLAGS_GC
2557  PyObject_GC_Init(inst);
2558 #endif
2559  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2560  return (PyObject *) inst;
2561 #endif
2562 #endif
2563 }
2564 
2565 SWIGRUNTIME void
2566 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2567 {
2568  PyObject *dict;
2569 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2570  PyObject **dictptr = _PyObject_GetDictPtr(inst);
2571  if (dictptr != NULL) {
2572  dict = *dictptr;
2573  if (dict == NULL) {
2574  dict = PyDict_New();
2575  *dictptr = dict;
2576  }
2577  PyDict_SetItem(dict, SWIG_This(), swig_this);
2578  return;
2579  }
2580 #endif
2581  dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2582  PyDict_SetItem(dict, SWIG_This(), swig_this);
2583  Py_DECREF(dict);
2584 }
2585 
2586 
2587 SWIGINTERN PyObject *
2588 SWIG_Python_InitShadowInstance(PyObject *args) {
2589  PyObject *obj[2];
2590  if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2591  return NULL;
2592  } else {
2593  SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2594  if (sthis) {
2595  SwigPyObject_append((PyObject*) sthis, obj[1]);
2596  } else {
2597  SWIG_Python_SetSwigThis(obj[0], obj[1]);
2598  }
2599  return SWIG_Py_Void();
2600  }
2601 }
2602 
2603 /* Create a new pointer object */
2604 
2605 SWIGRUNTIME PyObject *
2606 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2607  SwigPyClientData *clientdata;
2608  PyObject * robj;
2609  int own;
2610 
2611  if (!ptr)
2612  return SWIG_Py_Void();
2613 
2614  clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2615  own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2616  if (clientdata && clientdata->pytype) {
2617  SwigPyObject *newobj;
2618  if (flags & SWIG_BUILTIN_TP_INIT) {
2619  newobj = (SwigPyObject*) self;
2620  if (newobj->ptr) {
2621  PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2622  while (newobj->next)
2623  newobj = (SwigPyObject *) newobj->next;
2624  newobj->next = next_self;
2625  newobj = (SwigPyObject *)next_self;
2626 #ifdef SWIGPYTHON_BUILTIN
2627  newobj->dict = 0;
2628 #endif
2629  }
2630  } else {
2631  newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2632 #ifdef SWIGPYTHON_BUILTIN
2633  newobj->dict = 0;
2634 #endif
2635  }
2636  if (newobj) {
2637  newobj->ptr = ptr;
2638  newobj->ty = type;
2639  newobj->own = own;
2640  newobj->next = 0;
2641  return (PyObject*) newobj;
2642  }
2643  return SWIG_Py_Void();
2644  }
2645 
2646  assert(!(flags & SWIG_BUILTIN_TP_INIT));
2647 
2648  robj = SwigPyObject_New(ptr, type, own);
2649  if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2650  PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2651  Py_DECREF(robj);
2652  robj = inst;
2653  }
2654  return robj;
2655 }
2656 
2657 /* Create a new packed object */
2658 
2659 SWIGRUNTIMEINLINE PyObject *
2660 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2661  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2662 }
2663 
2664 /* -----------------------------------------------------------------------------*
2665  * Get type list
2666  * -----------------------------------------------------------------------------*/
2667 
2668 #ifdef SWIG_LINK_RUNTIME
2669 void *SWIG_ReturnGlobalTypeList(void *);
2670 #endif
2671 
2672 SWIGRUNTIME swig_module_info *
2673 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2674  static void *type_pointer = (void *)0;
2675  /* first check if module already created */
2676  if (!type_pointer) {
2677 #ifdef SWIG_LINK_RUNTIME
2678  type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2679 #else
2680 # ifdef SWIGPY_USE_CAPSULE
2681  type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2682 # else
2683  type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2684  (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2685 # endif
2686  if (PyErr_Occurred()) {
2687  PyErr_Clear();
2688  type_pointer = (void *)0;
2689  }
2690 #endif
2691  }
2692  return (swig_module_info *) type_pointer;
2693 }
2694 
2695 #if PY_MAJOR_VERSION < 2
2696 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2697  is copied out of Python/modsupport.c in python version 2.3.4 */
2698 SWIGINTERN int
2699 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2700 {
2701  PyObject *dict;
2702  if (!PyModule_Check(m)) {
2703  PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2704  return SWIG_ERROR;
2705  }
2706  if (!o) {
2707  PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2708  return SWIG_ERROR;
2709  }
2710 
2711  dict = PyModule_GetDict(m);
2712  if (dict == NULL) {
2713  /* Internal error -- modules must have a dict! */
2714  PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2715  PyModule_GetName(m));
2716  return SWIG_ERROR;
2717  }
2718  if (PyDict_SetItemString(dict, name, o))
2719  return SWIG_ERROR;
2720  Py_DECREF(o);
2721  return SWIG_OK;
2722 }
2723 #endif
2724 
2725 SWIGRUNTIME void
2726 #ifdef SWIGPY_USE_CAPSULE
2727 SWIG_Python_DestroyModule(PyObject *obj)
2728 #else
2729 SWIG_Python_DestroyModule(void *vptr)
2730 #endif
2731 {
2732 #ifdef SWIGPY_USE_CAPSULE
2733  swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2734 #else
2735  swig_module_info *swig_module = (swig_module_info *) vptr;
2736 #endif
2737  swig_type_info **types = swig_module->types;
2738  size_t i;
2739  for (i =0; i < swig_module->size; ++i) {
2740  swig_type_info *ty = types[i];
2741  if (ty->owndata) {
2742  SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2743  if (data) SwigPyClientData_Del(data);
2744  }
2745  }
2746  Py_DECREF(SWIG_This());
2747  swig_this = NULL;
2748 }
2749 
2750 SWIGRUNTIME void
2751 SWIG_Python_SetModule(swig_module_info *swig_module) {
2752 #if PY_VERSION_HEX >= 0x03000000
2753  /* Add a dummy module object into sys.modules */
2754  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
2755 #else
2756  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2757  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2758 #endif
2759 #ifdef SWIGPY_USE_CAPSULE
2760  PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2761  if (pointer && module) {
2762  PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2763  } else {
2764  Py_XDECREF(pointer);
2765  }
2766 #else
2767  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2768  if (pointer && module) {
2769  PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2770  } else {
2771  Py_XDECREF(pointer);
2772  }
2773 #endif
2774 }
2775 
2776 /* The python cached type query */
2777 SWIGRUNTIME PyObject *
2778 SWIG_Python_TypeCache(void) {
2779  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2780  return cache;
2781 }
2782 
2783 SWIGRUNTIME swig_type_info *
2784 SWIG_Python_TypeQuery(const char *type)
2785 {
2786  PyObject *cache = SWIG_Python_TypeCache();
2787  PyObject *key = SWIG_Python_str_FromChar(type);
2788  PyObject *obj = PyDict_GetItem(cache, key);
2789  swig_type_info *descriptor;
2790  if (obj) {
2791 #ifdef SWIGPY_USE_CAPSULE
2792  descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2793 #else
2794  descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2795 #endif
2796  } else {
2797  swig_module_info *swig_module = SWIG_GetModule(0);
2798  descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2799  if (descriptor) {
2800 #ifdef SWIGPY_USE_CAPSULE
2801  obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2802 #else
2803  obj = PyCObject_FromVoidPtr(descriptor, NULL);
2804 #endif
2805  PyDict_SetItem(cache, key, obj);
2806  Py_DECREF(obj);
2807  }
2808  }
2809  Py_DECREF(key);
2810  return descriptor;
2811 }
2812 
2813 /*
2814  For backward compatibility only
2815 */
2816 #define SWIG_POINTER_EXCEPTION 0
2817 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2818 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2819 
2820 SWIGRUNTIME int
2821 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2822 {
2823  if (PyErr_Occurred()) {
2824  PyObject *type = 0;
2825  PyObject *value = 0;
2826  PyObject *traceback = 0;
2827  PyErr_Fetch(&type, &value, &traceback);
2828  if (value) {
2829  char *tmp;
2830  PyObject *old_str = PyObject_Str(value);
2831  Py_XINCREF(type);
2832  PyErr_Clear();
2833  if (infront) {
2834  PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2835  } else {
2836  PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2837  }
2838  SWIG_Python_str_DelForPy3(tmp);
2839  Py_DECREF(old_str);
2840  }
2841  return 1;
2842  } else {
2843  return 0;
2844  }
2845 }
2846 
2847 SWIGRUNTIME int
2848 SWIG_Python_ArgFail(int argnum)
2849 {
2850  if (PyErr_Occurred()) {
2851  /* add information about failing argument */
2852  char mesg[256];
2853  PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2854  return SWIG_Python_AddErrMesg(mesg, 1);
2855  } else {
2856  return 0;
2857  }
2858 }
2859 
2860 SWIGRUNTIMEINLINE const char *
2861 SwigPyObject_GetDesc(PyObject *self)
2862 {
2863  SwigPyObject *v = (SwigPyObject *)self;
2864  swig_type_info *ty = v ? v->ty : 0;
2865  return ty ? ty->str : "";
2866 }
2867 
2868 SWIGRUNTIME void
2869 SWIG_Python_TypeError(const char *type, PyObject *obj)
2870 {
2871  if (type) {
2872 #if defined(SWIG_COBJECT_TYPES)
2873  if (obj && SwigPyObject_Check(obj)) {
2874  const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2875  if (otype) {
2876  PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2877  type, otype);
2878  return;
2879  }
2880  } else
2881 #endif
2882  {
2883  const char *otype = (obj ? obj->ob_type->tp_name : 0);
2884  if (otype) {
2885  PyObject *str = PyObject_Str(obj);
2886  const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2887  if (cstr) {
2888  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2889  type, otype, cstr);
2890  SWIG_Python_str_DelForPy3(cstr);
2891  } else {
2892  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2893  type, otype);
2894  }
2895  Py_XDECREF(str);
2896  return;
2897  }
2898  }
2899  PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2900  } else {
2901  PyErr_Format(PyExc_TypeError, "unexpected type is received");
2902  }
2903 }
2904 
2905 
2906 /* Convert a pointer value, signal an exception on a type mismatch */
2907 SWIGRUNTIME void *
2908 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2909  void *result;
2910  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2911  PyErr_Clear();
2912 #if SWIG_POINTER_EXCEPTION
2913  if (flags) {
2914  SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2915  SWIG_Python_ArgFail(argnum);
2916  }
2917 #endif
2918  }
2919  return result;
2920 }
2921 
2922 #ifdef SWIGPYTHON_BUILTIN
2923 SWIGRUNTIME int
2924 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2925  PyTypeObject *tp = obj->ob_type;
2926  PyObject *descr;
2927  PyObject *encoded_name;
2928  descrsetfunc f;
2929  int res = -1;
2930 
2931 # ifdef Py_USING_UNICODE
2932  if (PyString_Check(name)) {
2933  name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2934  if (!name)
2935  return -1;
2936  } else if (!PyUnicode_Check(name))
2937 # else
2938  if (!PyString_Check(name))
2939 # endif
2940  {
2941  PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2942  return -1;
2943  } else {
2944  Py_INCREF(name);
2945  }
2946 
2947  if (!tp->tp_dict) {
2948  if (PyType_Ready(tp) < 0)
2949  goto done;
2950  }
2951 
2952  descr = _PyType_Lookup(tp, name);
2953  f = NULL;
2954  if (descr != NULL)
2955  f = descr->ob_type->tp_descr_set;
2956  if (!f) {
2957  if (PyString_Check(name)) {
2958  encoded_name = name;
2959  Py_INCREF(name);
2960  } else {
2961  encoded_name = PyUnicode_AsUTF8String(name);
2962  }
2963  PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2964  Py_DECREF(encoded_name);
2965  } else {
2966  res = f(descr, obj, value);
2967  }
2968 
2969  done:
2970  Py_DECREF(name);
2971  return res;
2972 }
2973 #endif
2974 
2975 
2976 #ifdef __cplusplus
2977 }
2978 #endif
2979 
2980 
2981 
2982 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2983 
2984 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2985 
2986 
2987 
2988 /* -------- TYPES TABLE (BEGIN) -------- */
2989 
2990 #define SWIGTYPE_p_char swig_types[0]
2991 #define SWIGTYPE_p_int swig_types[1]
2992 #define SWIGTYPE_p_unsigned_char swig_types[2]
2993 #define SWIGTYPE_p_unsigned_int swig_types[3]
2994 #define SWIGTYPE_p_unsigned_long swig_types[4]
2995 #define SWIGTYPE_p_unsigned_short swig_types[5]
2996 static swig_type_info *swig_types[7];
2997 static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
2998 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2999 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3000 
3001 /* -------- TYPES TABLE (END) -------- */
3002 
3003 #if (PY_VERSION_HEX <= 0x02000000)
3004 # if !defined(SWIG_PYTHON_CLASSIC)
3005 # error "This python version requires swig to be run with the '-classic' option"
3006 # endif
3007 #endif
3008 
3009 /*-----------------------------------------------
3010  @(target):= _RoboClawMsgs.so
3011  ------------------------------------------------*/
3012 #if PY_VERSION_HEX >= 0x03000000
3013 # define SWIG_init PyInit__RoboClawMsgs
3014 
3015 #else
3016 # define SWIG_init init_RoboClawMsgs
3017 
3018 #endif
3019 #define SWIG_name "_RoboClawMsgs"
3020 
3021 #define SWIGVERSION 0x030008
3022 #define SWIG_VERSION SWIGVERSION
3023 
3024 
3025 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
3026 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
3027 
3028 
3029 #define SWIG
3030 #include "rnr/rnrconfig.h"
3031 #include "Laelaps/RoboClaw.h"
3032 #undef SWIG
3033 
3034 
3035 SWIGINTERNINLINE PyObject*
3036  SWIG_From_int (int value)
3037 {
3038  return PyInt_FromLong((long) value);
3039 }
3040 
3041 
3042  #define SWIG_From_long PyLong_FromLong
3043 
3044 
3045 SWIGINTERNINLINE PyObject*
3046 SWIG_From_unsigned_SS_long (unsigned long value)
3047 {
3048  return (value > LONG_MAX) ?
3049  PyLong_FromUnsignedLong(value) : PyLong_FromLong((long)(value));
3050 }
3051 
3052 
3053 SWIGINTERNINLINE PyObject *
3054 SWIG_From_unsigned_SS_char (unsigned char value)
3055 {
3056  return SWIG_From_unsigned_SS_long (value);
3057 }
3058 
3059 
3060 SWIGINTERNINLINE PyObject *
3061 SWIG_From_size_t (size_t value)
3062 {
3063  return SWIG_From_unsigned_SS_long ((unsigned long)(value));
3064 }
3065 
3066 
3067  #define SWIG_From_double PyFloat_FromDouble
3068 
3069 
3070 #include <limits.h>
3071 #if !defined(SWIG_NO_LLONG_MAX)
3072 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
3073 # define LLONG_MAX __LONG_LONG_MAX__
3074 # define LLONG_MIN (-LLONG_MAX - 1LL)
3075 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
3076 # endif
3077 #endif
3078 
3079 
3080 SWIGINTERNINLINE PyObject*
3081 SWIG_From_long_SS_long (long long value)
3082 {
3083  return ((value < LONG_MIN) || (value > LONG_MAX)) ?
3084  PyLong_FromLongLong(value) : PyLong_FromLong((long)(value));
3085 }
3086 
3087 
3088 SWIGINTERNINLINE PyObject*
3089  SWIG_From_unsigned_SS_int (unsigned int value)
3090 {
3091  return PyInt_FromSize_t((size_t) value);
3092 }
3093 
3094 
3095 
3096 #ifdef __cplusplus
3097 extern "C" {
3098 #endif
3099 SWIGINTERN PyObject *SerBaud2400_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3100  PyObject *module;
3101  PyObject *d;
3102  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3103  d = PyModule_GetDict(module);
3104  if (!d) return NULL;
3105  SWIG_Python_SetConstant(d, "SerBaud2400",SWIG_From_int((int)(2400)));
3106  return SWIG_Py_Void();
3107 }
3108 
3109 
3110 SWIGINTERN PyObject *SerBaud9600_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3111  PyObject *module;
3112  PyObject *d;
3113  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3114  d = PyModule_GetDict(module);
3115  if (!d) return NULL;
3116  SWIG_Python_SetConstant(d, "SerBaud9600",SWIG_From_int((int)(9600)));
3117  return SWIG_Py_Void();
3118 }
3119 
3120 
3121 SWIGINTERN PyObject *SerBaud19200_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3122  PyObject *module;
3123  PyObject *d;
3124  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3125  d = PyModule_GetDict(module);
3126  if (!d) return NULL;
3127  SWIG_Python_SetConstant(d, "SerBaud19200",SWIG_From_int((int)(19200)));
3128  return SWIG_Py_Void();
3129 }
3130 
3131 
3132 SWIGINTERN PyObject *SerBaud38400_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3133  PyObject *module;
3134  PyObject *d;
3135  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3136  d = PyModule_GetDict(module);
3137  if (!d) return NULL;
3138  SWIG_Python_SetConstant(d, "SerBaud38400",SWIG_From_int((int)(38400)));
3139  return SWIG_Py_Void();
3140 }
3141 
3142 
3143 SWIGINTERN PyObject *SerBaud115200_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3144  PyObject *module;
3145  PyObject *d;
3146  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3147  d = PyModule_GetDict(module);
3148  if (!d) return NULL;
3149  SWIG_Python_SetConstant(d, "SerBaud115200",SWIG_From_int((int)(115200)));
3150  return SWIG_Py_Void();
3151 }
3152 
3153 
3154 SWIGINTERN PyObject *SerBaud230400_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3155  PyObject *module;
3156  PyObject *d;
3157  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3158  d = PyModule_GetDict(module);
3159  if (!d) return NULL;
3160  SWIG_Python_SetConstant(d, "SerBaud230400",SWIG_From_int((int)(230400)));
3161  return SWIG_Py_Void();
3162 }
3163 
3164 
3165 SWIGINTERN PyObject *SerBaud460800_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3166  PyObject *module;
3167  PyObject *d;
3168  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3169  d = PyModule_GetDict(module);
3170  if (!d) return NULL;
3171  SWIG_Python_SetConstant(d, "SerBaud460800",SWIG_From_int((int)(460800)));
3172  return SWIG_Py_Void();
3173 }
3174 
3175 
3176 SWIGINTERN PyObject *USBBaud1Mbps_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3177  PyObject *module;
3178  PyObject *d;
3179  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3180  d = PyModule_GetDict(module);
3181  if (!d) return NULL;
3182  SWIG_Python_SetConstant(d, "USBBaud1Mbps",SWIG_From_int((int)(1000000)));
3183  return SWIG_Py_Void();
3184 }
3185 
3186 
3187 SWIGINTERN PyObject *AddrMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3188  PyObject *module;
3189  PyObject *d;
3190  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3191  d = PyModule_GetDict(module);
3192  if (!d) return NULL;
3193  SWIG_Python_SetConstant(d, "AddrMin",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
3194  return SWIG_Py_Void();
3195 }
3196 
3197 
3198 SWIGINTERN PyObject *AddrMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3199  PyObject *module;
3200  PyObject *d;
3201  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3202  d = PyModule_GetDict(module);
3203  if (!d) return NULL;
3204  SWIG_Python_SetConstant(d, "AddrMax",SWIG_From_unsigned_SS_char((unsigned char)(0x87)));
3205  return SWIG_Py_Void();
3206 }
3207 
3208 
3209 SWIGINTERN PyObject *AddrDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3210  PyObject *module;
3211  PyObject *d;
3212  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3213  d = PyModule_GetDict(module);
3214  if (!d) return NULL;
3215  SWIG_Python_SetConstant(d, "AddrDft",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
3216  return SWIG_Py_Void();
3217 }
3218 
3219 
3220 SWIGINTERN PyObject *CheckSumMask_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3221  PyObject *module;
3222  PyObject *d;
3223  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3224  d = PyModule_GetDict(module);
3225  if (!d) return NULL;
3226  SWIG_Python_SetConstant(d, "CheckSumMask",SWIG_From_unsigned_SS_char((unsigned char)(0x7f)));
3227  return SWIG_Py_Void();
3228 }
3229 
3230 
3231 SWIGINTERN PyObject *AckReqBit_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3232  PyObject *module;
3233  PyObject *d;
3234  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3235  d = PyModule_GetDict(module);
3236  if (!d) return NULL;
3237  SWIG_Python_SetConstant(d, "AckReqBit",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
3238  return SWIG_Py_Void();
3239 }
3240 
3241 
3242 SWIGINTERN PyObject *MsgWithNoCrc_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3243  PyObject *module;
3244  PyObject *d;
3245  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3246  d = PyModule_GetDict(module);
3247  if (!d) return NULL;
3248  SWIG_Python_SetConstant(d, "MsgWithNoCrc",SWIG_From_int((int)(MsgWithNoCrc)));
3249  return SWIG_Py_Void();
3250 }
3251 
3252 
3253 SWIGINTERN PyObject *MsgWithCrc_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3254  PyObject *module;
3255  PyObject *d;
3256  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3257  d = PyModule_GetDict(module);
3258  if (!d) return NULL;
3259  SWIG_Python_SetConstant(d, "MsgWithCrc",SWIG_From_int((int)(MsgWithCrc)));
3260  return SWIG_Py_Void();
3261 }
3262 
3263 
3264 SWIGINTERN PyObject *MsgIgnoreCrc_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3265  PyObject *module;
3266  PyObject *d;
3267  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3268  d = PyModule_GetDict(module);
3269  if (!d) return NULL;
3270  SWIG_Python_SetConstant(d, "MsgIgnoreCrc",SWIG_From_int((int)(MsgIgnoreCrc)));
3271  return SWIG_Py_Void();
3272 }
3273 
3274 
3275 SWIGINTERN PyObject *MsgLenFixed_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3276  PyObject *module;
3277  PyObject *d;
3278  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3279  d = PyModule_GetDict(module);
3280  if (!d) return NULL;
3281  SWIG_Python_SetConstant(d, "MsgLenFixed",SWIG_From_int((int)(MsgLenFixed)));
3282  return SWIG_Py_Void();
3283 }
3284 
3285 
3286 SWIGINTERN PyObject *MsgLenVariable_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3287  PyObject *module;
3288  PyObject *d;
3289  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3290  d = PyModule_GetDict(module);
3291  if (!d) return NULL;
3292  SWIG_Python_SetConstant(d, "MsgLenVariable",SWIG_From_int((int)(MsgLenVariable)));
3293  return SWIG_Py_Void();
3294 }
3295 
3296 
3297 SWIGINTERN PyObject *RspAck_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3298  PyObject *module;
3299  PyObject *d;
3300  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3301  d = PyModule_GetDict(module);
3302  if (!d) return NULL;
3303  SWIG_Python_SetConstant(d, "RspAck",SWIG_From_unsigned_SS_char((unsigned char)(0xff)));
3304  return SWIG_Py_Void();
3305 }
3306 
3307 
3308 SWIGINTERN PyObject *CmdDriveForwardMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3309  PyObject *module;
3310  PyObject *d;
3311  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3312  d = PyModule_GetDict(module);
3313  if (!d) return NULL;
3314  SWIG_Python_SetConstant(d, "CmdDriveForwardMot1",SWIG_From_int((int)(CmdDriveForwardMot1)));
3315  return SWIG_Py_Void();
3316 }
3317 
3318 
3319 SWIGINTERN PyObject *CmdDriveBackwardMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3320  PyObject *module;
3321  PyObject *d;
3322  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3323  d = PyModule_GetDict(module);
3324  if (!d) return NULL;
3325  SWIG_Python_SetConstant(d, "CmdDriveBackwardMot1",SWIG_From_int((int)(CmdDriveBackwardMot1)));
3326  return SWIG_Py_Void();
3327 }
3328 
3329 
3330 SWIGINTERN PyObject *CmdSetMinMainVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3331  PyObject *module;
3332  PyObject *d;
3333  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3334  d = PyModule_GetDict(module);
3335  if (!d) return NULL;
3336  SWIG_Python_SetConstant(d, "CmdSetMinMainVolt",SWIG_From_int((int)(CmdSetMinMainVolt)));
3337  return SWIG_Py_Void();
3338 }
3339 
3340 
3341 SWIGINTERN PyObject *CmdSetMaxMainVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3342  PyObject *module;
3343  PyObject *d;
3344  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3345  d = PyModule_GetDict(module);
3346  if (!d) return NULL;
3347  SWIG_Python_SetConstant(d, "CmdSetMaxMainVolt",SWIG_From_int((int)(CmdSetMaxMainVolt)));
3348  return SWIG_Py_Void();
3349 }
3350 
3351 
3352 SWIGINTERN PyObject *CmdDriveForwardMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3353  PyObject *module;
3354  PyObject *d;
3355  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3356  d = PyModule_GetDict(module);
3357  if (!d) return NULL;
3358  SWIG_Python_SetConstant(d, "CmdDriveForwardMot2",SWIG_From_int((int)(CmdDriveForwardMot2)));
3359  return SWIG_Py_Void();
3360 }
3361 
3362 
3363 SWIGINTERN PyObject *CmdDriveBackwardMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3364  PyObject *module;
3365  PyObject *d;
3366  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3367  d = PyModule_GetDict(module);
3368  if (!d) return NULL;
3369  SWIG_Python_SetConstant(d, "CmdDriveBackwardMot2",SWIG_From_int((int)(CmdDriveBackwardMot2)));
3370  return SWIG_Py_Void();
3371 }
3372 
3373 
3374 SWIGINTERN PyObject *CmdDriveMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3375  PyObject *module;
3376  PyObject *d;
3377  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3378  d = PyModule_GetDict(module);
3379  if (!d) return NULL;
3380  SWIG_Python_SetConstant(d, "CmdDriveMot1",SWIG_From_int((int)(CmdDriveMot1)));
3381  return SWIG_Py_Void();
3382 }
3383 
3384 
3385 SWIGINTERN PyObject *CmdDriveMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3386  PyObject *module;
3387  PyObject *d;
3388  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3389  d = PyModule_GetDict(module);
3390  if (!d) return NULL;
3391  SWIG_Python_SetConstant(d, "CmdDriveMot2",SWIG_From_int((int)(CmdDriveMot2)));
3392  return SWIG_Py_Void();
3393 }
3394 
3395 
3396 SWIGINTERN PyObject *CmdMixDriveForward_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3397  PyObject *module;
3398  PyObject *d;
3399  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3400  d = PyModule_GetDict(module);
3401  if (!d) return NULL;
3402  SWIG_Python_SetConstant(d, "CmdMixDriveForward",SWIG_From_int((int)(CmdMixDriveForward)));
3403  return SWIG_Py_Void();
3404 }
3405 
3406 
3407 SWIGINTERN PyObject *CmdMixDriveBackward_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3408  PyObject *module;
3409  PyObject *d;
3410  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3411  d = PyModule_GetDict(module);
3412  if (!d) return NULL;
3413  SWIG_Python_SetConstant(d, "CmdMixDriveBackward",SWIG_From_int((int)(CmdMixDriveBackward)));
3414  return SWIG_Py_Void();
3415 }
3416 
3417 
3418 SWIGINTERN PyObject *CmdMixTurnRight_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3419  PyObject *module;
3420  PyObject *d;
3421  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3422  d = PyModule_GetDict(module);
3423  if (!d) return NULL;
3424  SWIG_Python_SetConstant(d, "CmdMixTurnRight",SWIG_From_int((int)(CmdMixTurnRight)));
3425  return SWIG_Py_Void();
3426 }
3427 
3428 
3429 SWIGINTERN PyObject *CmdMixTurnLeft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3430  PyObject *module;
3431  PyObject *d;
3432  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3433  d = PyModule_GetDict(module);
3434  if (!d) return NULL;
3435  SWIG_Python_SetConstant(d, "CmdMixTurnLeft",SWIG_From_int((int)(CmdMixTurnLeft)));
3436  return SWIG_Py_Void();
3437 }
3438 
3439 
3440 SWIGINTERN PyObject *CmdMixDrive_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3441  PyObject *module;
3442  PyObject *d;
3443  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3444  d = PyModule_GetDict(module);
3445  if (!d) return NULL;
3446  SWIG_Python_SetConstant(d, "CmdMixDrive",SWIG_From_int((int)(CmdMixDrive)));
3447  return SWIG_Py_Void();
3448 }
3449 
3450 
3451 SWIGINTERN PyObject *CmdMixTurn_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3452  PyObject *module;
3453  PyObject *d;
3454  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3455  d = PyModule_GetDict(module);
3456  if (!d) return NULL;
3457  SWIG_Python_SetConstant(d, "CmdMixTurn",SWIG_From_int((int)(CmdMixTurn)));
3458  return SWIG_Py_Void();
3459 }
3460 
3461 
3462 SWIGINTERN PyObject *CmdReadEncoderMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3463  PyObject *module;
3464  PyObject *d;
3465  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3466  d = PyModule_GetDict(module);
3467  if (!d) return NULL;
3468  SWIG_Python_SetConstant(d, "CmdReadEncoderMot1",SWIG_From_int((int)(CmdReadEncoderMot1)));
3469  return SWIG_Py_Void();
3470 }
3471 
3472 
3473 SWIGINTERN PyObject *CmdReadEncoderMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3474  PyObject *module;
3475  PyObject *d;
3476  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3477  d = PyModule_GetDict(module);
3478  if (!d) return NULL;
3479  SWIG_Python_SetConstant(d, "CmdReadEncoderMot2",SWIG_From_int((int)(CmdReadEncoderMot2)));
3480  return SWIG_Py_Void();
3481 }
3482 
3483 
3484 SWIGINTERN PyObject *CmdReadSpeedMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3485  PyObject *module;
3486  PyObject *d;
3487  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3488  d = PyModule_GetDict(module);
3489  if (!d) return NULL;
3490  SWIG_Python_SetConstant(d, "CmdReadSpeedMot1",SWIG_From_int((int)(CmdReadSpeedMot1)));
3491  return SWIG_Py_Void();
3492 }
3493 
3494 
3495 SWIGINTERN PyObject *CmdReadSpeedMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3496  PyObject *module;
3497  PyObject *d;
3498  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3499  d = PyModule_GetDict(module);
3500  if (!d) return NULL;
3501  SWIG_Python_SetConstant(d, "CmdReadSpeedMot2",SWIG_From_int((int)(CmdReadSpeedMot2)));
3502  return SWIG_Py_Void();
3503 }
3504 
3505 
3506 SWIGINTERN PyObject *CmdResetEncoderCntrs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3507  PyObject *module;
3508  PyObject *d;
3509  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3510  d = PyModule_GetDict(module);
3511  if (!d) return NULL;
3512  SWIG_Python_SetConstant(d, "CmdResetEncoderCntrs",SWIG_From_int((int)(CmdResetEncoderCntrs)));
3513  return SWIG_Py_Void();
3514 }
3515 
3516 
3517 SWIGINTERN PyObject *CmdReadFwVersion_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3518  PyObject *module;
3519  PyObject *d;
3520  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3521  d = PyModule_GetDict(module);
3522  if (!d) return NULL;
3523  SWIG_Python_SetConstant(d, "CmdReadFwVersion",SWIG_From_int((int)(CmdReadFwVersion)));
3524  return SWIG_Py_Void();
3525 }
3526 
3527 
3528 SWIGINTERN PyObject *CmdSetEncoderReg1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3529  PyObject *module;
3530  PyObject *d;
3531  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3532  d = PyModule_GetDict(module);
3533  if (!d) return NULL;
3534  SWIG_Python_SetConstant(d, "CmdSetEncoderReg1",SWIG_From_int((int)(CmdSetEncoderReg1)));
3535  return SWIG_Py_Void();
3536 }
3537 
3538 
3539 SWIGINTERN PyObject *CmdSetEncoderReg2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3540  PyObject *module;
3541  PyObject *d;
3542  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3543  d = PyModule_GetDict(module);
3544  if (!d) return NULL;
3545  SWIG_Python_SetConstant(d, "CmdSetEncoderReg2",SWIG_From_int((int)(CmdSetEncoderReg2)));
3546  return SWIG_Py_Void();
3547 }
3548 
3549 
3550 SWIGINTERN PyObject *CmdReadMainBattVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3551  PyObject *module;
3552  PyObject *d;
3553  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3554  d = PyModule_GetDict(module);
3555  if (!d) return NULL;
3556  SWIG_Python_SetConstant(d, "CmdReadMainBattVolt",SWIG_From_int((int)(CmdReadMainBattVolt)));
3557  return SWIG_Py_Void();
3558 }
3559 
3560 
3561 SWIGINTERN PyObject *CmdReadLogicVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3562  PyObject *module;
3563  PyObject *d;
3564  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3565  d = PyModule_GetDict(module);
3566  if (!d) return NULL;
3567  SWIG_Python_SetConstant(d, "CmdReadLogicVolt",SWIG_From_int((int)(CmdReadLogicVolt)));
3568  return SWIG_Py_Void();
3569 }
3570 
3571 
3572 SWIGINTERN PyObject *CmdSetMinLogicVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3573  PyObject *module;
3574  PyObject *d;
3575  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3576  d = PyModule_GetDict(module);
3577  if (!d) return NULL;
3578  SWIG_Python_SetConstant(d, "CmdSetMinLogicVolt",SWIG_From_int((int)(CmdSetMinLogicVolt)));
3579  return SWIG_Py_Void();
3580 }
3581 
3582 
3583 SWIGINTERN PyObject *CmdSetMaxLogicVolt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3584  PyObject *module;
3585  PyObject *d;
3586  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3587  d = PyModule_GetDict(module);
3588  if (!d) return NULL;
3589  SWIG_Python_SetConstant(d, "CmdSetMaxLogicVolt",SWIG_From_int((int)(CmdSetMaxLogicVolt)));
3590  return SWIG_Py_Void();
3591 }
3592 
3593 
3594 SWIGINTERN PyObject *CmdSetVelPidMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3595  PyObject *module;
3596  PyObject *d;
3597  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3598  d = PyModule_GetDict(module);
3599  if (!d) return NULL;
3600  SWIG_Python_SetConstant(d, "CmdSetVelPidMot1",SWIG_From_int((int)(CmdSetVelPidMot1)));
3601  return SWIG_Py_Void();
3602 }
3603 
3604 
3605 SWIGINTERN PyObject *CmdSetVelPidMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3606  PyObject *module;
3607  PyObject *d;
3608  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3609  d = PyModule_GetDict(module);
3610  if (!d) return NULL;
3611  SWIG_Python_SetConstant(d, "CmdSetVelPidMot2",SWIG_From_int((int)(CmdSetVelPidMot2)));
3612  return SWIG_Py_Void();
3613 }
3614 
3615 
3616 SWIGINTERN PyObject *CmdRead125SpeedMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3617  PyObject *module;
3618  PyObject *d;
3619  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3620  d = PyModule_GetDict(module);
3621  if (!d) return NULL;
3622  SWIG_Python_SetConstant(d, "CmdRead125SpeedMot1",SWIG_From_int((int)(CmdRead125SpeedMot1)));
3623  return SWIG_Py_Void();
3624 }
3625 
3626 
3627 SWIGINTERN PyObject *CmdRead125SpeedMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3628  PyObject *module;
3629  PyObject *d;
3630  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3631  d = PyModule_GetDict(module);
3632  if (!d) return NULL;
3633  SWIG_Python_SetConstant(d, "CmdRead125SpeedMot2",SWIG_From_int((int)(CmdRead125SpeedMot2)));
3634  return SWIG_Py_Void();
3635 }
3636 
3637 
3638 SWIGINTERN PyObject *CmdDriveDutyMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3639  PyObject *module;
3640  PyObject *d;
3641  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3642  d = PyModule_GetDict(module);
3643  if (!d) return NULL;
3644  SWIG_Python_SetConstant(d, "CmdDriveDutyMot1",SWIG_From_int((int)(CmdDriveDutyMot1)));
3645  return SWIG_Py_Void();
3646 }
3647 
3648 
3649 SWIGINTERN PyObject *CmdDriveDutyMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3650  PyObject *module;
3651  PyObject *d;
3652  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3653  d = PyModule_GetDict(module);
3654  if (!d) return NULL;
3655  SWIG_Python_SetConstant(d, "CmdDriveDutyMot2",SWIG_From_int((int)(CmdDriveDutyMot2)));
3656  return SWIG_Py_Void();
3657 }
3658 
3659 
3660 SWIGINTERN PyObject *CmdDriveDuty_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3661  PyObject *module;
3662  PyObject *d;
3663  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3664  d = PyModule_GetDict(module);
3665  if (!d) return NULL;
3666  SWIG_Python_SetConstant(d, "CmdDriveDuty",SWIG_From_int((int)(CmdDriveDuty)));
3667  return SWIG_Py_Void();
3668 }
3669 
3670 
3671 SWIGINTERN PyObject *CmdDriveQMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3672  PyObject *module;
3673  PyObject *d;
3674  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3675  d = PyModule_GetDict(module);
3676  if (!d) return NULL;
3677  SWIG_Python_SetConstant(d, "CmdDriveQMot1",SWIG_From_int((int)(CmdDriveQMot1)));
3678  return SWIG_Py_Void();
3679 }
3680 
3681 
3682 SWIGINTERN PyObject *CmdDriveQMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3683  PyObject *module;
3684  PyObject *d;
3685  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3686  d = PyModule_GetDict(module);
3687  if (!d) return NULL;
3688  SWIG_Python_SetConstant(d, "CmdDriveQMot2",SWIG_From_int((int)(CmdDriveQMot2)));
3689  return SWIG_Py_Void();
3690 }
3691 
3692 
3693 SWIGINTERN PyObject *CmdDriveQ_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3694  PyObject *module;
3695  PyObject *d;
3696  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3697  d = PyModule_GetDict(module);
3698  if (!d) return NULL;
3699  SWIG_Python_SetConstant(d, "CmdDriveQ",SWIG_From_int((int)(CmdDriveQ)));
3700  return SWIG_Py_Void();
3701 }
3702 
3703 
3704 SWIGINTERN PyObject *CmdDriveQAccelMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3705  PyObject *module;
3706  PyObject *d;
3707  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3708  d = PyModule_GetDict(module);
3709  if (!d) return NULL;
3710  SWIG_Python_SetConstant(d, "CmdDriveQAccelMot1",SWIG_From_int((int)(CmdDriveQAccelMot1)));
3711  return SWIG_Py_Void();
3712 }
3713 
3714 
3715 SWIGINTERN PyObject *CmdDriveQAccelMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3716  PyObject *module;
3717  PyObject *d;
3718  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3719  d = PyModule_GetDict(module);
3720  if (!d) return NULL;
3721  SWIG_Python_SetConstant(d, "CmdDriveQAccelMot2",SWIG_From_int((int)(CmdDriveQAccelMot2)));
3722  return SWIG_Py_Void();
3723 }
3724 
3725 
3726 SWIGINTERN PyObject *CmdDriveQAccel_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727  PyObject *module;
3728  PyObject *d;
3729  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3730  d = PyModule_GetDict(module);
3731  if (!d) return NULL;
3732  SWIG_Python_SetConstant(d, "CmdDriveQAccel",SWIG_From_int((int)(CmdDriveQAccel)));
3733  return SWIG_Py_Void();
3734 }
3735 
3736 
3737 SWIGINTERN PyObject *CmdBufDriveQDistMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738  PyObject *module;
3739  PyObject *d;
3740  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3741  d = PyModule_GetDict(module);
3742  if (!d) return NULL;
3743  SWIG_Python_SetConstant(d, "CmdBufDriveQDistMot1",SWIG_From_int((int)(CmdBufDriveQDistMot1)));
3744  return SWIG_Py_Void();
3745 }
3746 
3747 
3748 SWIGINTERN PyObject *CmdBufDriveQDistMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3749  PyObject *module;
3750  PyObject *d;
3751  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3752  d = PyModule_GetDict(module);
3753  if (!d) return NULL;
3754  SWIG_Python_SetConstant(d, "CmdBufDriveQDistMot2",SWIG_From_int((int)(CmdBufDriveQDistMot2)));
3755  return SWIG_Py_Void();
3756 }
3757 
3758 
3759 SWIGINTERN PyObject *CmdBufDriveQDist_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3760  PyObject *module;
3761  PyObject *d;
3762  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3763  d = PyModule_GetDict(module);
3764  if (!d) return NULL;
3765  SWIG_Python_SetConstant(d, "CmdBufDriveQDist",SWIG_From_int((int)(CmdBufDriveQDist)));
3766  return SWIG_Py_Void();
3767 }
3768 
3769 
3770 SWIGINTERN PyObject *CmdBufDriveQAccelDistMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3771  PyObject *module;
3772  PyObject *d;
3773  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3774  d = PyModule_GetDict(module);
3775  if (!d) return NULL;
3776  SWIG_Python_SetConstant(d, "CmdBufDriveQAccelDistMot1",SWIG_From_int((int)(CmdBufDriveQAccelDistMot1)));
3777  return SWIG_Py_Void();
3778 }
3779 
3780 
3781 SWIGINTERN PyObject *CmdBufDriveQAccelDistMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3782  PyObject *module;
3783  PyObject *d;
3784  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3785  d = PyModule_GetDict(module);
3786  if (!d) return NULL;
3787  SWIG_Python_SetConstant(d, "CmdBufDriveQAccelDistMot2",SWIG_From_int((int)(CmdBufDriveQAccelDistMot2)));
3788  return SWIG_Py_Void();
3789 }
3790 
3791 
3792 SWIGINTERN PyObject *CmdBufDriveQAccelDist_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3793  PyObject *module;
3794  PyObject *d;
3795  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3796  d = PyModule_GetDict(module);
3797  if (!d) return NULL;
3798  SWIG_Python_SetConstant(d, "CmdBufDriveQAccelDist",SWIG_From_int((int)(CmdBufDriveQAccelDist)));
3799  return SWIG_Py_Void();
3800 }
3801 
3802 
3803 SWIGINTERN PyObject *CmdReadBufLen_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3804  PyObject *module;
3805  PyObject *d;
3806  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3807  d = PyModule_GetDict(module);
3808  if (!d) return NULL;
3809  SWIG_Python_SetConstant(d, "CmdReadBufLen",SWIG_From_int((int)(CmdReadBufLen)));
3810  return SWIG_Py_Void();
3811 }
3812 
3813 
3814 SWIGINTERN PyObject *CmdReadMotorDraw_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815  PyObject *module;
3816  PyObject *d;
3817  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3818  d = PyModule_GetDict(module);
3819  if (!d) return NULL;
3820  SWIG_Python_SetConstant(d, "CmdReadMotorDraw",SWIG_From_int((int)(CmdReadMotorDraw)));
3821  return SWIG_Py_Void();
3822 }
3823 
3824 
3825 SWIGINTERN PyObject *CmdDriveQAccel2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3826  PyObject *module;
3827  PyObject *d;
3828  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3829  d = PyModule_GetDict(module);
3830  if (!d) return NULL;
3831  SWIG_Python_SetConstant(d, "CmdDriveQAccel2",SWIG_From_int((int)(CmdDriveQAccel2)));
3832  return SWIG_Py_Void();
3833 }
3834 
3835 
3836 SWIGINTERN PyObject *CmdBufDriveQAccel2Dist_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3837  PyObject *module;
3838  PyObject *d;
3839  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3840  d = PyModule_GetDict(module);
3841  if (!d) return NULL;
3842  SWIG_Python_SetConstant(d, "CmdBufDriveQAccel2Dist",SWIG_From_int((int)(CmdBufDriveQAccel2Dist)));
3843  return SWIG_Py_Void();
3844 }
3845 
3846 
3847 SWIGINTERN PyObject *CmdReadVelPidMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3848  PyObject *module;
3849  PyObject *d;
3850  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3851  d = PyModule_GetDict(module);
3852  if (!d) return NULL;
3853  SWIG_Python_SetConstant(d, "CmdReadVelPidMot1",SWIG_From_int((int)(CmdReadVelPidMot1)));
3854  return SWIG_Py_Void();
3855 }
3856 
3857 
3858 SWIGINTERN PyObject *CmdReadVelPidMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3859  PyObject *module;
3860  PyObject *d;
3861  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3862  d = PyModule_GetDict(module);
3863  if (!d) return NULL;
3864  SWIG_Python_SetConstant(d, "CmdReadVelPidMot2",SWIG_From_int((int)(CmdReadVelPidMot2)));
3865  return SWIG_Py_Void();
3866 }
3867 
3868 
3869 SWIGINTERN PyObject *CmdSetMainBattCutoffs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3870  PyObject *module;
3871  PyObject *d;
3872  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3873  d = PyModule_GetDict(module);
3874  if (!d) return NULL;
3875  SWIG_Python_SetConstant(d, "CmdSetMainBattCutoffs",SWIG_From_int((int)(CmdSetMainBattCutoffs)));
3876  return SWIG_Py_Void();
3877 }
3878 
3879 
3880 SWIGINTERN PyObject *CmdSetLogicCutoffs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3881  PyObject *module;
3882  PyObject *d;
3883  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3884  d = PyModule_GetDict(module);
3885  if (!d) return NULL;
3886  SWIG_Python_SetConstant(d, "CmdSetLogicCutoffs",SWIG_From_int((int)(CmdSetLogicCutoffs)));
3887  return SWIG_Py_Void();
3888 }
3889 
3890 
3891 SWIGINTERN PyObject *CmdReadMainBattCutoffs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3892  PyObject *module;
3893  PyObject *d;
3894  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3895  d = PyModule_GetDict(module);
3896  if (!d) return NULL;
3897  SWIG_Python_SetConstant(d, "CmdReadMainBattCutoffs",SWIG_From_int((int)(CmdReadMainBattCutoffs)));
3898  return SWIG_Py_Void();
3899 }
3900 
3901 
3902 SWIGINTERN PyObject *CmdReadLogicCutoffs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3903  PyObject *module;
3904  PyObject *d;
3905  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3906  d = PyModule_GetDict(module);
3907  if (!d) return NULL;
3908  SWIG_Python_SetConstant(d, "CmdReadLogicCutoffs",SWIG_From_int((int)(CmdReadLogicCutoffs)));
3909  return SWIG_Py_Void();
3910 }
3911 
3912 
3913 SWIGINTERN PyObject *CmdSetPosPidMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3914  PyObject *module;
3915  PyObject *d;
3916  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3917  d = PyModule_GetDict(module);
3918  if (!d) return NULL;
3919  SWIG_Python_SetConstant(d, "CmdSetPosPidMot1",SWIG_From_int((int)(CmdSetPosPidMot1)));
3920  return SWIG_Py_Void();
3921 }
3922 
3923 
3924 SWIGINTERN PyObject *CmdSetPosPidMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3925  PyObject *module;
3926  PyObject *d;
3927  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3928  d = PyModule_GetDict(module);
3929  if (!d) return NULL;
3930  SWIG_Python_SetConstant(d, "CmdSetPosPidMot2",SWIG_From_int((int)(CmdSetPosPidMot2)));
3931  return SWIG_Py_Void();
3932 }
3933 
3934 
3935 SWIGINTERN PyObject *CmdReadPosPidMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3936  PyObject *module;
3937  PyObject *d;
3938  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3939  d = PyModule_GetDict(module);
3940  if (!d) return NULL;
3941  SWIG_Python_SetConstant(d, "CmdReadPosPidMot1",SWIG_From_int((int)(CmdReadPosPidMot1)));
3942  return SWIG_Py_Void();
3943 }
3944 
3945 
3946 SWIGINTERN PyObject *CmdReadPosPidMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3947  PyObject *module;
3948  PyObject *d;
3949  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3950  d = PyModule_GetDict(module);
3951  if (!d) return NULL;
3952  SWIG_Python_SetConstant(d, "CmdReadPosPidMot2",SWIG_From_int((int)(CmdReadPosPidMot2)));
3953  return SWIG_Py_Void();
3954 }
3955 
3956 
3957 SWIGINTERN PyObject *CmdBufDriveQProfPosMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3958  PyObject *module;
3959  PyObject *d;
3960  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3961  d = PyModule_GetDict(module);
3962  if (!d) return NULL;
3963  SWIG_Python_SetConstant(d, "CmdBufDriveQProfPosMot1",SWIG_From_int((int)(CmdBufDriveQProfPosMot1)));
3964  return SWIG_Py_Void();
3965 }
3966 
3967 
3968 SWIGINTERN PyObject *CmdBufDriveQProfPosMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3969  PyObject *module;
3970  PyObject *d;
3971  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3972  d = PyModule_GetDict(module);
3973  if (!d) return NULL;
3974  SWIG_Python_SetConstant(d, "CmdBufDriveQProfPosMot2",SWIG_From_int((int)(CmdBufDriveQProfPosMot2)));
3975  return SWIG_Py_Void();
3976 }
3977 
3978 
3979 SWIGINTERN PyObject *CmdBufDriveQProfPos_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3980  PyObject *module;
3981  PyObject *d;
3982  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3983  d = PyModule_GetDict(module);
3984  if (!d) return NULL;
3985  SWIG_Python_SetConstant(d, "CmdBufDriveQProfPos",SWIG_From_int((int)(CmdBufDriveQProfPos)));
3986  return SWIG_Py_Void();
3987 }
3988 
3989 
3990 SWIGINTERN PyObject *CmdReadTemp_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3991  PyObject *module;
3992  PyObject *d;
3993  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
3994  d = PyModule_GetDict(module);
3995  if (!d) return NULL;
3996  SWIG_Python_SetConstant(d, "CmdReadTemp",SWIG_From_int((int)(CmdReadTemp)));
3997  return SWIG_Py_Void();
3998 }
3999 
4000 
4001 SWIGINTERN PyObject *CmdReadTemp2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4002  PyObject *module;
4003  PyObject *d;
4004  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4005  d = PyModule_GetDict(module);
4006  if (!d) return NULL;
4007  SWIG_Python_SetConstant(d, "CmdReadTemp2",SWIG_From_int((int)(CmdReadTemp2)));
4008  return SWIG_Py_Void();
4009 }
4010 
4011 
4012 SWIGINTERN PyObject *CmdReadStatus_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4013  PyObject *module;
4014  PyObject *d;
4015  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4016  d = PyModule_GetDict(module);
4017  if (!d) return NULL;
4018  SWIG_Python_SetConstant(d, "CmdReadStatus",SWIG_From_int((int)(CmdReadStatus)));
4019  return SWIG_Py_Void();
4020 }
4021 
4022 
4023 SWIGINTERN PyObject *CmdReadEncoderMode_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4024  PyObject *module;
4025  PyObject *d;
4026  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4027  d = PyModule_GetDict(module);
4028  if (!d) return NULL;
4029  SWIG_Python_SetConstant(d, "CmdReadEncoderMode",SWIG_From_int((int)(CmdReadEncoderMode)));
4030  return SWIG_Py_Void();
4031 }
4032 
4033 
4034 SWIGINTERN PyObject *CmdSetEncoderModeMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4035  PyObject *module;
4036  PyObject *d;
4037  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4038  d = PyModule_GetDict(module);
4039  if (!d) return NULL;
4040  SWIG_Python_SetConstant(d, "CmdSetEncoderModeMot1",SWIG_From_int((int)(CmdSetEncoderModeMot1)));
4041  return SWIG_Py_Void();
4042 }
4043 
4044 
4045 SWIGINTERN PyObject *CmdSetEncoderModeMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4046  PyObject *module;
4047  PyObject *d;
4048  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4049  d = PyModule_GetDict(module);
4050  if (!d) return NULL;
4051  SWIG_Python_SetConstant(d, "CmdSetEncoderModeMot2",SWIG_From_int((int)(CmdSetEncoderModeMot2)));
4052  return SWIG_Py_Void();
4053 }
4054 
4055 
4056 SWIGINTERN PyObject *CmdWriteEEPROM_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4057  PyObject *module;
4058  PyObject *d;
4059  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4060  d = PyModule_GetDict(module);
4061  if (!d) return NULL;
4062  SWIG_Python_SetConstant(d, "CmdWriteEEPROM",SWIG_From_int((int)(CmdWriteEEPROM)));
4063  return SWIG_Py_Void();
4064 }
4065 
4066 
4067 SWIGINTERN PyObject *CmdSetMaxCurrentMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4068  PyObject *module;
4069  PyObject *d;
4070  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4071  d = PyModule_GetDict(module);
4072  if (!d) return NULL;
4073  SWIG_Python_SetConstant(d, "CmdSetMaxCurrentMot1",SWIG_From_int((int)(CmdSetMaxCurrentMot1)));
4074  return SWIG_Py_Void();
4075 }
4076 
4077 
4078 SWIGINTERN PyObject *CmdSetMaxCurrentMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4079  PyObject *module;
4080  PyObject *d;
4081  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4082  d = PyModule_GetDict(module);
4083  if (!d) return NULL;
4084  SWIG_Python_SetConstant(d, "CmdSetMaxCurrentMot2",SWIG_From_int((int)(CmdSetMaxCurrentMot2)));
4085  return SWIG_Py_Void();
4086 }
4087 
4088 
4089 SWIGINTERN PyObject *CmdReadMaxCurrentMot1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4090  PyObject *module;
4091  PyObject *d;
4092  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4093  d = PyModule_GetDict(module);
4094  if (!d) return NULL;
4095  SWIG_Python_SetConstant(d, "CmdReadMaxCurrentMot1",SWIG_From_int((int)(CmdReadMaxCurrentMot1)));
4096  return SWIG_Py_Void();
4097 }
4098 
4099 
4100 SWIGINTERN PyObject *CmdReadMaxCurrentMot2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101  PyObject *module;
4102  PyObject *d;
4103  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4104  d = PyModule_GetDict(module);
4105  if (!d) return NULL;
4106  SWIG_Python_SetConstant(d, "CmdReadMaxCurrentMot2",SWIG_From_int((int)(CmdReadMaxCurrentMot2)));
4107  return SWIG_Py_Void();
4108 }
4109 
4110 
4111 SWIGINTERN PyObject *ParamSpeedMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4112  PyObject *module;
4113  PyObject *d;
4114  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4115  d = PyModule_GetDict(module);
4116  if (!d) return NULL;
4117  SWIG_Python_SetConstant(d, "ParamSpeedMin",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4118  return SWIG_Py_Void();
4119 }
4120 
4121 
4122 SWIGINTERN PyObject *ParamSpeedMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4123  PyObject *module;
4124  PyObject *d;
4125  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4126  d = PyModule_GetDict(module);
4127  if (!d) return NULL;
4128  SWIG_Python_SetConstant(d, "ParamSpeedMax",SWIG_From_unsigned_SS_char((unsigned char)(127)));
4129  return SWIG_Py_Void();
4130 }
4131 
4132 
4133 SWIGINTERN PyObject *ParamStop_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4134  PyObject *module;
4135  PyObject *d;
4136  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4137  d = PyModule_GetDict(module);
4138  if (!d) return NULL;
4139  SWIG_Python_SetConstant(d, "ParamStop",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4140  return SWIG_Py_Void();
4141 }
4142 
4143 
4144 SWIGINTERN PyObject *ParamSpeed7MaxBwd_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4145  PyObject *module;
4146  PyObject *d;
4147  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4148  d = PyModule_GetDict(module);
4149  if (!d) return NULL;
4150  SWIG_Python_SetConstant(d, "ParamSpeed7MaxBwd",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4151  return SWIG_Py_Void();
4152 }
4153 
4154 
4155 SWIGINTERN PyObject *ParamStop7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4156  PyObject *module;
4157  PyObject *d;
4158  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4159  d = PyModule_GetDict(module);
4160  if (!d) return NULL;
4161  SWIG_Python_SetConstant(d, "ParamStop7",SWIG_From_unsigned_SS_char((unsigned char)(64)));
4162  return SWIG_Py_Void();
4163 }
4164 
4165 
4166 SWIGINTERN PyObject *ParamSpeed7MaxFwd_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4167  PyObject *module;
4168  PyObject *d;
4169  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4170  d = PyModule_GetDict(module);
4171  if (!d) return NULL;
4172  SWIG_Python_SetConstant(d, "ParamSpeed7MaxFwd",SWIG_From_unsigned_SS_char((unsigned char)(127)));
4173  return SWIG_Py_Void();
4174 }
4175 
4176 
4177 SWIGINTERN PyObject *ParamTurnMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4178  PyObject *module;
4179  PyObject *d;
4180  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4181  d = PyModule_GetDict(module);
4182  if (!d) return NULL;
4183  SWIG_Python_SetConstant(d, "ParamTurnMin",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4184  return SWIG_Py_Void();
4185 }
4186 
4187 
4188 SWIGINTERN PyObject *ParamTurnMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4189  PyObject *module;
4190  PyObject *d;
4191  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4192  d = PyModule_GetDict(module);
4193  if (!d) return NULL;
4194  SWIG_Python_SetConstant(d, "ParamTurnMax",SWIG_From_unsigned_SS_char((unsigned char)(127)));
4195  return SWIG_Py_Void();
4196 }
4197 
4198 
4199 SWIGINTERN PyObject *ParamNoTurn_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4200  PyObject *module;
4201  PyObject *d;
4202  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4203  d = PyModule_GetDict(module);
4204  if (!d) return NULL;
4205  SWIG_Python_SetConstant(d, "ParamNoTurn",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4206  return SWIG_Py_Void();
4207 }
4208 
4209 
4210 SWIGINTERN PyObject *ParamTurn7MaxLeft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4211  PyObject *module;
4212  PyObject *d;
4213  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4214  d = PyModule_GetDict(module);
4215  if (!d) return NULL;
4216  SWIG_Python_SetConstant(d, "ParamTurn7MaxLeft",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4217  return SWIG_Py_Void();
4218 }
4219 
4220 
4221 SWIGINTERN PyObject *ParamNoTurn7_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4222  PyObject *module;
4223  PyObject *d;
4224  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4225  d = PyModule_GetDict(module);
4226  if (!d) return NULL;
4227  SWIG_Python_SetConstant(d, "ParamNoTurn7",SWIG_From_unsigned_SS_char((unsigned char)(64)));
4228  return SWIG_Py_Void();
4229 }
4230 
4231 
4232 SWIGINTERN PyObject *ParamTurn7MaxRight_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4233  PyObject *module;
4234  PyObject *d;
4235  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4236  d = PyModule_GetDict(module);
4237  if (!d) return NULL;
4238  SWIG_Python_SetConstant(d, "ParamTurn7MaxRight",SWIG_From_unsigned_SS_char((unsigned char)(127)));
4239  return SWIG_Py_Void();
4240 }
4241 
4242 
4243 SWIGINTERN PyObject *ParamDutyCycleMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4244  PyObject *module;
4245  PyObject *d;
4246  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4247  d = PyModule_GetDict(module);
4248  if (!d) return NULL;
4249  SWIG_Python_SetConstant(d, "ParamDutyCycleMin",SWIG_From_int((int)(-32767)));
4250  return SWIG_Py_Void();
4251 }
4252 
4253 
4254 SWIGINTERN PyObject *ParamDutyCycleStop_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4255  PyObject *module;
4256  PyObject *d;
4257  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4258  d = PyModule_GetDict(module);
4259  if (!d) return NULL;
4260  SWIG_Python_SetConstant(d, "ParamDutyCycleStop",SWIG_From_int((int)(0)));
4261  return SWIG_Py_Void();
4262 }
4263 
4264 
4265 SWIGINTERN PyObject *ParamDutyCycleMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4266  PyObject *module;
4267  PyObject *d;
4268  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4269  d = PyModule_GetDict(module);
4270  if (!d) return NULL;
4271  SWIG_Python_SetConstant(d, "ParamDutyCycleMax",SWIG_From_int((int)(32767)));
4272  return SWIG_Py_Void();
4273 }
4274 
4275 
4276 SWIGINTERN PyObject *ParamVerLen_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4277  PyObject *module;
4278  PyObject *d;
4279  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4280  d = PyModule_GetDict(module);
4281  if (!d) return NULL;
4282  SWIG_Python_SetConstant(d, "ParamVerLen",SWIG_From_size_t((size_t)(48)));
4283  return SWIG_Py_Void();
4284 }
4285 
4286 
4287 SWIGINTERN PyObject *ParamVerLenMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4288  PyObject *module;
4289  PyObject *d;
4290  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4291  d = PyModule_GetDict(module);
4292  if (!d) return NULL;
4293  SWIG_Python_SetConstant(d, "ParamVerLenMin",SWIG_From_size_t((size_t)(4)));
4294  return SWIG_Py_Void();
4295 }
4296 
4297 
4298 SWIGINTERN PyObject *ParamVoltScale_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299  PyObject *module;
4300  PyObject *d;
4301  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4302  d = PyModule_GetDict(module);
4303  if (!d) return NULL;
4304  SWIG_Python_SetConstant(d, "ParamVoltScale",SWIG_From_double((double)(0.1)));
4305  return SWIG_Py_Void();
4306 }
4307 
4308 
4309 SWIGINTERN PyObject *ParamVoltMainMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4310  PyObject *module;
4311  PyObject *d;
4312  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4313  d = PyModule_GetDict(module);
4314  if (!d) return NULL;
4315  SWIG_Python_SetConstant(d, "ParamVoltMainMin",SWIG_From_double((double)(6.0)));
4316  return SWIG_Py_Void();
4317 }
4318 
4319 
4320 SWIGINTERN PyObject *ParamVoltLogicMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4321  PyObject *module;
4322  PyObject *d;
4323  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4324  d = PyModule_GetDict(module);
4325  if (!d) return NULL;
4326  SWIG_Python_SetConstant(d, "ParamVoltLogicMin",SWIG_From_double((double)(5.5)));
4327  return SWIG_Py_Void();
4328 }
4329 
4330 
4331 SWIGINTERN PyObject *ParamVoltMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4332  PyObject *module;
4333  PyObject *d;
4334  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4335  d = PyModule_GetDict(module);
4336  if (!d) return NULL;
4337  SWIG_Python_SetConstant(d, "ParamVoltMax",SWIG_From_double((double)(34.0)));
4338  return SWIG_Py_Void();
4339 }
4340 
4341 
4342 SWIGINTERN PyObject *ParamAmpScale_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4343  PyObject *module;
4344  PyObject *d;
4345  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4346  d = PyModule_GetDict(module);
4347  if (!d) return NULL;
4348  SWIG_Python_SetConstant(d, "ParamAmpScale",SWIG_From_double((double)(0.01)));
4349  return SWIG_Py_Void();
4350 }
4351 
4352 
4353 SWIGINTERN PyObject *ParamAmpMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4354  PyObject *module;
4355  PyObject *d;
4356  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4357  d = PyModule_GetDict(module);
4358  if (!d) return NULL;
4359  SWIG_Python_SetConstant(d, "ParamAmpMin",SWIG_From_double((double)(0.0)));
4360  return SWIG_Py_Void();
4361 }
4362 
4363 
4364 SWIGINTERN PyObject *ParamAmpMinSane_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4365  PyObject *module;
4366  PyObject *d;
4367  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4368  d = PyModule_GetDict(module);
4369  if (!d) return NULL;
4370  SWIG_Python_SetConstant(d, "ParamAmpMinSane",SWIG_From_double((double)(0.5)));
4371  return SWIG_Py_Void();
4372 }
4373 
4374 
4375 SWIGINTERN PyObject *ParamAmpMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4376  PyObject *module;
4377  PyObject *d;
4378  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4379  d = PyModule_GetDict(module);
4380  if (!d) return NULL;
4381  SWIG_Python_SetConstant(d, "ParamAmpMax",SWIG_From_double((double)(15.0)));
4382  return SWIG_Py_Void();
4383 }
4384 
4385 
4386 SWIGINTERN PyObject *ParamVoltMinMainMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4387  PyObject *module;
4388  PyObject *d;
4389  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4390  d = PyModule_GetDict(module);
4391  if (!d) return NULL;
4392  SWIG_Python_SetConstant(d, "ParamVoltMinMainMin",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4393  return SWIG_Py_Void();
4394 }
4395 
4396 
4397 SWIGINTERN PyObject *ParamVoltMinMainMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4398  PyObject *module;
4399  PyObject *d;
4400  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4401  d = PyModule_GetDict(module);
4402  if (!d) return NULL;
4403  SWIG_Python_SetConstant(d, "ParamVoltMinMainMax",SWIG_From_unsigned_SS_char((unsigned char)(120)));
4404  return SWIG_Py_Void();
4405 }
4406 
4407 
4408 SWIGINTERN PyObject *ParamVoltMinMainOff_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4409  PyObject *module;
4410  PyObject *d;
4411  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4412  d = PyModule_GetDict(module);
4413  if (!d) return NULL;
4414  SWIG_Python_SetConstant(d, "ParamVoltMinMainOff",SWIG_From_double((double)(6.0)));
4415  return SWIG_Py_Void();
4416 }
4417 
4418 
4419 SWIGINTERN PyObject *ParamVotlMinMainDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4420  PyObject *module;
4421  PyObject *d;
4422  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4423  d = PyModule_GetDict(module);
4424  if (!d) return NULL;
4425  SWIG_Python_SetConstant(d, "ParamVotlMinMainDft",SWIG_From_double((double)(6.0)));
4426  return SWIG_Py_Void();
4427 }
4428 
4429 
4430 SWIGINTERN PyObject *ParamVoltMaxMainMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431  PyObject *module;
4432  PyObject *d;
4433  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4434  d = PyModule_GetDict(module);
4435  if (!d) return NULL;
4436  SWIG_Python_SetConstant(d, "ParamVoltMaxMainMin",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4437  return SWIG_Py_Void();
4438 }
4439 
4440 
4441 SWIGINTERN PyObject *ParamVoltMaxMainMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4442  PyObject *module;
4443  PyObject *d;
4444  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4445  d = PyModule_GetDict(module);
4446  if (!d) return NULL;
4447  SWIG_Python_SetConstant(d, "ParamVoltMaxMainMax",SWIG_From_unsigned_SS_char((unsigned char)(154)));
4448  return SWIG_Py_Void();
4449 }
4450 
4451 
4452 SWIGINTERN PyObject *ParamVoltMinLogicMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4453  PyObject *module;
4454  PyObject *d;
4455  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4456  d = PyModule_GetDict(module);
4457  if (!d) return NULL;
4458  SWIG_Python_SetConstant(d, "ParamVoltMinLogicMin",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4459  return SWIG_Py_Void();
4460 }
4461 
4462 
4463 SWIGINTERN PyObject *ParamVoltMinLogicMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464  PyObject *module;
4465  PyObject *d;
4466  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4467  d = PyModule_GetDict(module);
4468  if (!d) return NULL;
4469  SWIG_Python_SetConstant(d, "ParamVoltMinLogicMax",SWIG_From_unsigned_SS_char((unsigned char)(140)));
4470  return SWIG_Py_Void();
4471 }
4472 
4473 
4474 SWIGINTERN PyObject *ParamVoltMinLogicOff_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4475  PyObject *module;
4476  PyObject *d;
4477  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4478  d = PyModule_GetDict(module);
4479  if (!d) return NULL;
4480  SWIG_Python_SetConstant(d, "ParamVoltMinLogicOff",SWIG_From_double((double)(6.0)));
4481  return SWIG_Py_Void();
4482 }
4483 
4484 
4485 SWIGINTERN PyObject *ParamVoltMaxLogicMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486  PyObject *module;
4487  PyObject *d;
4488  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4489  d = PyModule_GetDict(module);
4490  if (!d) return NULL;
4491  SWIG_Python_SetConstant(d, "ParamVoltMaxLogicMin",SWIG_From_unsigned_SS_char((unsigned char)(30)));
4492  return SWIG_Py_Void();
4493 }
4494 
4495 
4496 SWIGINTERN PyObject *ParamVoltMaxLogicMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497  PyObject *module;
4498  PyObject *d;
4499  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4500  d = PyModule_GetDict(module);
4501  if (!d) return NULL;
4502  SWIG_Python_SetConstant(d, "ParamVoltMaxLogicMax",SWIG_From_unsigned_SS_char((unsigned char)(175)));
4503  return SWIG_Py_Void();
4504 }
4505 
4506 
4507 SWIGINTERN PyObject *ParamVoltMinS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4508  PyObject *module;
4509  PyObject *d;
4510  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4511  d = PyModule_GetDict(module);
4512  if (!d) return NULL;
4513  SWIG_Python_SetConstant(d, "ParamVoltMinS",SWIG_From_double((double)(5.0)));
4514  return SWIG_Py_Void();
4515 }
4516 
4517 
4518 SWIGINTERN PyObject *ParamVoltMaxS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4519  PyObject *module;
4520  PyObject *d;
4521  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4522  d = PyModule_GetDict(module);
4523  if (!d) return NULL;
4524  SWIG_Python_SetConstant(d, "ParamVoltMaxS",SWIG_From_double((double)(5.12)));
4525  return SWIG_Py_Void();
4526 }
4527 
4528 
4529 SWIGINTERN PyObject *ParamVoltSensedS_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4530  PyObject *module;
4531  PyObject *d;
4532  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4533  d = PyModule_GetDict(module);
4534  if (!d) return NULL;
4535  SWIG_Python_SetConstant(d, "ParamVoltSensedS",SWIG_From_double((double)(0.1)));
4536  return SWIG_Py_Void();
4537 }
4538 
4539 
4540 SWIGINTERN PyObject *ParamTempScale_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4541  PyObject *module;
4542  PyObject *d;
4543  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4544  d = PyModule_GetDict(module);
4545  if (!d) return NULL;
4546  SWIG_Python_SetConstant(d, "ParamTempScale",SWIG_From_double((double)(0.1)));
4547  return SWIG_Py_Void();
4548 }
4549 
4550 
4551 SWIGINTERN PyObject *ParamStatusNormal_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4552  PyObject *module;
4553  PyObject *d;
4554  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4555  d = PyModule_GetDict(module);
4556  if (!d) return NULL;
4557  SWIG_Python_SetConstant(d, "ParamStatusNormal",SWIG_From_int((int)(ParamStatusNormal)));
4558  return SWIG_Py_Void();
4559 }
4560 
4561 
4562 SWIGINTERN PyObject *ParamStatusWarnMot1OverCur_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4563  PyObject *module;
4564  PyObject *d;
4565  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4566  d = PyModule_GetDict(module);
4567  if (!d) return NULL;
4568  SWIG_Python_SetConstant(d, "ParamStatusWarnMot1OverCur",SWIG_From_int((int)(ParamStatusWarnMot1OverCur)));
4569  return SWIG_Py_Void();
4570 }
4571 
4572 
4573 SWIGINTERN PyObject *ParamStatusWarnMot2OverCur_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4574  PyObject *module;
4575  PyObject *d;
4576  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4577  d = PyModule_GetDict(module);
4578  if (!d) return NULL;
4579  SWIG_Python_SetConstant(d, "ParamStatusWarnMot2OverCur",SWIG_From_int((int)(ParamStatusWarnMot2OverCur)));
4580  return SWIG_Py_Void();
4581 }
4582 
4583 
4584 SWIGINTERN PyObject *ParamStatusEStopped_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4585  PyObject *module;
4586  PyObject *d;
4587  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4588  d = PyModule_GetDict(module);
4589  if (!d) return NULL;
4590  SWIG_Python_SetConstant(d, "ParamStatusEStopped",SWIG_From_int((int)(ParamStatusEStopped)));
4591  return SWIG_Py_Void();
4592 }
4593 
4594 
4595 SWIGINTERN PyObject *ParamStatusErrTemp_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4596  PyObject *module;
4597  PyObject *d;
4598  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4599  d = PyModule_GetDict(module);
4600  if (!d) return NULL;
4601  SWIG_Python_SetConstant(d, "ParamStatusErrTemp",SWIG_From_int((int)(ParamStatusErrTemp)));
4602  return SWIG_Py_Void();
4603 }
4604 
4605 
4606 SWIGINTERN PyObject *ParamStatusErrTemp2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4607  PyObject *module;
4608  PyObject *d;
4609  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4610  d = PyModule_GetDict(module);
4611  if (!d) return NULL;
4612  SWIG_Python_SetConstant(d, "ParamStatusErrTemp2",SWIG_From_int((int)(ParamStatusErrTemp2)));
4613  return SWIG_Py_Void();
4614 }
4615 
4616 
4617 SWIGINTERN PyObject *ParamStatusErrMainBattHigh_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4618  PyObject *module;
4619  PyObject *d;
4620  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4621  d = PyModule_GetDict(module);
4622  if (!d) return NULL;
4623  SWIG_Python_SetConstant(d, "ParamStatusErrMainBattHigh",SWIG_From_int((int)(ParamStatusErrMainBattHigh)));
4624  return SWIG_Py_Void();
4625 }
4626 
4627 
4628 SWIGINTERN PyObject *ParamStatusErrLogicBattHigh_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4629  PyObject *module;
4630  PyObject *d;
4631  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4632  d = PyModule_GetDict(module);
4633  if (!d) return NULL;
4634  SWIG_Python_SetConstant(d, "ParamStatusErrLogicBattHigh",SWIG_From_int((int)(ParamStatusErrLogicBattHigh)));
4635  return SWIG_Py_Void();
4636 }
4637 
4638 
4639 SWIGINTERN PyObject *ParamStatusErrLogicBattLow_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4640  PyObject *module;
4641  PyObject *d;
4642  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4643  d = PyModule_GetDict(module);
4644  if (!d) return NULL;
4645  SWIG_Python_SetConstant(d, "ParamStatusErrLogicBattLow",SWIG_From_int((int)(ParamStatusErrLogicBattLow)));
4646  return SWIG_Py_Void();
4647 }
4648 
4649 
4650 SWIGINTERN PyObject *ParamStatusErrMot1Fault_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4651  PyObject *module;
4652  PyObject *d;
4653  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4654  d = PyModule_GetDict(module);
4655  if (!d) return NULL;
4656  SWIG_Python_SetConstant(d, "ParamStatusErrMot1Fault",SWIG_From_int((int)(ParamStatusErrMot1Fault)));
4657  return SWIG_Py_Void();
4658 }
4659 
4660 
4661 SWIGINTERN PyObject *ParamStatusErrMot2Fault_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4662  PyObject *module;
4663  PyObject *d;
4664  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4665  d = PyModule_GetDict(module);
4666  if (!d) return NULL;
4667  SWIG_Python_SetConstant(d, "ParamStatusErrMot2Fault",SWIG_From_int((int)(ParamStatusErrMot2Fault)));
4668  return SWIG_Py_Void();
4669 }
4670 
4671 
4672 SWIGINTERN PyObject *ParamStatusWarnMainBattHigh_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4673  PyObject *module;
4674  PyObject *d;
4675  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4676  d = PyModule_GetDict(module);
4677  if (!d) return NULL;
4678  SWIG_Python_SetConstant(d, "ParamStatusWarnMainBattHigh",SWIG_From_int((int)(ParamStatusWarnMainBattHigh)));
4679  return SWIG_Py_Void();
4680 }
4681 
4682 
4683 SWIGINTERN PyObject *ParamStatusWarnMainBattLow_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4684  PyObject *module;
4685  PyObject *d;
4686  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4687  d = PyModule_GetDict(module);
4688  if (!d) return NULL;
4689  SWIG_Python_SetConstant(d, "ParamStatusWarnMainBattLow",SWIG_From_int((int)(ParamStatusWarnMainBattLow)));
4690  return SWIG_Py_Void();
4691 }
4692 
4693 
4694 SWIGINTERN PyObject *ParamStatusWarnTemp_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4695  PyObject *module;
4696  PyObject *d;
4697  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4698  d = PyModule_GetDict(module);
4699  if (!d) return NULL;
4700  SWIG_Python_SetConstant(d, "ParamStatusWarnTemp",SWIG_From_int((int)(ParamStatusWarnTemp)));
4701  return SWIG_Py_Void();
4702 }
4703 
4704 
4705 SWIGINTERN PyObject *ParamStatusWarnTemp2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706  PyObject *module;
4707  PyObject *d;
4708  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4709  d = PyModule_GetDict(module);
4710  if (!d) return NULL;
4711  SWIG_Python_SetConstant(d, "ParamStatusWarnTemp2",SWIG_From_int((int)(ParamStatusWarnTemp2)));
4712  return SWIG_Py_Void();
4713 }
4714 
4715 
4716 SWIGINTERN PyObject *ParamStatusMot1Home_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4717  PyObject *module;
4718  PyObject *d;
4719  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4720  d = PyModule_GetDict(module);
4721  if (!d) return NULL;
4722  SWIG_Python_SetConstant(d, "ParamStatusMot1Home",SWIG_From_int((int)(ParamStatusMot1Home)));
4723  return SWIG_Py_Void();
4724 }
4725 
4726 
4727 SWIGINTERN PyObject *ParamStatusMot2Home_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728  PyObject *module;
4729  PyObject *d;
4730  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4731  d = PyModule_GetDict(module);
4732  if (!d) return NULL;
4733  SWIG_Python_SetConstant(d, "ParamStatusMot2Home",SWIG_From_int((int)(ParamStatusMot2Home)));
4734  return SWIG_Py_Void();
4735 }
4736 
4737 
4738 SWIGINTERN PyObject *ParamEncModeRCAnalogBit_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739  PyObject *module;
4740  PyObject *d;
4741  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4742  d = PyModule_GetDict(module);
4743  if (!d) return NULL;
4744  SWIG_Python_SetConstant(d, "ParamEncModeRCAnalogBit",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
4745  return SWIG_Py_Void();
4746 }
4747 
4748 
4749 SWIGINTERN PyObject *ParamEncModeRCAnalogDis_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4750  PyObject *module;
4751  PyObject *d;
4752  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4753  d = PyModule_GetDict(module);
4754  if (!d) return NULL;
4755  SWIG_Python_SetConstant(d, "ParamEncModeRCAnalogDis",SWIG_From_unsigned_SS_char((unsigned char)(0x00)));
4756  return SWIG_Py_Void();
4757 }
4758 
4759 
4760 SWIGINTERN PyObject *ParamEncModeRCAnalogEn_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4761  PyObject *module;
4762  PyObject *d;
4763  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4764  d = PyModule_GetDict(module);
4765  if (!d) return NULL;
4766  SWIG_Python_SetConstant(d, "ParamEncModeRCAnalogEn",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
4767  return SWIG_Py_Void();
4768 }
4769 
4770 
4771 SWIGINTERN PyObject *ParamEncModeQuadAbsBit_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772  PyObject *module;
4773  PyObject *d;
4774  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4775  d = PyModule_GetDict(module);
4776  if (!d) return NULL;
4777  SWIG_Python_SetConstant(d, "ParamEncModeQuadAbsBit",SWIG_From_unsigned_SS_char((unsigned char)(0x01)));
4778  return SWIG_Py_Void();
4779 }
4780 
4781 
4782 SWIGINTERN PyObject *ParamEncModeQuad_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4783  PyObject *module;
4784  PyObject *d;
4785  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4786  d = PyModule_GetDict(module);
4787  if (!d) return NULL;
4788  SWIG_Python_SetConstant(d, "ParamEncModeQuad",SWIG_From_unsigned_SS_char((unsigned char)(0x00)));
4789  return SWIG_Py_Void();
4790 }
4791 
4792 
4793 SWIGINTERN PyObject *ParamEncModeAbs_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4794  PyObject *module;
4795  PyObject *d;
4796  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4797  d = PyModule_GetDict(module);
4798  if (!d) return NULL;
4799  SWIG_Python_SetConstant(d, "ParamEncModeAbs",SWIG_From_unsigned_SS_char((unsigned char)(0x01)));
4800  return SWIG_Py_Void();
4801 }
4802 
4803 
4804 SWIGINTERN PyObject *ParamEncQuadMin_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805  PyObject *module;
4806  PyObject *d;
4807  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4808  d = PyModule_GetDict(module);
4809  if (!d) return NULL;
4810  SWIG_Python_SetConstant(d, "ParamEncQuadMin",SWIG_From_long_SS_long((long long)(0)));
4811  return SWIG_Py_Void();
4812 }
4813 
4814 
4815 SWIGINTERN PyObject *ParamEncQuadMax_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816  PyObject *module;
4817  PyObject *d;
4818  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4819  d = PyModule_GetDict(module);
4820  if (!d) return NULL;
4821  SWIG_Python_SetConstant(d, "ParamEncQuadMax",SWIG_From_long_SS_long((long long)(4294967295LL)));
4822  return SWIG_Py_Void();
4823 }
4824 
4825 
4826 SWIGINTERN PyObject *ParamEncStatusUnderFlow_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4827  PyObject *module;
4828  PyObject *d;
4829  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4830  d = PyModule_GetDict(module);
4831  if (!d) return NULL;
4832  SWIG_Python_SetConstant(d, "ParamEncStatusUnderFlow",SWIG_From_int((int)(ParamEncStatusUnderFlow)));
4833  return SWIG_Py_Void();
4834 }
4835 
4836 
4837 SWIGINTERN PyObject *ParamEncStatusDirBackward_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838  PyObject *module;
4839  PyObject *d;
4840  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4841  d = PyModule_GetDict(module);
4842  if (!d) return NULL;
4843  SWIG_Python_SetConstant(d, "ParamEncStatusDirBackward",SWIG_From_int((int)(ParamEncStatusDirBackward)));
4844  return SWIG_Py_Void();
4845 }
4846 
4847 
4848 SWIGINTERN PyObject *ParamEncStatusOverFlow_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4849  PyObject *module;
4850  PyObject *d;
4851  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4852  d = PyModule_GetDict(module);
4853  if (!d) return NULL;
4854  SWIG_Python_SetConstant(d, "ParamEncStatusOverFlow",SWIG_From_int((int)(ParamEncStatusOverFlow)));
4855  return SWIG_Py_Void();
4856 }
4857 
4858 
4859 SWIGINTERN PyObject *ParamVelPidQppsDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4860  PyObject *module;
4861  PyObject *d;
4862  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4863  d = PyModule_GetDict(module);
4864  if (!d) return NULL;
4865  SWIG_Python_SetConstant(d, "ParamVelPidQppsDft",SWIG_From_long((long)(44000)));
4866  return SWIG_Py_Void();
4867 }
4868 
4869 
4870 SWIGINTERN PyObject *ParamVelPidPDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4871  PyObject *module;
4872  PyObject *d;
4873  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4874  d = PyModule_GetDict(module);
4875  if (!d) return NULL;
4876  SWIG_Python_SetConstant(d, "ParamVelPidPDft",SWIG_From_long((long)(0x00010000)));
4877  return SWIG_Py_Void();
4878 }
4879 
4880 
4881 SWIGINTERN PyObject *ParamVelPidIDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4882  PyObject *module;
4883  PyObject *d;
4884  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4885  d = PyModule_GetDict(module);
4886  if (!d) return NULL;
4887  SWIG_Python_SetConstant(d, "ParamVelPidIDft",SWIG_From_long((long)(0x00008000)));
4888  return SWIG_Py_Void();
4889 }
4890 
4891 
4892 SWIGINTERN PyObject *ParamVelPidDDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893  PyObject *module;
4894  PyObject *d;
4895  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4896  d = PyModule_GetDict(module);
4897  if (!d) return NULL;
4898  SWIG_Python_SetConstant(d, "ParamVelPidDDft",SWIG_From_long((long)(0x00004000)));
4899  return SWIG_Py_Void();
4900 }
4901 
4902 
4903 SWIGINTERN PyObject *ParamVelPidCvt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4904  PyObject *module;
4905  PyObject *d;
4906  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4907  d = PyModule_GetDict(module);
4908  if (!d) return NULL;
4909  SWIG_Python_SetConstant(d, "ParamVelPidCvt",SWIG_From_long((long)(0x00010000)));
4910  return SWIG_Py_Void();
4911 }
4912 
4913 
4914 SWIGINTERN PyObject *ParamPosPidPDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4915  PyObject *module;
4916  PyObject *d;
4917  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4918  d = PyModule_GetDict(module);
4919  if (!d) return NULL;
4920  SWIG_Python_SetConstant(d, "ParamPosPidPDft",SWIG_From_long((long)(0)));
4921  return SWIG_Py_Void();
4922 }
4923 
4924 
4925 SWIGINTERN PyObject *ParamPosPidIDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4926  PyObject *module;
4927  PyObject *d;
4928  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4929  d = PyModule_GetDict(module);
4930  if (!d) return NULL;
4931  SWIG_Python_SetConstant(d, "ParamPosPidIDft",SWIG_From_long((long)(0)));
4932  return SWIG_Py_Void();
4933 }
4934 
4935 
4936 SWIGINTERN PyObject *ParamPosPidDDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4937  PyObject *module;
4938  PyObject *d;
4939  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4940  d = PyModule_GetDict(module);
4941  if (!d) return NULL;
4942  SWIG_Python_SetConstant(d, "ParamPosPidDDft",SWIG_From_long((long)(0)));
4943  return SWIG_Py_Void();
4944 }
4945 
4946 
4947 SWIGINTERN PyObject *ParamPosPidMaxIDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4948  PyObject *module;
4949  PyObject *d;
4950  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4951  d = PyModule_GetDict(module);
4952  if (!d) return NULL;
4953  SWIG_Python_SetConstant(d, "ParamPosPidMaxIDft",SWIG_From_long((long)(0)));
4954  return SWIG_Py_Void();
4955 }
4956 
4957 
4958 SWIGINTERN PyObject *ParamPosPidDeadzoneDft_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4959  PyObject *module;
4960  PyObject *d;
4961  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4962  d = PyModule_GetDict(module);
4963  if (!d) return NULL;
4964  SWIG_Python_SetConstant(d, "ParamPosPidDeadzoneDft",SWIG_From_long((long)(0)));
4965  return SWIG_Py_Void();
4966 }
4967 
4968 
4969 SWIGINTERN PyObject *ParamPosPidMinPos_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970  PyObject *module;
4971  PyObject *d;
4972  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4973  d = PyModule_GetDict(module);
4974  if (!d) return NULL;
4975  SWIG_Python_SetConstant(d, "ParamPosPidMinPos",SWIG_From_long((long)(0)));
4976  return SWIG_Py_Void();
4977 }
4978 
4979 
4980 SWIGINTERN PyObject *ParamPosPidMaxPos_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4981  PyObject *module;
4982  PyObject *d;
4983  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4984  d = PyModule_GetDict(module);
4985  if (!d) return NULL;
4986  SWIG_Python_SetConstant(d, "ParamPosPidMaxPos",SWIG_From_long((long)(0)));
4987  return SWIG_Py_Void();
4988 }
4989 
4990 
4991 SWIGINTERN PyObject *ParamCmdBufQueue_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992  PyObject *module;
4993  PyObject *d;
4994  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
4995  d = PyModule_GetDict(module);
4996  if (!d) return NULL;
4997  SWIG_Python_SetConstant(d, "ParamCmdBufQueue",SWIG_From_unsigned_SS_char((unsigned char)(0)));
4998  return SWIG_Py_Void();
4999 }
5000 
5001 
5002 SWIGINTERN PyObject *ParamCmdBufPreempt_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5003  PyObject *module;
5004  PyObject *d;
5005  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5006  d = PyModule_GetDict(module);
5007  if (!d) return NULL;
5008  SWIG_Python_SetConstant(d, "ParamCmdBufPreempt",SWIG_From_unsigned_SS_char((unsigned char)(1)));
5009  return SWIG_Py_Void();
5010 }
5011 
5012 
5013 SWIGINTERN PyObject *ParamCmdBufSize_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5014  PyObject *module;
5015  PyObject *d;
5016  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5017  d = PyModule_GetDict(module);
5018  if (!d) return NULL;
5019  SWIG_Python_SetConstant(d, "ParamCmdBufSize",SWIG_From_unsigned_SS_char((unsigned char)(31)));
5020  return SWIG_Py_Void();
5021 }
5022 
5023 
5024 SWIGINTERN PyObject *ParamCmdBufExec_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5025  PyObject *module;
5026  PyObject *d;
5027  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5028  d = PyModule_GetDict(module);
5029  if (!d) return NULL;
5030  SWIG_Python_SetConstant(d, "ParamCmdBufExec",SWIG_From_unsigned_SS_char((unsigned char)(0)));
5031  return SWIG_Py_Void();
5032 }
5033 
5034 
5035 SWIGINTERN PyObject *ParamCmdBufEmpty_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5036  PyObject *module;
5037  PyObject *d;
5038  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5039  d = PyModule_GetDict(module);
5040  if (!d) return NULL;
5041  SWIG_Python_SetConstant(d, "ParamCmdBufEmpty",SWIG_From_unsigned_SS_char((unsigned char)(0x80)));
5042  return SWIG_Py_Void();
5043 }
5044 
5045 
5046 SWIGINTERN PyObject *CmdTimeout_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5047  PyObject *module;
5048  PyObject *d;
5049  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5050  d = PyModule_GetDict(module);
5051  if (!d) return NULL;
5052  SWIG_Python_SetConstant(d, "CmdTimeout",SWIG_From_unsigned_SS_int((unsigned int)(10000)));
5053  return SWIG_Py_Void();
5054 }
5055 
5056 
5057 SWIGINTERN PyObject *RspTimeout_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058  PyObject *module;
5059  PyObject *d;
5060  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5061  d = PyModule_GetDict(module);
5062  if (!d) return NULL;
5063  SWIG_Python_SetConstant(d, "RspTimeout",SWIG_From_unsigned_SS_int((unsigned int)(12000)));
5064  return SWIG_Py_Void();
5065 }
5066 
5067 
5068 SWIGINTERN PyObject *CmdMaxBufLen_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069  PyObject *module;
5070  PyObject *d;
5071  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5072  d = PyModule_GetDict(module);
5073  if (!d) return NULL;
5074  SWIG_Python_SetConstant(d, "CmdMaxBufLen",SWIG_From_int((int)(64)));
5075  return SWIG_Py_Void();
5076 }
5077 
5078 
5079 SWIGINTERN PyObject *RspMaxBufLen_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5080  PyObject *module;
5081  PyObject *d;
5082  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5083  d = PyModule_GetDict(module);
5084  if (!d) return NULL;
5085  SWIG_Python_SetConstant(d, "RspMaxBufLen",SWIG_From_int((int)(64)));
5086  return SWIG_Py_Void();
5087 }
5088 
5089 
5090 SWIGINTERN PyObject *CmdHdrLen_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5091  PyObject *module;
5092  PyObject *d;
5093  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5094  d = PyModule_GetDict(module);
5095  if (!d) return NULL;
5096  SWIG_Python_SetConstant(d, "CmdHdrLen",SWIG_From_int((int)(2)));
5097  return SWIG_Py_Void();
5098 }
5099 
5100 
5101 SWIGINTERN PyObject *FieldPosAddr_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5102  PyObject *module;
5103  PyObject *d;
5104  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5105  d = PyModule_GetDict(module);
5106  if (!d) return NULL;
5107  SWIG_Python_SetConstant(d, "FieldPosAddr",SWIG_From_int((int)(0)));
5108  return SWIG_Py_Void();
5109 }
5110 
5111 
5112 SWIGINTERN PyObject *FieldPosCmd_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113  PyObject *module;
5114  PyObject *d;
5115  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5116  d = PyModule_GetDict(module);
5117  if (!d) return NULL;
5118  SWIG_Python_SetConstant(d, "FieldPosCmd",SWIG_From_int((int)(1)));
5119  return SWIG_Py_Void();
5120 }
5121 
5122 
5123 SWIGINTERN PyObject *Motor1_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5124  PyObject *module;
5125  PyObject *d;
5126  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5127  d = PyModule_GetDict(module);
5128  if (!d) return NULL;
5129  SWIG_Python_SetConstant(d, "Motor1",SWIG_From_int((int)(0)));
5130  return SWIG_Py_Void();
5131 }
5132 
5133 
5134 SWIGINTERN PyObject *Motor2_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5135  PyObject *module;
5136  PyObject *d;
5137  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5138  d = PyModule_GetDict(module);
5139  if (!d) return NULL;
5140  SWIG_Python_SetConstant(d, "Motor2",SWIG_From_int((int)(1)));
5141  return SWIG_Py_Void();
5142 }
5143 
5144 
5145 SWIGINTERN PyObject *NumMotors_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5146  PyObject *module;
5147  PyObject *d;
5148  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5149  d = PyModule_GetDict(module);
5150  if (!d) return NULL;
5151  SWIG_Python_SetConstant(d, "NumMotors",SWIG_From_int((int)(2)));
5152  return SWIG_Py_Void();
5153 }
5154 
5155 
5156 SWIGINTERN PyObject *MotorDirUnknown_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157  PyObject *module;
5158  PyObject *d;
5159  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5160  d = PyModule_GetDict(module);
5161  if (!d) return NULL;
5162  SWIG_Python_SetConstant(d, "MotorDirUnknown",SWIG_From_int((int)(0)));
5163  return SWIG_Py_Void();
5164 }
5165 
5166 
5167 SWIGINTERN PyObject *MotorDirNormal_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5168  PyObject *module;
5169  PyObject *d;
5170  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5171  d = PyModule_GetDict(module);
5172  if (!d) return NULL;
5173  SWIG_Python_SetConstant(d, "MotorDirNormal",SWIG_From_int((int)(1)));
5174  return SWIG_Py_Void();
5175 }
5176 
5177 
5178 SWIGINTERN PyObject *MotorDirReverse_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5179  PyObject *module;
5180  PyObject *d;
5181  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5182  d = PyModule_GetDict(module);
5183  if (!d) return NULL;
5184  SWIG_Python_SetConstant(d, "MotorDirReverse",SWIG_From_int((int)(-1)));
5185  return SWIG_Py_Void();
5186 }
5187 
5188 
5189 SWIGINTERN PyObject *MotorSpeedMaxBackward_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190  PyObject *module;
5191  PyObject *d;
5192  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5193  d = PyModule_GetDict(module);
5194  if (!d) return NULL;
5195  SWIG_Python_SetConstant(d, "MotorSpeedMaxBackward",SWIG_From_int((int)(-127)));
5196  return SWIG_Py_Void();
5197 }
5198 
5199 
5200 SWIGINTERN PyObject *MotorSpeedStop_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5201  PyObject *module;
5202  PyObject *d;
5203  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5204  d = PyModule_GetDict(module);
5205  if (!d) return NULL;
5206  SWIG_Python_SetConstant(d, "MotorSpeedStop",SWIG_From_int((int)(0)));
5207  return SWIG_Py_Void();
5208 }
5209 
5210 
5211 SWIGINTERN PyObject *MotorSpeedMaxForward_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5212  PyObject *module;
5213  PyObject *d;
5214  if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL;
5215  d = PyModule_GetDict(module);
5216  if (!d) return NULL;
5217  SWIG_Python_SetConstant(d, "MotorSpeedMaxForward",SWIG_From_int((int)(127)));
5218  return SWIG_Py_Void();
5219 }
5220 
5221 
5222 static PyMethodDef SwigMethods[] = {
5223  { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
5224  { (char *)"SerBaud2400_swigconstant", SerBaud2400_swigconstant, METH_VARARGS, NULL},
5225  { (char *)"SerBaud9600_swigconstant", SerBaud9600_swigconstant, METH_VARARGS, NULL},
5226  { (char *)"SerBaud19200_swigconstant", SerBaud19200_swigconstant, METH_VARARGS, NULL},
5227  { (char *)"SerBaud38400_swigconstant", SerBaud38400_swigconstant, METH_VARARGS, NULL},
5228  { (char *)"SerBaud115200_swigconstant", SerBaud115200_swigconstant, METH_VARARGS, NULL},
5229  { (char *)"SerBaud230400_swigconstant", SerBaud230400_swigconstant, METH_VARARGS, NULL},
5230  { (char *)"SerBaud460800_swigconstant", SerBaud460800_swigconstant, METH_VARARGS, NULL},
5231  { (char *)"USBBaud1Mbps_swigconstant", USBBaud1Mbps_swigconstant, METH_VARARGS, NULL},
5232  { (char *)"AddrMin_swigconstant", AddrMin_swigconstant, METH_VARARGS, NULL},
5233  { (char *)"AddrMax_swigconstant", AddrMax_swigconstant, METH_VARARGS, NULL},
5234  { (char *)"AddrDft_swigconstant", AddrDft_swigconstant, METH_VARARGS, NULL},
5235  { (char *)"CheckSumMask_swigconstant", CheckSumMask_swigconstant, METH_VARARGS, NULL},
5236  { (char *)"AckReqBit_swigconstant", AckReqBit_swigconstant, METH_VARARGS, NULL},
5237  { (char *)"MsgWithNoCrc_swigconstant", MsgWithNoCrc_swigconstant, METH_VARARGS, NULL},
5238  { (char *)"MsgWithCrc_swigconstant", MsgWithCrc_swigconstant, METH_VARARGS, NULL},
5239  { (char *)"MsgIgnoreCrc_swigconstant", MsgIgnoreCrc_swigconstant, METH_VARARGS, NULL},
5240  { (char *)"MsgLenFixed_swigconstant", MsgLenFixed_swigconstant, METH_VARARGS, NULL},
5241  { (char *)"MsgLenVariable_swigconstant", MsgLenVariable_swigconstant, METH_VARARGS, NULL},
5242  { (char *)"RspAck_swigconstant", RspAck_swigconstant, METH_VARARGS, NULL},
5243  { (char *)"CmdDriveForwardMot1_swigconstant", CmdDriveForwardMot1_swigconstant, METH_VARARGS, NULL},
5244  { (char *)"CmdDriveBackwardMot1_swigconstant", CmdDriveBackwardMot1_swigconstant, METH_VARARGS, NULL},
5245  { (char *)"CmdSetMinMainVolt_swigconstant", CmdSetMinMainVolt_swigconstant, METH_VARARGS, NULL},
5246  { (char *)"CmdSetMaxMainVolt_swigconstant", CmdSetMaxMainVolt_swigconstant, METH_VARARGS, NULL},
5247  { (char *)"CmdDriveForwardMot2_swigconstant", CmdDriveForwardMot2_swigconstant, METH_VARARGS, NULL},
5248  { (char *)"CmdDriveBackwardMot2_swigconstant", CmdDriveBackwardMot2_swigconstant, METH_VARARGS, NULL},
5249  { (char *)"CmdDriveMot1_swigconstant", CmdDriveMot1_swigconstant, METH_VARARGS, NULL},
5250  { (char *)"CmdDriveMot2_swigconstant", CmdDriveMot2_swigconstant, METH_VARARGS, NULL},
5251  { (char *)"CmdMixDriveForward_swigconstant", CmdMixDriveForward_swigconstant, METH_VARARGS, NULL},
5252  { (char *)"CmdMixDriveBackward_swigconstant", CmdMixDriveBackward_swigconstant, METH_VARARGS, NULL},
5253  { (char *)"CmdMixTurnRight_swigconstant", CmdMixTurnRight_swigconstant, METH_VARARGS, NULL},
5254  { (char *)"CmdMixTurnLeft_swigconstant", CmdMixTurnLeft_swigconstant, METH_VARARGS, NULL},
5255  { (char *)"CmdMixDrive_swigconstant", CmdMixDrive_swigconstant, METH_VARARGS, NULL},
5256  { (char *)"CmdMixTurn_swigconstant", CmdMixTurn_swigconstant, METH_VARARGS, NULL},
5257  { (char *)"CmdReadEncoderMot1_swigconstant", CmdReadEncoderMot1_swigconstant, METH_VARARGS, NULL},
5258  { (char *)"CmdReadEncoderMot2_swigconstant", CmdReadEncoderMot2_swigconstant, METH_VARARGS, NULL},
5259  { (char *)"CmdReadSpeedMot1_swigconstant", CmdReadSpeedMot1_swigconstant, METH_VARARGS, NULL},
5260  { (char *)"CmdReadSpeedMot2_swigconstant", CmdReadSpeedMot2_swigconstant, METH_VARARGS, NULL},
5261  { (char *)"CmdResetEncoderCntrs_swigconstant", CmdResetEncoderCntrs_swigconstant, METH_VARARGS, NULL},
5262  { (char *)"CmdReadFwVersion_swigconstant", CmdReadFwVersion_swigconstant, METH_VARARGS, NULL},
5263  { (char *)"CmdSetEncoderReg1_swigconstant", CmdSetEncoderReg1_swigconstant, METH_VARARGS, NULL},
5264  { (char *)"CmdSetEncoderReg2_swigconstant", CmdSetEncoderReg2_swigconstant, METH_VARARGS, NULL},
5265  { (char *)"CmdReadMainBattVolt_swigconstant", CmdReadMainBattVolt_swigconstant, METH_VARARGS, NULL},
5266  { (char *)"CmdReadLogicVolt_swigconstant", CmdReadLogicVolt_swigconstant, METH_VARARGS, NULL},
5267  { (char *)"CmdSetMinLogicVolt_swigconstant", CmdSetMinLogicVolt_swigconstant, METH_VARARGS, NULL},
5268  { (char *)"CmdSetMaxLogicVolt_swigconstant", CmdSetMaxLogicVolt_swigconstant, METH_VARARGS, NULL},
5269  { (char *)"CmdSetVelPidMot1_swigconstant", CmdSetVelPidMot1_swigconstant, METH_VARARGS, NULL},
5270  { (char *)"CmdSetVelPidMot2_swigconstant", CmdSetVelPidMot2_swigconstant, METH_VARARGS, NULL},
5271  { (char *)"CmdRead125SpeedMot1_swigconstant", CmdRead125SpeedMot1_swigconstant, METH_VARARGS, NULL},
5272  { (char *)"CmdRead125SpeedMot2_swigconstant", CmdRead125SpeedMot2_swigconstant, METH_VARARGS, NULL},
5273  { (char *)"CmdDriveDutyMot1_swigconstant", CmdDriveDutyMot1_swigconstant, METH_VARARGS, NULL},
5274  { (char *)"CmdDriveDutyMot2_swigconstant", CmdDriveDutyMot2_swigconstant, METH_VARARGS, NULL},
5275  { (char *)"CmdDriveDuty_swigconstant", CmdDriveDuty_swigconstant, METH_VARARGS, NULL},
5276  { (char *)"CmdDriveQMot1_swigconstant", CmdDriveQMot1_swigconstant, METH_VARARGS, NULL},
5277  { (char *)"CmdDriveQMot2_swigconstant", CmdDriveQMot2_swigconstant, METH_VARARGS, NULL},
5278  { (char *)"CmdDriveQ_swigconstant", CmdDriveQ_swigconstant, METH_VARARGS, NULL},
5279  { (char *)"CmdDriveQAccelMot1_swigconstant", CmdDriveQAccelMot1_swigconstant, METH_VARARGS, NULL},
5280  { (char *)"CmdDriveQAccelMot2_swigconstant", CmdDriveQAccelMot2_swigconstant, METH_VARARGS, NULL},
5281  { (char *)"CmdDriveQAccel_swigconstant", CmdDriveQAccel_swigconstant, METH_VARARGS, NULL},
5282  { (char *)"CmdBufDriveQDistMot1_swigconstant", CmdBufDriveQDistMot1_swigconstant, METH_VARARGS, NULL},
5283  { (char *)"CmdBufDriveQDistMot2_swigconstant", CmdBufDriveQDistMot2_swigconstant, METH_VARARGS, NULL},
5284  { (char *)"CmdBufDriveQDist_swigconstant", CmdBufDriveQDist_swigconstant, METH_VARARGS, NULL},
5285  { (char *)"CmdBufDriveQAccelDistMot1_swigconstant", CmdBufDriveQAccelDistMot1_swigconstant, METH_VARARGS, NULL},
5286  { (char *)"CmdBufDriveQAccelDistMot2_swigconstant", CmdBufDriveQAccelDistMot2_swigconstant, METH_VARARGS, NULL},
5287  { (char *)"CmdBufDriveQAccelDist_swigconstant", CmdBufDriveQAccelDist_swigconstant, METH_VARARGS, NULL},
5288  { (char *)"CmdReadBufLen_swigconstant", CmdReadBufLen_swigconstant, METH_VARARGS, NULL},
5289  { (char *)"CmdReadMotorDraw_swigconstant", CmdReadMotorDraw_swigconstant, METH_VARARGS, NULL},
5290  { (char *)"CmdDriveQAccel2_swigconstant", CmdDriveQAccel2_swigconstant, METH_VARARGS, NULL},
5291  { (char *)"CmdBufDriveQAccel2Dist_swigconstant", CmdBufDriveQAccel2Dist_swigconstant, METH_VARARGS, NULL},
5292  { (char *)"CmdReadVelPidMot1_swigconstant", CmdReadVelPidMot1_swigconstant, METH_VARARGS, NULL},
5293  { (char *)"CmdReadVelPidMot2_swigconstant", CmdReadVelPidMot2_swigconstant, METH_VARARGS, NULL},
5294  { (char *)"CmdSetMainBattCutoffs_swigconstant", CmdSetMainBattCutoffs_swigconstant, METH_VARARGS, NULL},
5295  { (char *)"CmdSetLogicCutoffs_swigconstant", CmdSetLogicCutoffs_swigconstant, METH_VARARGS, NULL},
5296  { (char *)"CmdReadMainBattCutoffs_swigconstant", CmdReadMainBattCutoffs_swigconstant, METH_VARARGS, NULL},
5297  { (char *)"CmdReadLogicCutoffs_swigconstant", CmdReadLogicCutoffs_swigconstant, METH_VARARGS, NULL},
5298  { (char *)"CmdSetPosPidMot1_swigconstant", CmdSetPosPidMot1_swigconstant, METH_VARARGS, NULL},
5299  { (char *)"CmdSetPosPidMot2_swigconstant", CmdSetPosPidMot2_swigconstant, METH_VARARGS, NULL},
5300  { (char *)"CmdReadPosPidMot1_swigconstant", CmdReadPosPidMot1_swigconstant, METH_VARARGS, NULL},
5301  { (char *)"CmdReadPosPidMot2_swigconstant", CmdReadPosPidMot2_swigconstant, METH_VARARGS, NULL},
5302  { (char *)"CmdBufDriveQProfPosMot1_swigconstant", CmdBufDriveQProfPosMot1_swigconstant, METH_VARARGS, NULL},
5303  { (char *)"CmdBufDriveQProfPosMot2_swigconstant", CmdBufDriveQProfPosMot2_swigconstant, METH_VARARGS, NULL},
5304  { (char *)"CmdBufDriveQProfPos_swigconstant", CmdBufDriveQProfPos_swigconstant, METH_VARARGS, NULL},
5305  { (char *)"CmdReadTemp_swigconstant", CmdReadTemp_swigconstant, METH_VARARGS, NULL},
5306  { (char *)"CmdReadTemp2_swigconstant", CmdReadTemp2_swigconstant, METH_VARARGS, NULL},
5307  { (char *)"CmdReadStatus_swigconstant", CmdReadStatus_swigconstant, METH_VARARGS, NULL},
5308  { (char *)"CmdReadEncoderMode_swigconstant", CmdReadEncoderMode_swigconstant, METH_VARARGS, NULL},
5309  { (char *)"CmdSetEncoderModeMot1_swigconstant", CmdSetEncoderModeMot1_swigconstant, METH_VARARGS, NULL},
5310  { (char *)"CmdSetEncoderModeMot2_swigconstant", CmdSetEncoderModeMot2_swigconstant, METH_VARARGS, NULL},
5311  { (char *)"CmdWriteEEPROM_swigconstant", CmdWriteEEPROM_swigconstant, METH_VARARGS, NULL},
5312  { (char *)"CmdSetMaxCurrentMot1_swigconstant", CmdSetMaxCurrentMot1_swigconstant, METH_VARARGS, NULL},
5313  { (char *)"CmdSetMaxCurrentMot2_swigconstant", CmdSetMaxCurrentMot2_swigconstant, METH_VARARGS, NULL},
5314  { (char *)"CmdReadMaxCurrentMot1_swigconstant", CmdReadMaxCurrentMot1_swigconstant, METH_VARARGS, NULL},
5315  { (char *)"CmdReadMaxCurrentMot2_swigconstant", CmdReadMaxCurrentMot2_swigconstant, METH_VARARGS, NULL},
5316  { (char *)"ParamSpeedMin_swigconstant", ParamSpeedMin_swigconstant, METH_VARARGS, NULL},
5317  { (char *)"ParamSpeedMax_swigconstant", ParamSpeedMax_swigconstant, METH_VARARGS, NULL},
5318  { (char *)"ParamStop_swigconstant", ParamStop_swigconstant, METH_VARARGS, NULL},
5319  { (char *)"ParamSpeed7MaxBwd_swigconstant", ParamSpeed7MaxBwd_swigconstant, METH_VARARGS, NULL},
5320  { (char *)"ParamStop7_swigconstant", ParamStop7_swigconstant, METH_VARARGS, NULL},
5321  { (char *)"ParamSpeed7MaxFwd_swigconstant", ParamSpeed7MaxFwd_swigconstant, METH_VARARGS, NULL},
5322  { (char *)"ParamTurnMin_swigconstant", ParamTurnMin_swigconstant, METH_VARARGS, NULL},
5323  { (char *)"ParamTurnMax_swigconstant", ParamTurnMax_swigconstant, METH_VARARGS, NULL},
5324  { (char *)"ParamNoTurn_swigconstant", ParamNoTurn_swigconstant, METH_VARARGS, NULL},
5325  { (char *)"ParamTurn7MaxLeft_swigconstant", ParamTurn7MaxLeft_swigconstant, METH_VARARGS, NULL},
5326  { (char *)"ParamNoTurn7_swigconstant", ParamNoTurn7_swigconstant, METH_VARARGS, NULL},
5327  { (char *)"ParamTurn7MaxRight_swigconstant", ParamTurn7MaxRight_swigconstant, METH_VARARGS, NULL},
5328  { (char *)"ParamDutyCycleMin_swigconstant", ParamDutyCycleMin_swigconstant, METH_VARARGS, NULL},
5329  { (char *)"ParamDutyCycleStop_swigconstant", ParamDutyCycleStop_swigconstant, METH_VARARGS, NULL},
5330  { (char *)"ParamDutyCycleMax_swigconstant", ParamDutyCycleMax_swigconstant, METH_VARARGS, NULL},
5331  { (char *)"ParamVerLen_swigconstant", ParamVerLen_swigconstant, METH_VARARGS, NULL},
5332  { (char *)"ParamVerLenMin_swigconstant", ParamVerLenMin_swigconstant, METH_VARARGS, NULL},
5333  { (char *)"ParamVoltScale_swigconstant", ParamVoltScale_swigconstant, METH_VARARGS, NULL},
5334  { (char *)"ParamVoltMainMin_swigconstant", ParamVoltMainMin_swigconstant, METH_VARARGS, NULL},
5335  { (char *)"ParamVoltLogicMin_swigconstant", ParamVoltLogicMin_swigconstant, METH_VARARGS, NULL},
5336  { (char *)"ParamVoltMax_swigconstant", ParamVoltMax_swigconstant, METH_VARARGS, NULL},
5337  { (char *)"ParamAmpScale_swigconstant", ParamAmpScale_swigconstant, METH_VARARGS, NULL},
5338  { (char *)"ParamAmpMin_swigconstant", ParamAmpMin_swigconstant, METH_VARARGS, NULL},
5339  { (char *)"ParamAmpMinSane_swigconstant", ParamAmpMinSane_swigconstant, METH_VARARGS, NULL},
5340  { (char *)"ParamAmpMax_swigconstant", ParamAmpMax_swigconstant, METH_VARARGS, NULL},
5341  { (char *)"ParamVoltMinMainMin_swigconstant", ParamVoltMinMainMin_swigconstant, METH_VARARGS, NULL},
5342  { (char *)"ParamVoltMinMainMax_swigconstant", ParamVoltMinMainMax_swigconstant, METH_VARARGS, NULL},
5343  { (char *)"ParamVoltMinMainOff_swigconstant", ParamVoltMinMainOff_swigconstant, METH_VARARGS, NULL},
5344  { (char *)"ParamVotlMinMainDft_swigconstant", ParamVotlMinMainDft_swigconstant, METH_VARARGS, NULL},
5345  { (char *)"ParamVoltMaxMainMin_swigconstant", ParamVoltMaxMainMin_swigconstant, METH_VARARGS, NULL},
5346  { (char *)"ParamVoltMaxMainMax_swigconstant", ParamVoltMaxMainMax_swigconstant, METH_VARARGS, NULL},
5347  { (char *)"ParamVoltMinLogicMin_swigconstant", ParamVoltMinLogicMin_swigconstant, METH_VARARGS, NULL},
5348  { (char *)"ParamVoltMinLogicMax_swigconstant", ParamVoltMinLogicMax_swigconstant, METH_VARARGS, NULL},
5349  { (char *)"ParamVoltMinLogicOff_swigconstant", ParamVoltMinLogicOff_swigconstant, METH_VARARGS, NULL},
5350  { (char *)"ParamVoltMaxLogicMin_swigconstant", ParamVoltMaxLogicMin_swigconstant, METH_VARARGS, NULL},
5351  { (char *)"ParamVoltMaxLogicMax_swigconstant", ParamVoltMaxLogicMax_swigconstant, METH_VARARGS, NULL},
5352  { (char *)"ParamVoltMinS_swigconstant", ParamVoltMinS_swigconstant, METH_VARARGS, NULL},
5353  { (char *)"ParamVoltMaxS_swigconstant", ParamVoltMaxS_swigconstant, METH_VARARGS, NULL},
5354  { (char *)"ParamVoltSensedS_swigconstant", ParamVoltSensedS_swigconstant, METH_VARARGS, NULL},
5355  { (char *)"ParamTempScale_swigconstant", ParamTempScale_swigconstant, METH_VARARGS, NULL},
5356  { (char *)"ParamStatusNormal_swigconstant", ParamStatusNormal_swigconstant, METH_VARARGS, NULL},
5357  { (char *)"ParamStatusWarnMot1OverCur_swigconstant", ParamStatusWarnMot1OverCur_swigconstant, METH_VARARGS, NULL},
5358  { (char *)"ParamStatusWarnMot2OverCur_swigconstant", ParamStatusWarnMot2OverCur_swigconstant, METH_VARARGS, NULL},
5359  { (char *)"ParamStatusEStopped_swigconstant", ParamStatusEStopped_swigconstant, METH_VARARGS, NULL},
5360  { (char *)"ParamStatusErrTemp_swigconstant", ParamStatusErrTemp_swigconstant, METH_VARARGS, NULL},
5361  { (char *)"ParamStatusErrTemp2_swigconstant", ParamStatusErrTemp2_swigconstant, METH_VARARGS, NULL},
5362  { (char *)"ParamStatusErrMainBattHigh_swigconstant", ParamStatusErrMainBattHigh_swigconstant, METH_VARARGS, NULL},
5363  { (char *)"ParamStatusErrLogicBattHigh_swigconstant", ParamStatusErrLogicBattHigh_swigconstant, METH_VARARGS, NULL},
5364  { (char *)"ParamStatusErrLogicBattLow_swigconstant", ParamStatusErrLogicBattLow_swigconstant, METH_VARARGS, NULL},
5365  { (char *)"ParamStatusErrMot1Fault_swigconstant", ParamStatusErrMot1Fault_swigconstant, METH_VARARGS, NULL},
5366  { (char *)"ParamStatusErrMot2Fault_swigconstant", ParamStatusErrMot2Fault_swigconstant, METH_VARARGS, NULL},
5367  { (char *)"ParamStatusWarnMainBattHigh_swigconstant", ParamStatusWarnMainBattHigh_swigconstant, METH_VARARGS, NULL},
5368  { (char *)"ParamStatusWarnMainBattLow_swigconstant", ParamStatusWarnMainBattLow_swigconstant, METH_VARARGS, NULL},
5369  { (char *)"ParamStatusWarnTemp_swigconstant", ParamStatusWarnTemp_swigconstant, METH_VARARGS, NULL},
5370  { (char *)"ParamStatusWarnTemp2_swigconstant", ParamStatusWarnTemp2_swigconstant, METH_VARARGS, NULL},
5371  { (char *)"ParamStatusMot1Home_swigconstant", ParamStatusMot1Home_swigconstant, METH_VARARGS, NULL},
5372  { (char *)"ParamStatusMot2Home_swigconstant", ParamStatusMot2Home_swigconstant, METH_VARARGS, NULL},
5373  { (char *)"ParamEncModeRCAnalogBit_swigconstant", ParamEncModeRCAnalogBit_swigconstant, METH_VARARGS, NULL},
5374  { (char *)"ParamEncModeRCAnalogDis_swigconstant", ParamEncModeRCAnalogDis_swigconstant, METH_VARARGS, NULL},
5375  { (char *)"ParamEncModeRCAnalogEn_swigconstant", ParamEncModeRCAnalogEn_swigconstant, METH_VARARGS, NULL},
5376  { (char *)"ParamEncModeQuadAbsBit_swigconstant", ParamEncModeQuadAbsBit_swigconstant, METH_VARARGS, NULL},
5377  { (char *)"ParamEncModeQuad_swigconstant", ParamEncModeQuad_swigconstant, METH_VARARGS, NULL},
5378  { (char *)"ParamEncModeAbs_swigconstant", ParamEncModeAbs_swigconstant, METH_VARARGS, NULL},
5379  { (char *)"ParamEncQuadMin_swigconstant", ParamEncQuadMin_swigconstant, METH_VARARGS, NULL},
5380  { (char *)"ParamEncQuadMax_swigconstant", ParamEncQuadMax_swigconstant, METH_VARARGS, NULL},
5381  { (char *)"ParamEncStatusUnderFlow_swigconstant", ParamEncStatusUnderFlow_swigconstant, METH_VARARGS, NULL},
5382  { (char *)"ParamEncStatusDirBackward_swigconstant", ParamEncStatusDirBackward_swigconstant, METH_VARARGS, NULL},
5383  { (char *)"ParamEncStatusOverFlow_swigconstant", ParamEncStatusOverFlow_swigconstant, METH_VARARGS, NULL},
5384  { (char *)"ParamVelPidQppsDft_swigconstant", ParamVelPidQppsDft_swigconstant, METH_VARARGS, NULL},
5385  { (char *)"ParamVelPidPDft_swigconstant", ParamVelPidPDft_swigconstant, METH_VARARGS, NULL},
5386  { (char *)"ParamVelPidIDft_swigconstant", ParamVelPidIDft_swigconstant, METH_VARARGS, NULL},
5387  { (char *)"ParamVelPidDDft_swigconstant", ParamVelPidDDft_swigconstant, METH_VARARGS, NULL},
5388  { (char *)"ParamVelPidCvt_swigconstant", ParamVelPidCvt_swigconstant, METH_VARARGS, NULL},
5389  { (char *)"ParamPosPidPDft_swigconstant", ParamPosPidPDft_swigconstant, METH_VARARGS, NULL},
5390  { (char *)"ParamPosPidIDft_swigconstant", ParamPosPidIDft_swigconstant, METH_VARARGS, NULL},
5391  { (char *)"ParamPosPidDDft_swigconstant", ParamPosPidDDft_swigconstant, METH_VARARGS, NULL},
5392  { (char *)"ParamPosPidMaxIDft_swigconstant", ParamPosPidMaxIDft_swigconstant, METH_VARARGS, NULL},
5393  { (char *)"ParamPosPidDeadzoneDft_swigconstant", ParamPosPidDeadzoneDft_swigconstant, METH_VARARGS, NULL},
5394  { (char *)"ParamPosPidMinPos_swigconstant", ParamPosPidMinPos_swigconstant, METH_VARARGS, NULL},
5395  { (char *)"ParamPosPidMaxPos_swigconstant", ParamPosPidMaxPos_swigconstant, METH_VARARGS, NULL},
5396  { (char *)"ParamCmdBufQueue_swigconstant", ParamCmdBufQueue_swigconstant, METH_VARARGS, NULL},
5397  { (char *)"ParamCmdBufPreempt_swigconstant", ParamCmdBufPreempt_swigconstant, METH_VARARGS, NULL},
5398  { (char *)"ParamCmdBufSize_swigconstant", ParamCmdBufSize_swigconstant, METH_VARARGS, NULL},
5399  { (char *)"ParamCmdBufExec_swigconstant", ParamCmdBufExec_swigconstant, METH_VARARGS, NULL},
5400  { (char *)"ParamCmdBufEmpty_swigconstant", ParamCmdBufEmpty_swigconstant, METH_VARARGS, NULL},
5401  { (char *)"CmdTimeout_swigconstant", CmdTimeout_swigconstant, METH_VARARGS, NULL},
5402  { (char *)"RspTimeout_swigconstant", RspTimeout_swigconstant, METH_VARARGS, NULL},
5403  { (char *)"CmdMaxBufLen_swigconstant", CmdMaxBufLen_swigconstant, METH_VARARGS, NULL},
5404  { (char *)"RspMaxBufLen_swigconstant", RspMaxBufLen_swigconstant, METH_VARARGS, NULL},
5405  { (char *)"CmdHdrLen_swigconstant", CmdHdrLen_swigconstant, METH_VARARGS, NULL},
5406  { (char *)"FieldPosAddr_swigconstant", FieldPosAddr_swigconstant, METH_VARARGS, NULL},
5407  { (char *)"FieldPosCmd_swigconstant", FieldPosCmd_swigconstant, METH_VARARGS, NULL},
5408  { (char *)"Motor1_swigconstant", Motor1_swigconstant, METH_VARARGS, NULL},
5409  { (char *)"Motor2_swigconstant", Motor2_swigconstant, METH_VARARGS, NULL},
5410  { (char *)"NumMotors_swigconstant", NumMotors_swigconstant, METH_VARARGS, NULL},
5411  { (char *)"MotorDirUnknown_swigconstant", MotorDirUnknown_swigconstant, METH_VARARGS, NULL},
5412  { (char *)"MotorDirNormal_swigconstant", MotorDirNormal_swigconstant, METH_VARARGS, NULL},
5413  { (char *)"MotorDirReverse_swigconstant", MotorDirReverse_swigconstant, METH_VARARGS, NULL},
5414  { (char *)"MotorSpeedMaxBackward_swigconstant", MotorSpeedMaxBackward_swigconstant, METH_VARARGS, NULL},
5415  { (char *)"MotorSpeedStop_swigconstant", MotorSpeedStop_swigconstant, METH_VARARGS, NULL},
5416  { (char *)"MotorSpeedMaxForward_swigconstant", MotorSpeedMaxForward_swigconstant, METH_VARARGS, NULL},
5417  { NULL, NULL, 0, NULL }
5418 };
5419 
5420 
5421 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5422 
5423 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5424 static swig_type_info _swigt__p_int = {"_p_int", "bool_t *|int *", 0, 0, (void*)0, 0};
5425 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte_t *", 0, 0, (void*)0, 0};
5426 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|uint_t *", 0, 0, (void*)0, 0};
5427 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|ulong_t *", 0, 0, (void*)0, 0};
5428 static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ushort_t *", 0, 0, (void*)0, 0};
5429 
5430 static swig_type_info *swig_type_initial[] = {
5431  &_swigt__p_char,
5432  &_swigt__p_int,
5433  &_swigt__p_unsigned_char,
5434  &_swigt__p_unsigned_int,
5435  &_swigt__p_unsigned_long,
5436  &_swigt__p_unsigned_short,
5437 };
5438 
5439 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5440 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
5441 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
5442 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
5443 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
5444 static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
5445 
5446 static swig_cast_info *swig_cast_initial[] = {
5447  _swigc__p_char,
5448  _swigc__p_int,
5449  _swigc__p_unsigned_char,
5450  _swigc__p_unsigned_int,
5451  _swigc__p_unsigned_long,
5452  _swigc__p_unsigned_short,
5453 };
5454 
5455 
5456 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5457 
5458 static swig_const_info swig_const_table[] = {
5459 {0, 0, 0, 0.0, 0, 0}};
5460 
5461 #ifdef __cplusplus
5462 }
5463 #endif
5464 /* -----------------------------------------------------------------------------
5465  * Type initialization:
5466  * This problem is tough by the requirement that no dynamic
5467  * memory is used. Also, since swig_type_info structures store pointers to
5468  * swig_cast_info structures and swig_cast_info structures store pointers back
5469  * to swig_type_info structures, we need some lookup code at initialization.
5470  * The idea is that swig generates all the structures that are needed.
5471  * The runtime then collects these partially filled structures.
5472  * The SWIG_InitializeModule function takes these initial arrays out of
5473  * swig_module, and does all the lookup, filling in the swig_module.types
5474  * array with the correct data and linking the correct swig_cast_info
5475  * structures together.
5476  *
5477  * The generated swig_type_info structures are assigned statically to an initial
5478  * array. We just loop through that array, and handle each type individually.
5479  * First we lookup if this type has been already loaded, and if so, use the
5480  * loaded structure instead of the generated one. Then we have to fill in the
5481  * cast linked list. The cast data is initially stored in something like a
5482  * two-dimensional array. Each row corresponds to a type (there are the same
5483  * number of rows as there are in the swig_type_initial array). Each entry in
5484  * a column is one of the swig_cast_info structures for that type.
5485  * The cast_initial array is actually an array of arrays, because each row has
5486  * a variable number of columns. So to actually build the cast linked list,
5487  * we find the array of casts associated with the type, and loop through it
5488  * adding the casts to the list. The one last trick we need to do is making
5489  * sure the type pointer in the swig_cast_info struct is correct.
5490  *
5491  * First off, we lookup the cast->type name to see if it is already loaded.
5492  * There are three cases to handle:
5493  * 1) If the cast->type has already been loaded AND the type we are adding
5494  * casting info to has not been loaded (it is in this module), THEN we
5495  * replace the cast->type pointer with the type pointer that has already
5496  * been loaded.
5497  * 2) If BOTH types (the one we are adding casting info to, and the
5498  * cast->type) are loaded, THEN the cast info has already been loaded by
5499  * the previous module so we just ignore it.
5500  * 3) Finally, if cast->type has not already been loaded, then we add that
5501  * swig_cast_info to the linked list (because the cast->type) pointer will
5502  * be correct.
5503  * ----------------------------------------------------------------------------- */
5504 
5505 #ifdef __cplusplus
5506 extern "C" {
5507 #if 0
5508 } /* c-mode */
5509 #endif
5510 #endif
5511 
5512 #if 0
5513 #define SWIGRUNTIME_DEBUG
5514 #endif
5515 
5516 
5517 SWIGRUNTIME void
5518 SWIG_InitializeModule(void *clientdata) {
5519  size_t i;
5520  swig_module_info *module_head, *iter;
5521  int init;
5522 
5523  /* check to see if the circular list has been setup, if not, set it up */
5524  if (swig_module.next==0) {
5525  /* Initialize the swig_module */
5526  swig_module.type_initial = swig_type_initial;
5527  swig_module.cast_initial = swig_cast_initial;
5528  swig_module.next = &swig_module;
5529  init = 1;
5530  } else {
5531  init = 0;
5532  }
5533 
5534  /* Try and load any already created modules */
5535  module_head = SWIG_GetModule(clientdata);
5536  if (!module_head) {
5537  /* This is the first module loaded for this interpreter */
5538  /* so set the swig module into the interpreter */
5539  SWIG_SetModule(clientdata, &swig_module);
5540  } else {
5541  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
5542  iter=module_head;
5543  do {
5544  if (iter==&swig_module) {
5545  /* Our module is already in the list, so there's nothing more to do. */
5546  return;
5547  }
5548  iter=iter->next;
5549  } while (iter!= module_head);
5550 
5551  /* otherwise we must add our module into the list */
5552  swig_module.next = module_head->next;
5553  module_head->next = &swig_module;
5554  }
5555 
5556  /* When multiple interpreters are used, a module could have already been initialized in
5557  a different interpreter, but not yet have a pointer in this interpreter.
5558  In this case, we do not want to continue adding types... everything should be
5559  set up already */
5560  if (init == 0) return;
5561 
5562  /* Now work on filling in swig_module.types */
5563 #ifdef SWIGRUNTIME_DEBUG
5564  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
5565 #endif
5566  for (i = 0; i < swig_module.size; ++i) {
5567  swig_type_info *type = 0;
5568  swig_type_info *ret;
5569  swig_cast_info *cast;
5570 
5571 #ifdef SWIGRUNTIME_DEBUG
5572  printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5573 #endif
5574 
5575  /* if there is another module already loaded */
5576  if (swig_module.next != &swig_module) {
5577  type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
5578  }
5579  if (type) {
5580  /* Overwrite clientdata field */
5581 #ifdef SWIGRUNTIME_DEBUG
5582  printf("SWIG_InitializeModule: found type %s\n", type->name);
5583 #endif
5584  if (swig_module.type_initial[i]->clientdata) {
5585  type->clientdata = swig_module.type_initial[i]->clientdata;
5586 #ifdef SWIGRUNTIME_DEBUG
5587  printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5588 #endif
5589  }
5590  } else {
5591  type = swig_module.type_initial[i];
5592  }
5593 
5594  /* Insert casting types */
5595  cast = swig_module.cast_initial[i];
5596  while (cast->type) {
5597  /* Don't need to add information already in the list */
5598  ret = 0;
5599 #ifdef SWIGRUNTIME_DEBUG
5600  printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5601 #endif
5602  if (swig_module.next != &swig_module) {
5603  ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5604 #ifdef SWIGRUNTIME_DEBUG
5605  if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5606 #endif
5607  }
5608  if (ret) {
5609  if (type == swig_module.type_initial[i]) {
5610 #ifdef SWIGRUNTIME_DEBUG
5611  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5612 #endif
5613  cast->type = ret;
5614  ret = 0;
5615  } else {
5616  /* Check for casting already in the list */
5617  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5618 #ifdef SWIGRUNTIME_DEBUG
5619  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5620 #endif
5621  if (!ocast) ret = 0;
5622  }
5623  }
5624 
5625  if (!ret) {
5626 #ifdef SWIGRUNTIME_DEBUG
5627  printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5628 #endif
5629  if (type->cast) {
5630  type->cast->prev = cast;
5631  cast->next = type->cast;
5632  }
5633  type->cast = cast;
5634  }
5635  cast++;
5636  }
5637  /* Set entry in modules->types array equal to the type */
5638  swig_module.types[i] = type;
5639  }
5640  swig_module.types[i] = 0;
5641 
5642 #ifdef SWIGRUNTIME_DEBUG
5643  printf("**** SWIG_InitializeModule: Cast List ******\n");
5644  for (i = 0; i < swig_module.size; ++i) {
5645  int j = 0;
5646  swig_cast_info *cast = swig_module.cast_initial[i];
5647  printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5648  while (cast->type) {
5649  printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5650  cast++;
5651  ++j;
5652  }
5653  printf("---- Total casts: %d\n",j);
5654  }
5655  printf("**** SWIG_InitializeModule: Cast List ******\n");
5656 #endif
5657 }
5658 
5659 /* This function will propagate the clientdata field of type to
5660 * any new swig_type_info structures that have been added into the list
5661 * of equivalent types. It is like calling
5662 * SWIG_TypeClientData(type, clientdata) a second time.
5663 */
5664 SWIGRUNTIME void
5665 SWIG_PropagateClientData(void) {
5666  size_t i;
5667  swig_cast_info *equiv;
5668  static int init_run = 0;
5669 
5670  if (init_run) return;
5671  init_run = 1;
5672 
5673  for (i = 0; i < swig_module.size; i++) {
5674  if (swig_module.types[i]->clientdata) {
5675  equiv = swig_module.types[i]->cast;
5676  while (equiv) {
5677  if (!equiv->converter) {
5678  if (equiv->type && !equiv->type->clientdata)
5679  SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5680  }
5681  equiv = equiv->next;
5682  }
5683  }
5684  }
5685 }
5686 
5687 #ifdef __cplusplus
5688 #if 0
5689 {
5690  /* c-mode */
5691 #endif
5692 }
5693 #endif
5694 
5695 
5696 
5697 #ifdef __cplusplus
5698 extern "C" {
5699 #endif
5700 
5701  /* Python-specific SWIG API */
5702 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5703 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5704 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5705 
5706  /* -----------------------------------------------------------------------------
5707  * global variable support code.
5708  * ----------------------------------------------------------------------------- */
5709 
5710  typedef struct swig_globalvar {
5711  char *name; /* Name of global variable */
5712  PyObject *(*get_attr)(void); /* Return the current value */
5713  int (*set_attr)(PyObject *); /* Set the value */
5714  struct swig_globalvar *next;
5715  } swig_globalvar;
5716 
5717  typedef struct swig_varlinkobject {
5718  PyObject_HEAD
5719  swig_globalvar *vars;
5721 
5722  SWIGINTERN PyObject *
5723  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
5724 #if PY_VERSION_HEX >= 0x03000000
5725  return PyUnicode_InternFromString("<Swig global variables>");
5726 #else
5727  return PyString_FromString("<Swig global variables>");
5728 #endif
5729  }
5730 
5731  SWIGINTERN PyObject *
5732  swig_varlink_str(swig_varlinkobject *v) {
5733 #if PY_VERSION_HEX >= 0x03000000
5734  PyObject *str = PyUnicode_InternFromString("(");
5735  PyObject *tail;
5736  PyObject *joined;
5737  swig_globalvar *var;
5738  for (var = v->vars; var; var=var->next) {
5739  tail = PyUnicode_FromString(var->name);
5740  joined = PyUnicode_Concat(str, tail);
5741  Py_DecRef(str);
5742  Py_DecRef(tail);
5743  str = joined;
5744  if (var->next) {
5745  tail = PyUnicode_InternFromString(", ");
5746  joined = PyUnicode_Concat(str, tail);
5747  Py_DecRef(str);
5748  Py_DecRef(tail);
5749  str = joined;
5750  }
5751  }
5752  tail = PyUnicode_InternFromString(")");
5753  joined = PyUnicode_Concat(str, tail);
5754  Py_DecRef(str);
5755  Py_DecRef(tail);
5756  str = joined;
5757 #else
5758  PyObject *str = PyString_FromString("(");
5759  swig_globalvar *var;
5760  for (var = v->vars; var; var=var->next) {
5761  PyString_ConcatAndDel(&str,PyString_FromString(var->name));
5762  if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
5763  }
5764  PyString_ConcatAndDel(&str,PyString_FromString(")"));
5765 #endif
5766  return str;
5767  }
5768 
5769  SWIGINTERN int
5770  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
5771  char *tmp;
5772  PyObject *str = swig_varlink_str(v);
5773  fprintf(fp,"Swig global variables ");
5774  fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
5775  SWIG_Python_str_DelForPy3(tmp);
5776  Py_DECREF(str);
5777  return 0;
5778  }
5779 
5780  SWIGINTERN void
5781  swig_varlink_dealloc(swig_varlinkobject *v) {
5782  swig_globalvar *var = v->vars;
5783  while (var) {
5784  swig_globalvar *n = var->next;
5785  free(var->name);
5786  free(var);
5787  var = n;
5788  }
5789  }
5790 
5791  SWIGINTERN PyObject *
5792  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
5793  PyObject *res = NULL;
5794  swig_globalvar *var = v->vars;
5795  while (var) {
5796  if (strcmp(var->name,n) == 0) {
5797  res = (*var->get_attr)();
5798  break;
5799  }
5800  var = var->next;
5801  }
5802  if (res == NULL && !PyErr_Occurred()) {
5803  PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
5804  }
5805  return res;
5806  }
5807 
5808  SWIGINTERN int
5809  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
5810  int res = 1;
5811  swig_globalvar *var = v->vars;
5812  while (var) {
5813  if (strcmp(var->name,n) == 0) {
5814  res = (*var->set_attr)(p);
5815  break;
5816  }
5817  var = var->next;
5818  }
5819  if (res == 1 && !PyErr_Occurred()) {
5820  PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
5821  }
5822  return res;
5823  }
5824 
5825  SWIGINTERN PyTypeObject*
5826  swig_varlink_type(void) {
5827  static char varlink__doc__[] = "Swig var link object";
5828  static PyTypeObject varlink_type;
5829  static int type_init = 0;
5830  if (!type_init) {
5831  const PyTypeObject tmp = {
5832  /* PyObject header changed in Python 3 */
5833 #if PY_VERSION_HEX >= 0x03000000
5834  PyVarObject_HEAD_INIT(NULL, 0)
5835 #else
5836  PyObject_HEAD_INIT(NULL)
5837  0, /* ob_size */
5838 #endif
5839  (char *)"swigvarlink", /* tp_name */
5840  sizeof(swig_varlinkobject), /* tp_basicsize */
5841  0, /* tp_itemsize */
5842  (destructor) swig_varlink_dealloc, /* tp_dealloc */
5843  (printfunc) swig_varlink_print, /* tp_print */
5844  (getattrfunc) swig_varlink_getattr, /* tp_getattr */
5845  (setattrfunc) swig_varlink_setattr, /* tp_setattr */
5846  0, /* tp_compare */
5847  (reprfunc) swig_varlink_repr, /* tp_repr */
5848  0, /* tp_as_number */
5849  0, /* tp_as_sequence */
5850  0, /* tp_as_mapping */
5851  0, /* tp_hash */
5852  0, /* tp_call */
5853  (reprfunc) swig_varlink_str, /* tp_str */
5854  0, /* tp_getattro */
5855  0, /* tp_setattro */
5856  0, /* tp_as_buffer */
5857  0, /* tp_flags */
5858  varlink__doc__, /* tp_doc */
5859  0, /* tp_traverse */
5860  0, /* tp_clear */
5861  0, /* tp_richcompare */
5862  0, /* tp_weaklistoffset */
5863 #if PY_VERSION_HEX >= 0x02020000
5864  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5865 #endif
5866 #if PY_VERSION_HEX >= 0x02030000
5867  0, /* tp_del */
5868 #endif
5869 #if PY_VERSION_HEX >= 0x02060000
5870  0, /* tp_version_tag */
5871 #endif
5872 #if PY_VERSION_HEX >= 0x03040000
5873  0, /* tp_finalize */
5874 #endif
5875 #ifdef COUNT_ALLOCS
5876  0, /* tp_allocs */
5877  0, /* tp_frees */
5878  0, /* tp_maxalloc */
5879 #if PY_VERSION_HEX >= 0x02050000
5880  0, /* tp_prev */
5881 #endif
5882  0 /* tp_next */
5883 #endif
5884  };
5885  varlink_type = tmp;
5886  type_init = 1;
5887 #if PY_VERSION_HEX < 0x02020000
5888  varlink_type.ob_type = &PyType_Type;
5889 #else
5890  if (PyType_Ready(&varlink_type) < 0)
5891  return NULL;
5892 #endif
5893  }
5894  return &varlink_type;
5895  }
5896 
5897  /* Create a variable linking object for use later */
5898  SWIGINTERN PyObject *
5899  SWIG_Python_newvarlink(void) {
5900  swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
5901  if (result) {
5902  result->vars = 0;
5903  }
5904  return ((PyObject*) result);
5905  }
5906 
5907  SWIGINTERN void
5908  SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
5910  swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
5911  if (gv) {
5912  size_t size = strlen(name)+1;
5913  gv->name = (char *)malloc(size);
5914  if (gv->name) {
5915  strncpy(gv->name,name,size);
5916  gv->get_attr = get_attr;
5917  gv->set_attr = set_attr;
5918  gv->next = v->vars;
5919  }
5920  }
5921  v->vars = gv;
5922  }
5923 
5924  SWIGINTERN PyObject *
5925  SWIG_globals(void) {
5926  static PyObject *_SWIG_globals = 0;
5927  if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
5928  return _SWIG_globals;
5929  }
5930 
5931  /* -----------------------------------------------------------------------------
5932  * constants/methods manipulation
5933  * ----------------------------------------------------------------------------- */
5934 
5935  /* Install Constants */
5936  SWIGINTERN void
5937  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
5938  PyObject *obj = 0;
5939  size_t i;
5940  for (i = 0; constants[i].type; ++i) {
5941  switch(constants[i].type) {
5942  case SWIG_PY_POINTER:
5943  obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
5944  break;
5945  case SWIG_PY_BINARY:
5946  obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
5947  break;
5948  default:
5949  obj = 0;
5950  break;
5951  }
5952  if (obj) {
5953  PyDict_SetItemString(d, constants[i].name, obj);
5954  Py_DECREF(obj);
5955  }
5956  }
5957  }
5958 
5959  /* -----------------------------------------------------------------------------*/
5960  /* Fix SwigMethods to carry the callback ptrs when needed */
5961  /* -----------------------------------------------------------------------------*/
5962 
5963  SWIGINTERN void
5964  SWIG_Python_FixMethods(PyMethodDef *methods,
5965  swig_const_info *const_table,
5966  swig_type_info **types,
5967  swig_type_info **types_initial) {
5968  size_t i;
5969  for (i = 0; methods[i].ml_name; ++i) {
5970  const char *c = methods[i].ml_doc;
5971  if (!c) continue;
5972  c = strstr(c, "swig_ptr: ");
5973  if (c) {
5974  int j;
5975  swig_const_info *ci = 0;
5976  const char *name = c + 10;
5977  for (j = 0; const_table[j].type; ++j) {
5978  if (strncmp(const_table[j].name, name,
5979  strlen(const_table[j].name)) == 0) {
5980  ci = &(const_table[j]);
5981  break;
5982  }
5983  }
5984  if (ci) {
5985  void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
5986  if (ptr) {
5987  size_t shift = (ci->ptype) - types;
5988  swig_type_info *ty = types_initial[shift];
5989  size_t ldoc = (c - methods[i].ml_doc);
5990  size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5991  char *ndoc = (char*)malloc(ldoc + lptr + 10);
5992  if (ndoc) {
5993  char *buff = ndoc;
5994  strncpy(buff, methods[i].ml_doc, ldoc);
5995  buff += ldoc;
5996  strncpy(buff, "swig_ptr: ", 10);
5997  buff += 10;
5998  SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5999  methods[i].ml_doc = ndoc;
6000  }
6001  }
6002  }
6003  }
6004  }
6005  }
6006 
6007 #ifdef __cplusplus
6008 }
6009 #endif
6010 
6011 /* -----------------------------------------------------------------------------*
6012  * Partial Init method
6013  * -----------------------------------------------------------------------------*/
6014 
6015 #ifdef __cplusplus
6016 extern "C"
6017 #endif
6018 
6019 SWIGEXPORT
6020 #if PY_VERSION_HEX >= 0x03000000
6021 PyObject*
6022 #else
6023 void
6024 #endif
6025 SWIG_init(void) {
6026  PyObject *m, *d, *md;
6027 #if PY_VERSION_HEX >= 0x03000000
6028  static struct PyModuleDef SWIG_module = {
6029 # if PY_VERSION_HEX >= 0x03020000
6030  PyModuleDef_HEAD_INIT,
6031 # else
6032  {
6033  PyObject_HEAD_INIT(NULL)
6034  NULL, /* m_init */
6035  0, /* m_index */
6036  NULL, /* m_copy */
6037  },
6038 # endif
6039  (char *) SWIG_name,
6040  NULL,
6041  -1,
6042  SwigMethods,
6043  NULL,
6044  NULL,
6045  NULL,
6046  NULL
6047  };
6048 #endif
6049 
6050 #if defined(SWIGPYTHON_BUILTIN)
6051  static SwigPyClientData SwigPyObject_clientdata = {
6052  0, 0, 0, 0, 0, 0, 0
6053  };
6054  static PyGetSetDef this_getset_def = {
6055  (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
6056  };
6057  static SwigPyGetSet thisown_getset_closure = {
6058  (PyCFunction) SwigPyObject_own,
6059  (PyCFunction) SwigPyObject_own
6060  };
6061  static PyGetSetDef thisown_getset_def = {
6062  (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
6063  };
6064  PyObject *metatype_args;
6065  PyTypeObject *builtin_pytype;
6066  int builtin_base_count;
6067  swig_type_info *builtin_basetype;
6068  PyObject *tuple;
6069  PyGetSetDescrObject *static_getset;
6070  PyTypeObject *metatype;
6071  SwigPyClientData *cd;
6072  PyObject *public_interface, *public_symbol;
6073  PyObject *this_descr;
6074  PyObject *thisown_descr;
6075  PyObject *self = 0;
6076  int i;
6077 
6078  (void)builtin_pytype;
6079  (void)builtin_base_count;
6080  (void)builtin_basetype;
6081  (void)tuple;
6082  (void)static_getset;
6083  (void)self;
6084 
6085  /* metatype is used to implement static member variables. */
6086  metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
6087  assert(metatype_args);
6088  metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
6089  assert(metatype);
6090  Py_DECREF(metatype_args);
6091  metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
6092  assert(PyType_Ready(metatype) >= 0);
6093 #endif
6094 
6095  /* Fix SwigMethods to carry the callback ptrs when needed */
6096  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
6097 
6098 #if PY_VERSION_HEX >= 0x03000000
6099  m = PyModule_Create(&SWIG_module);
6100 #else
6101  m = Py_InitModule((char *) SWIG_name, SwigMethods);
6102 #endif
6103 
6104  md = d = PyModule_GetDict(m);
6105  (void)md;
6106 
6107  SWIG_InitializeModule(0);
6108 
6109 #ifdef SWIGPYTHON_BUILTIN
6110  SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
6111  assert(SwigPyObject_stype);
6112  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
6113  if (!cd) {
6114  SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
6115  SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
6116  } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
6117  PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
6118 # if PY_VERSION_HEX >= 0x03000000
6119  return NULL;
6120 # else
6121  return;
6122 # endif
6123  }
6124 
6125  /* All objects have a 'this' attribute */
6126  this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
6127  (void)this_descr;
6128 
6129  /* All objects have a 'thisown' attribute */
6130  thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
6131  (void)thisown_descr;
6132 
6133  public_interface = PyList_New(0);
6134  public_symbol = 0;
6135  (void)public_symbol;
6136 
6137  PyDict_SetItemString(md, "__all__", public_interface);
6138  Py_DECREF(public_interface);
6139  for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
6140  SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
6141  for (i = 0; swig_const_table[i].name != 0; ++i)
6142  SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
6143 #endif
6144 
6145  SWIG_InstallConstants(d,swig_const_table);
6146 
6147 #if PY_VERSION_HEX >= 0x03000000
6148  return m;
6149 #else
6150  return;
6151 #endif
6152 }
6153 
RoboClaw motor controller class interface.