[openrtm-commit:00610] r509 - branches/work/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2012年 1月 23日 (月) 16:12:25 JST
Author: kurihara
Date: 2012-01-23 16:12:25 +0900 (Mon, 23 Jan 2012)
New Revision: 509
Modified:
branches/work/OpenRTM-aist-Python/OpenRTM_aist/Manager.py
Log:
Log messages have been added when RTC initialization failed.
Modified: branches/work/OpenRTM-aist-Python/OpenRTM_aist/Manager.py
===================================================================
--- branches/work/OpenRTM-aist-Python/OpenRTM_aist/Manager.py 2012-01-23 07:06:18 UTC (rev 508)
+++ branches/work/OpenRTM-aist-Python/OpenRTM_aist/Manager.py 2012-01-23 07:12:25 UTC (rev 509)
@@ -906,8 +906,10 @@
if comp.initialize() != RTC.RTC_OK:
self._rtcout.RTC_TRACE("RTC initialization failed: %s",
comp_id.getProperty("implementation_id"))
- comp.exit()
self._rtcout.RTC_TRACE("%s was finalized", comp_id.getProperty("implementation_id"))
+ if comp.exit() != RTC.RTC_OK:
+ self._rtcout.RTC_DEBUG("%s finalization was failed.",
+ comp_id.getProperty("implementation_id"))
return None
self._rtcout.RTC_TRACE("RTC initialization succeeded: %s",
openrtm-commit メーリングリストの案内