[openrtm-commit:01932] r2719 - trunk/OpenRTM-aist/src/lib/rtm

openrtm @ openrtm.org openrtm @ openrtm.org
2016年 5月 13日 (金) 10:14:29 JST


Author: n-ando
Date: 2016-05-13 10:14:29 +0900 (Fri, 13 May 2016)
New Revision: 2719

Modified:
   trunk/OpenRTM-aist/src/lib/rtm/OutPort.h
Log:
Now data value is stored to PortProfile.properties. refs #3438

Modified: trunk/OpenRTM-aist/src/lib/rtm/OutPort.h
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/OutPort.h	2016-04-28 05:46:08 UTC (rev 2718)
+++ trunk/OpenRTM-aist/src/lib/rtm/OutPort.h	2016-05-13 01:14:29 UTC (rev 2719)
@@ -138,6 +138,8 @@
 #endif
         m_value(value), m_onWrite(0), m_onWriteConvert(0)
     {
+      addProperty("dataport.data_value", m_value);
+      m_propValueIndex = NVUtil::find_index(m_profile.properties, "dataport.data_value");
     }
     
     /*!
@@ -209,6 +211,7 @@
           (*m_onWrite)(value);
           RTC_TRACE(("OnWrite called"));
         }
+      m_profile.properties[m_index].value <<= value;
 
       bool result(true);
       std::vector<const char *> disconnect_ids;
@@ -490,6 +493,8 @@
     coil::TimeMeasure m_cdrtime;
 
     DataPortStatusList m_status;
+
+    CORBA::Long m_propValueIndex;
   };
 }; // namespace RTC
 



More information about the openrtm-commit mailing list