Functions | Variables
ConnectRTCTest 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"))])
 

Connector Porfile: corba_cdr, push, flush <<< In -> Out More...

 
 consin_ports = compo0.rtc_ref.get_ports()
 
More...
 
 consout_ports = compo1.rtc_ref.get_ports()
 
 env = RtmEnv(sys.argv, ["localhost:9898"])
 
string fodat = "=== " + test_case + " start ==="
 

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...

 
 fout = open(test_case + ".log", 'w')
 
 list0 = env.name_space["localhost:9898"].list_obj()
 
int loop_cnt = 1000
 
 ns = env.name_space['localhost:9898']
 
 ret0 = consin_ports[0].notify_connect(conprof)
 
 ret1 = consin_ports[0].notify_disconnect(conprof.connector_id)
 
def rss0 = rss0
 
def rss1 = i
 
def rssEnd = mem_rss()
 
string test_case = "ConnectRTCTest"
 file out setting More...
 

Function Documentation

◆ leak_check()

def ConnectRTCTest.leak_check (   rss_start,
  rss_end 
)

memory leak check

Definition at line 51 of file ConnectRTCTest.py.

◆ mem_rss()

def ConnectRTCTest.mem_rss ( )

Definition at line 30 of file ConnectRTCTest.py.

◆ print_file_and_cons()

def ConnectRTCTest.print_file_and_cons (   out_data,
  out_flag = 0 
)

file and console out

Definition at line 35 of file ConnectRTCTest.py.

Variable Documentation

◆ compo0

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

Definition at line 27 of file ConnectRTCTest.py.

◆ compo1

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

Definition at line 28 of file ConnectRTCTest.py.

◆ conprof

ConnectRTCTest.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"))])


Connector Porfile: corba_cdr, push, flush <<< In -> Out

Definition at line 75 of file ConnectRTCTest.py.

◆ consin_ports

ConnectRTCTest.consin_ports = compo0.rtc_ref.get_ports()


Definition at line 68 of file ConnectRTCTest.py.

◆ consout_ports

ConnectRTCTest.consout_ports = compo1.rtc_ref.get_ports()

Definition at line 70 of file ConnectRTCTest.py.

◆ env

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

Definition at line 19 of file ConnectRTCTest.py.

◆ fodat

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


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")),SDOPackage.NameValue("dataport.publisher.push_rate",any.to_any(2000))]) --------------------------------------------------------------—— print "ConnectorProfile=\n",conprof --------------------------------------------------------------------------—

Definition at line 63 of file ConnectRTCTest.py.

◆ fout

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

Definition at line 61 of file ConnectRTCTest.py.

◆ list0

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

Definition at line 20 of file ConnectRTCTest.py.

◆ loop_cnt

int ConnectRTCTest.loop_cnt = 1000

Definition at line 66 of file ConnectRTCTest.py.

◆ ns

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

Definition at line 25 of file ConnectRTCTest.py.

◆ ret0

ConnectRTCTest.ret0 = consin_ports[0].notify_connect(conprof)

Definition at line 151 of file ConnectRTCTest.py.

◆ ret1

ConnectRTCTest.ret1 = consin_ports[0].notify_disconnect(conprof.connector_id)

Definition at line 154 of file ConnectRTCTest.py.

◆ rss0

def ConnectRTCTest.rss0 = rss0

Definition at line 108 of file ConnectRTCTest.py.

◆ rss1

def ConnectRTCTest.rss1 = i

Definition at line 111 of file ConnectRTCTest.py.

◆ rssEnd

def ConnectRTCTest.rssEnd = mem_rss()

Definition at line 117 of file ConnectRTCTest.py.

◆ test_case

string ConnectRTCTest.test_case = "ConnectRTCTest"

file out setting

Definition at line 60 of file ConnectRTCTest.py.



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