ProsthesisInterface_ice.py
Go to the documentation of this file.
1# **********************************************************************
2#
3# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
4#
5# This copy of Ice is licensed to you under the terms described in the
6# ICE_LICENSE file included in this distribution.
7#
8# **********************************************************************
9#
10# Ice version 3.5.1
11#
12# <auto-generated>
13#
14# Generated from file `ProsthesisInterface.ice'
15#
16# Warning: do not edit this file.
17#
18# </auto-generated>
19#
20
21import Ice, IcePy
22
23# Start of module armarx
24_M_armarx = Ice.openModule('armarx')
25__name__ = 'armarx'
26
27if 'ProsthesisMotorValues' not in _M_armarx.__dict__:
28 _M_armarx.ProsthesisMotorValues = Ice.createTempClass()
29 class ProsthesisMotorValues(object):
30 def __init__(self, name='', position1=0.0, pwm1=0.0, position2=0.0, pwm2=0.0):
31 self.name = name
32 self.position1 = position1
33 self.pwm1 = pwm1
34 self.position2 = position2
35 self.pwm2 = pwm2
36
37 def __eq__(self, other):
38 if other is None:
39 return False
40 elif not isinstance(other, _M_armarx.ProsthesisMotorValues):
41 return NotImplemented
42 else:
43 if self.name != other.name:
44 return False
45 if self.position1 != other.position1:
46 return False
47 if self.pwm1 != other.pwm1:
48 return False
49 if self.position2 != other.position2:
50 return False
51 if self.pwm2 != other.pwm2:
52 return False
53 return True
54
55 def __ne__(self, other):
56 return not self.__eq__(other)
57
58 def __str__(self):
59 return IcePy.stringify(self, _M_armarx._t_ProsthesisMotorValues)
60
61 __repr__ = __str__
62
63 _M_armarx._t_ProsthesisMotorValues = IcePy.defineStruct('::armarx::ProsthesisMotorValues', ProsthesisMotorValues, (), (
64 ('name', (), IcePy._t_string),
65 ('position1', (), IcePy._t_float),
66 ('pwm1', (), IcePy._t_float),
67 ('position2', (), IcePy._t_float),
68 ('pwm2', (), IcePy._t_float)
69 ))
70
71 _M_armarx.ProsthesisMotorValues = ProsthesisMotorValues
72 del ProsthesisMotorValues
73
74if 'ProsthesisListenerInterface' not in _M_armarx.__dict__:
75 _M_armarx.ProsthesisListenerInterface = Ice.createTempClass()
76 class ProsthesisListenerInterface(Ice.Object):
77 def __init__(self):
78 if Ice.getType(self) == _M_armarx.ProsthesisListenerInterface:
79 raise RuntimeError('armarx.ProsthesisListenerInterface is an abstract class')
80
81 def ice_ids(self, current=None):
82 return ('::Ice::Object', '::armarx::ProsthesisListenerInterface')
83
84 def ice_id(self, current=None):
85 return '::armarx::ProsthesisListenerInterface'
86
88 return '::armarx::ProsthesisListenerInterface'
89 ice_staticId = staticmethod(ice_staticId)
90
91 def reportMotorValues(self, motorValues, current=None):
92 pass
93
94 def __str__(self):
95 return IcePy.stringify(self, _M_armarx._t_ProsthesisListenerInterface)
96
97 __repr__ = __str__
98
99 _M_armarx.ProsthesisListenerInterfacePrx = Ice.createTempClass()
100 class ProsthesisListenerInterfacePrx(Ice.ObjectPrx):
101
102 def reportMotorValues(self, motorValues, _ctx=None):
103 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.invoke(self, ((motorValues, ), _ctx))
104
105 def begin_reportMotorValues(self, motorValues, _response=None, _ex=None, _sent=None, _ctx=None):
106 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.begin(self, ((motorValues, ), _response, _ex, _sent, _ctx))
107
109 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.end(self, _r)
110
111 def checkedCast(proxy, facetOrCtx=None, _ctx=None):
112 return _M_armarx.ProsthesisListenerInterfacePrx.ice_checkedCast(proxy, '::armarx::ProsthesisListenerInterface', facetOrCtx, _ctx)
113 checkedCast = staticmethod(checkedCast)
114
115 def uncheckedCast(proxy, facet=None):
116 return _M_armarx.ProsthesisListenerInterfacePrx.ice_uncheckedCast(proxy, facet)
117 uncheckedCast = staticmethod(uncheckedCast)
118
119 _M_armarx._t_ProsthesisListenerInterfacePrx = IcePy.defineProxy('::armarx::ProsthesisListenerInterface', ProsthesisListenerInterfacePrx)
120
121 _M_armarx._t_ProsthesisListenerInterface = IcePy.defineClass('::armarx::ProsthesisListenerInterface', ProsthesisListenerInterface, -1, (), True, False, None, (), ())
122 ProsthesisListenerInterface._ice_type = _M_armarx._t_ProsthesisListenerInterface
123
124 ProsthesisListenerInterface._op_reportMotorValues = IcePy.Operation('reportMotorValues', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_armarx._t_ProsthesisMotorValues, False, 0),), (), None, ())
125
126 _M_armarx.ProsthesisListenerInterface = ProsthesisListenerInterface
127 del ProsthesisListenerInterface
128
129 _M_armarx.ProsthesisListenerInterfacePrx = ProsthesisListenerInterfacePrx
130 del ProsthesisListenerInterfacePrx
131
132if 'ProsthesisInterface' not in _M_armarx.__dict__:
133 _M_armarx.ProsthesisInterface = Ice.createTempClass()
134 class ProsthesisInterface(Ice.Object):
135 def __init__(self):
136 if Ice.getType(self) == _M_armarx.ProsthesisInterface:
137 raise RuntimeError('armarx.ProsthesisInterface is an abstract class')
138
139 def ice_ids(self, current=None):
140 return ('::Ice::Object', '::armarx::ProsthesisInterface')
141
142 def ice_id(self, current=None):
143 return '::armarx::ProsthesisInterface'
144
146 return '::armarx::ProsthesisInterface'
147 ice_staticId = staticmethod(ice_staticId)
148
149 def getTopicName(self, current=None):
150 pass
151
152 def __str__(self):
153 return IcePy.stringify(self, _M_armarx._t_ProsthesisInterface)
154
155 __repr__ = __str__
156
157 _M_armarx.ProsthesisInterfacePrx = Ice.createTempClass()
158 class ProsthesisInterfacePrx(Ice.ObjectPrx):
159
160 def getTopicName(self, _ctx=None):
161 return _M_armarx.ProsthesisInterface._op_getTopicName.invoke(self, ((), _ctx))
162
163 def begin_getTopicName(self, _response=None, _ex=None, _sent=None, _ctx=None):
164 return _M_armarx.ProsthesisInterface._op_getTopicName.begin(self, ((), _response, _ex, _sent, _ctx))
165
166 def end_getTopicName(self, _r):
167 return _M_armarx.ProsthesisInterface._op_getTopicName.end(self, _r)
168
169 def checkedCast(proxy, facetOrCtx=None, _ctx=None):
170 return _M_armarx.ProsthesisInterfacePrx.ice_checkedCast(proxy, '::armarx::ProsthesisInterface', facetOrCtx, _ctx)
171 checkedCast = staticmethod(checkedCast)
172
173 def uncheckedCast(proxy, facet=None):
174 return _M_armarx.ProsthesisInterfacePrx.ice_uncheckedCast(proxy, facet)
175 uncheckedCast = staticmethod(uncheckedCast)
176
177 _M_armarx._t_ProsthesisInterfacePrx = IcePy.defineProxy('::armarx::ProsthesisInterface', ProsthesisInterfacePrx)
178
179 _M_armarx._t_ProsthesisInterface = IcePy.defineClass('::armarx::ProsthesisInterface', ProsthesisInterface, -1, (), True, False, None, (), ())
180 ProsthesisInterface._ice_type = _M_armarx._t_ProsthesisInterface
181
182 ProsthesisInterface._op_getTopicName = IcePy.Operation('getTopicName', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), ((), IcePy._t_string, False, 0), ())
183
184 _M_armarx.ProsthesisInterface = ProsthesisInterface
185 del ProsthesisInterface
186
187 _M_armarx.ProsthesisInterfacePrx = ProsthesisInterfacePrx
188 del ProsthesisInterfacePrx
189
190# End of module armarx
begin_getTopicName(self, _response=None, _ex=None, _sent=None, _ctx=None)
begin_reportMotorValues(self, motorValues, _response=None, _ex=None, _sent=None, _ctx=None)
__init__(self, name='', position1=0.0, pwm1=0.0, position2=0.0, pwm2=0.0)