20 sys.path.insert(1,
"../")
23 from omniORB
import any
36 def echo(self, value=None):
43 def echo(self, value=None):
44 print "OnRWConvert Called" 50 return OpenRTM_aist.DataPortStatus.PORT_OK
59 OpenRTM_aist.Manager.init(sys.argv)
60 self.
_op =
OutPort(
"out", RTC.TimedLong(RTC.Time(0,0), 0))
64 OpenRTM_aist.Manager.instance().shutdownManager()
68 self.assertEqual(self._op.write(RTC.TimedLong(RTC.Time(0,0), 123)),
True)
71 self.assertEqual(self._op.write(RTC.TimedLong(RTC.Time(0,0), 123)),
True)
72 read_data = [RTC.TimedLong(RTC.Time(0,0), 0)]
73 self._connector.read(read_data)
74 self.assertEqual(read_data[0].data,123)
82 self.assertEqual(self._op.write(RTC.TimedLong(RTC.Time(0,0), 123)),
True)
87 self.assertEqual(self._op.getPortDataType(),any.to_any(RTC.TimedLong(RTC.Time(0,0),0)).typecode().
name())
92 if __name__ ==
'__main__':
def test_getPortDataType(self)
def echo(self, value=None)
def echo(self, value=None)