资源简介
这个程序可以用,但是由于调试用的lcm数据涉及到机密,故调试日志文件暂不上传,这个程序可以将lcm保存在日志中的数据抓出来
lcm(Lightweight Communications and Marshalling) 是一组类库(含多种语言如java,c等),专门针对实时系统在高带宽和低的延迟的情况下进行消息发送和数据封送处理。它提供了一个发布/订阅消息模型、自动封装/解封代码生成工具(含多种编程语言版本)。其最初由麻省理工学院城市挑战赛小组为DARPA消息传递系统设计。
LCM是专为通过局域网连接的tightly-coupled类型系统而设计。 它不适合因特网。LCM研制开发软实时系统:它默认允许丢包以减少延时。
![](http://www.nz998.com/pic/39719.jpg)
代码片段和文件信息
/** 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 < elements; 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 观察者模式
相关资源
- 去掉代码注释的工具java \\ c\\c++、ph
- 算法设计、分析与实现从入门到精通
- 全世界最经典的数据结构教材,Horo
- C++程序设计原理与实践.pdf
- C++ 程序设计语言:第4部分 标准库原
- android与c++通过socket通信
- socket编程实验报告
- C++Qt5实现雷达及余晖扫描,探测发现
- parasoft c++Test9.0破解
- 白话 C++ 完整版
- PDFlib-6.0.2-Windows库以及java c++开发
- 聊天室系统源码C++ 服务器,PC客户端
- Visual C++6.0助手破解版
- C++ Tutorial for Rational Rhapsody
- C++程序设计语言特别版 Bjarne Stroustr
- C++最强版中国象棋
- Android视频监控系统客户端及服务器端
- Android opencv c++配置工程
- 《C++ for Java Programmers》高清完整英文
- C++ 条码,二维码生成程序Qt 界面
- VISSIM二次开发案例与框架VBA,C++,M
- java JGL标准程序库类似C++的STL
- C++程序设计(谭浩强完整版)
- 算法与数据结构之LeetCode题目详解PD
- java与c++通过socket通信
- 重构源代码C1-c++版本
- 使用JNA的jar包
- Java客户端上传图片文件到c++服务器
- Absolute C++ 6th Edition
- 多个模拟电梯程序Java C C++
评论
共有 条评论