[openrtm-users 02752] rtm-skelwrapperの "hogehogeStub.cpp" exists and contents is sameのチェックについて

1 post / 0 new
Kei Okada
Offline
Last seen: Never ago
Joined: 2011-05-17 20:20
[openrtm-users 02752] rtm-skelwrapperの "hogehogeStub.cpp" exists and contents is sameのチェックについて

rtm-skelwrapperの "hogehogeStub.cpp" exists and contents is sameのチェックですが、
いまは、
newtext = re.sub(" \@date.*?\n", "", text)
oldtext2 = re.sub(" \@date.*?\n", "", oldtext)
if newtext == oldtext2:
print "\"" + fname + \
"\" exists and contents is same."
print "No need to generate the file."
return
else:
print "\"", fname, \
"\" already exists but contents are not same"

の様になっていて、textには出力予定のテキストがはいっているとおもいます。
のとき、idlのファイルの内容がかわっただけだと、出力されるテキストは同じになっていて、
idlは更新されるけど、stub/skelファイルに変更がない状況が生じているようです。
添付の様なパッチをあてると、idlの中身が更新されればsktl/stubも更新されるようになりますが、
どうでしょうか。

Undefined

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK