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

def python_gen.description ( )

Definition at line 25 of file python_gen.py.

def python_gen.get_opt_fmt ( )

Definition at line 44 of file python_gen.py.

def python_gen.usage ( )
Python generator specific usage

Definition at line 28 of file python_gen.py.

Variable Documentation

string python_gen.bind_config
Initial value:
1 = """
2 [for conf in configurationSet.configuration]
3  self.bindParameter("[conf.name]", self._[conf.name], "[conf.defaultValue]")
4 [endfor]"""

Definition at line 114 of file python_gen.py.

string python_gen.configurations
Initial value:
1 = """\
2 [for config in configurationSet.configuration]
3  self._[config.name] = [config.defaultData]
4 
5 [endfor]
6 """

Definition at line 107 of file python_gen.py.

string python_gen.data_ports
Initial value:
1 = """\
2 [for dport in dataPorts]
3  self._d_[dport.name] = RTC.[dport.type]([dport.data_type_args])
4 [if dport.portType is DataInPort]
5  self._[dport.name]In = OpenRTM_aist.InPort("[dport.name]", self._d_[dport.name])
6  self.addInPort("[dport.name]",self._[dport.name]In)
7 
8 [elif dport.portType is DataOutPort]
9  self._[dport.name]Out = OpenRTM_aist.OutPort("[dport.name]", self._d_[dport.name])
10  self.addOutPort("[dport.name]",self._[dport.name]Out)
11 
12 [endif]
13 [endfor]
14 """

Definition at line 75 of file python_gen.py.

string python_gen.global_idl
Initial value:
1 = """\
2 import _GlobalIDL, _GlobalIDL__POA
3 """

Definition at line 52 of file python_gen.py.

string python_gen.module_spec
Initial value:
1 = """\
2 [l_name]_spec = ["implementation_id", "[basicInfo.name]",
3  "type_name", "[basicInfo.name]",
4  "description", "[basicInfo.description]",
5  "version", "[basicInfo.version]",
6  "vendor", "[basicInfo.vendor]",
7  "category", "[basicInfo.category]",
8  "activity_type", "[basicInfo.componentType]",
9  "max_instance", "[basicInfo.maxInstances]",
10  "language", "Python",
11  "lang_type", "SCRIPT",
12 [if-any configurationSet.configuration]
13 [for config in configurationSet.configuration]
14  "conf.default.[config.name]", "[config.defaultValue]",
15 [endfor][endif]
16  ""]
17 """

Definition at line 57 of file python_gen.py.

string python_gen.no_global_idl = ""

Definition at line 55 of file python_gen.py.

string python_gen.py_source

Definition at line 123 of file python_gen.py.

string python_gen.service_impl
Initial value:
1 = """\
2 [for sidl in service_idl]
3 from [sidl.idl_basename]_idl_example import *
4 [endfor]"""

Definition at line 47 of file python_gen.py.

string python_gen.service_ports
Initial value:
1 = """\
2 [for sport in servicePorts]
3  self._[sport.name]Port = OpenRTM_aist.CorbaPort("[sport.name]")
4 [for sif in sport.serviceInterface]
5 [if sif.direction is Provided]
6  self._[sif.name] = [sif.type]_i()
7  self._[sport.name]Port.registerProvider("[sif.name]", "[sif.type]", self._[sif.name])
8 [elif sif.direction is Required]
9  self._[sif.name] = OpenRTM_aist.CorbaConsumer(interfaceType=_GlobalIDL.[sif.type])
10  self._[sport.name]Port.registerConsumer("[sif.name]", "[sif.type]", self._[sif.name])
11 [endif]
12  self.addPort(self._[sport.name]Port)
13 
14 [endfor]
15 [endfor]
16 """

Definition at line 90 of file python_gen.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:03