[openrtm-commit:00259] r2203 - trunk/OpenRTM-aist/src/lib/rtm

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 7月 20日 (水) 21:29:33 JST


Author: n-ando
Date: 2011-07-20 21:29:33 +0900 (Wed, 20 Jul 2011)
New Revision: 2203

Modified:
   trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
Log:
Bug fix. Some sentences do not return properly.


Modified: trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp	2011-07-19 13:11:08 UTC (rev 2202)
+++ trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp	2011-07-20 12:29:33 UTC (rev 2203)
@@ -387,7 +387,7 @@
     RTC_PARANOID(("Sleep time is %f [us]", sleeptime));
     while (it->_sm.m_sm.isIn(ACTIVE_STATE))
       {
-        RTC_TRACE(("Waiting to be the INACTIVE state"));
+        RTC_TRACE(("Waiting to be the INACTIVE state %d %f", count, (double)coil::gettimeofday()));
         coil::usleep(sleeptime);
         if (count > 1000)
           {
@@ -415,7 +415,7 @@
             m_comps.at(i)._sm.m_sm.goTo(INACTIVE_STATE);
             int count(0);
             const double usec_per_sec(1.0e6);
-            double sleeptime(10.0 * usec_per_sec / get_rate());
+            double sleeptime(usec_per_sec / get_rate());
             RTC_PARANOID(("Sleep time is %f [us]", sleeptime));
             while (m_comps.at(i)._sm.m_sm.isIn(ACTIVE_STATE))
               {



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