[openrtm-commit:03052] r1092 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/Throughput

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 1月 5日 (金) 14:18:28 JST


Author: t-katami
Date: 2018-01-05 14:18:28 +0900 (Fri, 05 Jan 2018)
New Revision: 1092

Modified:
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/Throughput/ThroughputImpl.java
Log:
[compat,example,->RELENG_1_2] Added ThroughputRTC. refs #4397

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/Throughput/ThroughputImpl.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/Throughput/ThroughputImpl.java	2018-01-05 05:10:51 UTC (rev 1091)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/Throughput/ThroughputImpl.java	2018-01-05 05:18:28 UTC (rev 1092)
@@ -393,7 +393,7 @@
 */
 
     try{
-      Thread.sleep((long)(sleepTime.getValue()*1000));
+      Thread.sleep((long)(sleepTime.getValue()*1000.0));
     }catch(InterruptedException ex){
     }
 
@@ -556,7 +556,8 @@
         sqSum = sqSum + (tmp * tmp);
         if (tmp > maxLatency) { 
           maxLatency = tmp; 
-        } else if (tmp < minLatency) { 
+        } 
+        if (tmp < minLatency) { 
           minLatency = tmp; 
         }
       }
@@ -675,9 +676,6 @@
 
   // DataOutPort declaration
   // <rtc-template block="outport_declare">
-  //protected TimedLong m_out_val;
-  //protected DataRef<TimedLong> m_out;
-  //protected OutPort<TimedLong> m_outOut;
 
   protected TimedOctetSeq inOctet = new TimedOctetSeq();
   protected DataRef<TimedOctetSeq> inOctetRef;
@@ -797,14 +795,16 @@
     @Override
     public ReturnCode operator(ConnectorBase.ConnectorInfo arg){
       System.out.println("------------------------------");
-      System.out.println("       Connected !!");
-      System.out.println("------------------------------");
+      //System.out.println("       Connected !!");
+      //System.out.println("------------------------------");
       System.out.println("Profile::name:   "+arg.name);
       System.out.println("Profile::id:     "+arg.id);
       System.out.println("Profile::properties: ");
       String str = new String();
+      /*
       System.out.println(
           "Profile::data_type:"+arg.properties.getProperty("data_type"));
+      */
       str = arg.properties._dump(str,arg.properties,0);
       System.out.println(str);
       System.out.println("------------------------------");



More information about the openrtm-commit mailing list