資源簡介
這個程序可以用,但是由于調試用的lcm數據涉及到機密,故調試日志文件暫不上傳,這個程序可以將lcm保存在日志中的數據抓出來
lcm(Lightweight Communications and Marshalling) 是一組類庫(含多種語言如java,c等),專門針對實時系統在高帶寬和低的延遲的情況下進行消息發送和數據封送處理。它提供了一個發布/訂閱消息模型、自動封裝/解封代碼生成工具(含多種編程語言版本)。其最初由麻省理工學院城市挑戰賽小組為DARPA消息傳遞系統設計。
LCM是專為通過局域網連接的tightly-coupled類型系統而設計。 它不適合因特網。LCM研制開發軟實時系統:它默認允許丟包以減少延時。

代碼片段和文件信息
/**?THIS?IS?AN?AUTOMATICALLY?GENERATED?FILE.??DO?NOT?MODIFY
?*?BY?HAND!!
?*
?*?Generated?by?lcm-gen
?**/
#include?“stdafx.h“
#include?
#include?“lcmtypes_gps_t.h“
static?int?__lcmtypes_gps_t_hash_computed;
static?int64_t?__lcmtypes_gps_t_hash;
?
int64_t?__lcmtypes_gps_t_hash_recursive(const?__lcm_hash_ptr?*p)
{
????const?__lcm_hash_ptr?*fp;
????for?(fp?=?p;?fp?!=?NULL;?fp?=?fp->parent)
????????if?(fp->v?==?__lcmtypes_gps_t_get_hash)
????????????return?0;
?
????const?__lcm_hash_ptr?cp?=?{?p?(void*)__lcmtypes_gps_t_get_hash?};
????(void)?cp;
?
????int64_t?hash?=?0xf7dc1c99ce14668bLL
?????????+?__double_hash_recursive(&cp)
?????????+?__double_hash_recursive(&cp)
?????????+?__double_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
?????????+?__float_hash_recursive(&cp)
????????;
?
????return?(hash<<1)?+?((hash>>63)&1);
}
?
int64_t?__lcmtypes_gps_t_get_hash(void)
{
????if?(!__lcmtypes_gps_t_hash_computed)?{
????????__lcmtypes_gps_t_hash?=?__lcmtypes_gps_t_hash_recursive(NULL);
????????__lcmtypes_gps_t_hash_computed?=?1;
????}
?
????return?__lcmtypes_gps_t_hash;
}
?
int?__lcmtypes_gps_t_encode_array(void?*buf?int?offset?int?maxlen?const?lcmtypes_gps_t?*p?int?elements)
{
????int?pos?=?0?thislen?element;
?
????for?(element?=?0;?element??
????????thislen?=?__double_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Lat)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__double_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Lon)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__double_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Alt)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Lat_detal)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Lon_detal)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].Alt_detal)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].horizontalSpeed)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].verticalSpeed)?1);
????????if?(thislen?0)?return?thislen;?else?pos?+=?thislen;
?
????????thislen?=?__float_encode_array(buf?offset?+?pos?maxlen?-?pos?&(p[element].direction)?1);
????????if?(thislen?0)?return?thislen;?else?p
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????49664??2011-10-06?22:18??readLCMLog\Debug\lcm.dll
?????文件???????4268??2011-08-22?10:45??readLCMLog\Debug\lcm.lib
?????文件???????6881??2012-03-06?18:27??readLCMLog\Debug\readLCMLog.Build.CppClean.log
?????文件????????418??2012-03-06?18:27??readLCMLog\Debug\readLCMLog.log
?????文件???????2414??2011-08-22?10:45??readLCMLog\lcm\eventlog.h
?????文件??????49664??2011-10-06?22:18??readLCMLog\lcm\lcm.dll
?????文件???????6124??2011-08-22?10:45??readLCMLog\lcm\lcm.h
?????文件???????4268??2011-08-22?10:45??readLCMLog\lcm\lcm.lib
?????文件??????11305??2011-08-22?10:45??readLCMLog\lcm\lcm_coretypes.h
?????文件??????49664??2011-10-06?22:18??readLCMLog\lcm.dll
?????文件???????4268??2011-08-22?10:45??readLCMLog\lcm.lib
?????文件??????11288??2011-09-06?20:06??readLCMLog\lcmtypes_gps_t.cpp
?????文件???????2290??2012-02-26?21:09??readLCMLog\lcmtypes_gps_t.h
?????文件?????105984??2012-03-06?18:26??readLCMLog\readLCMLog.aps
?????文件???????2045??2012-02-25?20:22??readLCMLog\readLCMLog.cpp
?????文件????????466??2012-02-25?20:22??readLCMLog\readLCMLog.h
?????文件??????10738??2012-03-06?18:26??readLCMLog\readLCMLog.rc
?????文件????????886??2012-02-26?21:08??readLCMLog\readLCMLog.sln
????..A..H.?????18432??2012-03-06?18:28??readLCMLog\readLCMLog.suo
?????文件???????6243??2012-03-06?18:25??readLCMLog\readLCMLog.vcxproj
?????文件???????2203??2012-03-06?18:25??readLCMLog\readLCMLog.vcxproj.filters
?????文件????????143??2012-02-25?20:22??readLCMLog\readLCMLog.vcxproj.user
?????文件???????5664??2012-03-06?18:26??readLCMLog\readLCMLogDlg.cpp
?????文件????????629??2012-02-25?20:54??readLCMLog\readLCMLogDlg.h
?????文件???????3070??2012-02-25?20:22??readLCMLog\ReadMe.txt
?????文件????????975??2012-03-06?18:28??readLCMLog\Release\readLCMLog.Build.CppClean.log
?????文件????????420??2012-03-06?18:28??readLCMLog\Release\readLCMLog.log
?????文件??????????0??2012-02-26?22:06??readLCMLog\Release\readLCMLog.unsuccessfulbuild
?????文件??????67777??2009-08-31?02:31??readLCMLog\res\readLCMLog.ico
?????文件????????676??2012-02-25?20:22??readLCMLog\res\readLCMLog.rc2
............此處省略12個文件信息
- 上一篇:ba
se64的js與java相互解密.rar - 下一篇:KWIC 觀察者模式
評論
共有 條評論