[openrtm-commit:00460] r586 - trunk/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 10月 19日 (水) 14:11:01 JST
Author: fsi-katami
Date: 2011-10-19 14:11:01 +0900 (Wed, 19 Oct 2011)
New Revision: 586
Modified:
trunk/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIInImpl.java
Log:
Fixed examples. refs #2272
Modified: trunk/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIInImpl.java
===================================================================
--- trunk/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIInImpl.java 2011-10-17 05:05:50 UTC (rev 585)
+++ trunk/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIInImpl.java 2011-10-19 05:11:01 UTC (rev 586)
@@ -32,20 +32,15 @@
// Set InPort buffers
// Set OutPort buffer
+/*
try {
-/*
registerOutPort(TimedLong.class, "out1", m_out1Out);
registerOutPort(TimedString.class, "out2", m_out2Out);
registerOutPort(TimedDouble.class, "out3", m_out3Out);
-*/ //v042
-
- registerOutPort("out1", m_out1Out);
- registerOutPort("out2", m_out2Out);
- registerOutPort("out3", m_out3Out);
-
} catch (Exception e) {
e.printStackTrace();
}
+*/ //v042
// Set service provider to Ports
@@ -60,6 +55,15 @@
// formaer rtc_init_entry()
@Override
protected ReturnCode_t onInitialize() {
+ // Set OutPort buffer
+ try {
+ addOutPort("out1", m_out1Out);
+ addOutPort("out2", m_out2Out);
+ addOutPort("out3", m_out3Out);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
guiIn.init();
return super.onInitialize();
}
openrtm-commit メーリングリストの案内