[openrtm-commit:02066] r857 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 10月 17日 (月) 12:04:37 JST
Author: win-ei
Date: 2016-10-17 12:04:37 +0900 (Mon, 17 Oct 2016)
New Revision: 857
Modified:
trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java
Log:
Fixed bugs. refs #3395
Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java 2016-10-16 11:09:35 UTC (rev 856)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java 2016-10-17 03:04:37 UTC (rev 857)
@@ -109,6 +109,14 @@
m_memory_size = memory_size;
m_shm_address = shm_address;
+ try{
+ RandomAccessFile file = new RandomAccessFile(SHARED_NAME+m_shm_address, "rw");
+ file.setLength(m_memory_size);
+ }
+ catch(Exception ex) {
+ rtcout.println(Logbuf.ERROR,"Open error "+ex.toString() );
+ }
+
if(m_smInterface!=null){
m_smInterface.open_memory(m_memory_size, m_shm_address);
}
@@ -197,6 +205,8 @@
EncapsOutputStreamExt cdr
= new EncapsOutputStreamExt(ORBUtil.getOrb(),true);
len._write(cdr);
+ //cdr.write_ulong(data.value.length);
+ //cdr.write_ulonglong(data.value.length);
byte[] ch = cdr.getByteArray();
buffer.put(ch, 0, ch.length);
More information about the openrtm-commit
mailing list