[openrtm-commit:00322] r439 - branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 8月 6日 (土) 00:23:50 JST


Author: kurihara
Date: 2011-08-06 00:23:50 +0900 (Sat, 06 Aug 2011)
New Revision: 439

Modified:
   branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PeriodicECSharedComposite.py
Log:
Callback function has been updated.

Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PeriodicECSharedComposite.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PeriodicECSharedComposite.py	2011-08-05 15:21:35 UTC (rev 438)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PeriodicECSharedComposite.py	2011-08-05 15:23:50 UTC (rev 439)
@@ -51,7 +51,7 @@
   return True
 
 
-class setCallback(OpenRTM_aist.OnSetConfigurationSetCallback):
+class setCallback(OpenRTM_aist.ConfigurationSetListener):
   def __init__(self, org):
     self._org = org
     pass
@@ -61,7 +61,7 @@
 
 
 
-class addCallback(OpenRTM_aist.OnAddConfigurationAddCallback):
+class addCallback(OpenRTM_aist.ConfigurationSetListener):
   def __init__(self, org):
     self._org = org
     pass
@@ -645,8 +645,14 @@
     self._members = [[]]
     self.bindParameter("members", self._members, "", stringToStrVec)
     self._rtcout = OpenRTM_aist.Manager.instance().getLogbuf("rtobject.periodic_ec_shared")
-    self._configsets.setOnSetConfigurationSet(setCallback(self._org))
-    self._configsets.setOnAddConfigurationSet(addCallback(self._org))
+    self._configsets.addConfigurationSetListener(\
+      OpenRTM_aist.ConfigurationSetListenerType.ON_SET_CONFIG_SET,
+      setCallback(self._org))
+
+    self._configsets.addConfigurationSetListener(\
+      OpenRTM_aist.ConfigurationSetListenerType.ON_ADD_CONFIG_SET,
+      addCallback(self._org))
+
     return
 
 



openrtm-commit メーリングリストの案内