KNI.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.33
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5 # This file is compatible with both classic and new-style classes.
6 
7 import _KNI
8 import new
9 new_instancemethod = new.instancemethod
10 try:
11  _swig_property = property
12 except NameError:
13  pass # Python < 2.2 doesn't have 'property'.
14 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
15  if (name == "thisown"): return self.this.own(value)
16  if (name == "this"):
17  if type(value).__name__ == 'PySwigObject':
18  self.__dict__[name] = value
19  return
20  method = class_type.__swig_setmethods__.get(name,None)
21  if method: return method(self,value)
22  if (not static) or hasattr(self,name):
23  self.__dict__[name] = value
24  else:
25  raise AttributeError("You cannot add attributes to %s" % self)
26 
27 def _swig_setattr(self,class_type,name,value):
28  return _swig_setattr_nondynamic(self,class_type,name,value,0)
29 
30 def _swig_getattr(self,class_type,name):
31  if (name == "thisown"): return self.this.own()
32  method = class_type.__swig_getmethods__.get(name,None)
33  if method: return method(self)
34  raise AttributeError,name
35 
36 def _swig_repr(self):
37  try: strthis = "proxy of " + self.this.__repr__()
38  except: strthis = ""
39  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
40 
41 import types
42 try:
43  _object = types.ObjectType
44  _newclass = 1
45 except AttributeError:
46  class _object : pass
47  _newclass = 0
48 del types
49 
50 
51 ERR_NONE = _KNI.ERR_NONE
52 ERR_SUCCESS = _KNI.ERR_SUCCESS
53 class TPos(_object):
54  __swig_setmethods__ = {}
55  __setattr__ = lambda self, name, value: _swig_setattr(self, TPos, name, value)
56  __swig_getmethods__ = {}
57  __getattr__ = lambda self, name: _swig_getattr(self, TPos, name)
58  __repr__ = _swig_repr
59  __swig_setmethods__["X"] = _KNI.TPos_X_set
60  __swig_getmethods__["X"] = _KNI.TPos_X_get
61  if _newclass:X = _swig_property(_KNI.TPos_X_get, _KNI.TPos_X_set)
62  __swig_setmethods__["Y"] = _KNI.TPos_Y_set
63  __swig_getmethods__["Y"] = _KNI.TPos_Y_get
64  if _newclass:Y = _swig_property(_KNI.TPos_Y_get, _KNI.TPos_Y_set)
65  __swig_setmethods__["Z"] = _KNI.TPos_Z_set
66  __swig_getmethods__["Z"] = _KNI.TPos_Z_get
67  if _newclass:Z = _swig_property(_KNI.TPos_Z_get, _KNI.TPos_Z_set)
68  __swig_setmethods__["phi"] = _KNI.TPos_phi_set
69  __swig_getmethods__["phi"] = _KNI.TPos_phi_get
70  if _newclass:phi = _swig_property(_KNI.TPos_phi_get, _KNI.TPos_phi_set)
71  __swig_setmethods__["theta"] = _KNI.TPos_theta_set
72  __swig_getmethods__["theta"] = _KNI.TPos_theta_get
73  if _newclass:theta = _swig_property(_KNI.TPos_theta_get, _KNI.TPos_theta_set)
74  __swig_setmethods__["psi"] = _KNI.TPos_psi_set
75  __swig_getmethods__["psi"] = _KNI.TPos_psi_get
76  if _newclass:psi = _swig_property(_KNI.TPos_psi_get, _KNI.TPos_psi_set)
77  def __init__(self, *args):
78  this = _KNI.new_TPos(*args)
79  try: self.this.append(this)
80  except: self.this = this
81  __swig_destroy__ = _KNI.delete_TPos
82  __del__ = lambda self : None;
83 TPos_swigregister = _KNI.TPos_swigregister
85 cvar = _KNI.cvar
86 PI = cvar.PI
87 
88 PTP = _KNI.PTP
89 LINEAR = _KNI.LINEAR
91  __swig_setmethods__ = {}
92  __setattr__ = lambda self, name, value: _swig_setattr(self, TMovement, name, value)
93  __swig_getmethods__ = {}
94  __getattr__ = lambda self, name: _swig_getattr(self, TMovement, name)
95  __repr__ = _swig_repr
96  __swig_setmethods__["pos"] = _KNI.TMovement_pos_set
97  __swig_getmethods__["pos"] = _KNI.TMovement_pos_get
98  if _newclass:pos = _swig_property(_KNI.TMovement_pos_get, _KNI.TMovement_pos_set)
99  __swig_setmethods__["transition"] = _KNI.TMovement_transition_set
100  __swig_getmethods__["transition"] = _KNI.TMovement_transition_get
101  if _newclass:transition = _swig_property(_KNI.TMovement_transition_get, _KNI.TMovement_transition_set)
102  __swig_setmethods__["velocity"] = _KNI.TMovement_velocity_set
103  __swig_getmethods__["velocity"] = _KNI.TMovement_velocity_get
104  if _newclass:velocity = _swig_property(_KNI.TMovement_velocity_get, _KNI.TMovement_velocity_set)
105  __swig_setmethods__["acceleration"] = _KNI.TMovement_acceleration_set
106  __swig_getmethods__["acceleration"] = _KNI.TMovement_acceleration_get
107  if _newclass:acceleration = _swig_property(_KNI.TMovement_acceleration_get, _KNI.TMovement_acceleration_set)
108  def __init__(self, *args):
109  this = _KNI.new_TMovement(*args)
110  try: self.this.append(this)
111  except: self.this = this
112  __swig_destroy__ = _KNI.delete_TMovement
113  __del__ = lambda self : None;
114 TMovement_swigregister = _KNI.TMovement_swigregister
115 TMovement_swigregister(TMovement)
116 
118  __swig_setmethods__ = {}
119  __setattr__ = lambda self, name, value: _swig_setattr(self, TCurrentMot, name, value)
120  __swig_getmethods__ = {}
121  __getattr__ = lambda self, name: _swig_getattr(self, TCurrentMot, name)
122  __repr__ = _swig_repr
123  __swig_setmethods__["idx"] = _KNI.TCurrentMot_idx_set
124  __swig_getmethods__["idx"] = _KNI.TCurrentMot_idx_get
125  if _newclass:idx = _swig_property(_KNI.TCurrentMot_idx_get, _KNI.TCurrentMot_idx_set)
126  __swig_setmethods__["running"] = _KNI.TCurrentMot_running_set
127  __swig_getmethods__["running"] = _KNI.TCurrentMot_running_get
128  if _newclass:running = _swig_property(_KNI.TCurrentMot_running_get, _KNI.TCurrentMot_running_set)
129  __swig_setmethods__["dir"] = _KNI.TCurrentMot_dir_set
130  __swig_getmethods__["dir"] = _KNI.TCurrentMot_dir_get
131  if _newclass:dir = _swig_property(_KNI.TCurrentMot_dir_get, _KNI.TCurrentMot_dir_set)
132  def __init__(self, *args):
133  this = _KNI.new_TCurrentMot(*args)
134  try: self.this.append(this)
135  except: self.this = this
136  __swig_destroy__ = _KNI.delete_TCurrentMot
137  __del__ = lambda self : None;
138 TCurrentMot_swigregister = _KNI.TCurrentMot_swigregister
139 TCurrentMot_swigregister(TCurrentMot)
140 
141 allMotorsOff = _KNI.allMotorsOff
142 allMotorsOn = _KNI.allMotorsOn
143 calibrate = _KNI.calibrate
144 clearMoveBuffers = _KNI.clearMoveBuffers
145 closeGripper = _KNI.closeGripper
146 deleteMovementFromStack = _KNI.deleteMovementFromStack
147 deleteMovementStack = _KNI.deleteMovementStack
148 executeConnectedMovement = _KNI.executeConnectedMovement
149 executeMovement = _KNI.executeMovement
150 getAxisFirmwareVersion = _KNI.getAxisFirmwareVersion
151 getNumberOfMotors = _KNI.getNumberOfMotors
152 getPosition = _KNI.getPosition
153 getVersion = _KNI.getVersion
154 initKatana = _KNI.initKatana
155 IO_setOutput = _KNI.IO_setOutput
156 ModBusTCP_writeWord = _KNI.ModBusTCP_writeWord
157 motorOff = _KNI.motorOff
158 motorOn = _KNI.motorOn
159 moveMot = _KNI.moveMot
160 moveMotAndWait = _KNI.moveMotAndWait
161 moveToPos = _KNI.moveToPos
162 moveToPosEnc = _KNI.moveToPosEnc
163 moveToPosLin = _KNI.moveToPosLin
164 openGripper = _KNI.openGripper
165 ping = _KNI.ping
166 pushMovementToStack = _KNI.pushMovementToStack
167 runThroughMovementStack = _KNI.runThroughMovementStack
168 sendSplineToMotor = _KNI.sendSplineToMotor
169 setCollisionDetection = _KNI.setCollisionDetection
170 setCollisionParameters = _KNI.setCollisionParameters
171 setControllerParameters = _KNI.setControllerParameters
172 setGripper = _KNI.setGripper
173 setMaxAccel = _KNI.setMaxAccel
174 setMaxVelocity = _KNI.setMaxVelocity
175 setPositionCollisionLimit = _KNI.setPositionCollisionLimit
176 setVelocityCollisionLimit = _KNI.setVelocityCollisionLimit
177 startSplineMovement = _KNI.startSplineMovement
178 unblock = _KNI.unblock
179 waitForMot = _KNI.waitForMot
180 getDrive = _KNI.getDrive
181 getEncoder = _KNI.getEncoder
182 getVelocity = _KNI.getVelocity
183 IO_readInput = _KNI.IO_readInput
184 ModBusTCP_readWord = _KNI.ModBusTCP_readWord
185 
186 
_swig_property
Definition: KNI.py:11
def __init__(self, args)
Definition: KNI.py:108
def _swig_setattr_nondynamic(self, class_type, name, value, static=1)
Definition: KNI.py:14
TCurrentMot_swigregister
Definition: KNI.py:138
def __init__(self, args)
Definition: KNI.py:132
TPos_swigregister
Definition: KNI.py:83
TMovement_swigregister
Definition: KNI.py:114
def _swig_getattr(self, class_type, name)
Definition: KNI.py:30
this
Definition: KNI.py:80
def __init__(self, args)
Definition: KNI.py:77
Definition: KNI.py:53
def _swig_setattr(self, class_type, name, value)
Definition: KNI.py:27
def _swig_repr(self)
Definition: KNI.py:36


kni
Author(s): Martin Günther
autogenerated on Fri Jan 3 2020 04:01:16