Functions | Variables
DataPortTest Namespace Reference

Functions

def leak_check (rss_start, rss_end)
 memory leak check More...
 
def mem_rss ()
 
def print_file_and_cons (out_data, out_flag=0)
 file and console out More...
 

Variables

 compo0 = ns.rtc_handles["ConsoleIn0.rtc"]
 
 compo1 = ns.rtc_handles["ConsoleOut0.rtc"]
 
 conprof = RTC.ConnectorProfile("connector0", "123", [consin_ports[0],consout_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("push")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("flush"))])
 

dataflow_type: push More...

 
 conprof0
 
 conprof10
 
 conprof2 = RTC.ConnectorProfile("connector0", "123", [consout_ports[0], consin_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("pull")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("flush"))])
 

Connector Porfile: corba_cdr, push, new <<< In -> Out conprof = RTC.ConnectorProfile("connector0", "123", [consin_ports[0],consout_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("push")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("new"))]) More...

 
 consin_ports = compo0.rtc_ref.get_ports()
 
 consout_ports = compo1.rtc_ref.get_ports()
 
 data = RTC.TimedLong(RTC.Time(0,0),12345)
 
 data0 = cdrMarshal(any.to_any(data).typecode(), data, 1)
 
 data1
 
 env = RtmEnv(sys.argv, ["localhost:9898"])
 
string fodat = "=== "
 
More...
 
 fout = open(test_case + ".log", 'w')
 
 inportcdr = inportobj._narrow(OpenRTM.InPortCdr)
 
 inportobj = env.orb.string_to_object(ior)
 
 ior = any.from_any(conprof0.properties[4].value, keep_structs=True)
 
 ior10 = any.from_any(conprof10.properties[4].value, keep_structs=True)
 
 list0 = env.name_space["localhost:9898"].list_obj()
 
int loop_cnt = 1000
 
 ns = env.name_space['localhost:9898']
 
 outportcdr = outportobj._narrow(OpenRTM.OutPortCdr)
 
 outportobj = env.orb.string_to_object(ior10)
 
 ret0
 
 ret1 = inportcdr.put(data0)
 
 ret10
 
 ret11
 
 ret12 = consin_ports[0].disconnect(conprof2.connector_id)
 
 ret2 = consin_ports[0].disconnect(conprof.connector_id)
 
int rss0 = 0
 
 rss1 = i
 
 rssEnd = mem_rss()
 
 rssStart
 
string test_case = "DataPortTest"
 file out setting More...
 

Function Documentation

def DataPortTest.leak_check (   rss_start,
  rss_end 
)

memory leak check

Definition at line 58 of file DataPortTest.py.

def DataPortTest.mem_rss ( )

Definition at line 37 of file DataPortTest.py.

def DataPortTest.print_file_and_cons (   out_data,
  out_flag = 0 
)

file and console out

Definition at line 42 of file DataPortTest.py.

Variable Documentation

DataPortTest.compo0 = ns.rtc_handles["ConsoleIn0.rtc"]

Definition at line 31 of file DataPortTest.py.

DataPortTest.compo1 = ns.rtc_handles["ConsoleOut0.rtc"]

Definition at line 32 of file DataPortTest.py.

DataPortTest.conprof = RTC.ConnectorProfile("connector0", "123", [consin_ports[0],consout_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("push")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("flush"))])


dataflow_type: push

Definition at line 83 of file DataPortTest.py.

DataPortTest.conprof0

Definition at line 124 of file DataPortTest.py.

DataPortTest.conprof10

Definition at line 178 of file DataPortTest.py.

DataPortTest.conprof2 = RTC.ConnectorProfile("connector0", "123", [consout_ports[0], consin_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("pull")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("flush"))])


Connector Porfile: corba_cdr, push, new <<< In -> Out conprof = RTC.ConnectorProfile("connector0", "123", [consin_ports[0],consout_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("push")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("new"))])


