24 _M_armarx = Ice.openModule(
'armarx')
27 if 'ProsthesisMotorValues' not in _M_armarx.__dict__:
28 _M_armarx.ProsthesisMotorValues = Ice.createTempClass()
30 def __init__(self, name='', position1=0.0, pwm1=0.0, position2=0.0, pwm2=0.0):
40 elif not isinstance(other, _M_armarx.ProsthesisMotorValues):
43 if self.
name != other.name:
47 if self.
pwm1 != other.pwm1:
51 if self.
pwm2 != other.pwm2:
56 return not self.
__eq__(other)
59 return IcePy.stringify(self, _M_armarx._t_ProsthesisMotorValues)
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)
71 _M_armarx.ProsthesisMotorValues = ProsthesisMotorValues
72 del ProsthesisMotorValues
74 if 'ProsthesisListenerInterface' not in _M_armarx.__dict__:
75 _M_armarx.ProsthesisListenerInterface = Ice.createTempClass()
78 if Ice.getType(self) == _M_armarx.ProsthesisListenerInterface:
79 raise RuntimeError(
'armarx.ProsthesisListenerInterface is an abstract class')
82 return (
'::Ice::Object',
'::armarx::ProsthesisListenerInterface')
85 return '::armarx::ProsthesisListenerInterface'
88 return '::armarx::ProsthesisListenerInterface'
89 ice_staticId = staticmethod(ice_staticId)
95 return IcePy.stringify(self, _M_armarx._t_ProsthesisListenerInterface)
99 _M_armarx.ProsthesisListenerInterfacePrx = Ice.createTempClass()
103 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.invoke(self, ((motorValues, ), _ctx))
106 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.begin(self, ((motorValues, ), _response, _ex, _sent, _ctx))
109 return _M_armarx.ProsthesisListenerInterface._op_reportMotorValues.end(self, _r)
112 return _M_armarx.ProsthesisListenerInterfacePrx.ice_checkedCast(proxy,
'::armarx::ProsthesisListenerInterface', facetOrCtx, _ctx)
113 checkedCast = staticmethod(checkedCast)
116 return _M_armarx.ProsthesisListenerInterfacePrx.ice_uncheckedCast(proxy, facet)
117 uncheckedCast = staticmethod(uncheckedCast)
119 _M_armarx._t_ProsthesisListenerInterfacePrx = IcePy.defineProxy(
'::armarx::ProsthesisListenerInterface', ProsthesisListenerInterfacePrx)
121 _M_armarx._t_ProsthesisListenerInterface = IcePy.defineClass(
'::armarx::ProsthesisListenerInterface', ProsthesisListenerInterface, -1, (),
True,
False,
None, (), ())
122 ProsthesisListenerInterface._ice_type = _M_armarx._t_ProsthesisListenerInterface
124 ProsthesisListenerInterface._op_reportMotorValues = IcePy.Operation(
'reportMotorValues', Ice.OperationMode.Normal, Ice.OperationMode.Normal,
False,
None, (), (((), _M_armarx._t_ProsthesisMotorValues,
False, 0),), (),
None, ())
126 _M_armarx.ProsthesisListenerInterface = ProsthesisListenerInterface
127 del ProsthesisListenerInterface
129 _M_armarx.ProsthesisListenerInterfacePrx = ProsthesisListenerInterfacePrx
130 del ProsthesisListenerInterfacePrx
132 if 'ProsthesisInterface' not in _M_armarx.__dict__:
133 _M_armarx.ProsthesisInterface = Ice.createTempClass()
136 if Ice.getType(self) == _M_armarx.ProsthesisInterface:
137 raise RuntimeError(
'armarx.ProsthesisInterface is an abstract class')
140 return (
'::Ice::Object',
'::armarx::ProsthesisInterface')
143 return '::armarx::ProsthesisInterface'
146 return '::armarx::ProsthesisInterface'
147 ice_staticId = staticmethod(ice_staticId)
153 return IcePy.stringify(self, _M_armarx._t_ProsthesisInterface)
157 _M_armarx.ProsthesisInterfacePrx = Ice.createTempClass()
161 return _M_armarx.ProsthesisInterface._op_getTopicName.invoke(self, ((), _ctx))
164 return _M_armarx.ProsthesisInterface._op_getTopicName.begin(self, ((), _response, _ex, _sent, _ctx))
167 return _M_armarx.ProsthesisInterface._op_getTopicName.end(self, _r)
170 return _M_armarx.ProsthesisInterfacePrx.ice_checkedCast(proxy,
'::armarx::ProsthesisInterface', facetOrCtx, _ctx)
171 checkedCast = staticmethod(checkedCast)
174 return _M_armarx.ProsthesisInterfacePrx.ice_uncheckedCast(proxy, facet)
175 uncheckedCast = staticmethod(uncheckedCast)
177 _M_armarx._t_ProsthesisInterfacePrx = IcePy.defineProxy(
'::armarx::ProsthesisInterface', ProsthesisInterfacePrx)
179 _M_armarx._t_ProsthesisInterface = IcePy.defineClass(
'::armarx::ProsthesisInterface', ProsthesisInterface, -1, (),
True,
False,
None, (), ())
180 ProsthesisInterface._ice_type = _M_armarx._t_ProsthesisInterface
182 ProsthesisInterface._op_getTopicName = IcePy.Operation(
'getTopicName', Ice.OperationMode.Normal, Ice.OperationMode.Normal,
False,
None, (), (), (), ((), IcePy._t_string,
False, 0), ())
184 _M_armarx.ProsthesisInterface = ProsthesisInterface
185 del ProsthesisInterface
187 _M_armarx.ProsthesisInterfacePrx = ProsthesisInterfacePrx
188 del ProsthesisInterfacePrx