Namespaces | Functions | Variables
ConnectTest.py File Reference

Go to the source code of this file.

Namespaces

 OpenRTM_aist.examples.AutoTest.ConnectTest
 

Functions

def OpenRTM_aist.examples.AutoTest.ConnectTest.delete_recv_file ()
 

内部関数:受信ファイル削除 More...

 
def OpenRTM_aist.examples.AutoTest.ConnectTest.diff_file ()
 

内部関数:送受信ファイルのデータ比較 More...

 
def OpenRTM_aist.examples.AutoTest.ConnectTest.make_connecter_profile (subscription_type, push_policy, connect_direction)
 

内部関数:コネクタープロファイル設定(データポート) More...

 

Variables

def OpenRTM_aist.examples.AutoTest.ConnectTest.bret = diff_file()
 7 送受信データ比較 More...
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.case_no = 0
 

テストケース番号の初期値設定 上から連番を振っている More...

 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ec_recv = g_compo_recv.rtc_ref.get_owned_contexts()
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ec_send = g_compo_send.rtc_ref.get_owned_contexts()
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.env = RtmEnv(sys.argv, ["localhost:2809"])
 ネームサーバー定義 env = RtmEnv(sys.argv, ["localhost:2809"]) list0 = env.name_space["localhost:2809"].list_obj() env.name_space['localhost:2809'].rtc_handles.keys() ns = env.name_space['localhost:2809'] More...
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.fin2 = open(g_diff_recv_file, 'r')
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.fout = open(g_test_result_file, 'w')
 6 ポート切断 More...
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_check_message = g_diff_recv_file + " file not found."
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_compo_recv = ns.rtc_handles["AutoTestIn0.rtc"]
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_compo_send = ns.rtc_handles["AutoTestOut0.rtc"]
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_connector_id1 = "001"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_connector_id2 = "002"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_connector_id3 = "003"
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_conprof1 = RTC.ConnectorProfile(g_name1, g_connector_id1, [g_out_ports[g_port1], g_in_ports[g_port1]], [SDOPackage.NameValue("dataport.data_type",any.to_any(g_data_type1)),SDOPackage.NameValue("dataport.interface_type",any.to_any(g_interface_type1)),SDOPackage.NameValue("dataport.dataflow_type",any.to_any(g_dataflow_type)),SDOPackage.NameValue("dataport.subscription_type",any.to_any(g_subscription_type)),SDOPackage.NameValue("dataport.publisher.push_policy",any.to_any(g_push_policy)),SDOPackage.NameValue("dataport.publisher.push_rate",any.to_any(g_push_rate)),SDOPackage.NameValue("dataport.publisher.skip_count",any.to_any(g_skip_count))])
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_conprof2 = RTC.ConnectorProfile(g_name2, g_connector_id2, [g_out_ports[g_port2], g_in_ports[g_port2]], [SDOPackage.NameValue("dataport.data_type",any.to_any(g_data_type2)),SDOPackage.NameValue("dataport.interface_type",any.to_any(g_interface_type1)),SDOPackage.NameValue("dataport.dataflow_type",any.to_any(g_dataflow_type)),SDOPackage.NameValue("dataport.subscription_type",any.to_any(g_subscription_type)),SDOPackage.NameValue("dataport.publisher.push_policy",any.to_any(g_push_policy)),SDOPackage.NameValue("dataport.publisher.push_rate",any.to_any(g_push_rate)),SDOPackage.NameValue("dataport.publisher.skip_count",any.to_any(g_skip_count))])
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_conprof3 = RTC.ConnectorProfile(g_name3, g_connector_id3, [g_out_ports[g_port3], g_in_ports[g_port3]], [SDOPackage.NameValue("dataport.interface_type",any.to_any(g_interface_type3))])
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_data_type1 = "TimedFloat"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_data_type2 = "TimedFloatSeq"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_dataflow_type = "push"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_diff_recv_file = "./received-data"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_diff_send_file = "./original-data"
 

送受信結果判定関連 More...

 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_in_ports = g_compo_recv.rtc_ref.get_ports()
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_interface_type1 = "corba_cdr"
 

コネクタープロファイルデフォルト定義 More...

 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_interface_type3 = "MyService"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_mess_footer = " > "
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_mess_header = "< "
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_name1 = "out"
 ConnectorProfile(name, connector_id, ports, properties) String name String connector_id RTC.PortService ports[] SDOPackage.NameValue properties[]. More...
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_name2 = "seqout"
 データポート TimedFloatSeq More...
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_name3 = "MyService"
 サービスポート More...
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.g_out_ports = g_compo_send.rtc_ref.get_ports()
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.g_port1 = 0
 ポート番号指定 ( get_ports()より ) More...
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.g_port2 = 1
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.g_port3 = 2
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_push_policy = "NEW"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_push_rate = "2000"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_skip_count = "4"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_subscription_type = "flush"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_case = "case"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_cnt = "count"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_name = "<< component connection test >>"
 
More...
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_ng = "NG detected."
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_ng_message = " < received-data >"
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_ok = "OK."
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.g_test_result_file = "./ResultTest.log"
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.list0 = env.name_space["localhost:2809"].list_obj()
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.loop_count = 3
 ケース毎のテスト回数 More...
 
string OpenRTM_aist.examples.AutoTest.ConnectTest.message = g_mess_header + g_test_case + str(case_no) + " "
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ns = env.name_space['localhost:2809']
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ret0 = g_out_ports[g_port1].connect(g_conprof1)
 1 コネクタープロファイル設定 More...
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ret1 = g_out_ports[g_port2].connect(g_conprof2)
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.ret2 = g_out_ports[g_port3].connect(g_conprof3)
 
 OpenRTM_aist.examples.AutoTest.ConnectTest.s2 = fin2.readline()
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.sleep_act_time = 10
 activate_componentからdeactivate_componentまでのスリープ時間(秒数) More...
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.sleep_connect_time = 2
 connectからdisconnectまでのスリープ時間(秒数) More...
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.sleep_for_time = 2
 forループのスリープ時間(秒数) More...
 
int OpenRTM_aist.examples.AutoTest.ConnectTest.sleep_recv_act_time = 1
 受信側activate_componentから送信側activate_componentまでのスリープ時間(秒数) More...
 


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:07