Classes | Functions | Variables
python_gen Namespace Reference

Classes

class  python_gen

Functions

def description
def get_opt_fmt
def usage

Variables

string bind_config
string configurations
string data_ports
string global_idl
string module_spec
string no_global_idl = ""
string py_source
string service_impl
string service_ports

Function Documentation

Definition at line 25 of file python_gen.py.

Definition at line 44 of file python_gen.py.

Python generator specific usage

Definition at line 28 of file python_gen.py.


Variable Documentation

Initial value:
00001 """
00002 [for conf in configurationSet.configuration]
00003     self.bindParameter("[conf.name]", self._[conf.name], "[conf.defaultValue]")
00004 [endfor]"""

Definition at line 114 of file python_gen.py.

Initial value:
00001 """\
00002 [for config in configurationSet.configuration]
00003     self._[config.name] = [config.defaultData]
00004 
00005 [endfor]
00006 """

Definition at line 107 of file python_gen.py.

Initial value:
00001 """\
00002 [for dport in dataPorts]
00003     self._d_[dport.name] = RTC.[dport.type]([dport.data_type_args])
00004 [if dport.portType is DataInPort]
00005     self._[dport.name]In = OpenRTM_aist.InPort("[dport.name]", self._d_[dport.name])
00006     self.addInPort("[dport.name]",self._[dport.name]In)
00007 
00008 [elif dport.portType is DataOutPort]
00009     self._[dport.name]Out = OpenRTM_aist.OutPort("[dport.name]", self._d_[dport.name])
00010     self.addOutPort("[dport.name]",self._[dport.name]Out)
00011 
00012 [endif]
00013 [endfor]
00014 """

Definition at line 75 of file python_gen.py.

Initial value:
00001 """\
00002 import _GlobalIDL, _GlobalIDL__POA
00003 """

Definition at line 52 of file python_gen.py.

Initial value:
00001 """\
00002 [l_name]_spec = ["implementation_id", "[basicInfo.name]", 
00003                  "type_name",         "[basicInfo.name]", 
00004                  "description",       "[basicInfo.description]", 
00005                  "version",           "[basicInfo.version]", 
00006                  "vendor",            "[basicInfo.vendor]", 
00007                  "category",          "[basicInfo.category]", 
00008                  "activity_type",     "[basicInfo.componentType]", 
00009                  "max_instance",      "[basicInfo.maxInstances]", 
00010                  "language",          "Python", 
00011                  "lang_type",         "SCRIPT",
00012 [if-any configurationSet.configuration]
00013 [for config in configurationSet.configuration]
00014                  "conf.default.[config.name]", "[config.defaultValue]",
00015 [endfor][endif]
00016                  ""]
00017 """

Definition at line 57 of file python_gen.py.

Definition at line 55 of file python_gen.py.

Definition at line 123 of file python_gen.py.

Initial value:
00001 """\
00002 [for sidl in service_idl]
00003 from [sidl.idl_basename]_idl_example import *
00004 [endfor]"""

Definition at line 47 of file python_gen.py.

Initial value:
00001 """\
00002 [for sport in servicePorts]
00003     self._[sport.name]Port = OpenRTM_aist.CorbaPort("[sport.name]")
00004 [for sif in sport.serviceInterface]
00005 [if sif.direction is Provided]
00006     self._[sif.name] = [sif.type]_i()
00007     self._[sport.name]Port.registerProvider("[sif.name]", "[sif.type]", self._[sif.name])
00008 [elif sif.direction is Required]
00009     self._[sif.name] = OpenRTM_aist.CorbaConsumer(interfaceType=_GlobalIDL.[sif.type])
00010     self._[sport.name]Port.registerConsumer("[sif.name]", "[sif.type]", self._[sif.name])
00011 [endif]
00012     self.addPort(self._[sport.name]Port)
00013 
00014 [endfor]
00015 [endfor]
00016 """

Definition at line 90 of file python_gen.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:13