Functions | Variables
ConnectRTCTest Namespace Reference

Functions

def leak_check
 memory leak check
def mem_rss
def print_file_and_cons
 file and console out

Variables

list compo0 = ns.rtc_handles["ConsoleIn0.rtc"]
list compo1 = ns.rtc_handles["ConsoleOut0.rtc"]
tuple 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"))])
tuple consin_ports = compo0.rtc_ref.get_ports()
tuple consout_ports = compo1.rtc_ref.get_ports()
tuple env = RtmEnv(sys.argv, ["localhost:9898"])
string fodat = "=== "
tuple fout = open(test_case + ".log", 'w')
list list0 = env.name_space["localhost:9898"]
int loop_cnt = 1000
list ns = env.name_space['localhost:9898']
list ret0 = consin_ports[0]
list ret1 = consin_ports[0]
tuple rss0 = mem_rss()
tuple rss1 = mem_rss()
tuple rssEnd = mem_rss()
string test_case = "ConnectRTCTest"
 file out setting

Function Documentation

def ConnectRTCTest.leak_check (   rss_start,
  rss_end 
)

memory leak check

Definition at line 51 of file ConnectRTCTest.py.

Definition at line 30 of file ConnectRTCTest.py.

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

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

Definition at line 27 of file ConnectRTCTest.py.

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

Definition at line 28 of file ConnectRTCTest.py.

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

tuple ConnectRTCTest::consin_ports = compo0.rtc_ref.get_ports()

-----------------------------------------------------------------------------

Definition at line 68 of file ConnectRTCTest.py.

tuple ConnectRTCTest::consout_ports = compo1.rtc_ref.get_ports()

Definition at line 70 of file ConnectRTCTest.py.

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

Definition at line 19 of file ConnectRTCTest.py.

string ConnectRTCTest::fodat = "=== "

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

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

Definition at line 61 of file ConnectRTCTest.py.

list ConnectRTCTest::list0 = env.name_space["localhost:9898"]

Definition at line 20 of file ConnectRTCTest.py.

Definition at line 66 of file ConnectRTCTest.py.

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

Definition at line 25 of file ConnectRTCTest.py.

Definition at line 151 of file ConnectRTCTest.py.

Definition at line 154 of file ConnectRTCTest.py.

Definition at line 108 of file ConnectRTCTest.py.

Definition at line 111 of file ConnectRTCTest.py.

Definition at line 117 of file ConnectRTCTest.py.

string ConnectRTCTest::test_case = "ConnectRTCTest"

file out setting

Definition at line 60 of file ConnectRTCTest.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:40