[openrtm-commit:00275] r423 - branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 7月 28日 (木) 12:03:26 JST


Author: kurihara
Date: 2011-07-28 12:03:26 +0900 (Thu, 28 Jul 2011)
New Revision: 423

Modified:
   branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py
Log:
Now, when the component name has not been added to the port name, the message is output.  refs #1901

Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py	2011-07-28 02:57:38 UTC (rev 422)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py	2011-07-28 03:03:26 UTC (rev 423)
@@ -1166,6 +1166,9 @@
 
     guard = OpenRTM_aist.ScopedLock(self._profile_mutex)
     plist = self._profile.name.split(".")
+    if not self._ownerInstanceName:
+      self._rtcout.RTC_ERROR("Owner is not set.")
+      self._rtcout.RTC_ERROR("addXXXPort() should be called in onInitialize().")
     portname = self._ownerInstanceName+"."+plist[-1]
 
     self._profile.owner = owner



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