Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
ImuMspMsgs.i
1 /******************************************************************************
2  *
3  * Package: Laelaps
4  *
5  * File: ImuMspMsgs.i
6  *
7  * $LastChangedDate$
8  * $Rev$
9  */
10 
11 /*!
12  * \file
13  *
14  * \brief IMU Multiwii Serial Protocol messaging python swig definitions file.
15  *
16  * \author Robin Knight (robin.knight@roadnarrows.com)
17  *
18  * \par Copyright:
19  * (C) 2016. RoadNarrows LLC.
20  * (http://www.roadnarrows.com)
21  * All Rights Reserved
22  */
23 
24 /*
25  * @EulaBegin@
26  * Permission is hereby granted, without written agreement and without
27  * license or royalty fees, to use, copy, modify, and distribute this
28  * software and its documentation for any purpose, provided that
29  * (1) The above copyright notice and the following two paragraphs
30  * appear in all copies of the source code and (2) redistributions
31  * including binaries reproduces these notices in the supporting
32  * documentation. Substantial modifications to this software may be
33  * copyrighted by their authors and need not follow the licensing terms
34  * described here, provided that the new terms are clearly indicated in
35  * all files where they apply.
36  *
37  * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES
38  * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
39  * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
40  * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
41  * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
42  * THE POSSIBILITY OF SUCH DAMAGE.
43  *
44  * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,
45  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
46  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN
47  * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO
48  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
49  * @EulaEnd@
50  *
51  ******************************************************************************/
52 
53 %module ImuMspMsgs
54 %{
55 #define SWIG
56 #include "rnr/rnrconfig.h"
57 #include "Laelaps/laeImu.h"
58 #undef SWIG
59 %}
60 
61 %begin
62 %{
63 /*! \file
64  * \brief Swig generated RoboClaw messaging wrapper c file.
65  */
66 %}
67 
68 /*
69  * Required RNR C types
70  */
71 typedef unsigned char byte_t;
72 typedef unsigned short ushort_t;
73 typedef unsigned int uint_t;
74 typedef unsigned long ulong_t;
75 typedef int bool_t;
76 
77 #define static
78 #define const %constant
79 
80 %include "Laelaps/laeImu.h"
81 
82 #undef static
83 #undef const
84 
85 %include "carrays.i"
86 %include "cpointer.i"
87 
88 %inline
89 %{
90 %}
91 
92 /*
93  * Higher-level python interface to the core C library.
94  */
95 %pythoncode
96 %{
97 
98 """
99 RoadNarrows Robotics Laelaps IMU Multiwii Serial Protocol Messages.
100 """
101 
102 ## \file
103 ## \package LaeLaeps.WatchDogMsgs
104 ##
105 ## \brief RoadNarrows Robotics Laelaps Swigged IMU MSP Messaging.
106 ## Python Module.
107 ##
108 ## \author Robin Knight (robin.knight@roadnarrows.com)
109 ##
110 ## \par Copyright:
111 ## (C) 2016. RoadNarrows LLC.\n
112 ## (http://www.roadnarrows.com)\n
113 ## All Rights Reserved
114 ##
115 
116 %}