LCM使用

一、概述

LCM是进行信息收发的工具。

“LCM is a set of libraries and tools for message passing and data marshalling, targeted at real-time systems where high-bandwidth and low latency are critical. It provides a publish/subscribe message passing model and automatic marshalling/unmarshalling code generation with bindings for applications in a variety of programming languages.”

详见:http://lcm-proj.github.io/

二、安装

1、下载lcm源码(根据自己的需求选择版本,这里以lcm-1.3.0为例)

https://github.com/lcm-proj/lcm/releases

2、安装到指定路径:

sh ./configure --prefix=/home/your_login/Software/lcm-1.3.0/local #若不加--prefix,则安装到系统默认路径;这里不安装到系统默认路径,方便版本管理
make -j12
make install

备注:

如果想要在terminal中任意路径都可以通过命令行调用lcm-logger或lcm-logplayer工具,则只需要在/usr/bin路径下建立软链接即可。

安装后提示:

Libraries have been installed in:
   /home/your_login/Software/lcm-1.3.0/local/lib/python2.7/site-packages/lcm

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable during linking
   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yuyuelongfly

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值