[openrtm-commit:02556] r720 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 4月 4日 (火) 19:23:03 JST
Author: miyamoto
Date: 2017-04-04 19:23:02 +0900 (Tue, 04 Apr 2017)
New Revision: 720
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl
Log:
#4010
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl 2017-04-03 04:36:27 UTC (rev 719)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl 2017-04-04 10:23:02 UTC (rev 720)
@@ -124,8 +124,7 @@
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
#foreach($port in ${rtcParam.inports})
- ${port.tmplVarName}_arg = [None] * ((len(${pyConv.getTypeDefinition(${port.type})}) - 4) / 2)
- self._d_${port.tmplVarName} = ${pyConv.getDataportInitMethodName(${port.type})}(*${port.tmplVarName}_arg)
+ self._d_${port.tmplVarName} = OpenRTM_aist.instantiateDataType(${pyConv.getDataportInitMethodName(${port.type})})
"""
#if(${port.docDescription.length()}>0) ${tmpltHelperPy.convertDescDocPy(${port.docDescription})}
#end
@@ -145,8 +144,7 @@
self._${port.name}In = OpenRTM_aist.InPort("${port.name}", self._d_${port.tmplVarName})
#end
#foreach($port in ${rtcParam.outports})
- ${port.tmplVarName}_arg = [None] * ((len(${pyConv.getTypeDefinition(${port.type})}) - 4) / 2)
- self._d_${port.tmplVarName} = ${pyConv.getDataportInitMethodName(${port.type})}(*${port.tmplVarName}_arg)
+ self._d_${port.tmplVarName} = OpenRTM_aist.instantiateDataType(${pyConv.getDataportInitMethodName(${port.type})})
"""
#if(${port.docDescription.length()}>0) ${tmpltHelperPy.convertDescDocPy(${port.docDescription})}
#end
openrtm-commit メーリングリストの案内