Dynamixel  2.9.5
RoadNarrows Robotics Dynamixel Package
bsDynaCore.i
1 /******************************************************************************
2  *
3  * Package: BotSense
4  *
5  * File: bsDynaCore.i
6  *
7  * $LastChangedDate$
8  * $Rev$
9  */
10 
11 /*!
12  * \file
13  *
14  * \brief BotSense Dynamixel python swig interface core definitions file.
15  *
16  * \author Robin Knight (robin.knight@roadnarrows.com)
17  *
18  * \par Copyright:
19  * (C) 2012-2015. 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  *
50  * @EulaEnd@
51  ******************************************************************************/
52 
53 %module bsDynaCore
54 %{
55 #include "botsense/BotSense.h"
56 #include "botsense/bsDyna.h"
57 %}
58 
59 %begin
60 %{
61 /*! \file
62  * \brief Swig generated null wrapper c file.
63  */
64 %}
65 
66 /*
67  * Required RNR C Types
68  */
69 typedef unsigned char byte_t;
70 typedef unsigned short ushort_t;
71 typedef unsigned int uint_t;
72 typedef unsigned long ulong_t;
73 typedef int bool_t;
74 /*typedef int bool;*/
75 
76 /*
77  * Required BotSense C Types
78  */
79 typedef struct _bsClientStruct *BsClient_P;
80 typedef int BsVConnHnd_T;
81 
82 /*
83  * Dynamixel Simple Types
84  */
85 typedef int units_t;
86 
87 %include "carrays.i"
88 %include "cpointer.i"
89 
90 /* the swigged interface */
91 %include "Dynamixel/Dynamixel.h"
92 %include "botsense/bsDyna.h"
93 
94 %array_functions(uint_t, uintArray);
95 %array_functions(bool_t, boolArray);
96 %pointer_functions(int, intp);
97 %pointer_functions(uint_t, uintp);
98 
99 /*
100  * Higher-level python interface to the BotSense Dynamixel robot C library.
101  */
102 %pythoncode
103 %{
104 
105 """
106 BotSense Dynamixel Python Core Interface.
107 """
108 
109 ## \file
110 ## \package BotSense.Dynamixel.bsDynaCore
111 ##
112 ## \brief BotSense swigged Dynamixel Python core interface module.
113 ##
114 ## \author Robin Knight (robin.knight@roadnarrows.com)
115 ##
116 ## \par Copyright:
117 ## (C) 2012-2015. RoadNarrows LLC.\n
118 ## (http://www.roadnarrows.com)\n
119 ## All Rights Reserved
120 ##
121 
122 %}