[openrtm-commit:01171] r481 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 1月 22日 (水) 09:48:13 JST


Author: win-ei
Date: 2014-01-22 09:48:12 +0900 (Wed, 22 Jan 2014)
New Revision: 481

Modified:
   branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl
Log:
Daily work.

Modified: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl	2014-01-21 13:49:38 UTC (rev 480)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/template/RtcCreateTbl.c.vsl	2014-01-22 00:48:12 UTC (rev 481)
@@ -15,18 +15,20 @@
 ${sharp}include "OutputRTC.h"
 ${sharp}include "InputRTC.h"
 ${sharp}include "MyObjectKey.h"
-${sharp}include "DemoAcceleration.h"
-${sharp}include "DemoLed.h"
+#foreach($comp in $comps)
+${sharp}include "${comp}.h"
+#end
 
 /* RTC creation table */
 const RtcCreate_t gsRtcCreates[RTC_NUM] =
 {
+#foreach($comp in $comps)
     {/* InputRTC setting */
-        DemoAcceleration_create,        /* RTC creation method(Please set up the function which performs the create event of RTC.) */
-        RTC_INDEX_DEMO_ACCELERATION,    /* RTCID(ObjectKey) */
+        ${comp}_create,        /* RTC creation method(Please set up the function which performs the create event of RTC.) */
+        RTC_INDEX_${comp.toUpperCase()},    /* RTCID(ObjectKey) */
         RESERVE_FOR_RTC_CREATE_TBL,     /* Reserve */
         { /* Please set up Index of DataPort which RTC has. (set up 0, when there is nothing) */
-            DATAPORT_INDEX_DEMO_ACCELERATION,
+            DATAPORT_INDEX_${comp.toUpperCase()},
             0,
             0,
             0,
@@ -43,30 +45,10 @@
             0,
             0
         }/* A maximum of 16 */
-    },
-    {/* InputRTC setting */
-        DemoLed_create,                /* RTC creation method(Please set up the function which performs the create event of RTC.) */
-        RTC_INDEX_DEMO_LED,            /* RTCID(ObjectKey) */
-        RESERVE_FOR_RTC_CREATE_TBL,    /* Reserve */
-        { /* Please set up Index of DataPort which RTC has. (set up 0, when there is nothing) */
-            DATAPORT_INDEX_DEMO_LED,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0,
-            0
-        }/* A maximum of 16 */
-    }
+    } #if($velocityHasNext) , 
+#end
+#end
+
 };
 
 



More information about the openrtm-commit mailing list