[openrtm-commit:01055] r556 - in branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist: examples/AutoControl examples/AutoTest examples/NXTRTC test
openrtm ¡÷ openrtm.org
openrtm ¡÷ openrtm.org
2013ǯ 4·î 18Æü (ÌÚ) 16:02:34 JST
Author: n-ando
Date: 2013-04-18 16:02:34 +0900 (Thu, 18 Apr 2013)
New Revision: 556
Modified:
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoControl/AutoControl.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/ConnectTest.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/CorbaNaming.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick20.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20_callback.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC_callback.py
branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/test/MySdoServiceConsumer.py
Log:
Character code and CR code have been unified to EUC/LF.
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoControl/AutoControl.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoControl/AutoControl.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoControl/AutoControl.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,130 +1,130 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# -*- Python -*-
-
-import sys
-import time
-sys.path.append(".")
-
-# Import RTM module
-import RTC
-import OpenRTM_aist
-
-# Import Service implementation class
-# <rtc-template block="service_impl">
-
-# </rtc-template>
-
-# Import Service stub modules
-# <rtc-template block="consumer_import">
-# </rtc-template>
-
-
-# This module's spesification
-# <rtc-template block="module_spec">
-AutoControl_spec = ["implementation_id", "AutoControl",
- "type_name", "AutoControl",
- "description", "Auto controller component for MobileRobot",
- "version", "1.0.0",
- "vendor", "AIST",
- "category", "example",
- "activity_type", "DataFlowComponent",
- "max_instance", "1",
- "language", "Python",
- "lang_type", "SCRIPT",
- "conf.default.velocity", "80.0",
- "conf.default.turn_velocity", "80.0",
- "conf.default.distance_to_env", "40.0",
- ""]
-# </rtc-template>
-
-class AutoControl(OpenRTM_aist.DataFlowComponentBase):
- def __init__(self, manager):
- OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- # initialize of configuration-data.
- # <rtc-template block="init_conf_param">
- self._velocity = [80.0]
- self._turn_velocity = [80.0]
- self._distance_to_env = [40.0]
-
- return
-
-
- def onInitialize(self):
- # Bind variables and configuration variable
- self.bindParameter("velocity", self._velocity, "80.0")
- self.bindParameter("turn_velocity", self._turn_velocity, "80.0")
- self.bindParameter("distance_to_env", self._distance_to_env, "40.0")
-
- self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._sensIn = OpenRTM_aist.InPort("sens", self._d_sens)
- self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._velOut = OpenRTM_aist.OutPort("vel", self._d_vel)
-
- # Set InPort buffers
- self.addInPort("sens",self._sensIn)
-
- # Set OutPort buffers
- self.addOutPort("vel",self._velOut)
-
- return RTC.RTC_OK
-
-
-
- def onActivated(self, ec_id):
- self._d_vel.data = [0.0, 0.0]
- self._velOut.write()
- return RTC.RTC_OK
-
- def onDeactivated(self, ec_id):
- self._d_vel.data = [0.0, 0.0]
- self._velOut.write()
- return RTC.RTC_OK
-
- def onExecute(self, ec_id):
- if self._sensIn.isNew():
- self._d_sens = self._sensIn.read()
- self._d_vel.data = self.calcVel()
- self._velOut.write()
- time.sleep(0.1)
- return RTC.RTC_OK
-
- time.sleep(0.1)
- return RTC.RTC_OK
-
-
-
- def calcVel(self):
- if self._d_sens.data[3] <= self._distance_to_env[0]:
- return [self._turn_velocity[0], -(self._turn_velocity[0])]
-
- elif self._d_sens.data[3] > self._distance_to_env[0]:
- return [self._velocity[0] for i in range(2)]
- else:
- return [0.0 for i in range(2)]
-
-
-
-def AutoControlInit(manager):
- profile = OpenRTM_aist.Properties(defaults_str=AutoControl_spec)
- manager.registerFactory(profile,
- AutoControl,
- OpenRTM_aist.Delete)
-
-def MyModuleInit(manager):
- AutoControlInit(manager)
-
- # Create a component
- comp = manager.createComponent("AutoControl")
-
-
-
-def main():
- mgr = OpenRTM_aist.Manager.init(sys.argv)
- mgr.setModuleInitProc(MyModuleInit)
- mgr.activateManager()
- mgr.runManager()
-
-if __name__ == "__main__":
- main()
-
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# -*- Python -*-
+
+import sys
+import time
+sys.path.append(".")
+
+# Import RTM module
+import RTC
+import OpenRTM_aist
+
+# Import Service implementation class
+# <rtc-template block="service_impl">
+
+# </rtc-template>
+
+# Import Service stub modules
+# <rtc-template block="consumer_import">
+# </rtc-template>
+
+
+# This module's spesification
+# <rtc-template block="module_spec">
+AutoControl_spec = ["implementation_id", "AutoControl",
+ "type_name", "AutoControl",
+ "description", "Auto controller component for MobileRobot",
+ "version", "1.0.0",
+ "vendor", "AIST",
+ "category", "example",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "1",
+ "language", "Python",
+ "lang_type", "SCRIPT",
+ "conf.default.velocity", "80.0",
+ "conf.default.turn_velocity", "80.0",
+ "conf.default.distance_to_env", "40.0",
+ ""]
+# </rtc-template>
+
+class AutoControl(OpenRTM_aist.DataFlowComponentBase):
+ def __init__(self, manager):
+ OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
+ # initialize of configuration-data.
+ # <rtc-template block="init_conf_param">
+ self._velocity = [80.0]
+ self._turn_velocity = [80.0]
+ self._distance_to_env = [40.0]
+
+ return
+
+
+ def onInitialize(self):
+ # Bind variables and configuration variable
+ self.bindParameter("velocity", self._velocity, "80.0")
+ self.bindParameter("turn_velocity", self._turn_velocity, "80.0")
+ self.bindParameter("distance_to_env", self._distance_to_env, "40.0")
+
+ self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._sensIn = OpenRTM_aist.InPort("sens", self._d_sens)
+ self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._velOut = OpenRTM_aist.OutPort("vel", self._d_vel)
+
+ # Set InPort buffers
+ self.addInPort("sens",self._sensIn)
+
+ # Set OutPort buffers
+ self.addOutPort("vel",self._velOut)
+
+ return RTC.RTC_OK
+
+
+
+ def onActivated(self, ec_id):
+ self._d_vel.data = [0.0, 0.0]
+ self._velOut.write()
+ return RTC.RTC_OK
+
+ def onDeactivated(self, ec_id):
+ self._d_vel.data = [0.0, 0.0]
+ self._velOut.write()
+ return RTC.RTC_OK
+
+ def onExecute(self, ec_id):
+ if self._sensIn.isNew():
+ self._d_sens = self._sensIn.read()
+ self._d_vel.data = self.calcVel()
+ self._velOut.write()
+ time.sleep(0.1)
+ return RTC.RTC_OK
+
+ time.sleep(0.1)
+ return RTC.RTC_OK
+
+
+
+ def calcVel(self):
+ if self._d_sens.data[3] <= self._distance_to_env[0]:
+ return [self._turn_velocity[0], -(self._turn_velocity[0])]
+
+ elif self._d_sens.data[3] > self._distance_to_env[0]:
+ return [self._velocity[0] for i in range(2)]
+ else:
+ return [0.0 for i in range(2)]
+
+
+
+def AutoControlInit(manager):
+ profile = OpenRTM_aist.Properties(defaults_str=AutoControl_spec)
+ manager.registerFactory(profile,
+ AutoControl,
+ OpenRTM_aist.Delete)
+
+def MyModuleInit(manager):
+ AutoControlInit(manager)
+
+ # Create a component
+ comp = manager.createComponent("AutoControl")
+
+
+
+def main():
+ mgr = OpenRTM_aist.Manager.init(sys.argv)
+ mgr.setModuleInitProc(MyModuleInit)
+ mgr.activateManager()
+ mgr.runManager()
+
+if __name__ == "__main__":
+ main()
+
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/ConnectTest.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/ConnectTest.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/ConnectTest.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -5,7 +5,7 @@
#
## ConnectTest.py
##
-## ã³ã³ãã¼ãã³ãæ¥ç¶ãã¹ã
+## åâ³åã³åãÚ妾åãºå¦µåã°è¼§î¸Ôå¥æåâ¹åã
##
from rtc_handle10_11 import *
@@ -19,7 +19,7 @@
##--------------------------------------------------------------------
g_test_name = "<< component connection test >>"
-## ãã¼ã ãµã¼ãã¼å®ç¾©
+## åãºå¦¾åã åâµåã¼åãÀ妾ê°Ô龩
#env = RtmEnv(sys.argv, ["localhost:2809"])
#list0 = env.name_space["localhost:2809"].list_obj()
#env.name_space['localhost:2809'].rtc_handles.keys()
@@ -38,14 +38,14 @@
g_out_ports = g_compo_send.rtc_ref.get_ports()
g_in_ports = g_compo_recv.rtc_ref.get_ports()
#print "<<< g_out_ports.length=",len(g_out_ports)
-#SeqOutã®å ´å
+#SeqOutåá®ê¢´éð
#length=8 [0]:Short [1]:Long [2]:Float [3]:Double [4]:ShortSeq [5]:LongSeq [6]:FloatSeq [7]:DoubleSeq
#print "<<< g_in_ports.length=",len(g_in_ports)
time.sleep(2)
##--------------------------------------------------------------------
-## ã³ãã¯ã¿ã¼ãããã¡ã¤ã«ããã©ã«ãå®ç¾©
+## åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«åã®å¥õåâ©åã«åã°ç®Ô龩
g_interface_type1 = "corba_cdr"
g_dataflow_type = "push"
g_subscription_type = "flush"
@@ -54,7 +54,7 @@
g_skip_count = "4"
#g_skip_count = "0"
-## ãã¼ãçªå·æå® ( get_ports()ãã )
+## åãÚ妾åã°éʬéï·ëì®ç® ( get_ports()åâ°å£ê )
g_port1 = 0
g_port2 = 1
g_port3 = 2
@@ -65,21 +65,21 @@
## RTC.PortService ports[]
## SDOPackage.NameValue properties[]
-## ãã¼ã¿ãã¼ã TimedFloat
+## åã®å¦¾åâ¿åãÚ妾åã TimedFloat
g_name1 = "out"
g_connector_id1 = "001"
g_data_type1 = "TimedFloat"
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))])
-## ãã¼ã¿ãã¼ã TimedFloatSeq
+## åã®å¦¾åâ¿åãÚ妾åã TimedFloatSeq
g_name2 = "seqout"
g_connector_id2 = "002"
g_data_type2 = "TimedFloatSeq"
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))])
-## ãµã¼ãã¹ãã¼ã
+## åâµåã¼åãÆ夻åãÚ妾åã
g_name3 = "MyService"
g_connector_id3 = "003"
g_interface_type3 = "MyService"
@@ -87,7 +87,7 @@
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))])
##--------------------------------------------------------------------
-## éåä¿¡çµæå¤å®é¢é£
+## ñà¢ç½÷èÁŽ¡î·ÀèÛüé莤ê°Ôë̤ñàŽ£
g_diff_send_file = "./original-data"
g_diff_recv_file = "./received-data"
g_check_message = g_diff_recv_file + " file not found."
@@ -99,14 +99,14 @@
g_test_ng_message = " < received-data >"
g_mess_header = "< "
g_mess_footer = " > "
-# ãã¹ãçµæå
容
-# ä¾)ã±ã¼ã¹1ã1åç® -> "<<< case1 count1 >>> OK."
-# ä¾)ã±ã¼ã¹1ã2åç® -> "<<< case1 count2 >>> NG detected."
+# åã¬å¤»åã°éµÀèÛüéæªç®¹
+# èÀ)åâ±åã¼åâ¹1åà1éûÜéÖ° -> "<<< case1 count1 >>> OK."
+# èÀ)åâ±åã¼åâ¹1åà2éûÜéÖ° -> "<<< case1 count2 >>> NG detected."
##--------------------------------------------------------------------
-## å
é¨é¢æ°ï¼ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®(ãã¼ã¿ãã¼ã)
+## éæªë¦ªñö¢ëõ°þ¾Ô夵åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°(åã®å¦¾åâ¿åãÚ妾åã)
##
-## (å¼æ°)
+## (ê¾Êèʲ)
## subscription_type : "flush", "new", "periodic"
## push_policy : "ALL", "FIFO", "SKIP", "NEW", ""
## connect_direction : 0:outport -> inport, 1:inport -> outport
@@ -136,41 +136,41 @@
##--------------------------------------------------------------------
-## å
é¨é¢æ°ï¼åä¿¡ãã¡ã¤ã«åé¤
+## éæªë¦ªñö¢ëõ°þ¾Ôç½÷èÁ¡åãÊ夣åâ¤åã«éé´ëÒ¦
##
-## (å¼æ°)
-## ãªã
+## (ê¾Êèʲ)
+## åáªåá
##--------------------------------------------------------------------
def delete_recv_file():
- ## ãã¡ã¤ã«ãåå¨ããå ´å
+ ## åãÊ夣åâ¤åã«åá¸çÐçتåáÒå£ëꢴéð
if os.path.isfile(g_diff_recv_file) == True:
os.remove(g_diff_recv_file)
return
##--------------------------------------------------------------------
-## å
é¨é¢æ°ï¼éåä¿¡ãã¡ã¤ã«ã®ãã¼ã¿æ¯è¼
+## éæªë¦ªñö¢ëõ°þ¾Ôë¢ç½÷èÁ¡åãÊ夣åâ¤åã«åá®åã®å¦¾åâ¿ì±Èê¼
##
-## (å¼æ°)
-## ãªã
-## (æ»ãå¤) True : ä¸è´ã False : ä¸ä¸è´
+## (ê¾Êèʲ)
+## åáªåá
+## (ëè»åâ´ç¤) True : èºïç´åà False : 躺æ¸ïç´
##--------------------------------------------------------------------
def diff_file():
bret = True
## if connect_direction == 0:
## else:
- ## éä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## ñà¢æ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_send_file) == False:
print "send_file (%s) not found." % send_file
return False
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
print "recv_file (%s) not found." % recv_file
return False
- ## éåä¿¡ãã¼ã¿å·®åå¤å®
+ ## ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ê¹®éè¬ç°¦ê°
f_send = open(g_diff_send_file, 'r')
f_recv = open(g_diff_recv_file, 'r')
@@ -185,7 +185,7 @@
#print "original recv date=(%s)" % str_recv
#print ''.join(['%x ' % ord(s) for s in str_recv])
- ## æ«å°¾ã®æ¹è¡ã復帰ã³ã¼ãåé¤
+ ## ëü«ê²¾åá®ëô¹ð£¸å¢ç¾©êº°åâ³åã¼åã²ç±êñù¤
str_send2 = str_send.rstrip('\n')
str_send2 = str_send2.rstrip('\r')
str_recv2 = str_recv.rstrip('\n')
@@ -194,7 +194,7 @@
#print "rstrip after send date=(%s)" % str_send2
#print "rstrip after recv date=(%s)" % str_recv2
- ## ãã¼ã¿æ¯è¼
+ ## åã®å¦¾åâ¿ì±Èê¼
if str_send2 != str_recv2:
#print "data difference"
#print "send date=(%s)" % str_send2
@@ -207,26 +207,26 @@
return bret
##--------------------------------------------------------------------
-## ãã¹ãã±ã¼ã¹çªå·ã®åæå¤è¨å®
-## ä¸ããé£çªãæ¯ã£ã¦ãã
+## åã¬å¤»åã°å¤³åã¼åâ¹íõªéï·åá®éèÚèØ¡éà¤ðªê°
+## 躴å¡ëåâ²ë£íõªåâÄ踱åá£åá¦åá¨å£ë
case_no = 0
-## ã±ã¼ã¹æ¯ã®ãã¹ãåæ°
+## åâ±åã¼åâ¹ì±¼å¢°åã¬å¤»åã°çÕþëõ°
loop_count = 3
-## åä¿¡å´activate_componentããéä¿¡å´activate_componentã¾ã§ã®ã¹ãªã¼ãæé(ç§æ°)
+## éïÎæ¿¡éá´activate_componentåá¶å£éñà¢æ¿¡éá´activate_componentåá¾åá§åá®åâ¹åãªåã¼åãÎèÑâñö(î©Äèʲ)
sleep_recv_act_time = 1
-## activate_componentããdeactivate_componentã¾ã§ã®ã¹ãªã¼ãæé(ç§æ°)
+## activate_componentåá¶å£édeactivate_componentåá¾åá§åá®åâ¹åãªåã¼åãÎèÑâñö(î©Äèʲ)
sleep_act_time = 10
-## forã«ã¼ãã®ã¹ãªã¼ãæé(ç§æ°)
+## foråã«åã¼åãÎ墰åâ¹åãªåã¼åãÎèÑâñö(î©Äèʲ)
sleep_for_time = 2
-## connectããdisconnectã¾ã§ã®ã¹ãªã¼ãæé(ç§æ°)
+## connectåá¶å£édisconnectåá¾åá§åá®åâ¹åãªåã¼åãÎèÑâñö(î©Äèʲ)
sleep_connect_time = 2
-# ãã¹ãçµæãã¡ã¤ã«ã®ä½æ
+# åã¬å¤»åã°éµÀèÛüåãÊ夣åâ¤åã«åá®è¿Øè¯ð
fout = open(g_test_result_file, 'w')
fout.write(g_test_name + '\n')
fout.close()
@@ -235,7 +235,7 @@
time.sleep(1)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in æ¥ç¶ã»åæãã¹ã2
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in ëî¥î¸Ô妽éè®è̯åã¬å¤»åã2
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -248,27 +248,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -279,7 +279,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out æ¥ç¶ã»åæãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out ëî¥î¸Ô妽éè®è̯åã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -292,27 +292,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -323,7 +323,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -334,36 +334,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -374,26 +374,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -405,13 +405,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -422,36 +422,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -462,26 +462,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -493,13 +493,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in Activateã»Deactivateãã¹ã10
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in Activateåã»Deactivateåã¬å¤»åã10
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -512,21 +512,21 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -537,7 +537,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -550,39 +550,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -593,26 +593,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -625,7 +625,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -638,39 +638,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -681,26 +681,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -713,7 +713,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã2
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã2
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -726,39 +726,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -769,26 +769,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -801,7 +801,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã2
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã2
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -814,39 +814,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -857,26 +857,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -890,9 +890,9 @@
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã3
##--------------------------------------------------------------------
-## â注æï¼Activateãå
ã«è¡ã£ã¦ããçºãåä¿¡ãã¼ã¿ã¯éä¸ããã®å
容ã«ãªãã¾ãã
+## ã÷¾è³¨ëä¾ñ¼Ó¢ctivateåâÄç©èåá«ð£¸å¢¥åá¦åá¨å£ëíâºåà¢ç½÷èÁ¡åã®å¦¾åâ¿åá¯ñàÈæ¸åá¶å£éåá®éæªç®¹åá«åáªåâ´å¢ÀåáÒå
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " "
@@ -904,39 +904,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -947,26 +947,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -979,9 +979,9 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã3
##--------------------------------------------------------------------
-## â注æï¼Activateãå
ã«è¡ã£ã¦ããçºãåä¿¡ãã¼ã¿ã¯éä¸ããã®å
容ã«ãªãã¾ãã
+## ã÷¾è³¨ëä¾ñ¼Ó¢ctivateåâÄç©èåá«ð£¸å¢¥åá¦åá¨å£ëíâºåà¢ç½÷èÁ¡åã®å¦¾åâ¿åá¯ñàÈæ¸åá¶å£éåá®éæªç®¹åá«åáªåâ´å¢ÀåáÒå
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " "
@@ -993,39 +993,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1036,26 +1036,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1068,9 +1068,9 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼out->in æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÐut->in ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã4
##--------------------------------------------------------------------
-## â注æï¼Activateãå
ã«è¡ã£ã¦ããçºãåä¿¡ãã¼ã¿ã¯éä¸ããã®å
容ã«ãªãã¾ãã
+## ã÷¾è³¨ëä¾ñ¼Ó¢ctivateåâÄç©èåá«ð£¸å¢¥åá¦åá¨å£ëíâºåà¢ç½÷èÁ¡åã®å¦¾åâ¿åá¯ñàÈæ¸åá¶å£éåá®éæªç®¹åá«åáªåâ´å¢ÀåáÒå
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " "
@@ -1082,39 +1082,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 0)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_act_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1125,26 +1125,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1157,9 +1157,9 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼flush æ¹åï¼in->out æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÇlush ëö¹éðÂñ¼ÓÊn->out ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã4
##--------------------------------------------------------------------
-## â注æï¼Activateãå
ã«è¡ã£ã¦ããçºãåä¿¡ãã¼ã¿ã¯éä¸ããã®å
容ã«ãªãã¾ãã
+## ã÷¾è³¨ëä¾ñ¼Ó¢ctivateåâÄç©èåá«ð£¸å¢¥åá¦åá¨å£ëíâºåà¢ç½÷èÁ¡åã®å¦¾åâ¿åá¯ñàÈæ¸åá¶å£éåá®éæªç®¹åá«åáªåâ´å¢ÀåáÒå
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " "
@@ -1171,39 +1171,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("flush", "", 1)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_act_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1214,26 +1214,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1247,7 +1247,7 @@
##--------------------------------------------------------------------
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼ALL æ¥ç¶ã»åæãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã¬å¤»åã3
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1260,27 +1260,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1291,7 +1291,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã¬å¤»åã4
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1304,27 +1304,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1335,7 +1335,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼NEW æ¥ç¶ã»åæãã¹ã6
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã¬å¤»åã6
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1348,27 +1348,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1379,7 +1379,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæãã¹ã5
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã¬å¤»åã5
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1392,27 +1392,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1423,7 +1423,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼ALL æ¥ç¶ã»åæãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã¬å¤»åã3
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1436,27 +1436,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1467,7 +1467,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã¬å¤»åã4
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1480,27 +1480,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1511,7 +1511,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼NEW æ¥ç¶ã»åæãã¹ã6
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã¬å¤»åã6
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1524,27 +1524,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1555,7 +1555,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæãã¹ã5
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã¬å¤»åã5
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1568,27 +1568,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -1599,7 +1599,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼ALL Activateã»Deactivateãã¹ã2
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL Activateåã»Deactivateåã¬å¤»åã2
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1610,36 +1610,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1650,26 +1650,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1681,13 +1681,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼FIFO Activateã»Deactivateãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO Activateåã»Deactivateåã¬å¤»åã3
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1698,36 +1698,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1738,26 +1738,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1769,13 +1769,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼NEW Activateã»Deactivateãã¹ã5
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW Activateåã»Deactivateåã¬å¤»åã5
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1786,36 +1786,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1826,26 +1826,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1857,13 +1857,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼SKIP Activateã»Deactivateãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP Activateåã»Deactivateåã¬å¤»åã4
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1874,36 +1874,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -1914,26 +1914,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -1945,13 +1945,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼ALL Activateã»Deactivateãã¹ã2
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL Activateåã»Deactivateåã¬å¤»åã2
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -1962,36 +1962,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2002,26 +2002,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2033,13 +2033,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼FIFO Activateã»Deactivateãã¹ã3
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO Activateåã»Deactivateåã¬å¤»åã3
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2050,36 +2050,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2090,26 +2090,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2121,13 +2121,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼NEW Activateã»Deactivateãã¹ã5
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW Activateåã»Deactivateåã¬å¤»åã5
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2138,36 +2138,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2178,26 +2178,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2209,13 +2209,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼SKIP Activateã»Deactivateãã¹ã4
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP Activateåã»Deactivateåã¬å¤»åã4
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2226,36 +2226,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2266,26 +2266,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2297,13 +2297,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼ALL æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2316,39 +2316,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2359,26 +2359,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2391,7 +2391,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2404,39 +2404,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2447,26 +2447,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2479,7 +2479,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼NEW æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2492,39 +2492,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2535,26 +2535,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2567,7 +2567,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼out->in ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2580,39 +2580,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2623,26 +2623,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2655,7 +2655,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼ALL æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2668,39 +2668,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "ALL", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2711,26 +2711,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2743,7 +2743,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2756,39 +2756,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "FIFO", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2799,26 +2799,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2831,7 +2831,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼NEW æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2844,39 +2844,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "NEW", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2887,26 +2887,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -2919,7 +2919,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼new æ¹åï¼in->out ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÏew ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -2932,39 +2932,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("new", "SKIP", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -2975,26 +2975,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3008,7 +3008,7 @@
##--------------------------------------------------------------------
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼ALL æ¥ç¶ã»åæãã¹ã7
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã¬å¤»åã7
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3021,27 +3021,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3052,7 +3052,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæãã¹ã8
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã¬å¤»åã8
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3065,27 +3065,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3096,7 +3096,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼NEW æ¥ç¶ã»åæãã¹ã10
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã¬å¤»åã10
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3109,27 +3109,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3140,7 +3140,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæãã¹ã9
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã¬å¤»åã9
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3153,27 +3153,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3184,7 +3184,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼ALL æ¥ç¶ã»åæãã¹ã7
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã¬å¤»åã7
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3197,27 +3197,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3228,7 +3228,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæãã¹ã8
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã¬å¤»åã8
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3241,27 +3241,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3272,7 +3272,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼NEW æ¥ç¶ã»åæãã¹ã10
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã¬å¤»åã10
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3285,27 +3285,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3316,7 +3316,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæãã¹ã9
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã¬å¤»åã9
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3329,27 +3329,27 @@
for i in range(loop_count):
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
time.sleep(sleep_connect_time)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## ãã¹ãçµæåºå
+ ## åã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
message = message + g_test_ok
@@ -3360,7 +3360,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼ALL Activateã»Deactivateãã¹ã6
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL Activateåã»Deactivateåã¬å¤»åã6
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3371,36 +3371,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3411,26 +3411,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3442,13 +3442,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼FIFO Activateã»Deactivateãã¹ã7
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO Activateåã»Deactivateåã¬å¤»åã7
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3459,36 +3459,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3499,26 +3499,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3530,13 +3530,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼NEW Activateã»Deactivateãã¹ã9
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW Activateåã»Deactivateåã¬å¤»åã9
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3547,36 +3547,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3587,26 +3587,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3618,13 +3618,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼SKIP Activateã»Deactivateãã¹ã8
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP Activateåã»Deactivateåã¬å¤»åã8
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3635,36 +3635,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 0)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3675,26 +3675,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3706,13 +3706,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼ALL Activateã»Deactivateãã¹ã6
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL Activateåã»Deactivateåã¬å¤»åã6
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3723,36 +3723,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3763,26 +3763,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3794,13 +3794,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼FIFO Activateã»Deactivateãã¹ã7
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO Activateåã»Deactivateåã¬å¤»åã7
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3811,36 +3811,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3851,26 +3851,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3882,13 +3882,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼NEW Activateã»Deactivateãã¹ã9
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW Activateåã»Deactivateåã¬å¤»åã9
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3899,36 +3899,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -3939,26 +3939,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -3970,13 +3970,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼SKIP Activateã»Deactivateãã¹ã8
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP Activateåã»Deactivateåã¬å¤»åã8
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -3987,36 +3987,36 @@
fout.close()
print message
-## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 1)
-## 3 ãã¼ãæ¥ç¶
-# ãã¼ã¿ãã¼ã1 TimedFloat
+## 3 åãÚ妾åã°è¼§î¸
+# åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
-# ãã¼ã¿ãã¼ã2 TimedFloatSeq
+# åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
-# ãµã¼ãã¹ãã¼ã MyService
+# åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4027,26 +4027,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4058,13 +4058,13 @@
time.sleep(sleep_for_time)
-## 6 ãã¼ãåæ
+## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼ALL æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4077,39 +4077,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4120,26 +4120,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4152,7 +4152,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4165,39 +4165,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4208,26 +4208,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4240,7 +4240,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼NEW æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4253,39 +4253,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4296,26 +4296,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4328,7 +4328,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼out->in ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÐut->in åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4341,39 +4341,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 0)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4384,26 +4384,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4416,7 +4416,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼ALL æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¢LL ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4429,39 +4429,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "ALL", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4472,26 +4472,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4504,7 +4504,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼FIFO æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó§IFO ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4517,39 +4517,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "FIFO", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4560,26 +4560,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4592,7 +4592,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼NEW æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó¯EW ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4605,39 +4605,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "NEW", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4648,26 +4648,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
@@ -4680,7 +4680,7 @@
time.sleep(sleep_for_time)
##--------------------------------------------------------------------
-## æ¥ç¶ã¿ã¤ãï¼periodic æ¹åï¼in->out ããªã·ã¼ï¼SKIP æ¥ç¶ã»åæã»Activateã»Deactivateãã¹ã1
+## ëî¥î¸Ôå¤Áåâ¤åãÎñ¼ÓÑeriodic ëö¹éðÂñ¼ÓÊn->out åãÚ妬åâ·åã¼þ¾Ó´KIP ëî¥î¸Ô妽éè®è̯åã»Activateåã»Deactivateåã¬å¤»åã1
##--------------------------------------------------------------------
case_no = case_no + 1
fout = open(g_test_result_file, 'a')
@@ -4693,39 +4693,39 @@
for i in range(loop_count):
- ## 2 åä¿¡ãã¼ã¿ãã¡ã¤ã«åé¤
+ ## 2 éïÎæ¿¡åã®å¦¾åâ¿åãÊ夣åâ¤åã«éé´ëÒ¦
delete_recv_file()
- ## 1 ã³ãã¯ã¿ã¼ãããã¡ã¤ã«è¨å®
+ ## 1 åâ³åãºå¤±åâ¿åã¼åãÎ妯åãÊ夣åâ¤åã«ðªê°
make_connecter_profile("periodic", "SKIP", 1)
- ## 3 ãã¼ãæ¥ç¶
- # ãã¼ã¿ãã¼ã1 TimedFloat
+ ## 3 åãÚ妾åã°è¼§î¸
+ # åã®å¦¾åâ¿åãÚ妾åã1 TimedFloat
ret0 = g_out_ports[g_port1].connect(g_conprof1)
- # ãã¼ã¿ãã¼ã2 TimedFloatSeq
+ # åã®å¦¾åâ¿åãÚ妾åã2 TimedFloatSeq
ret1 = g_out_ports[g_port2].connect(g_conprof2)
- # ãµã¼ãã¹ãã¼ã MyService
+ # åâµåã¼åãÆ夻åãÚ妾åã MyService
ret2 = g_out_ports[g_port3].connect(g_conprof3)
- ## 4 ã¢ã¯ãã£ãã¼ã
+ ## 4 åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_recv[0].activate_component(g_compo_recv.rtc_ref)
time.sleep(sleep_recv_act_time)
ec_send[0].activate_component(g_compo_send.rtc_ref)
time.sleep(sleep_act_time)
- ## 5 ãã£ã¢ã¯ãã£ãã¼ã
+ ## 5 åã®å¤¥åâ¢åâ¯åã¬å¤¥åãÒ妾åã
ec_send[0].deactivate_component(g_compo_send.rtc_ref)
ec_recv[0].deactivate_component(g_compo_recv.rtc_ref)
- ## 6 ãã¼ãåæ
+ ## 6 åãÚ妾åã°ç¯çëö
g_in_ports[g_port3].disconnect(g_conprof3.connector_id)
g_in_ports[g_port2].disconnect(g_conprof2.connector_id)
g_in_ports[g_port1].disconnect(g_conprof1.connector_id)
- ## åä¿¡ãã¡ã¤ã«æç¡å¤å®
+ ## éïÎæ¿¡åãÊ夣åâ¤åã«ëü²é¨£éè¤ê°
if os.path.isfile(g_diff_recv_file) == False:
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
@@ -4736,26 +4736,26 @@
time.sleep(sleep_for_time)
continue
- ## 7 éåä¿¡ãã¼ã¿æ¯è¼
+ ## 7 ñà¢ç½÷èÁ¡åã®å¦¾åâ¿ì±Èê¼
time.sleep(sleep_act_time)
bret = diff_file()
- ## å·®åãã¡ã¤ã«ãããã¹ãçµæåºå
+ ## ê¹®éè¬å¥õåâ¡åâ¤åã«åá¶å£éåã¬å¤»åã°éµÀèÛüéçºéê
fout = open(g_test_result_file, 'a')
message = g_mess_header + g_test_case + str(case_no) + " " + g_test_cnt + str(i+1) + g_mess_footer
- # bret==True ãªãéåä¿¡ãã¼ã¿ä¸è´
+ # bret==True åáªåâ²ë¢ç½÷èÁ¡åã®å¦¾åâ¿èºïç´
if bret == True:
- # ãã¹ãçµæ OK
+ # åã¬å¤»åã°éµÀèÛü OK
message = message + g_test_ok
print message
fout.write(message + '\n')
else:
- # ãã¹ãçµæ NG
+ # åã¬å¤»åã°éµÀèÛü NG
message = message + g_test_ng
print message
message = message + g_test_ng_message
fout.write(message + '\n')
- # åä¿¡ãã¼ã¿ããã¹ãçµæãã¡ã¤ã«ã¸ã³ãã¼
+ # éïÎæ¿¡åã®å¦¾åâ¿åâÄå¥æåâ¹åã°éµÀèÛüåãÊ夣åâ¤åã«åá¸åâ³åãÈ妾
fin2 = open(g_diff_recv_file, 'r')
while(1):
s2 = fin2.readline()
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/CorbaNaming.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/CorbaNaming.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/AutoTest/CorbaNaming.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -23,19 +23,19 @@
##
# @if jp
# @class CorbaNaming
-# @brief CORBA Naming Service ãã«ãã¼ã¯ã©ã¹
+# @brief CORBA Naming Service åãÐå¦åãÂ妾åâ¯åã©åâ¹
#
-# ãã®ã¯ã©ã¹ã¯ãCosNaming::NamingContext ã«å¯¾ããã©ããã¼ã¯ã©ã¹ã§ããã
-# CosNaming::NamingContext ãæã¤ãªãã¬ã¼ã·ã§ã³ã¨ã»ã¼åãæ©è½ã®
-# ãªãã¬ã¼ã·ã§ã³ãæä¾ããã¨ã¨ãã«ããã¼ã ã³ã³ãã¼ãã³ã CosNaming::Name
-# ã®ä»£ããã«æååã«ããåå表ç¾ãåãä»ãããªãã¬ã¼ã·ã§ã³ãæä¾ããã
+# åáÆ墰åâ¯åã©åâ¹åá¯åࡤosNaming::NamingContext åá«ê±¾åáÒå£ëåã©åã¦å¥ñåã¼åâ¯åã©åâ¹åá§åá¤å£ëåà
+# CosNaming::NamingContext åá¸è·áåá¤åâªåãÔ妮åã¼åâ·åã§åã³åá¨åá»åá¼éð¸å¡øì«Þꦿåá®
+# åâªåãÔ妮åã¼åâ·åã§åã³åâÄè½ðèÀÖå¡ùåâ¶å¢ªåá¨åâ¤å¢åà¢å¥íåã¼åã åâ³åã³åãÚ妾åãºå¦µåã CosNaming::Name
+# åá®è½£åâ¾å£êåá«ëö®çÎç¯÷åá«åâ°å£ëéðºç±íð£¨íï¾åâÄç½÷åáÂæ»Ðå¡ñåâ¶å¤¬åãÔ妮åã¼åâ·åã§åã³åâ¤è½ðèÀÖå¡ùåâ¶å
#
-# ãªãã¸ã§ã¯ãã¯çææããããã¯çæç´å¾ã« CORBA ãã¼ã ãµã¼ãã«æ¥ç¶ã
-# 以å¾ããã®ãã¼ã ãµã¼ãã®ã«ã¼ãã³ã³ããã¹ãã«å¯¾ãã¦ç¨®ã
ã®ãªãã¬ã¼ã·ã§ã³
-# ãå¦çããã
-# æ·±ãé層ã®ãã¼ãã³ã°ã³ã³ããã¹ãã®ä½æããªãã¸ã§ã¯ãã®ãã¤ã³ãã«ããã¦ã
-# éä¸ã®ã³ã³ããã¹ããåå¨ããªãå ´åã§ããå¼·å¶çã«ã³ã³ããã¹ãããã¤ã³ã
-# ãç®çã®ã³ã³ããã¹ãããªãã¸ã§ã¯ãã®ãã¤ã³ããè¡ããã¨ãã§ããã
+# åâªåãÌ夺åâ§åâ¯åã°å¢±íôÞè¯ðëù¤å¢å¡âåâ¶å¡äåá¯íôÞè¯ðíû´êÀ¸å¢ CORBA åãºå¦¾åã åâµåã¼åãÀå¢ëî¥î¸Ôå¡÷
+# è½¥êÀ¸å¢å¡óåá®åãºå¦¾åã åâµåã¼åãÀ墰åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨åàªå¢°åâªåãÔ妮åã¼åâ·åã§åã³
+# åâÄ箨íð¬å¡ùåâ¶å
+# ì¹±åá¨ëÓî곤åá®åãºå¦¾åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã°å¢°è¿Øè¯ðåâ¨å¤¬åãÌ夺åâ§åâ¯åã°å¢°åãÀ夦åã³åã²å¢åá´å¡äåá¦åà
+# ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å¡ìê¯ÐçتåáÎ墬åá¨ç ´éð°å¢©åâ¤å¢ç¼·éè¶íú¨å¢åâ³åã³åã¬å¤¯åâ¹åã°å£òåãÀ夦åã³åã
+# åáÎéÖ°íú¨å¢°åâ³åã³åã¬å¤¯åâ¹åã°å£äåâªåãÌ夺åâ§åâ¯åã°å¢°åãÀ夦åã³åã²å£òð£¸å¡æåáÆ墪åâ¤å¢©åáºå£ëåà
#
# @since 0.4.0
#
@@ -66,11 +66,11 @@
##
# @if jp
#
- # @brief ã³ã³ã¹ãã©ã¯ã¿
+ # @brief å⎳å㎳å⎹åã°å¦«å⎯å⎿
#
# @param self
# @param orb ORB
- # @param name_server ãã¼ã ãµã¼ãã®å称(ããã©ã«ãå¤:None)
+ # @param name_server åãºå¦¾åã åâµåã¼åãÀ墰éðºé§°(åã®å¥õåâ©åã«åã°ç¤:None)
#
# @else
#
@@ -100,7 +100,7 @@
##
# @if jp
#
- # @brief ãã¹ãã©ã¯ã¿
+ # @brief åã®å¤»åã°å¦«åâ¯åâ¿
#
# @param self
#
@@ -116,12 +116,12 @@
##
# @if jp
#
- # @brief ãã¼ãã³ã°ãµã¼ãã¹ã®åæå
+ # @brief åãºå¦¾åãÞ妵åâ°åâµåã¼åãÆ夻åá®éèÚèØ¡éì
#
- # æå®ããããã¼ã ãµã¼ãä¸ã®ãã¼ãã³ã°ãµã¼ãã¹ãåæåãã¾ãã
+ # ëì®ç®Ôå¡õåâ¸å¢¡åãºå¦¾åã åâµåã¼åãÀ渴墰åãºå¦¾åãÞ妵åâ°åâµåã¼åãÆ夻åâÄç¯ýëüÞç·öåáÎå¢ÀåáÒå
#
# @param self
- # @param name_server ãã¼ã ãµã¼ãã®å称
+ # @param name_server åãºå¦¾åã åâµåã¼åãÀ墰éðºé§°
#
# @else
#
@@ -139,43 +139,43 @@
##
# @if jp
#
- # @brief Object ã bind ãã
+ # @brief Object åâ bind åáÒå£ë
#
- # CosNaming::bind() ã¨ã»ã¼åçã®åãããããã常ã«ä¸ãããããã¼ã ãµã¼ãã®
- # ã«ã¼ãã³ã³ããã¹ãã«å¯¾ãã¦bind()ãå¼ã³åºãããç¹ãç°ãªãã
+ # CosNaming::bind() åá¨åá»åá¼éð¸é²å¢°éãºå¡íåâÄå¡ùåâ¶å¡ìåà¢ç¸¸åá«èº¼å¡èåâ²å£ìåáÞå¥íåã¼åã åâµåã¼åãÀ墰
+ # åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨bind()åá¸ç¾åá³éçºåáÊå£ìåâ¶é¤»åá¸éʲåáªåâ¶å
#
- # Name <name> 㨠Object <obj> ãå½è©² NamingContext ä¸ã«ãã¤ã³ãããã
- # c_n ã n çªç®ã® NameComponent ãããããã¨ããã¨ã
- # name ã n åã® NameComponent ããæãã¨ãã以ä¸ã®ããã«æ±ãããã
+ # Name <name> åᨠObject <obj> åâÄç½Æꩲ NamingContext 躴å¢åãÀ夦åã³åã²å¡ùåâ¶å
+ # c_n åá n íõªíû®åá® NameComponent åâÄå¡âåâ²å£ïåáÒ墪åáÒå£ëåá¨åà
+ # name åá n éà¶å¢° NameComponent åá¶å£éëèÀå£ëåá¨åáºå¢æ»¥èº¶å¢°åâ°å¡æåá«ëé±åâ¾å£ìåâ¶å
#
- # cxt->bind(<c_1, c_2, ... c_n>, obj) ã¯ä»¥ä¸ã®æä½ã¨åçã§ããã
+ # cxt->bind(<c_1, c_2, ... c_n>, obj) åá¯è½¥èº¶å¢°ëóºæ½Ø墪éð¸é²å¢©åá¤å£ëåà
# cxt->resolve(<c_1, ... c_(n-1)>)->bind(<c_n>, obj)
#
- # ããªãã¡ã1çªç®ããn-1çªç®ã®ã³ã³ããã¹ãã解決ããn-1çªç®ã®ã³ã³ããã¹ã
- # ä¸ã« name <n> ã¨ãã¦ãobj ã bind ããã
- # åå解決ã«åå ãã <c_1, ... c_(n-1)> ã® NemingContext ã¯ã
- # bindContext() ã rebindContext() ã§æ¢ã«ãã¤ã³ãæ¸ã¿ã§ãªããã°ãªããªãã
- # ãã <c_1, ... c_(n-1)> ã® NamingContext ãåå¨ããªãå ´åã«ã¯ã
- # NotFound ä¾å¤ãçºçããã
+ # åáÒ墬åâ¾å¢£åà1íõªíû®åá¶å£én-1íõªíû®åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òð©£ì³ºåáÎå¡Ï-1íõªíû®åá®åâ³åã³åã¬å¤¯åâ¹åã
+ # èº´å¢ name <n> åá¨åáÎ墨åàobj åâ bind åáÒå£ëåà
+ # éðºç±íð©£ì³ºåá«éï¤ç´¢åáÒå£ë <c_1, ... c_(n-1)> åá® NemingContext åá¯åà
+ # bindContext() åâ rebindContext() åá§ë÷¢åá«åãÀ夦åã³åã²è¸°å¢Áåá§åáªåáÂå£ìåá°åáªåâ²å¢¬åá¨å
+ # åâ¤å¡÷ <c_1, ... c_(n-1)> åá® NamingContext åá¸çÐçتåáÎ墬åá¨ç ´éð°å¢åá¯åà
+ # NotFound èÀ¶ç¤Ìå¡ìíùºíôÞå¡ùåâ¶å
#
- # ãã ããå¼·å¶ãã¤ã³ããã©ã° force ã true ã®æã¯ã<c_1, ... c_(n-1)>
- # ãåå¨ããªãå ´åã«ããå帰çã«ã³ã³ããã¹ãããã¤ã³ãããªããã
- # æçµçã« obj ãåå name <c_n> ã«ãã¤ã³ãããã
+ # åáÞ墢åáÎå¢ç¼·éè¶åãÀ夦åã³åã²å¥õåã©åâ° force åá true åá®ëù¤å¢±åà<c_1, ... c_(n-1)>
+ # åá¸çÐçتåáÎ墬åá¨ç ´éð°å¢åâ¤å¢ç«í꺰íú¨å¢åâ³åã³åã¬å¤¯åâ¹åã°å£òåãÀ夦åã³åã²å¡÷åáªåá¸å£éåà
+ # ëüî·¤éÓäåá« obj åâÄç¿íéé name <c_n> åá«åãÀ夦åã³åã²å¡ùåâ¶å
#
- # ãããã®å ´åã§ããn-1çªç®ã®ã³ã³ããã¹ãä¸ã« name<n> ã®ãªãã¸ã§ã¯ã
- # (Object ããã㯠ã³ã³ããã¹ã) ããã¤ã³ãããã¦ããã°
- # AlreadyBound ä¾å¤ãçºçããã
+ # åá¨å¡úåâ¸å¢°ê¢´éð°å¢©åâ¤å¡Ï-1íõªíû®åá®åâ³åã³åã¬å¤¯åâ¹åã°æ¸´å¢ name<n> åá®åâªåãÌ夺åâ§åâ¯åã
+ # (Object åá¤å£ëåá¨å¢± åâ³åã³åã¬å¤¯åâ¹åã) åá¸å¥ðåâ¤åã³åã²å¡õåâ¸å¢¨åá¨å£ìåá°
+ # AlreadyBound èÀ¶ç¤Ìå¡ìíùºíôÞå¡ùåâ¶å
#
# @param self
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã® NameComponent
- # @param obj é¢é£ä»ãããã Object
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:None)
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ Object
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:None)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name_list ã®ååãä¸æ£ã
- # @exception AlreadyBound name <c_n> ã® Object ããã§ã«ãã¤ã³ãããã¦ããã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name_list åá®éðºç±íåá¸æ¸ºè£åà
+ # @exception AlreadyBound name <c_n> åá® Object åá¸å¡ùåá§åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
#
@@ -205,21 +205,21 @@
##
# @if jp
#
- # @brief Object ã bind ãã
+ # @brief Object åâ bind åáÒå£ë
#
- # Object ã bind ããéã«ä¸ããååãæåå表ç¾ã§ãããã¨ä»¥å¤ã¯ãbind()
- # ã¨åãã§ãããbind(toName(string_name), obj) ã¨ç価ã
+ # Object åâ bind åáÒå£ëñúÖå¢èº¼å¡èåâ¶ç¿íééºå¡ìëö®çÎç¯÷ð£¨íï¾åá§åá¤å£ëåáÆ墪轥ê¦Ì墱åà¡Ãind()
+ # åá¨éð¸å¡øåá§åá¤å£ëåà£Ãind(toName(string_name), obj) åá¨î¯²æ¾¡åà
#
# @param self
- # @param string_name ãªãã¸ã§ã¯ãã«ä»ããååã®æåå表ç¾
- # @param obj é¢é£ä»ãããããªãã¸ã§ã¯ã
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:true)
+ # @param string_name åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢°ëö®çÎç¯÷ð£¨íï¾
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:true)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° string_name ã®ååãä¸æ£ã
- # @exception AlreadyBound name <n> ã® Object ããã§ã«ãã¤ã³ãããã¦ããã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ string_name åá®éðºç±íåá¸æ¸ºè£åà
+ # @exception AlreadyBound name <n> åá® Object åá¸å¡ùåá§åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
#
@@ -233,33 +233,33 @@
##
# @if jp
#
- # @brief éä¸ã®ã³ã³ããã¹ãã bind ããªãã Object ã bind ãã
+ # @brief ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£ò bind åáÎ墬åá¸å£é Object åâ bind åáÒå£ë
#
- # context ã§ä¸ãããã NamingContext ã«å¯¾ãã¦ãname ã§æå®ããã
- # ãã¼ã ã³ã³ãã¼ãã³ã <c_1, ... c_(n-1)> ã NamingContext ã¨ãã¦
- # 解決ããªãããåå <c_n> ã«å¯¾ã㦠obj ã bind ããã
- # ããã<c_1, ... c_(n-1)> ã«å¯¾å¿ãã NamingContext ããªãå ´åã«ã¯
- # æ°ã㪠NamingContext ããã¤ã³ãããã
+ # context åá§èº¼å¡èåâ²å£ìåá NamingContext åá«ê±¾åáÎ墨åà¡Ïame åá§ëì®ç®Ôå¡õåâ¸å¢¡
+ # åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã <c_1, ... c_(n-1)> åâ NamingContext åá¨åáÎ墨
+ # ð©£ì³ºåáÎ墬åá¸å£éåà¢ç¿íéé <c_n> åá«ê±¾åáÎ墨 obj åâ bind åáÒå£ëåà
+ # åâ¤å¡÷åà<c_1, ... c_(n-1)> åá«ê±¾êÁØå¡ùåâ NamingContext åá¸å¢¬åá¨ç ´éð°å¢åá¯
+ # ëö°åáÞ墬 NamingContext åâÄå¥ðåâ¤åã³åã²å¡ùåâ¶å
#
- # æçµçã« <c_1, c_2, ..., c_(n-1)> ã«å¯¾å¿ãã NamingContext ãçæ
- # ã¾ãã¯è§£æ±ºãããä¸ã§ãCosNaming::bind(<c_n>, object) ãå¼ã³åºãããã
- # ãã®ã¨ãããã§ã«ãã¤ã³ãã£ã³ã°ãåå¨ããã° AlreadyBoundä¾å¤ãçºçããã
+ # ëüî·¤éÓäåá« <c_1, c_2, ..., c_(n-1)> åá«ê±¾êÁØå¡ùåâ NamingContext åá¸éÈ¡ëè
+ # åá¾åáÞ墱ð©£ì³ºåáÊå£ìåáÞ渴墩åࡤosNaming::bind(<c_n>, object) åá¸ç¾åá³éçºåáÊå£ìåâ¶å
+ # åáÆ墰åá¨åáºå¢å¡ùåá§åá«åãÀ夦åã³åã®å¤¥åã³åâ°åá¸çÐçتåáÒå£ìåá° AlreadyBoundèÀ¶ç¤Ìå¡ìíùºíôÞå¡ùåâ¶å
#
- # éä¸ã®ã³ã³ããã¹ãã解決ããéç¨ã§ã解決ãããã¨ããã³ã³ããã¹ãã¨
- # åãååã® NamingContext ã§ã¯ãªã Binding ãåå¨ããå ´åã
- # CannotProceed ä¾å¤ãçºçãå¦çãä¸æ¢ããã
+ # ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òð©£ì³ºåáÒå£ëñá¼é¨¶å¢©åà¢ê§£ì³ºåáÎå£èåá¬å¢ªåáÒå£ëåâ³åã³åã¬å¤¯åâ¹åã°å¢ª
+ # éð¸å¡øéðºç±íåá® NamingContext åá§åá¯åáªåá Binding åá¸çÐçتåáÒå£ëꢴéð°å
+ # CannotProceed èÀ¶ç¤Ìå¡ìíùºíôÞå¡÷éç¦íð¬å£òèºì¯¢åáÒå£ëåà
#
# @param self
- # @param context bind ãéå§ãããNamingContext
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã®ãã¼ã ã³ã³ãã¼ãã³ã
- # @param obj é¢é£ä»ãããããªãã¸ã§ã¯ã
+ # @param context bind åâÄëËëꩶå¡ùåâ¶åNamingContext
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢°åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã
#
- # @exception CannotProceed <c_1, ..., c_(n-1)> ã«å¯¾å¿ãã NamingContext
- # ã®ãã¡ã²ã¨ã¤ãããã§ã« NamingContext 以å¤ã® object ã«ãã¤ã³ã
- # ããã¦ãããå¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName åå name_list ãä¸æ£
- # @exception AlreadyBound name <c_n> ã«ãã§ã«ä½ããã® object ããã¤ã³ã
- # ããã¦ããã
+ # @exception CannotProceed <c_1, ..., c_(n-1)> åá«ê±¾êÁØå¡ùåâ NamingContext
+ # åá®åá¬å¢£åá²åá¨åá¤åá¸å¢å¡ùåá§åá« NamingContext è½¥ê¦Ì墰 object åá«åãÀ夦åã³åã
+ # åáÊå£ìåá¦åá´å£êåà¢ç®¨íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName éðºç±í name_list åá¸æŽ¸ºèŽŽ£
+ # @exception AlreadyBound name <c_n> åá«åáÒ墩åá«è¿Êå£éåá¶å¢° object åá¸å¥ðåâ¤åã³åã
+ # åáÊå£ìåá¦åá¨å£ëåà
# @else
#
# @brief
@@ -286,21 +286,21 @@
##
# @if jp
#
- # @brief Object ã rebind ãã
+ # @brief Object åâ rebind åáÒå£ë
#
- # name_list ã§æå®ããã Binding ããã§ã«åå¨ããå ´åãé¤ã㦠bind() ã¨åã
- # ã§ããããã¤ã³ãã£ã³ã°ããã§ã«åå¨ããå ´åã«ã¯ãæ°ãããã¤ã³ãã£ã³ã°ã«
- # ç½®ãæããããã
+ # name_list åá§ëì®ç®Ôå¡õåâ¸å¢¡ Binding åá¸å¡ùåá§åá«ê¯ÐçتåáÒå£ëꢴéð°å£òñù¤åá¨å¢¨ bind() åá¨éð¸å¡ø
+ # åá§åá¤å£ëåà¤å¥ðåâ¤åã³åã®å¤¥åã³åâ°åá¸å¡ùåá§åá«ê¯ÐçتåáÒå£ëꢴéð°å¢åá¯åà¢è̲åáÎå¡äåãÀ夦åã³åã®å¤¥åã³åâ°åá«
+ # î¿®åáºè½ûåá°å£éåâ¸å£ëåà
#
# @param self
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã® NameComponent
- # @param obj é¢é£ä»ãããããªãã¸ã§ã¯ã
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:true)
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:true)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName åå name_list ãä¸æ£
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName éðºç±í name_list åá¸æŽ¸ºèŽŽ£
#
# @else
#
@@ -332,20 +332,20 @@
##
# @if jp
#
- # @brief Object ã rebind ãã
+ # @brief Object åâ rebind åáÒå£ë
#
- # Object ã rebind ããéã«ä¸ããååãæåå表ç¾ã§ãããã¨ä»¥å¤ã¯ rebind()
- # ã¨åãã§ãããrebind(toName(string_name), obj) ã¨ç価ã
+ # Object åâ rebind åáÒå£ëñúÖå¢èº¼å¡èåâ¶ç¿íééºå¡ìëö®çÎç¯÷ð£¨íï¾åá§åá¤å£ëåáÆ墪轥ê¦Ì墱 rebind()
+ # åá¨éð¸å¡øåá§åá¤å£ëåà£Óebind(toName(string_name), obj) åá¨î¯²æ¾¡åà
#
# @param self
- # @param string_name ãªãã¸ã§ã¯ãã«ä»ããååã®æåå表ç¾
- # @param obj é¢é£ä»ãããããªãã¸ã§ã¯ã
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:true)
+ # @param string_name åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢°ëö®çÎç¯÷ð£¨íï¾
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:true)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° string_name ã®ååãä¸æ£ã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ string_name åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
#
@@ -361,21 +361,21 @@
##
# @if jp
#
- # @brief éä¸ã®ã³ã³ããã¹ãã bind ããªãã Object ã rebind ãã
+ # @brief ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£ò bind åáÎ墬åá¸å£é Object åâ rebind åáÒå£ë
#
- # name_list <c_n> ã§æå®ããã NamingContext ããã㯠Object ããã§ã«åå¨ãã
- # å ´åãé¤ã㦠bindRecursive() ã¨åãã§ããã
+ # name_list <c_n> åá§ëì®ç®Ôå¡õåâ¸å¢¡ NamingContext åâ¤å¡÷åá¾å¢± Object åá¸å¡ùåá§åá«ê¯ÐçتåáÒå£ë
+ # ꢴéð°å£òñù¤åá¨å¢¨ bindRecursive() åá¨éð¸å¡øåá§åá¤å£ëåà
#
- # name_list <c_n> ã§æå®ããããã¤ã³ãã£ã³ã°ããã§ã«åå¨ããå ´åã«ã¯ã
- # æ°ãããã¤ã³ãã£ã³ã°ã«ç½®ãæããããã
+ # name_list <c_n> åá§ëì®ç®Ôå¡õåâ¸å¢¡åãÀ夦åã³åã®å¤¥åã³åâ°åá¸å¡ùåá§åá«ê¯ÐçتåáÒå£ëꢴéð°å¢åá¯åà
+ # ëö°åáÎå¡äåãÀ夦åã³åã®å¤¥åã³åâ°åá«î¿®åáºè½ûåá°å£éåâ¸å£ëåà
#
# @param self
- # @param context bind ãéå§ãããNamingContext
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã® NameComponent
- # @param obj é¢é£ä»ãããããªãã¸ã§ã¯ã
+ # @param context bind åâÄëËëꩶå¡ùåâ¶åNamingContext
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã
#
- # @exception CannotProceed éä¸ã®ã³ã³ããã¹ãã解決ã§ããªãã
- # @exception InvalidName ä¸ãããã name_list ãä¸æ£ã
+ # @exception CannotProceed ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å¡ìð©£ì³ºåá§åáºå¢¬åá¨å
+ # @exception InvalidName 躼å¡èåâ²å£ìåá name_list åá¸æ¸ºè£åà
#
# @else
#
@@ -403,21 +403,21 @@
##
# @if jp
#
- # @brief NamingContext ã bind ãã
+ # @brief NamingContext åâ bind åáÒå£ë
#
- # bind 対象ã¨ãã¦æå®ãããå¼æ° name ãæååã®å ´å㯠bindByString() ã¨ã
- # ãã以å¤ã®å ´å㯠bind() ã¨åãã§ããã
+ # bind ê±¾ð³¡åá¨åáÎ墨ëì®ç®Ôå¡õåâ¸å¢¡ê¾Êèʲ name åá¸èËçê¯Îç¯÷åá®ê¢´éð°å¢± bindByString() åá¨åà
+ # åáÚå£ìè½¥ê¦Ì墰ꢴéð°å¢± bind() åá¨éð¸å¡øåá§åá¤å£ëåà
#
# @param self
- # @param name ãªãã¸ã§ã¯ãã«ä»ããåå
- # @param name_cxt é¢é£ä»ãããã NamingContext
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:True)
+ # @param name åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íéé
+ # @param name_cxt ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ NamingContext
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:True)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
- # @exception AlreadyBound name <c_n> ã® Object ããã§ã«ãã¤ã³ãããã¦ããã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
+ # @exception AlreadyBound name <c_n> åá® Object åá¸å¡ùåá§åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
#
@@ -435,15 +435,15 @@
##
# @if jp
#
- # @brief NamingContext ã bind ãã
+ # @brief NamingContext åâ bind åáÒå£ë
#
- # bind ããããªãã¸ã§ã¯ãã NamingContext ã§ãããã¨ãé¤ãã¦
- # bindRecursive() ã¨åãã§ããã
+ # bind åáÊå£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã°å¡ì NamingContext åá§åá¤å£ëåáÆ墪åâÄëÒ¦åá¨å¢¨
+ # bindRecursive() åá¨éð¸å¡øåá§åá¤å£ëåà
#
# @param self
- # @param context bind ãéå§ãããNamingContext
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã®ãã¼ã ã³ã³ãã¼ãã³ã
- # @param name_cxt é¢é£ä»ãããã NamingContext
+ # @param context bind åâÄëËëꩶå¡ùåâ¶åNamingContext
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢°åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
+ # @param name_cxt ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ NamingContext
#
# @else
#
@@ -458,22 +458,22 @@
##
# @if jp
#
- # @brief NamingContext ã rebind ãã
+ # @brief NamingContext åâ rebind åáÒå£ë
#
- # bind 対象ã¨ãã¦æå®ãããå¼æ° name ãæååã®å ´å㯠rebindByString() ã¨ã
- # ãã以å¤ã®å ´å㯠rebind() ã¨åãã§ããã
- # ã©ã¡ãã®å ´åããã¤ã³ãã£ã³ã°ããã§ã«åå¨ããå ´åã«ã¯ã
- # æ°ãããã¤ã³ãã£ã³ã°ã«ç½®ãæããããã
+ # bind ê±¾ð³¡åá¨åáÎ墨ëì®ç®Ôå¡õåâ¸å¢¡ê¾Êèʲ name åá¸èËçê¯Îç¯÷åá®ê¢´éð°å¢± rebindByString() åá¨åà
+ # åáÚå£ìè½¥ê¦Ì墰ꢴéð°å¢± rebind() åá¨éð¸å¡øåá§åá¤å£ëåà
+ # åá©åá¡åâ²å¢°ê¢´éð°å£âåãÀ夦åã³åã®å¤¥åã³åâ°åá¸å¡ùåá§åá«ê¯ÐçتåáÒå£ëꢴéð°å¢åá¯åà
+ # ëö°åáÎå¡äåãÀ夦åã³åã®å¤¥åã³åâ°åá«î¿®åáºè½ûåá°å£éåâ¸å£ëåà
#
# @param self
- # @param name ãªãã¸ã§ã¯ãã«ä»ããååã®ãã¼ã ã³ã³ãã¼ãã³ã
- # @param name_cxt é¢é£ä»ãããã NamingContext
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:true)
+ # @param name åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢°åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
+ # @param name_cxt ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ NamingContext
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:true)
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
#
@@ -489,14 +489,14 @@
##
# @if jp
#
- # @brief éä¸ã®ã³ã³ããã¹ããå帰çã« rebind ã NamingContext ã rebind ãã #
- # bind ããããªãã¸ã§ã¯ãã NamingContext ã§ãããã¨ãé¤ãã¦
- # rebindRecursive() ã¨åãã§ããã
+ # @brief ñàÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òéæºç¸°íú¨å¢ rebind åá NamingContext åâ rebind åáÒå£ë #
+ # bind åáÊå£ìåâ¶å¤¬åãÌ夺åâ§åâ¯åã°å¡ì NamingContext åá§åá¤å£ëåáÆ墪åâÄëÒ¦åá¨å¢¨
+ # rebindRecursive() åá¨éð¸å¡øåá§åá¤å£ëåà
#
# @param self
- # @param context bind ãéå§ãããNamingContext
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã® NameComponent
- # @param name_cxt é¢é£ä»ãããã NamingContext
+ # @param context bind åâÄëËëꩶå¡ùåâ¶åNamingContext
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param name_cxt ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ NamingContext
#
# @else
#
@@ -511,26 +511,26 @@
##
# @if jp
#
- # @brief Object ã name ãã解決ãã
+ # @brief Object åâ name åá¶å£éð©£ì³ºåáÒå£ë
#
- # name ã« bind ããã¦ãããªãã¸ã§ã¯ãåç
§ãè¿ãã
- # ãã¼ã ã³ã³ãã¼ãã³ã <c_1, c_2, ... c_n> ã¯å帰çã«è§£æ±ºãããã
+ # name åá« bind åáÊå£ìåá¦åá¨å£ëåâªåãÌ夺åâ§åâ¯åã°ç½âíå§åâÄê¿Èå¡ùåà
+ # åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã <c_1, c_2, ... c_n> åá¯éæºç¸°íú¨å¢ð©£ì³ºåáÊå£ìåâ¶å
#
- # å¼æ° name ã«ä¸ããããå¤ãæååã®å ´åã«ã¯ã¾ãæåã« toName() ã«ãã£ã¦
- # NameComponent ã«å¤æãããã
+ # ê¾Êèʲ name åá«èº¼å¡èåâ²å£ìåáÞç¤åá¸èËçê¯Îç¯÷åá®ê¢´éð°å¢åá¯åá¾åáÔè×àéèÚå¢ toName() åá«åâ°å¢¥åá¦
+ # NameComponent åá«ê¦²è½ûåáÊå£ìåâ¶å
#
- # CosNaming::resolve() ã¨ã»ã¼åçã®åãããããã常ã«ä¸ãããã
- # ãã¼ã ãµã¼ãã®ã«ã¼ãã³ã³ããã¹ãã«å¯¾ã㦠resolve() ãå¼ã³åºãããç¹ã
- # ç°ãªãã
+ # CosNaming::resolve() åá¨åá»åá¼éð¸é²å¢°éãºå¡íåâÄå¡ùåâ¶å¡ìåà¢ç¸¸åá«èº¼å¡èåâ²å£ìåá
+ # åãºå¦¾åã åâµåã¼åãÀ墰åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨 resolve() åá¸ç¾åá³éçºåáÊå£ìåâ¶é¤»åá
+ # íõ°åáªåâ¶å
#
# @param self
- # @param name 解決ãã¹ããªãã¸ã§ã¯ãã®ååã®ãã¼ã ã³ã³ãã¼ãã³ã
+ # @param name ð©£ì³ºåáÒ墻åáºå¤¬åãÌ夺åâ§åâ¯åã°å¢°éðºç±íåá®åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
#
- # @return 解決ããããªãã¸ã§ã¯ãåç
§
+ # @return 𩎣쳎ºåáÊå£ìåáÞ夬åãÌ夺å⎧å⎯åã°ç½âí厧
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
#
@@ -551,24 +551,24 @@
##
# @if jp
#
- # @brief æå®ãããååã®ãªãã¸ã§ã¯ãã® bind ã解é¤ãã
+ # @brief ëì®ç®Ôå¡õåâ¸å¢¡éðºç±íåá®åâªåãÌ夺åâ§åâ¯åã°å¢° bind åâÄꧣñù¤åáÒå£ë
#
- # name ã« bind ããã¦ãããªãã¸ã§ã¯ãåç
§ã解é¤ããã
- # ãã¼ã ã³ã³ãã¼ãã³ã <c_1, c_2, ... c_n> ã¯å帰çã«è§£æ±ºãããã
+ # name åá« bind åáÊå£ìåá¦åá¨å£ëåâªåãÌ夺åâ§åâ¯åã°ç½âíå§åâÄꧣñù¤åáÒå£ëåà
+ # åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã <c_1, c_2, ... c_n> åá¯éæºç¸°íú¨å¢ð©£ì³ºåáÊå£ìåâ¶å
#
- # å¼æ° name ã«ä¸ããããå¤ãæååã®å ´åã«ã¯ã¾ãæåã« toName() ã«ãã£ã¦
- # NameComponent ã«å¤æãããã
+ # ê¾Êèʲ name åá«èº¼å¡èåâ²å£ìåáÞç¤åá¸èËçê¯Îç¯÷åá®ê¢´éð°å¢åá¯åá¾åáÔè×àéèÚå¢ toName() åá«åâ°å¢¥åá¦
+ # NameComponent åá«ê¦²è½ûåáÊå£ìåâ¶å
#
- # CosNaming::unbind() ã¨ã»ã¼åçã®åãããããã常ã«ä¸ãããã
- # ãã¼ã ãµã¼ãã®ã«ã¼ãã³ã³ããã¹ãã«å¯¾ã㦠unbind() ãå¼ã³åºãããç¹ã
- # ç°ãªãã
+ # CosNaming::unbind() åá¨åá»åá¼éð¸é²å¢°éãºå¡íåâÄå¡ùåâ¶å¡ìåà¢ç¸¸åá«èº¼å¡èåâ²å£ìåá
+ # åãºå¦¾åã åâµåã¼åãÀ墰åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨 unbind() åá¸ç¾åá³éçºåáÊå£ìåâ¶é¤»åá
+ # íõ°åáªåâ¶å
#
# @param self
- # @param name åé¤ãããªãã¸ã§ã¯ãã®ãã¼ã ã³ã³ãã¼ãã³ã
+ # @param name éé´ëÒ¦åáÒå£ëåâªåãÌ夺åâ§åâ¯åã°å¢°åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
#
@@ -588,14 +588,14 @@
##
# @if jp
#
- # @brief æ°ããã³ã³ããã¹ããçæãã
+ # @brief ëö°åáÎå¡äåâ³åã³åã¬å¤¯åâ¹åã°å£òíôÞè¯ðåáÒå£ë
#
- # ä¸ãããããã¼ã ãµã¼ãä¸ã§çæããã NamingContext ãè¿ãã
- # è¿ããã NamingContext 㯠bind ããã¦ããªãã
+ # 躼å¡èåâ²å£ìåáÞå¥íåã¼åã åâµåã¼åãÀ渴墩íôÞè¯ðåáÊå£ìåá NamingContext åâÄê¿Èå¡ùåà
+ # ðÁÈå¡õåâ¸å¢¡ NamingContext åᯠbind åáÊå£ìåá¦åá¨å¢¬åá¨å
#
# @param self
#
- # @return çæãããæ°ãã NamingContext
+ # @return íôÞè¯ðåáÊå£ìåáÞè̲åáÎå¡ä NamingContext
#
# @else
#
@@ -607,25 +607,25 @@
##
# @if jp
#
- # @brief æ°ããã³ã³ããã¹ãã bind ãã
+ # @brief ëö°åáÎå¡äåâ³åã³åã¬å¤¯åâ¹åã°å£ò bind åáÒå£ë
#
- # ä¸ãããã name ã«å¯¾ãã¦æ°ããã³ã³ããã¹ãããã¤ã³ãããã
- # çæããããNamingContext ã¯ãã¼ã ãµã¼ãä¸ã§çæããããã®ã§ããã
+ # 躼å¡èåâ²å£ìåá name åá«ê±¾åáÎ墨ëö°åáÎå¡äåâ³åã³åã¬å¤¯åâ¹åã°å£òåãÀ夦åã³åã²å¡ùåâ¶å
+ # íôÞè¯ðåáÊå£ìåáÞåNamingContext åá¯åãºå¦¾åã åâµåã¼åãÀ渴墩íôÞè¯ðåáÊå£ìåáÞå£âåá®åá§åá¤å£ëåà
#
- # å¼æ° name ã«ä¸ããããå¤ãæååã®å ´åã«ã¯ã¾ãæåã« toName() ã«ãã£ã¦
- # NameComponent ã«å¤æãããã
+ # ê¾Êèʲ name åá«èº¼å¡èåâ²å£ìåáÞç¤åá¸èËçê¯Îç¯÷åá®ê¢´éð°å¢åá¯åá¾åáÔè×àéèÚå¢ toName() åá«åâ°å¢¥åá¦
+ # NameComponent åá«ê¦²è½ûåáÊå£ìåâ¶å
#
# @param self
- # @param name NamingContextã«ä»ããååã®ãã¼ã ã³ã³ãã¼ãã³ã
- # @param force trueã®å ´åãéä¸ã®ã³ã³ããã¹ããå¼·å¶çã«ãã¤ã³ããã
- # (ããã©ã«ãå¤:true)
+ # @param name NamingContextåá«è½Ðå¡ñåâ¶ç¿íééºå¢°åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
+ # @param force trueåá®ê¢´éð°å¢ëÈæ¸åá®åâ³åã³åã¬å¤¯åâ¹åã°å£òê¾·éè¶íú¨å¢åãÀ夦åã³åã²å¡ùåâ
+ # (åã®å¥õåâ©åã«åã°ç¤:true)
#
- # @return çæãããæ°ãã NamingContext
+ # @return íôÞè¯ðåáÊå£ìåáÞè̲åáÎå¡ä NamingContext
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
- # @exception AlreadyBound name <n> ã® Object ããã§ã«ãã¤ã³ãããã¦ããã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
+ # @exception AlreadyBound name <n> åá® Object åá¸å¡ùåá§åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
#
@@ -657,16 +657,16 @@
##
# @if jp
#
- # @brief NamingContext ãéã¢ã¯ãã£ãåãã
+ # @brief NamingContext åâÄëÙþåâ¢åâ¯åã¬å¤¥åãÌç·öåáÒå£ë
#
- # context ã§æå®ããã NamingContext ãéã¢ã¯ãã£ãåããã
- # context ã«ä»ã®ã³ã³ããã¹ãããã¤ã³ãããã¦ããå ´å㯠NotEmpty ä¾å¤ã
- # çºçããã
+ # context åá§ëì®ç®Ôå¡õåâ¸å¢¡ NamingContext åâÄëÙþåâ¢åâ¯åã¬å¤¥åãÌç·öåáÒå£ëåà
+ # context åá«è½Ì墰åâ³åã³åã¬å¤¯åâ¹åã°å¡ìåãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëꢴéð°å¢± NotEmpty èÀ¶ç¤Ìå¡ì
+ # íùºíôÞå¡ùåâ¶å
#
# @param self
- # @param context éã¢ã¯ãã£ãåãã NamingContext
+ # @param context ñýÜ夤åâ¯åã¬å¤¥åãÌç·öåáÒå£ë NamingContext
#
- # @exception NotEmpty 対象context ã«ä»ã®ã³ã³ããã¹ãããã¤ã³ãããã¦ããã
+ # @exception NotEmpty ê±¾ð³¡context åá«è½Ì墰åâ³åã³åã¬å¤¯åâ¹åã°å¡ìåãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
#
@@ -691,19 +691,19 @@
##
# @if jp
- # @brief NamingContext ãå帰çã«ä¸ã£ã¦éã¢ã¯ãã£ãåãã
+ # @brief NamingContext åâÄç«í꺰íú¨å¢èº¶å¢¥åá¦ñýÜ夤åâ¯åã¬å¤¥åãÌç·öåáÒå£ë
#
- # context ã§ä¸ãããã NamingContext ã«å¯¾ãã¦ãname ã§æå®ããã
- # ãã¼ã ã³ã³ãã¼ãã³ã <c_1, ... c_(n-1)> ã NamingContext ã¨ãã¦
- # 解決ããªãããåå <c_n> ã«å¯¾ã㦠éã¢ã¯ãã£ãåãè¡ãã
+ # context åá§èº¼å¡èåâ²å£ìåá NamingContext åá«ê±¾åáÎ墨åà¡Ïame åá§ëì®ç®Ôå¡õåâ¸å¢¡
+ # åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã <c_1, ... c_(n-1)> åâ NamingContext åá¨åáÎ墨
+ # ð©£ì³ºåáÎ墬åá¸å£éåà¢ç¿íéé <c_n> åá«ê±¾åáÎ墨 ñýÜ夤åâ¯åã¬å¤¥åãÌç·öåâÄ꡸å¡æåà
#
# @param self
- # @param context éã¢ã¯ãã£ãåãã NamingContext
+ # @param context ñýÜ夤åâ¯åã¬å¤¥åãÌç·öåáÒå£ë NamingContext
#
- # @exception NotEmpty 対象context ã«ä»ã®ã³ã³ããã¹ãããã¤ã³ãããã¦ããã
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
+ # @exception NotEmpty ê±¾ð³¡context åá«è½Ì墰åâ³åã³åã¬å¤¯åâ¹åã°å¡ìåãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
# @brief Destroy the naming context recursively
@@ -738,9 +738,9 @@
##
# @if jp
- # @brief ãã¹ã¦ã® Binding ãåé¤ãã
+ # @brief åáÒ墻åᎦåᎮ Binding åâÄç±êñùŽ¤åáÒå£ë
#
- # ç»é²ããã¦ããå
¨ã¦ã®Binding ãåé¤ããã
+ # íù»ñì²åáÊå£ìåá¦åá¨å£ëéå¨åá¦åá®Binding åâÄç±êñù¤åáÒå£ëåà
#
# @param self
#
@@ -754,15 +754,15 @@
##
# @if jp
- # @brief ä¸ãããã NamingContext ã® Binding ãåå¾ãã
+ # @brief 躼å¡èåâ²å£ìåá NamingContext åá® Binding åâÄç½öêÀÎå¡ùåâ
#
- # æå®ããã NamingContext ã® Binding ãåå¾ããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡ NamingContext åá® Binding åâÄç½öêÀÎå¡ùåâ¶å
#
# @param self
- # @param name_cxt Binding åå¾å¯¾è±¡ NamingContext
- # @param how_many Binding ãåå¾ããé層ã®æ·±ã
- # @param rbl åå¾ãã Binding ãä¿æãããã«ã
- # @param rbi åå¾ãã Binding ããã©ãããã®ã¤ãã¬ã¼ã¿
+ # @param name_cxt Binding éïÌ玾Î环Ž¾ð³Ž¡ NamingContext
+ # @param how_many Binding åâÄç½öêÀÎå¡ùåâ¶ëÓî곤åá®ì¹±åá
+ # @param rbl éïÌç¾Îå¡÷åá Binding åâÄæ¿Úè·áåáÒå£ëåãÖå¦åã
+ # @param rbi éïÌç¾Îå¡÷åá Binding åâÄ墡åá©åâ¶å¢¡åâ¢å¢°åâ¤åã¬å¦®åã¼åâ¿
#
# @else
# @endif
@@ -781,16 +781,16 @@
##
# @if jp
- # @brief ä¸ãããã NameComponent ã®æåå表ç¾ãè¿ã
+ # @brief 躼å¡èåâ²å£ìåá NameComponent åá®ëö®çÎç¯÷ð£¨íï¾åâÄê¿Èå¡ù
#
- # æå®ããã NameComponent ãæåã«å¤æããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡ NameComponent åâÄèËçê¯Îå¢ê¦²è½ûåáÒå£ëåà
#
# @param self
- # @param name_list å¤æ対象 NameComponent
+ # @param name_list ꦲè½û걎¾ð³Ž¡ NameComponent
#
- # @return æååå¤æçµæ
+ # @return ëö®çÎç¯÷ꦲè½ûî·ÀèÛü
#
- # @exception InvalidName å¼æ° name_list ã®ååãä¸æ£ã
+ # @exception InvalidName ê¾Êèʲ name_list åá®éðºç±íåá¸æ¸ºè£åà
#
# @else
# @brief Get string representation of given NameComponent
@@ -808,16 +808,16 @@
##
# @if jp
- # @brief ä¸ããããæåå表ç¾ã NameComponent ã«å解ãã
+ # @brief 躼å¡èåâ²å£ìåáÞèËçê¯Îç¯÷ð£¨íï¾åâ NameComponent åá«éè¬ê§£åáÒå£ë
#
- # æå®ãããæååã NameComponent ã«å¤æããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡ëö®çÎç¯÷åâ NameComponent åá«ê¦²è½ûåáÒå£ëåà
#
# @param self
- # @param sname å¤æ対象æåå
+ # @param sname ꦲè½ûê±¾ð³¡ëö®çÎç¯÷
#
- # @return NameComponent å¤æçµæ
+ # @return NameComponent ꦲè½ûî·ÀèÛü
#
- # @exception InvalidName å¼æ° sname ãä¸æ£ã
+ # @exception InvalidName ê¾Êèʲ sname åá¸æ¸ºè£åà
#
# @else
# @brief Get NameComponent from gien string name representation
@@ -850,18 +850,18 @@
##
# @if jp
- # @brief ä¸ãããã addr 㨠string_name ãã URL表ç¾ãåå¾ãã
+ # @brief 躼å¡èåâ²å£ìåá addr åᨠstring_name åá¶å£é URLð£¨íï¾åâÄç½öêÀÎå¡ùåâ
#
- # æå®ãããã¢ãã¬ã¹ã¨å称ãURLã«å¤æããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡åâ¢åã²å¦®åâ¹åá¨éðºé§°åâöRLåá«ê¦²è½ûåáÒå£ëåà
#
# @param self
- # @param addr å¤æ対象ã¢ãã¬ã¹
- # @param string_name å¤æ対象å称
+ # @param addr ꦲè½û걎¾ð³Ž¡å⎢åã²å¦®å⎹
+ # @param string_name ꦲè½û걎¾ð³Ž¡éðºéŽ§Ž°
#
- # @return URL å¤æçµæ
+ # @return URL ꦲè½ûî·ÀèÛü
#
- # @exception InvalidAddress å¼æ° addr ãä¸æ£ã
- # @exception InvalidName å¼æ° string_name ãä¸æ£ã
+ # @exception InvalidAddress ê¾Êèʲ addr åá¸æ¸ºè£åà
+ # @exception InvalidName ê¾Êèʲ string_name åá¸æ¸ºè£åà
#
# @else
# @brief Get URL representation from given addr and string_name
@@ -872,19 +872,19 @@
##
# @if jp
- # @brief ä¸ããããæåå表ç¾ã resolve ããªãã¸ã§ã¯ããè¿ã
+ # @brief 躼å¡èåâ²å£ìåáÞèËçê¯Îç¯÷ð£¨íï¾åâ resolve åáÎ夬åãÌ夺åâ§åâ¯åã°å£òðÁÈå¡ù
#
- # æå®ãããæåå表ç¾ãresolveãï¼ãªãã¸ã§ã¯ããåå¾ããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡ëö®çÎç¯÷ð£¨íï¾åâÃÓesolveåáÎñ¼¸å¤¬åãÌ夺åâ§åâ¯åã°å£òéïÌç¾Îå¡ùåâ¶å
#
# @param self
- # @param string_name åå¾å¯¾è±¡ãªãã¸ã§ã¯ãæåå表ç¾
+ # @param string_name éïÌç¾Î篾ð³¡åâªåãÌ夺åâ§åâ¯åã°èËçê¯Îç¯÷ð£¨íï¾
#
- # @return 解決ããããªãã¸ã§ã¯ã
+ # @return ð©£ì³ºåáÊå£ìåáÞ夬åãÌ夺åâ§åâ¯åã
#
- # @exception NotFound éä¸ã® <c_1, c_2, ..., c_(n-1)> ãåå¨ããªãã
- # @exception CannotProceed ä½ããã®çç±ã§å¦çãç¶ç¶ã§ããªãã
- # @exception InvalidName å¼æ° name ã®ååãä¸æ£ã
- # @exception AlreadyBound name <n> ã® Object ããã§ã«ãã¤ã³ãããã¦ããã
+ # @exception NotFound ñàÈæ¸åá® <c_1, c_2, ..., c_(n-1)> åá¸çÐçتåáÎ墬åá¨å
+ # @exception CannotProceed è¿Êå£éåá¶å¢°íð¬éȳåá§éç¦íð¬å£òî¸Òé¶Ô墩åáºå¢¬åá¨å
+ # @exception InvalidName ê¾Êèʲ name åá®éðºç±íåá¸æ¸ºè£åà
+ # @exception AlreadyBound name <n> åá® Object åá¸å¡ùåá§åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåà
#
# @else
# @brief Resolve from name of string representation and get object
@@ -900,19 +900,19 @@
##
# @if jp
#
- # @brief ãªãã¸ã§ã¯ãã®ååããã¤ã³ãã¾ãã¯è§£æ±ºãã
+ # @brief åâªåãÌ夺åâ§åâ¯åã°å¢°éðºç±íåâÄå¥ðåâ¤åã³åã²å¢ÀåáÞ墱ð©£ì³ºåáÒå£ë
#
- # æå®ãããã³ã³ããã¹ãã«å¯¾ãã¦ãªãã¸ã§ã¯ãã NameComponent ã§æå®ããã
- # ä½ç½®ã«ãã¤ã³ãããã
- # åä¸ç®æã«æ¢ã«ä»ã®è¦ç´ ããã¤ã³ãæ¸ã¿ã®å ´åã¯ãæ¢åã®ãã¤ã³ãæ¸ã¿è¦ç´ ã
- # åå¾ããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡åâ³åã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨åâªåãÌ夺åâ§åâ¯åã°å£ò NameComponent åá§ëì®ç®Ôå¡õåâ¸å¢¡
+ # 迺齮åá«åãÀ夦åã³åã²å¡ùåâ¶å
+ # éð¸æ¸î°®è±àåá«ë÷¢åá«è½Ì墰ð¨¢é´ åá¸å¥ðåâ¤åã³åã²è¸°å¢Áåá®ê¢´éð°å¢±åà¢èΤê¯Ð墰åãÀ夦åã³åã²è¸°å¢Áð¨¢é´ åâ
+ # éïÌç¾Îå¡ùåâ¶å
#
# @param self
- # @param context bind ããã㯠resole 対象ã³ã³ããã¹ã
- # @param name_list ãªãã¸ã§ã¯ãã«ä»ããååã® NameComponent
- # @param obj é¢é£ä»ãããã Object
+ # @param context bind åâ¤å¡÷åá¾å¢± resole ê±¾ð³¡åâ³åã³åã¬å¤¯åâ¹åã
+ # @param name_list åâªåãÌ夺åâ§åâ¯åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param obj ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ Object
#
- # @return NameComponent ã§æå®ãããä½ç½®ã«ãã¤ã³ãããã¦ãããªãã¸ã§ã¯ã
+ # @return NameComponent åá§ëì®ç®Ôå¡õåâ¸å¢¡è¿ºé½®åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëåâªåãÌ夺åâ§åâ¯åã
#
# @else
# @brief Bind of resolve the given name component
@@ -930,20 +930,20 @@
##
# @if jp
#
- # @brief ã³ã³ããã¹ãã®ååããã¤ã³ãã¾ãã¯è§£æ±ºãã
+ # @brief åâ³åã³åã¬å¤¯åâ¹åã°å¢°éðºç±íåâÄå¥ðåâ¤åã³åã²å¢ÀåáÞ墱ð©£ì³ºåáÒå£ë
#
- # æå®ãããã³ã³ããã¹ãã«å¯¾ã㦠Contextã NameComponent ã§æå®ãããä½ç½®ã«
- # ãã¤ã³ãããã
- # Context ã空ã®å ´åã¯æ°è¦ã³ã³ããã¹ããçæãã¦ãã¤ã³ãããã
- # åä¸ç®æã«æ¢ã«ä»ã®è¦ç´ ããã¤ã³ãæ¸ã¿ã®å ´åã¯ãæ¢åã®ãã¤ã³ãæ¸ã¿è¦ç´ ã
- # åå¾ããã
+ # ëì®ç®Ôå¡õåâ¸å¢¡åâ³åã³åã¬å¤¯åâ¹åã°å¢ê±¾åáÎ墨 Contextåâ NameComponent åá§ëì®ç®Ôå¡õåâ¸å¢¡è¿ºé½®åá«
+ # åãÀ夦åã³åã²å¡ùåâ¶å
+ # Context åá¸é©ºåá®ê¢´éð°å¢±ëö°ð¨¾å¤µåã³åã¬å¤¯åâ¹åã°å£òíôÞè¯ðåáÎ墨åãÀ夦åã³åã²å¡ùåâ¶å
+ # éð¸æ¸î°®è±àåá«ë÷¢åá«è½Ì墰ð¨¢é´ åá¸å¥ðåâ¤åã³åã²è¸°å¢Áåá®ê¢´éð°å¢±åà¢èΤê¯Ð墰åãÀ夦åã³åã²è¸°å¢Áð¨¢é´ åâ
+ # éïÌç¾Îå¡ùåâ¶å
#
# @param self
- # @param context bind ããã㯠resole 対象ã³ã³ããã¹ã
- # @param name_list ã³ã³ããã¹ãã«ä»ããååã® NameComponent
- # @param new_context é¢é£ä»ãããã Context(ããã©ã«ãå¤:None)
+ # @param context bind åâ¤å¡÷åá¾å¢± resole ê±¾ð³¡åâ³åã³åã¬å¤¯åâ¹åã
+ # @param name_list åâ³åã³åã¬å¤¯åâ¹åã°å¢è½Ðå¡ñåâ¶ç¿íééºå¢° NameComponent
+ # @param new_context ñö¢ñà£è½Ðå¡ñåâ²å£ìåâ Context(åã®å¥õåâ©åã«åã°ç¤:None)
#
- # @return NameComponent ã§æå®ãããä½ç½®ã«ãã¤ã³ãããã¦ããContext
+ # @return NameComponent åá§ëì®ç®Ôå¡õåâ¸å¢¡è¿ºé½®åá«åãÀ夦åã³åã²å¡õåâ¸å¢¨åá¨å£ëContext
#
# @else
# @brief Bind of resolve the given name component
@@ -960,13 +960,13 @@
##
# @if jp
- # @brief ãã¼ã ãµã¼ãã®ååãåå¾ãã
+ # @brief åãºå¦¾åã åâµåã¼åãÀ墰éðºç±íåâÄç½öêÀÎå¡ùåâ
#
- # è¨å®ãããã¼ã ãµã¼ãã®ååãåå¾ããã
+ # ðªê°Ôå¡÷åáÞå¥íåã¼åã åâµåã¼åãÀ墰éðºç±íåâÄç½öêÀÎå¡ùåâ¶å
#
# @param self
#
- # @return ãã¼ã ãµã¼ãã®åå
+ # @return åãºå¦¾åã åâµåã¼åãÀ墰éðºç±í
#
# @else
# @brief Get the name of naming server
@@ -977,13 +977,13 @@
##
# @if jp
- # @brief ã«ã¼ãã³ã³ããã¹ããåå¾ãã
+ # @brief åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å£òéïÌç¾Îå¡ùåâ
#
- # è¨å®ãããã¼ã ãµã¼ãã®ã«ã¼ãã³ã³ããã¹ããåå¾ããã
+ # ðªê°Ôå¡÷åáÞå¥íåã¼åã åâµåã¼åãÀ墰åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã°å£òéïÌç¾Îå¡ùåâ¶å
#
# @param self
#
- # @return ãã¼ã ãµã¼ãã®ã«ã¼ãã³ã³ããã¹ã
+ # @return åãºå¦¾åã åâµåã¼åãÀ墰åã«åã¼åã°å¤µåã³åã¬å¤¯åâ¹åã
#
# @else
# @brief Get the root context
@@ -994,14 +994,14 @@
##
# @if jp
- # @brief ãªãã¸ã§ã¯ãããã¼ãã³ã°ã³ã³ããã¹ããå¤å¥ãã
+ # @brief åâªåãÌ夺åâ§åâ¯åã°å¡ìåãºå¦¾åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã°å¡ëéè¤éè¥åáÒå£ë
#
- # æå®ããè¦ç´ ããã¼ãã³ã°ã³ã³ããã¹ããå¤å¥ãã
+ # ëì®ç®Ôå¡÷åáÞê¦¢é´ åá¸å¥íåã¼åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã°å¡ëéè¤éè¥åáÒå£ë
#
# @param self
- # @param obj å¤å¥å¯¾è±¡è¦ç´
+ # @param obj éè¤éè¥ê±¾ð³¡ð¨¢é´
#
- # @return å¤å¥çµæ(ãã¼ãã³ã°ã³ã³ããã¹ã:trueããã以å¤:false)
+ # @return éè¤éè¥î·ÀèÛü(åãºå¦¾åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã:trueåà¢å¡ýåâ¸æ»¥ê¦:false)
#
# @else
# @brief Whether the object is NamingContext
@@ -1016,15 +1016,15 @@
##
# @if jp
- # @brief ä¸ããããååããã¼ãã³ã°ã³ã³ããã¹ããã©ããå¤å¥ãã
+ # @brief 躼å¡èåâ²å£ìåáÞç¿íééºå¡ìåãºå¦¾åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã°å¡ëåá©åá¬å¡ëéè¤éè¥åáÒå£ë
#
- # NameComponent ãããã¯æååã§æå®ããè¦ç´ ããã¼ãã³ã°ã³ã³ããã¹ãã
- # å¤å¥ãã
+ # NameComponent åâ¤å¡÷åá¾å¢±ëö®çÎç¯÷åá§ëì®ç®Ôå¡÷åáÞê¦¢é´ åá¸å¥íåã¼åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã°å¡ë
+ # é莤é莥åáÒå£ë
#
# @param self
- # @param name_list å¤å¥å¯¾è±¡
+ # @param name_list é莤é莥걎¾ð³Ž¡
#
- # @return å¤å¥çµæ(ãã¼ãã³ã°ã³ã³ããã¹ã:trueããã以å¤:false)
+ # @return éè¤éè¥î·ÀèÛü(åãºå¦¾åãÞ妵åâ°åâ³åã³åã¬å¤¯åâ¹åã:trueåà¢å¡ýåâ¸æ»¥ê¦:false)
#
# @else
# @brief Whether the given name component is NamingContext
@@ -1035,18 +1035,18 @@
##
# @if jp
- # @brief ãã¼ã ã³ã³ãã¼ãã³ãã®é¨åãè¿ã
+ # @brief åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã°å¢°ñã¨éè¬å£òðÁÈå¡ù
#
- # æå®ãããç¯å²ã®ãã¼ã ã³ã³ãã¼ãã³ããåå¾ããã
- # çµäºä½ç½®ãæå®ããã¦ããªãå ´åã¯ãæå¾ã®è¦ç´ ãé¤ãããã¼ã ã³ã³ãã¼ãã³ã
- # ãè¿ãã
+ # ëì®ç®Ôå¡õåâ¸å¢¡î±¨çÖ´åá®åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã°å£òéïÌç¾Îå¡ùåâ¶å
+ # 溬潺齮åá¸è·çê°Ôå¡õåâ¸å¢¨åá¨å¢¬åá¨ç ´éð°å¢±åà¢è×àêÀ¸å¢°ð¨¢é´ åâÄëÒ¦åá¨å¢¡åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã
+ # åâÄê¿Èå¡ùåà
#
# @param self
- # @param name_list æ¤ç´¢å¯¾è±¡NameComponent
- # @param begin åå¾ç¯å²éå§ä½ç½®
- # @param end åå¾ç¯å²çµäºä½ç½®(ããã©ã«ãå¤:None)
+ # @param name_list ì¦Ø鎴Ž¢ê±Ž¾ð³Ž¡NameComponent
+ # @param begin éïÌç¾Î鯨çÖ´ñö¶ç§¶æ½ºé½®
+ # @param end éïÌç¾Î鯨çִ溬潺齮(åã®å¥õåâ©åã«åã°ç¤:None)
#
- # @return NameComponent åå¾çµæ
+ # @return NameComponent éïÌ玾Î鎵ÀèÛü
#
# @else
# @brief Get subset of given name component
@@ -1068,19 +1068,19 @@
##
# @if jp
- # @brief ãã¼ã ã³ã³ãã¼ãã³ãã®æåå表ç¾ãåå¾ãã
+ # @brief åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã°å¢°ëö®çÎç¯÷ð£¨íï¾åâÄç½öêÀÎå¡ùåâ
#
- # æå®ããç¯å²ã®ãã¼ã ã³ã³ãã¼ãã³ãã®æåå表ç¾ãåå¾ããã
- # æåå表ç¾ã¯ãNameComponentã®æ§æã{Nc[0],Nc[1],Nc[2]・・・}ã®å ´åã
- # Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kind・・・
- # ã¨ããå½¢å¼ã§åå¾ã§ããã
- # åå¾ããæååã®é·ããæå®ããé·ã以ä¸ã®å ´åã¯ã
- # æå®ããé·ãã§åãæ¨ã¦ãããã
+ # ëì®ç®Ôå¡÷åáÞ鯨çÖ´åá®åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã°å¢°ëö®çÎç¯÷ð£¨íï¾åâÄç½öêÀÎå¡ùåâ¶å
+ # ëö®çÎç¯÷ð£¨íï¾åá¯å࡯ameComponentåá®ì©¶è¯ðåá·ÜNc[0],Nc[1],Nc[2]þ¿¥þ¿¥þ¿¥}åá®ê¢´éð°å
+ # Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kindþ¿¥þ¿¥þ¿¥
+ # åá¨åá¨å¡æ꿢꾾墩éïÌç¾Î墩åáºå£ëåà
+ # éïÌç¾Îå¡÷åáÞèËçê¯Îç¯÷åá®ñõ·åáÊå¡ìëì®ç®Ôå¡÷åáÞëʹåáÊ滥躴墰ꢴéð°å¢±åà
+ # ëì®ç®Ôå¡÷åáÞëʹåáÊ墩éè®å£êëí¨åá¦åâ²å£ìåâ¶å
#
# @param self
- # @param name_list åå¾å¯¾è±¡NameComponent
- # @param string_name åå¾çµææåå
- # @param slen åå¾å¯¾è±¡æååæ大å¤
+ # @param name_list éïÌ玾Î环Ž¾ð³Ž¡NameComponent
+ # @param string_name éïÌç¾ÎéµÀèÛüëö®çÎç¯÷
+ # @param slen éïÌç¾Î篾ð³¡ëö®çÎç¯÷ëüꦧéà¤
#
# @else
# @brief Get string representation of name component
@@ -1105,17 +1105,17 @@
##
# @if jp
- # @brief ãã¼ã ã³ã³ãã¼ãã³ãã®æåå表ç¾æã®æåé·ãåå¾ãã
+ # @brief åãºå¦¾åã åâ³åã³åãÚ妾åãºå¦µåã°å¢°ëö®çÎç¯÷ð£¨íï¾ëù¤å¢°ëö®çÎëʹåâÄç½öêÀÎå¡ùåâ
#
- # æå®ãããã¼ã ã³ã³ãã¼ãã³ããæååã§è¡¨ç¾ããå ´åã®é·ããåå¾ããã
- # æåå表ç¾ã¯ãNameComponentã®æ§æã{Nc[0],Nc[1],Nc[2]ã»ã»ã»}ã®å ´åã
- # Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kindã»ã»ã»
- # ã¨ããå½¢å¼ã§åå¾ã§ããã
+ # ëì®ç®Ôå¡÷åáÞå¥íåã¼åã åâ³åã³åãÚ妾åãºå¦µåã°å£òëö®çÎç¯÷åá§ð£¨íï¾åáÎ墡ꢴéð°å¢°ñõ·åáÊå£òéïÌç¾Îå¡ùåâ¶å
+ # ëö®çÎç¯÷ð£¨íï¾åá¯å࡯ameComponentåá®ì©¶è¯ðåá·ÜNc[0],Nc[1],Nc[2]åã»åã»åã»}åá®ê¢´éð°å
+ # Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kindå㎻å㎻å㎻
+ # åá¨åá¨å¡æ꿢꾾墩éïÌç¾Î墩åáºå£ëåà
#
# @param self
- # @param name_list åå¾å¯¾è±¡NameComponent
+ # @param name_list éïÌ玾Î环Ž¾ð³Ž¡NameComponent
#
- # @return æå®ãããã¼ã ã³ã³ãã¼ãã³ãã®æååé·ã
+ # @return ëì®ç®Ôå¡÷åáÞå¥íåã¼åã åâ³åã³åãÚ妾åãºå¦µåã°å¢°ëö®çÎç¯÷ñõ·åá
#
# @else
# @brief Get string length of the name component's string representation
@@ -1143,16 +1143,16 @@
##
# @if jp
- # @brief æååã®åå²
+ # @brief ëö®çÎç¯÷åá®éè¬ç²´
#
- # æååãæå®ããããªãã¿ã§åå²ããã
+ # ëö®çÎç¯÷åâÄè·çê°Ôå¡÷åáÞå¥çåãªåãÞå¤Áåá§éè¬ç²´åáÒå£ëåà
#
# @param self
- # @param input åå²å¯¾è±¡æåå
- # @param delimiter åå²ç¨ããªãã¿
- # @param results åå²çµæ
+ # @param input éè¬ç²´ê±¾ð³¡ëö®çÎç¯÷
+ # @param delimiter éè¬ç²´íô¨åã®å¦¬åãÞå¤Á
+ # @param results éè¬ç²´î·ÀèÛü
#
- # @return åå²ããæååã®è¦ç´ æ°
+ # @return éè¬ç²´åáÎ墡ëö®çÎç¯÷åá®ð¨¢é´ ëõ°
#
# @else
# @brief Split of string
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,131 +1,131 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# -*- Python -*-
-
-import nxt.locator
-from nxt.sensor import *
-from nxt.motor import *
-import time
-
-class NXTBrick:
- def __init__(self, bsock=None):
- """
- Ctor
- Connecting to NXT brick and creating motor object, sensor object
- and so on. Motor encoders will be reset.
- """
- if bsock:
- self.sock = bsock
- else:
- self.sock = nxt.locator.find_one_brick().connect()
-
- self.motors = [Motor(self.sock, PORT_A),
- Motor(self.sock, PORT_B),
- Motor(self.sock, PORT_C)]
-
- self.sensors = [TouchSensor(self.sock, PORT_1),
- SoundSensor(self.sock, PORT_2),
- LightSensor(self.sock, PORT_3),
- UltrasonicSensor(self.sock, PORT_4)]
- self.resetPosition()
-
- def close(self):
- """
- Finalizing connection with NXT brick.
- """
- self.sock.close()
-
- def resetPosition(self, relative = 0):
- """
- Resetting encoders of NXT motors
- """
- for m in self.motors:
- m.reset_position(relative)
-
- def setMotors(self, vels):
- """
- This operation receives array and set them as motor power. If the
- number of vels items does not match with the number of motors,
- smaller number of them will be taken and set respectively.
- """
- for i, v in enumerate(vels[:min(len(vels),len(self.motors))]):
- self.motors[i].power = max(min(v,127),-127)
- self.motors[i].mode = MODE_MOTOR_ON | MODE_REGULATED
- self.motors[i].regulation_mode = REGULATION_MOTOR_SYNC
- self.motors[i].run_state = RUN_STATE_RUNNING
- self.motors[i].tacho_limit = 0
- self.motors[i].set_output_state()
-
- def getMotors(self):
- """
- Getting motors' angle (degrees)
- """
- state = []
- for m in self.motors:
- stat = None
- for i in range(3):
- try:
- stat = m.get_output_state()
- break
- except:
- time.sleep(0.01)
- continue
-
- if stat == None:
- import sys
- print "Unknown motor encoder error"
- print sys.exc_info()[1]
- state.append(stat)
-
- return state
-
-
- def getSensors(self):
- """
- Getting sensors' values. Data will be returned as array.
- """
- state = []
- for s in self.sensors:
- stat = None
- for i in range(3):
- try:
- stat = s.get_sample()
- break
- except:
- time.sleep(0.01)
- continue
- if stat == None:
- import sys
- print "Unknown sensor error"
- print sys.exc_info()[1]
- state.append(stat)
-
- return state
-
-
-"""
-Test program
-It gives appropriate values to motors, and angles of motors are
-obtained and shown. Sensor data are also obtained and shown.
-"""
-if __name__ == "__main__":
- import time
- nxt = NXTBrick()
- print "connected"
-
- # Testing motors
- for i in range(0):
- nxt.setMotors([80,-80,80])
- print "Motor: "
- mstat = nxt.getMotors()
- for i, m in enumerate(mstat):
- print "(" , i, "): ", m
- time.sleep(0.1)
- nxt.setMotors([0,0,0])
-
- # Testing sensors
- for i in range(100):
- sensors = ["Touch", "Sound", "Light", "USonic"]
- sval = nxt.getSensors()
- print sval
- time.sleep(0.1)
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# -*- Python -*-
+
+import nxt.locator
+from nxt.sensor import *
+from nxt.motor import *
+import time
+
+class NXTBrick:
+ def __init__(self, bsock=None):
+ """
+ Ctor
+ Connecting to NXT brick and creating motor object, sensor object
+ and so on. Motor encoders will be reset.
+ """
+ if bsock:
+ self.sock = bsock
+ else:
+ self.sock = nxt.locator.find_one_brick().connect()
+
+ self.motors = [Motor(self.sock, PORT_A),
+ Motor(self.sock, PORT_B),
+ Motor(self.sock, PORT_C)]
+
+ self.sensors = [TouchSensor(self.sock, PORT_1),
+ SoundSensor(self.sock, PORT_2),
+ LightSensor(self.sock, PORT_3),
+ UltrasonicSensor(self.sock, PORT_4)]
+ self.resetPosition()
+
+ def close(self):
+ """
+ Finalizing connection with NXT brick.
+ """
+ self.sock.close()
+
+ def resetPosition(self, relative = 0):
+ """
+ Resetting encoders of NXT motors
+ """
+ for m in self.motors:
+ m.reset_position(relative)
+
+ def setMotors(self, vels):
+ """
+ This operation receives array and set them as motor power. If the
+ number of vels items does not match with the number of motors,
+ smaller number of them will be taken and set respectively.
+ """
+ for i, v in enumerate(vels[:min(len(vels),len(self.motors))]):
+ self.motors[i].power = max(min(v,127),-127)
+ self.motors[i].mode = MODE_MOTOR_ON | MODE_REGULATED
+ self.motors[i].regulation_mode = REGULATION_MOTOR_SYNC
+ self.motors[i].run_state = RUN_STATE_RUNNING
+ self.motors[i].tacho_limit = 0
+ self.motors[i].set_output_state()
+
+ def getMotors(self):
+ """
+ Getting motors' angle (degrees)
+ """
+ state = []
+ for m in self.motors:
+ stat = None
+ for i in range(3):
+ try:
+ stat = m.get_output_state()
+ break
+ except:
+ time.sleep(0.01)
+ continue
+
+ if stat == None:
+ import sys
+ print "Unknown motor encoder error"
+ print sys.exc_info()[1]
+ state.append(stat)
+
+ return state
+
+
+ def getSensors(self):
+ """
+ Getting sensors' values. Data will be returned as array.
+ """
+ state = []
+ for s in self.sensors:
+ stat = None
+ for i in range(3):
+ try:
+ stat = s.get_sample()
+ break
+ except:
+ time.sleep(0.01)
+ continue
+ if stat == None:
+ import sys
+ print "Unknown sensor error"
+ print sys.exc_info()[1]
+ state.append(stat)
+
+ return state
+
+
+"""
+Test program
+It gives appropriate values to motors, and angles of motors are
+obtained and shown. Sensor data are also obtained and shown.
+"""
+if __name__ == "__main__":
+ import time
+ nxt = NXTBrick()
+ print "connected"
+
+ # Testing motors
+ for i in range(0):
+ nxt.setMotors([80,-80,80])
+ print "Motor: "
+ mstat = nxt.getMotors()
+ for i, m in enumerate(mstat):
+ print "(" , i, "): ", m
+ time.sleep(0.1)
+ nxt.setMotors([0,0,0])
+
+ # Testing sensors
+ for i in range(100):
+ sensors = ["Touch", "Sound", "Light", "USonic"]
+ sval = nxt.getSensors()
+ print sval
+ time.sleep(0.1)
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick20.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick20.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTBrick20.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,127 +1,127 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# -*- Python -*-
-
-import nxt.locator
-from nxt.sensor import *
-from nxt.motor import *
-import time
-
-class NXTBrick:
- def __init__(self, bsock=None):
- """
- Ctor
- Connecting to NXT brick and creating motor object, sensor object
- and so on. Motor encoders will be reset.
- """
- if bsock:
- self.sock = bsock
- else:
- self.sock = nxt.locator.find_one_brick()
-
- self.motors = [Motor(self.sock, PORT_A),
- Motor(self.sock, PORT_B),
- Motor(self.sock, PORT_C)]
-
- self.sensors = [Touch(self.sock, PORT_1),
- Sound(self.sock, PORT_2),
- Light(self.sock, PORT_3),
- Ultrasonic(self.sock, PORT_4)]
- self.resetPosition()
-
- def close(self):
- """
- Finalizing connection with NXT brick.
- """
- self.sock.close()
-
- def resetPosition(self, relative = 0):
- """
- Resetting encoders of NXT motors
- """
- for m in self.motors:
- m.reset_position(relative)
-
- def setMotors(self, vels):
- """
- This operation receives array and set them as motor power. If the
- number of vels items does not match with the number of motors,
- smaller number of them will be taken and set respectively.
- """
- for i, v in enumerate(vels[:min(len(vels),len(self.motors))]):
- self.motors[i].sync = 1
- self.motors[i].run(max(min(v,127),-127))
-
- def getMotors(self):
- """
- Getting motors' angle (degrees)
- """
- state = []
- for m in self.motors:
- stat = None
- for i in range(3):
- try:
- stat = m.get_tacho().tacho_count
- break
- except:
- time.sleep(0.01)
- continue
-
- if stat == None:
- import sys
- print "Unknown motor encoder error"
- print sys.exc_info()[1]
- state.append(stat)
-
- return state
-
-
- def getSensors(self):
- """
- Getting sensors' values. Data will be returned as array.
- """
- state = []
- for s in self.sensors:
- stat = None
- for i in range(3):
- try:
- stat = s.get_sample()
- break
- except:
- time.sleep(0.01)
- continue
- if stat == None:
- import sys
- print "Unknown sensor error"
- print sys.exc_info()[1]
- state.append(stat)
-
- return state
-
-
-"""
-Test program
-It gives appropriate values to motors, and angles of motors are
-obtained and shown. Sensor data are also obtained and shown.
-"""
-if __name__ == "__main__":
- import time
- nxt = NXTBrick()
- print "connected"
-
- # Testing motors
- for i in range(0):
- nxt.setMotors([80,-80,80])
- print "Motor: "
- mstat = nxt.getMotors()
- for i, m in enumerate(mstat):
- print "(" , i, "): ", m
- time.sleep(0.1)
- nxt.setMotors([0,0,0])
-
- # Testing sensors
- for i in range(100):
- sensors = ["Touch", "Sound", "Light", "USonic"]
- sval = nxt.getSensors()
- print sval
- time.sleep(0.1)
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# -*- Python -*-
+
+import nxt.locator
+from nxt.sensor import *
+from nxt.motor import *
+import time
+
+class NXTBrick:
+ def __init__(self, bsock=None):
+ """
+ Ctor
+ Connecting to NXT brick and creating motor object, sensor object
+ and so on. Motor encoders will be reset.
+ """
+ if bsock:
+ self.sock = bsock
+ else:
+ self.sock = nxt.locator.find_one_brick()
+
+ self.motors = [Motor(self.sock, PORT_A),
+ Motor(self.sock, PORT_B),
+ Motor(self.sock, PORT_C)]
+
+ self.sensors = [Touch(self.sock, PORT_1),
+ Sound(self.sock, PORT_2),
+ Light(self.sock, PORT_3),
+ Ultrasonic(self.sock, PORT_4)]
+ self.resetPosition()
+
+ def close(self):
+ """
+ Finalizing connection with NXT brick.
+ """
+ self.sock.close()
+
+ def resetPosition(self, relative = 0):
+ """
+ Resetting encoders of NXT motors
+ """
+ for m in self.motors:
+ m.reset_position(relative)
+
+ def setMotors(self, vels):
+ """
+ This operation receives array and set them as motor power. If the
+ number of vels items does not match with the number of motors,
+ smaller number of them will be taken and set respectively.
+ """
+ for i, v in enumerate(vels[:min(len(vels),len(self.motors))]):
+ self.motors[i].sync = 1
+ self.motors[i].run(max(min(v,127),-127))
+
+ def getMotors(self):
+ """
+ Getting motors' angle (degrees)
+ """
+ state = []
+ for m in self.motors:
+ stat = None
+ for i in range(3):
+ try:
+ stat = m.get_tacho().tacho_count
+ break
+ except:
+ time.sleep(0.01)
+ continue
+
+ if stat == None:
+ import sys
+ print "Unknown motor encoder error"
+ print sys.exc_info()[1]
+ state.append(stat)
+
+ return state
+
+
+ def getSensors(self):
+ """
+ Getting sensors' values. Data will be returned as array.
+ """
+ state = []
+ for s in self.sensors:
+ stat = None
+ for i in range(3):
+ try:
+ stat = s.get_sample()
+ break
+ except:
+ time.sleep(0.01)
+ continue
+ if stat == None:
+ import sys
+ print "Unknown sensor error"
+ print sys.exc_info()[1]
+ state.append(stat)
+
+ return state
+
+
+"""
+Test program
+It gives appropriate values to motors, and angles of motors are
+obtained and shown. Sensor data are also obtained and shown.
+"""
+if __name__ == "__main__":
+ import time
+ nxt = NXTBrick()
+ print "connected"
+
+ # Testing motors
+ for i in range(0):
+ nxt.setMotors([80,-80,80])
+ print "Motor: "
+ mstat = nxt.getMotors()
+ for i, m in enumerate(mstat):
+ print "(" , i, "): ", m
+ time.sleep(0.1)
+ nxt.setMotors([0,0,0])
+
+ # Testing sensors
+ for i in range(100):
+ sensors = ["Touch", "Sound", "Light", "USonic"]
+ sval = nxt.getSensors()
+ print sval
+ time.sleep(0.1)
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,151 +1,151 @@
-#!/usr/bin/env python
-# -*- coding:utf-8 -*-
-# -*- Python -*-
-
-import sys
-import time
-sys.path.append(".")
-
-# Import RTM module
-import RTC
-import OpenRTM_aist
-
-
-# import NXTBrick class
-import NXTBrick
-
-
-# This module's spesification
-# <rtc-template block="module_spec">
-nxtrtc_spec = ["implementation_id", "NXTRTC",
- "type_name", "NXTRTC",
- "description", "NXT sample component",
- "version", "0.1",
- "vendor", "AIST",
- "category", "example",
- "activity_type", "DataFlowComponent",
- "max_instance", "10",
- "language", "Python",
- "lang_type", "SCRIPT",
- "conf.default.map", "A,B",
- ""]
-
-# </rtc-template>
-
-class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
- def __init__(self, manager):
- OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
- # initialize of configuration-data.
- # <rtc-template block="configurations">
- self._map = [['A', 'B']]
- self._nxtbrick = None
- self._mapping = {'A':0,'B':1,'C':2}
-
- def onInitialize(self):
- # DataPorts initialization
- # <rtc-template block="data_ports">
- self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
- self.addInPort("vel",self._velIn)
- self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
- self.addOutPort("pos",self._posOut)
- self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
- self.addOutPort("sens",self._sensOut)
-
- # Bind variables and configuration variable
- # <rtc-template block="bind_config">
- self.bindParameter("map", self._map, "A,B")
-
- # create NXTBrick object
- try:
- print "Connecting to NXT brick ...."
- self._nxtbrick = NXTBrick.NXTBrick()
- print "Connection established."
- except:
- print "NXTBrick connection failed."
- return RTC.RTC_ERROR
-
- return RTC.RTC_OK
-
- def onFinalize(self):
- self._nxtbrick.close()
-
- def onActivated(self, ec_id):
- self._nxtbrick.setMotors([0,0,0])
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
- return RTC.RTC_OK
-
- def onDeactivated(self, ec_id):
- self._nxtbrick.setMotors([0,0,0])
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
- def onExecute(self, ec_id):
- try:
- # check new data.
- if self._velIn.isNew():
- # read velocity data from inport.
- self._d_vel = self._velIn.read()
-
- vel_ = [0,0,0]
- vel_[self._mapping[self._map[0][0]]] = self._d_vel.data[0]
- vel_[self._mapping[self._map[0][1]]] = self._d_vel.data[1]
- # set velocity
-# print vel_
- self._nxtbrick.setMotors(vel_)
- else:
- print "buffer empty"
-
- # get sensor data.
- sensor_ = self._nxtbrick.getSensors()
- if sensor_:
- self._d_sens.data = sensor_
- # write sensor data to outport.
- self._sensOut.write()
-
- # get position data.
- position_ = self._nxtbrick.getMotors()
- if position_:
- self._d_pos.data = \
- [position_[self._mapping[self._map[0][0]]][9], \
- position_[self._mapping[self._map[0][1]]][9]]
- # write position data to outport.
- self._posOut.write()
- except:
- print sys.exc_info()[1]
-
- return RTC.RTC_OK
-
-
-
-def NXTRTCInit(manager):
- profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
- manager.registerFactory(profile,
- NXTRTC,
- OpenRTM_aist.Delete)
-
-
-def MyModuleInit(manager):
- NXTRTCInit(manager)
-
- # Create a component
- comp = manager.createComponent("NXTRTC")
-
-
-
-def main():
- mgr = OpenRTM_aist.Manager.init(sys.argv)
- mgr.setModuleInitProc(MyModuleInit)
- mgr.activateManager()
- mgr.runManager()
-
-if __name__ == "__main__":
- main()
-
-
+#!/usr/bin/env python
+# -*- coding:utf-8 -*-
+# -*- Python -*-
+
+import sys
+import time
+sys.path.append(".")
+
+# Import RTM module
+import RTC
+import OpenRTM_aist
+
+
+# import NXTBrick class
+import NXTBrick
+
+
+# This module's spesification
+# <rtc-template block="module_spec">
+nxtrtc_spec = ["implementation_id", "NXTRTC",
+ "type_name", "NXTRTC",
+ "description", "NXT sample component",
+ "version", "0.1",
+ "vendor", "AIST",
+ "category", "example",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "10",
+ "language", "Python",
+ "lang_type", "SCRIPT",
+ "conf.default.map", "A,B",
+ ""]
+
+# </rtc-template>
+
+class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
+ def __init__(self, manager):
+ OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
+
+ # initialize of configuration-data.
+ # <rtc-template block="configurations">
+ self._map = [['A', 'B']]
+ self._nxtbrick = None
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def onInitialize(self):
+ # DataPorts initialization
+ # <rtc-template block="data_ports">
+ self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
+ self.addInPort("vel",self._velIn)
+ self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
+ self.addOutPort("pos",self._posOut)
+ self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
+ self.addOutPort("sens",self._sensOut)
+
+ # Bind variables and configuration variable
+ # <rtc-template block="bind_config">
+ self.bindParameter("map", self._map, "A,B")
+
+ # create NXTBrick object
+ try:
+ print "Connecting to NXT brick ...."
+ self._nxtbrick = NXTBrick.NXTBrick()
+ print "Connection established."
+ except:
+ print "NXTBrick connection failed."
+ return RTC.RTC_ERROR
+
+ return RTC.RTC_OK
+
+ def onFinalize(self):
+ self._nxtbrick.close()
+
+ def onActivated(self, ec_id):
+ self._nxtbrick.setMotors([0,0,0])
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+ return RTC.RTC_OK
+
+ def onDeactivated(self, ec_id):
+ self._nxtbrick.setMotors([0,0,0])
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+ def onExecute(self, ec_id):
+ try:
+ # check new data.
+ if self._velIn.isNew():
+ # read velocity data from inport.
+ self._d_vel = self._velIn.read()
+
+ vel_ = [0,0,0]
+ vel_[self._mapping[self._map[0][0]]] = self._d_vel.data[0]
+ vel_[self._mapping[self._map[0][1]]] = self._d_vel.data[1]
+ # set velocity
+# print vel_
+ self._nxtbrick.setMotors(vel_)
+ else:
+ print "buffer empty"
+
+ # get sensor data.
+ sensor_ = self._nxtbrick.getSensors()
+ if sensor_:
+ self._d_sens.data = sensor_
+ # write sensor data to outport.
+ self._sensOut.write()
+
+ # get position data.
+ position_ = self._nxtbrick.getMotors()
+ if position_:
+ self._d_pos.data = \
+ [position_[self._mapping[self._map[0][0]]][9], \
+ position_[self._mapping[self._map[0][1]]][9]]
+ # write position data to outport.
+ self._posOut.write()
+ except:
+ print sys.exc_info()[1]
+
+ return RTC.RTC_OK
+
+
+
+def NXTRTCInit(manager):
+ profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
+ manager.registerFactory(profile,
+ NXTRTC,
+ OpenRTM_aist.Delete)
+
+
+def MyModuleInit(manager):
+ NXTRTCInit(manager)
+
+ # Create a component
+ comp = manager.createComponent("NXTRTC")
+
+
+
+def main():
+ mgr = OpenRTM_aist.Manager.init(sys.argv)
+ mgr.setModuleInitProc(MyModuleInit)
+ mgr.activateManager()
+ mgr.runManager()
+
+if __name__ == "__main__":
+ main()
+
+
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,150 +1,150 @@
-#!/usr/bin/env python
-# -*- coding:utf-8 -*-
-# -*- Python -*-
-
-import sys
-import time
-sys.path.append(".")
-
-# Import RTM module
-import RTC
-import OpenRTM_aist
-
-
-# import NXTBrick class
-import NXTBrick20
-
-
-# This module's spesification
-# <rtc-template block="module_spec">
-nxtrtc_spec = ["implementation_id", "NXTRTC",
- "type_name", "NXTRTC",
- "description", "NXT sample component",
- "version", "0.1",
- "vendor", "AIST",
- "category", "example",
- "activity_type", "DataFlowComponent",
- "max_instance", "10",
- "language", "Python",
- "lang_type", "SCRIPT",
- "conf.default.map", "A,B",
- ""]
-
-# </rtc-template>
-
-class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
- def __init__(self, manager):
- OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
- # initialize of configuration-data.
- # <rtc-template block="configurations">
- self._map = [['A', 'B']]
- self._nxtbrick = None
- self._mapping = {'A':0,'B':1,'C':2}
-
- def onInitialize(self):
- # DataPorts initialization
- # <rtc-template block="data_ports">
- self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
- self.addInPort("vel",self._velIn)
- self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
- self.addOutPort("pos",self._posOut)
- self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
- self.addOutPort("sens",self._sensOut)
-
- # Bind variables and configuration variable
- # <rtc-template block="bind_config">
- self.bindParameter("map", self._map, "A,B")
-
- # create NXTBrick object
- try:
- print "Connecting to NXT brick ...."
- self._nxtbrick = NXTBrick20.NXTBrick()
- print "Connection established."
- except:
- print "NXTBrick connection failed."
- return RTC.RTC_ERROR
-
- return RTC.RTC_OK
-
- def onFinalize(self):
- self._nxtbrick.close()
-
- def onActivated(self, ec_id):
- self._nxtbrick.setMotors([0,0,0])
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
- return RTC.RTC_OK
-
- def onDeactivated(self, ec_id):
- self._nxtbrick.setMotors([0,0,0])
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
- def onExecute(self, ec_id):
- try:
- # check new data.
- if self._velIn.isNew():
- # read velocity data from inport.
- self._d_vel = self._velIn.read()
-
- vel_ = [0,0,0]
- vel_[self._mapping[self._map[0][0]]] = self._d_vel.data[0]
- vel_[self._mapping[self._map[0][1]]] = self._d_vel.data[1]
- # set velocity
- self._nxtbrick.setMotors(vel_)
- else:
- print "buffer empty"
-
- # get sensor data.
- sensor_ = self._nxtbrick.getSensors()
- if sensor_:
- self._d_sens.data = sensor_
- # write sensor data to outport.
- self._sensOut.write()
-
- # get position data.
- position_ = self._nxtbrick.getMotors()
- if position_:
- self._d_pos.data = \
- [position_[self._mapping[self._map[0][0]]], \
- position_[self._mapping[self._map[0][1]]]]
- # write position data to outport.
- self._posOut.write()
- except:
- print sys.exc_info()[1]
-
- return RTC.RTC_OK
-
-
-
-def NXTRTCInit(manager):
- profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
- manager.registerFactory(profile,
- NXTRTC,
- OpenRTM_aist.Delete)
-
-
-def MyModuleInit(manager):
- NXTRTCInit(manager)
-
- # Create a component
- comp = manager.createComponent("NXTRTC")
-
-
-
-def main():
- mgr = OpenRTM_aist.Manager.init(sys.argv)
- mgr.setModuleInitProc(MyModuleInit)
- mgr.activateManager()
- mgr.runManager()
-
-if __name__ == "__main__":
- main()
-
-
+#!/usr/bin/env python
+# -*- coding:utf-8 -*-
+# -*- Python -*-
+
+import sys
+import time
+sys.path.append(".")
+
+# Import RTM module
+import RTC
+import OpenRTM_aist
+
+
+# import NXTBrick class
+import NXTBrick20
+
+
+# This module's spesification
+# <rtc-template block="module_spec">
+nxtrtc_spec = ["implementation_id", "NXTRTC",
+ "type_name", "NXTRTC",
+ "description", "NXT sample component",
+ "version", "0.1",
+ "vendor", "AIST",
+ "category", "example",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "10",
+ "language", "Python",
+ "lang_type", "SCRIPT",
+ "conf.default.map", "A,B",
+ ""]
+
+# </rtc-template>
+
+class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
+ def __init__(self, manager):
+ OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
+
+ # initialize of configuration-data.
+ # <rtc-template block="configurations">
+ self._map = [['A', 'B']]
+ self._nxtbrick = None
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def onInitialize(self):
+ # DataPorts initialization
+ # <rtc-template block="data_ports">
+ self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
+ self.addInPort("vel",self._velIn)
+ self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
+ self.addOutPort("pos",self._posOut)
+ self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
+ self.addOutPort("sens",self._sensOut)
+
+ # Bind variables and configuration variable
+ # <rtc-template block="bind_config">
+ self.bindParameter("map", self._map, "A,B")
+
+ # create NXTBrick object
+ try:
+ print "Connecting to NXT brick ...."
+ self._nxtbrick = NXTBrick20.NXTBrick()
+ print "Connection established."
+ except:
+ print "NXTBrick connection failed."
+ return RTC.RTC_ERROR
+
+ return RTC.RTC_OK
+
+ def onFinalize(self):
+ self._nxtbrick.close()
+
+ def onActivated(self, ec_id):
+ self._nxtbrick.setMotors([0,0,0])
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+ return RTC.RTC_OK
+
+ def onDeactivated(self, ec_id):
+ self._nxtbrick.setMotors([0,0,0])
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+ def onExecute(self, ec_id):
+ try:
+ # check new data.
+ if self._velIn.isNew():
+ # read velocity data from inport.
+ self._d_vel = self._velIn.read()
+
+ vel_ = [0,0,0]
+ vel_[self._mapping[self._map[0][0]]] = self._d_vel.data[0]
+ vel_[self._mapping[self._map[0][1]]] = self._d_vel.data[1]
+ # set velocity
+ self._nxtbrick.setMotors(vel_)
+ else:
+ print "buffer empty"
+
+ # get sensor data.
+ sensor_ = self._nxtbrick.getSensors()
+ if sensor_:
+ self._d_sens.data = sensor_
+ # write sensor data to outport.
+ self._sensOut.write()
+
+ # get position data.
+ position_ = self._nxtbrick.getMotors()
+ if position_:
+ self._d_pos.data = \
+ [position_[self._mapping[self._map[0][0]]], \
+ position_[self._mapping[self._map[0][1]]]]
+ # write position data to outport.
+ self._posOut.write()
+ except:
+ print sys.exc_info()[1]
+
+ return RTC.RTC_OK
+
+
+
+def NXTRTCInit(manager):
+ profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
+ manager.registerFactory(profile,
+ NXTRTC,
+ OpenRTM_aist.Delete)
+
+
+def MyModuleInit(manager):
+ NXTRTCInit(manager)
+
+ # Create a component
+ comp = manager.createComponent("NXTRTC")
+
+
+
+def main():
+ mgr = OpenRTM_aist.Manager.init(sys.argv)
+ mgr.setModuleInitProc(MyModuleInit)
+ mgr.activateManager()
+ mgr.runManager()
+
+if __name__ == "__main__":
+ main()
+
+
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20_callback.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20_callback.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC20_callback.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,156 +1,156 @@
-#!/usr/bin/env python
-# -*- coding:utf-8 -*-
-# -*- Python -*-
-
-import sys
-import time
-sys.path.append(".")
-
-# Import RTM module
-import RTC
-import OpenRTM_aist
-
-
-# import NXTBrick class
-import NXTBrick20
-
-
-# This module's spesification
-# <rtc-template block="module_spec">
-nxtrtc_spec = ["implementation_id", "NXTRTC",
- "type_name", "NXTRTC",
- "description", "NXT sample component",
- "version", "0.1",
- "vendor", "AIST",
- "category", "example",
- "activity_type", "DataFlowComponent",
- "max_instance", "10",
- "language", "Python",
- "lang_type", "SCRIPT",
- "conf.default.map", "A,B",
- ""]
-
-# </rtc-template>
-
-# @class CallBackClass
-# @brief callback class
-#
-# when data is written in the buffer of InPort,
-# it is called.
-class CallBackClass:
- def __init__(self, nxtbrick_, map_):
- self._nxtbrick = nxtbrick_
- self._map = map_
- self._mapping = {'A':0,'B':1,'C':2}
-
- def __call__(self, pData):
- vel_ = [0,0,0]
- vel_[self._mapping[self._map[0][0]]] = pData.data[0]
- vel_[self._mapping[self._map[0][1]]] = pData.data[1]
- # set velocity
- self._nxtbrick.setMotors(vel_)
-
-
-class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
- def __init__(self, manager):
- OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
- # initialize of configuration-data.
- # <rtc-template block="configurations">
- self._map = [['A', 'B']]
- self._nxtbrick = None
- self._mapping = {'A':0,'B':1,'C':2}
-
- def onInitialize(self):
- # DataPorts initialization
- # <rtc-template block="data_ports">
- self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
- self.addInPort("vel",self._velIn)
- self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
- self.addOutPort("pos",self._posOut)
- self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
- self.addOutPort("sens",self._sensOut)
-
- # Bind variables and configuration variable
- # <rtc-template block="bind_config">
- self.bindParameter("map", self._map, "A,B")
-
- # create NXTBrick object
- try:
- print "Connecting to NXT brick ...."
- self._nxtbrick = NXTBrick.NXTBrick()
- print "Connection established."
- except:
- print "NXTBrick connection failed."
- return RTC.RTC_ERROR
-
- # set callback class
- self._velIn.setOnWrite(CallBackClass(self._ntxbrick,self._map))
-
- return RTC.RTC_OK
-
- def onFinalize(self):
- self._nxtbrick.close()
-
- def onActivated(self, ec_id):
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
-
- def onDeactivated(self, ec_id):
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
-
- def onExecute(self, ec_id):
- # get sensor data.
- sensor_ = self._nxtbrick.getSensors()
- if sensor_:
- self._d_sens.data = sensor_
- # write sensor data to outport.
- self._sensOut.write()
-
- # get position data.
- position_ = self._nxtbrick.getMotors()
- if position_:
- self._d_pos.data = [position_[self._mapping[self._map[0][0]]],position_[self._mapping[self._map[0][1]]]]
- # write position data to outport.
- self._posOut.write()
-
- return RTC.RTC_OK
-
-
-
-def NXTRTC_callbackInit(manager):
- profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
- manager.registerFactory(profile,
- NXTRTC,
- OpenRTM_aist.Delete)
-
-
-def MyModuleInit(manager):
- NXTRTC_callbackInit(manager)
-
- # Create a component
- comp = manager.createComponent("NXTRTC")
-
-
-
-def main():
- mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
- #mgr = OpenRTM_aist.Manager.init(sys.argv)
- mgr.setModuleInitProc(MyModuleInit)
- mgr.activateManager()
- mgr.runManager()
-
-if __name__ == "__main__":
- main()
-
-
+#!/usr/bin/env python
+# -*- coding:utf-8 -*-
+# -*- Python -*-
+
+import sys
+import time
+sys.path.append(".")
+
+# Import RTM module
+import RTC
+import OpenRTM_aist
+
+
+# import NXTBrick class
+import NXTBrick20
+
+
+# This module's spesification
+# <rtc-template block="module_spec">
+nxtrtc_spec = ["implementation_id", "NXTRTC",
+ "type_name", "NXTRTC",
+ "description", "NXT sample component",
+ "version", "0.1",
+ "vendor", "AIST",
+ "category", "example",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "10",
+ "language", "Python",
+ "lang_type", "SCRIPT",
+ "conf.default.map", "A,B",
+ ""]
+
+# </rtc-template>
+
+# @class CallBackClass
+# @brief callback class
+#
+# when data is written in the buffer of InPort,
+# it is called.
+class CallBackClass:
+ def __init__(self, nxtbrick_, map_):
+ self._nxtbrick = nxtbrick_
+ self._map = map_
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def __call__(self, pData):
+ vel_ = [0,0,0]
+ vel_[self._mapping[self._map[0][0]]] = pData.data[0]
+ vel_[self._mapping[self._map[0][1]]] = pData.data[1]
+ # set velocity
+ self._nxtbrick.setMotors(vel_)
+
+
+class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
+ def __init__(self, manager):
+ OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
+
+ # initialize of configuration-data.
+ # <rtc-template block="configurations">
+ self._map = [['A', 'B']]
+ self._nxtbrick = None
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def onInitialize(self):
+ # DataPorts initialization
+ # <rtc-template block="data_ports">
+ self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
+ self.addInPort("vel",self._velIn)
+ self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
+ self.addOutPort("pos",self._posOut)
+ self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
+ self.addOutPort("sens",self._sensOut)
+
+ # Bind variables and configuration variable
+ # <rtc-template block="bind_config">
+ self.bindParameter("map", self._map, "A,B")
+
+ # create NXTBrick object
+ try:
+ print "Connecting to NXT brick ...."
+ self._nxtbrick = NXTBrick.NXTBrick()
+ print "Connection established."
+ except:
+ print "NXTBrick connection failed."
+ return RTC.RTC_ERROR
+
+ # set callback class
+ self._velIn.setOnWrite(CallBackClass(self._ntxbrick,self._map))
+
+ return RTC.RTC_OK
+
+ def onFinalize(self):
+ self._nxtbrick.close()
+
+ def onActivated(self, ec_id):
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+
+ def onDeactivated(self, ec_id):
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+
+ def onExecute(self, ec_id):
+ # get sensor data.
+ sensor_ = self._nxtbrick.getSensors()
+ if sensor_:
+ self._d_sens.data = sensor_
+ # write sensor data to outport.
+ self._sensOut.write()
+
+ # get position data.
+ position_ = self._nxtbrick.getMotors()
+ if position_:
+ self._d_pos.data = [position_[self._mapping[self._map[0][0]]],position_[self._mapping[self._map[0][1]]]]
+ # write position data to outport.
+ self._posOut.write()
+
+ return RTC.RTC_OK
+
+
+
+def NXTRTC_callbackInit(manager):
+ profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
+ manager.registerFactory(profile,
+ NXTRTC,
+ OpenRTM_aist.Delete)
+
+
+def MyModuleInit(manager):
+ NXTRTC_callbackInit(manager)
+
+ # Create a component
+ comp = manager.createComponent("NXTRTC")
+
+
+
+def main():
+ mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
+ #mgr = OpenRTM_aist.Manager.init(sys.argv)
+ mgr.setModuleInitProc(MyModuleInit)
+ mgr.activateManager()
+ mgr.runManager()
+
+if __name__ == "__main__":
+ main()
+
+
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC_callback.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC_callback.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/examples/NXTRTC/NXTRTC_callback.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,156 +1,156 @@
-#!/usr/bin/env python
-# -*- coding:utf-8 -*-
-# -*- Python -*-
-
-import sys
-import time
-sys.path.append(".")
-
-# Import RTM module
-import RTC
-import OpenRTM_aist
-
-
-# import NXTBrick class
-import NXTBrick
-
-
-# This module's spesification
-# <rtc-template block="module_spec">
-nxtrtc_spec = ["implementation_id", "NXTRTC",
- "type_name", "NXTRTC",
- "description", "NXT sample component",
- "version", "0.1",
- "vendor", "AIST",
- "category", "example",
- "activity_type", "DataFlowComponent",
- "max_instance", "10",
- "language", "Python",
- "lang_type", "SCRIPT",
- "conf.default.map", "A,B",
- ""]
-
-# </rtc-template>
-
-# @class CallBackClass
-# @brief callback class
-#
-# when data is written in the buffer of InPort,
-# it is called.
-class CallBackClass:
- def __init__(self, nxtbrick_, map_):
- self._nxtbrick = nxtbrick_
- self._map = map_
- self._mapping = {'A':0,'B':1,'C':2}
-
- def __call__(self, pData):
- vel_ = [0,0,0]
- vel_[self._mapping[self._map[0][0]]] = pData.data[0]
- vel_[self._mapping[self._map[0][1]]] = pData.data[1]
- # set velocity
- self._nxtbrick.setMotors(vel_)
-
-
-class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
- def __init__(self, manager):
- OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
- # initialize of configuration-data.
- # <rtc-template block="configurations">
- self._map = [['A', 'B']]
- self._nxtbrick = None
- self._mapping = {'A':0,'B':1,'C':2}
-
- def onInitialize(self):
- # DataPorts initialization
- # <rtc-template block="data_ports">
- self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
- self.addInPort("vel",self._velIn)
- self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
- self.addOutPort("pos",self._posOut)
- self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
- self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
- self.addOutPort("sens",self._sensOut)
-
- # Bind variables and configuration variable
- # <rtc-template block="bind_config">
- self.bindParameter("map", self._map, "A,B")
-
- # create NXTBrick object
- try:
- print "Connecting to NXT brick ...."
- self._nxtbrick = NXTBrick.NXTBrick()
- print "Connection established."
- except:
- print "NXTBrick connection failed."
- return RTC.RTC_ERROR
-
- # set callback class
- self._velIn.setOnWrite(CallBackClass(self._ntxbrick,self._map))
-
- return RTC.RTC_OK
-
- def onFinalize(self):
- self._nxtbrick.close()
-
- def onActivated(self, ec_id):
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
-
- def onDeactivated(self, ec_id):
- # reset NXTBrick's position.
- self._nxtbrick.resetPosition()
-
- return RTC.RTC_OK
-
-
- def onExecute(self, ec_id):
- # get sensor data.
- sensor_ = self._nxtbrick.getSensors()
- if sensor_:
- self._d_sens.data = [sensor_[3]]
- # write sensor data to outport.
- self._sensOut.write()
-
- # get position data.
- position_ = self._nxtbrick.getMotors()
- if position_:
- self._d_pos.data = [position_[self._mapping[self._map[0][0]]][9],position_[self._mapping[self._map[0][1]]][9]]
- # write position data to outport.
- self._posOut.write()
-
- return RTC.RTC_OK
-
-
-
-def NXTRTC_callbackInit(manager):
- profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
- manager.registerFactory(profile,
- NXTRTC,
- OpenRTM_aist.Delete)
-
-
-def MyModuleInit(manager):
- NXTRTC_callbackInit(manager)
-
- # Create a component
- comp = manager.createComponent("NXTRTC")
-
-
-
-def main():
- mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
- #mgr = OpenRTM_aist.Manager.init(sys.argv)
- mgr.setModuleInitProc(MyModuleInit)
- mgr.activateManager()
- mgr.runManager()
-
-if __name__ == "__main__":
- main()
-
-
+#!/usr/bin/env python
+# -*- coding:utf-8 -*-
+# -*- Python -*-
+
+import sys
+import time
+sys.path.append(".")
+
+# Import RTM module
+import RTC
+import OpenRTM_aist
+
+
+# import NXTBrick class
+import NXTBrick
+
+
+# This module's spesification
+# <rtc-template block="module_spec">
+nxtrtc_spec = ["implementation_id", "NXTRTC",
+ "type_name", "NXTRTC",
+ "description", "NXT sample component",
+ "version", "0.1",
+ "vendor", "AIST",
+ "category", "example",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "10",
+ "language", "Python",
+ "lang_type", "SCRIPT",
+ "conf.default.map", "A,B",
+ ""]
+
+# </rtc-template>
+
+# @class CallBackClass
+# @brief callback class
+#
+# when data is written in the buffer of InPort,
+# it is called.
+class CallBackClass:
+ def __init__(self, nxtbrick_, map_):
+ self._nxtbrick = nxtbrick_
+ self._map = map_
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def __call__(self, pData):
+ vel_ = [0,0,0]
+ vel_[self._mapping[self._map[0][0]]] = pData.data[0]
+ vel_[self._mapping[self._map[0][1]]] = pData.data[1]
+ # set velocity
+ self._nxtbrick.setMotors(vel_)
+
+
+class NXTRTC(OpenRTM_aist.DataFlowComponentBase):
+ def __init__(self, manager):
+ OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
+
+ # initialize of configuration-data.
+ # <rtc-template block="configurations">
+ self._map = [['A', 'B']]
+ self._nxtbrick = None
+ self._mapping = {'A':0,'B':1,'C':2}
+
+ def onInitialize(self):
+ # DataPorts initialization
+ # <rtc-template block="data_ports">
+ self._d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._velIn = OpenRTM_aist.InPort("vel", self._d_vel)
+ self.addInPort("vel",self._velIn)
+ self._d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._posOut = OpenRTM_aist.OutPort("pos", self._d_pos)
+ self.addOutPort("pos",self._posOut)
+ self._d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ self._sensOut = OpenRTM_aist.OutPort("sens", self._d_sens)
+ self.addOutPort("sens",self._sensOut)
+
+ # Bind variables and configuration variable
+ # <rtc-template block="bind_config">
+ self.bindParameter("map", self._map, "A,B")
+
+ # create NXTBrick object
+ try:
+ print "Connecting to NXT brick ...."
+ self._nxtbrick = NXTBrick.NXTBrick()
+ print "Connection established."
+ except:
+ print "NXTBrick connection failed."
+ return RTC.RTC_ERROR
+
+ # set callback class
+ self._velIn.setOnWrite(CallBackClass(self._ntxbrick,self._map))
+
+ return RTC.RTC_OK
+
+ def onFinalize(self):
+ self._nxtbrick.close()
+
+ def onActivated(self, ec_id):
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+
+ def onDeactivated(self, ec_id):
+ # reset NXTBrick's position.
+ self._nxtbrick.resetPosition()
+
+ return RTC.RTC_OK
+
+
+ def onExecute(self, ec_id):
+ # get sensor data.
+ sensor_ = self._nxtbrick.getSensors()
+ if sensor_:
+ self._d_sens.data = [sensor_[3]]
+ # write sensor data to outport.
+ self._sensOut.write()
+
+ # get position data.
+ position_ = self._nxtbrick.getMotors()
+ if position_:
+ self._d_pos.data = [position_[self._mapping[self._map[0][0]]][9],position_[self._mapping[self._map[0][1]]][9]]
+ # write position data to outport.
+ self._posOut.write()
+
+ return RTC.RTC_OK
+
+
+
+def NXTRTC_callbackInit(manager):
+ profile = OpenRTM_aist.Properties(defaults_str=nxtrtc_spec)
+ manager.registerFactory(profile,
+ NXTRTC,
+ OpenRTM_aist.Delete)
+
+
+def MyModuleInit(manager):
+ NXTRTC_callbackInit(manager)
+
+ # Create a component
+ comp = manager.createComponent("NXTRTC")
+
+
+
+def main():
+ mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
+ #mgr = OpenRTM_aist.Manager.init(sys.argv)
+ mgr.setModuleInitProc(MyModuleInit)
+ mgr.activateManager()
+ mgr.runManager()
+
+if __name__ == "__main__":
+ main()
+
+
Modified: branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/test/MySdoServiceConsumer.py
===================================================================
--- branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/test/MySdoServiceConsumer.py 2013-04-17 07:46:37 UTC (rev 555)
+++ branches/RELENG_1_1/OpenRTM-aist-Python/OpenRTM_aist/test/MySdoServiceConsumer.py 2013-04-18 07:02:34 UTC (rev 556)
@@ -1,54 +1,54 @@
-#!/usr/bin/env python
-# -*- Python -*-
-
-
-## \file MySdoServiceConsumer.py
-## \brief test for SdoServiceConsumer class
-## \date $Date: $
-## \author Shinji Kurihara
-#
-# Copyright (C) 2011
-# Task-intelligence Research Group,
-# Intelligent Systems Research Institute,
-# National Institute of
-# Advanced Industrial Science and Technology (AIST), Japan
-# All rights reserved.
-#
-
-import sys
-sys.path.insert(1,"../")
-sys.path.insert(1,"../RTM_IDL")
-import OpenRTM_aist
-import OpenRTM
-
-
-class MySdoServiceConsumer(OpenRTM_aist.SdoServiceConsumerBase):
- def __init__(self):
- self._profile = None
- self._rtobj = None
- return
-
- def __del__(self):
- return
-
- def init(self, rtobj, profile):
- self._rtobj = rtobj
- self._profile = profile
- return True
-
- def reinit(self, profile):
- return
-
- def getProfile(self):
- return self._profile
-
- def finalize(self):
- return
-
-
-def MySdoServiceConsumerInit(manager):
- factory = OpenRTM_aist.SdoServiceConsumerFactory.instance()
- factory.addFactory(OpenRTM_aist.toTypename(OpenRTM.ComponentObserver),
- MySdoServiceConsumer,
- OpenRTM_aist.Delete)
- return
+#!/usr/bin/env python
+# -*- Python -*-
+
+
+## \file MySdoServiceConsumer.py
+## \brief test for SdoServiceConsumer class
+## \date $Date: $
+## \author Shinji Kurihara
+#
+# Copyright (C) 2011
+# Task-intelligence Research Group,
+# Intelligent Systems Research Institute,
+# National Institute of
+# Advanced Industrial Science and Technology (AIST), Japan
+# All rights reserved.
+#
+
+import sys
+sys.path.insert(1,"../")
+sys.path.insert(1,"../RTM_IDL")
+import OpenRTM_aist
+import OpenRTM
+
+
+class MySdoServiceConsumer(OpenRTM_aist.SdoServiceConsumerBase):
+ def __init__(self):
+ self._profile = None
+ self._rtobj = None
+ return
+
+ def __del__(self):
+ return
+
+ def init(self, rtobj, profile):
+ self._rtobj = rtobj
+ self._profile = profile
+ return True
+
+ def reinit(self, profile):
+ return
+
+ def getProfile(self):
+ return self._profile
+
+ def finalize(self):
+ return
+
+
+def MySdoServiceConsumerInit(manager):
+ factory = OpenRTM_aist.SdoServiceConsumerFactory.instance()
+ factory.addFactory(OpenRTM_aist.toTypename(OpenRTM.ComponentObserver),
+ MySdoServiceConsumer,
+ OpenRTM_aist.Delete)
+ return
More information about the openrtm-commit
mailing list