[openrtm-commit:02808] r1037 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 9月 6日 (水) 14:42:08 JST
Author: t-katami
Date: 2017-09-06 14:42:08 +0900 (Wed, 06 Sep 2017)
New Revision: 1037
Modified:
trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
Log:
[compat,bugfix,->releng_1_2] formatString() for component name format function now supports %i, %N (implementation id, instance #). refs #3039
Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java 2017-09-05 07:51:16 UTC (rev 1036)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/Manager.java 2017-09-06 05:42:08 UTC (rev 1037)
@@ -4153,6 +4153,14 @@
else if (c == 'c') {
str.append(properties.getProperty("category"));
}
+ else if (c == 'i') {
+ str.append(properties.getProperty("implementation_id"));
+ }
+ else if (c == 'N') {
+ String id = properties.getProperty("implementation_id");
+ String iname = properties.getProperty("instance_name");
+ str.append(iname.substring(id.length()));
+ }
else if (c == 'h') {
str.append(m_config.getProperty("os.hostname"));
}
More information about the openrtm-commit
mailing list