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 = "=== " + test_case + " start ==="
 
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)
 
def rss0 = rss0
 
def rss1 = i
 
def rssEnd = mem_rss()
 
string test_case = "DataPortTest"
 file out setting More...
 

Function Documentation

◆ leak_check()

def DataPortTest.leak_check (   rss_start,
  rss_end 
)

memory leak check

Definition at line 58 of file DataPortTest.py.

◆ mem_rss()

def DataPortTest.mem_rss ( )

Definition at line 37 of file DataPortTest.py.

◆ print_file_and_cons()

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

◆ compo0

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

Definition at line 31 of file DataPortTest.py.

◆ compo1

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

Definition at line 32 of file DataPortTest.py.

◆ conprof

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.

◆ conprof0

DataPortTest.conprof0

Definition at line 124 of file DataPortTest.py.

◆ conprof10

DataPortTest.conprof10

Definition at line 178 of file DataPortTest.py.

◆ conprof2

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.

◆ consin_ports

DataPortTest.consin_ports = compo0.rtc_ref.get_ports()

Definition at line 73 of file DataPortTest.py.

◆ consout_ports

DataPortTest.consout_ports = compo1.rtc_ref.get_ports()

Definition at line 75 of file DataPortTest.py.

◆ data

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

Definition at line 140 of file DataPortTest.py.

◆ data0

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

Definition at line 141 of file DataPortTest.py.

◆ data1

DataPortTest.data1

Definition at line 197 of file DataPortTest.py.

◆ env

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

Definition at line 23 of file DataPortTest.py.

◆ fodat

string DataPortTest.fodat = "=== " + test_case + " start ==="



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

Definition at line 70 of file DataPortTest.py.

◆ fout

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

Definition at line 68 of file DataPortTest.py.

◆ inportcdr

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

Definition at line 139 of file DataPortTest.py.

◆ inportobj

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

Definition at line 138 of file DataPortTest.py.

◆ ior

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

Definition at line 136 of file DataPortTest.py.

◆ ior10

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

Definition at line 190 of file DataPortTest.py.

◆ list0

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

Definition at line 24 of file DataPortTest.py.

◆ loop_cnt

int DataPortTest.loop_cnt = 1000

Definition at line 78 of file DataPortTest.py.

◆ ns

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

Definition at line 29 of file DataPortTest.py.

◆ outportcdr

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

Definition at line 194 of file DataPortTest.py.

◆ outportobj

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

Definition at line 193 of file DataPortTest.py.

◆ ret0

DataPortTest.ret0

Definition at line 124 of file DataPortTest.py.

◆ ret1

DataPortTest.ret1 = inportcdr.put(data0)

Definition at line 142 of file DataPortTest.py.

◆ ret10

DataPortTest.ret10

Definition at line 178 of file DataPortTest.py.

◆ ret11

DataPortTest.ret11

Definition at line 197 of file DataPortTest.py.

◆ ret12

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

Definition at line 206 of file DataPortTest.py.

◆ ret2

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

Definition at line 152 of file DataPortTest.py.

◆ rss0

def DataPortTest.rss0 = rss0

Definition at line 158 of file DataPortTest.py.

◆ rss1

def DataPortTest.rss1 = i

Definition at line 161 of file DataPortTest.py.

◆ rssEnd

def DataPortTest.rssEnd = mem_rss()

Definition at line 167 of file DataPortTest.py.

◆ test_case

string DataPortTest.test_case = "DataPortTest"

file out setting

Definition at line 67 of file DataPortTest.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:46