Connector Porfile: corba_cdr, push, periodic <<< In -> Out conprof = RTC.ConnectorProfile("connector0", "123", [consin_ports[0],consout_ports[0]], [SDOPackage.NameValue("dataport.interface_type",any.to_any("corba_cdr")),SDOPackage.NameValue("dataport.dataflow_type",any.to_any("push")),SDOPackage.NameValue("dataport.subscription_type",any.to_any("periodic"))]) --------------------------------------------------------------—— print "ConnectorProfile=\n",conprof -----------------------------------------------------------------— dataflow_type: pull Connector Porfile: corba_cdr, pull, flush <<< Out -> In

Definition at line 108 of file DataPortTest.py.

DataPortTest.consin_ports = compo0.rtc_ref.get_ports()

Definition at line 73 of file DataPortTest.py.

DataPortTest.consout_ports = compo1.rtc_ref.get_ports()

Definition at line 75 of file DataPortTest.py.

DataPortTest.data = RTC.TimedLong(RTC.Time(0,0),12345)

Definition at line 140 of file DataPortTest.py.

DataPortTest.data0 = cdrMarshal(any.to_any(data).typecode(), data, 1)

Definition at line 141 of file DataPortTest.py.

DataPortTest.data1

Definition at line 197 of file DataPortTest.py.

DataPortTest.env = RtmEnv(sys.argv, ["localhost:9898"])

Definition at line 23 of file DataPortTest.py.

string DataPortTest.fodat = "=== "



ec2[0].deactivate_component(compo1.rtc_ref) ec1[0].deactivate_component(compo0.rtc_ref)

Definition at line 70 of file DataPortTest.py.

DataPortTest.fout = open(test_case + ".log", 'w')

Definition at line 68 of file DataPortTest.py.

DataPortTest.inportcdr = inportobj._narrow(OpenRTM.InPortCdr)

Definition at line 139 of file DataPortTest.py.

DataPortTest.inportobj = env.orb.string_to_object(ior)

Definition at line 138 of file DataPortTest.py.

DataPortTest.ior = any.from_any(conprof0.properties[4].value, keep_structs=True)

Definition at line 136 of file DataPortTest.py.

DataPortTest.ior10 = any.from_any(conprof10.properties[4].value, keep_structs=True)

Definition at line 190 of file DataPortTest.py.

DataPortTest.list0 = env.name_space["localhost:9898"].list_obj()

Definition at line 24 of file DataPortTest.py.

int DataPortTest.loop_cnt = 1000

Definition at line 78 of file DataPortTest.py.

DataPortTest.ns = env.name_space['localhost:9898']

Definition at line 29 of file DataPortTest.py.

DataPortTest.outportcdr = outportobj._narrow(OpenRTM.OutPortCdr)

Definition at line 194 of file DataPortTest.py.

DataPortTest.outportobj = env.orb.string_to_object(ior10)

Definition at line 193 of file DataPortTest.py.

DataPortTest.ret0

Definition at line 124 of file DataPortTest.py.

DataPortTest.ret1 = inportcdr.put(data0)

Definition at line 142 of file DataPortTest.py.

DataPortTest.ret10

Definition at line 178 of file DataPortTest.py.

DataPortTest.ret11

Definition at line 197 of file DataPortTest.py.

DataPortTest.ret12 = consin_ports[0].disconnect(conprof2.connector_id)

Definition at line 206 of file DataPortTest.py.

DataPortTest.ret2 = consin_ports[0].disconnect(conprof.connector_id)

Definition at line 152 of file DataPortTest.py.

int DataPortTest.rss0 = 0

Definition at line 158 of file DataPortTest.py.

DataPortTest.rss1 = i

Definition at line 161 of file DataPortTest.py.

DataPortTest.rssEnd = mem_rss()

Definition at line 167 of file DataPortTest.py.

DataPortTest.rssStart

Definition at line 158 of file DataPortTest.py.

string DataPortTest.test_case = "DataPortTest"

file out setting

Definition at line 67 of file DataPortTest.py.



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