48 readme =
"""====================================================================== 49 RTComponent: [module.name] specificatioin 54 This file is generated by rtc-template with the following argments. 56 [for fmtd_args] [fmtd_args] 58 ====================================================================== 59 # <rtc-template block="module"> 63 ====================================================================== 65 ====================================================================== 96 ====================================================================== 98 ====================================================================== 99 # <rtc-template block="inport"> 102 ====================================================================== 104 ====================================================================== 105 # <rtc-template block="outport"> 109 ====================================================================== 111 ====================================================================== 112 # <rtc-template block="service"> 115 ====================================================================== 116 Configuration definition 117 ====================================================================== 118 This area is reserved for future OpenRTM. 122 module =
"""Description: [module.desc] 123 Version: [module.version] 124 Author: [module.vendor] 125 Category: [module.category] 126 Comp. Type: [module.comp_type] 127 Act. Type: [module.act_type] 128 MAX Inst.: [module.max_inst] 133 inport =
"""[for inport] 135 PortNumber: [inport.num] 138 DataType: [inport.type] 151 outport =
"""[for outport] 153 PortNumber: [outport.num] 156 DataType: [outport.type] 168 service =
"""[for service] 169 Interface: [service.type] 178 self.
data[
'fname'] =
"README." + self.
data[
'fname']
180 self.
data[
'version'] =
"0.4.1" 181 self.
data[
'date'] = time.asctime()
186 self.
tags[
"module"] = module
187 self.
tags[
"inport"] = inport
188 self.
tags[
"outport"] = outport
189 self.
tags[
"service"] = service
def gen(self, fname, temp_txt, data, tags)