MRPT 安装使用

1. 安装mrpt ( apt-get )

$ sudo apt-get install mrpt-apps libmrpt-dev

2. 下载mrpt-1.3

链接:https://github.com/mrpt-ros-pkg/mrpt_navigation/tree/compat-mrpt-1.3

3. 编译即可

 

###########################################################################

libpcap-dev 安装

 0 卸载旧的libpcap

 sudo apt-get remove libpcap0.8

  I 安装新的 libpcap

     1.  下载并安装 GNU M4   , 为生成makefile使用

     2.  下载并安装 flex   $sudo apt-get install flex

     3.  下载并安装 bison 

     4.  下载并安装libpcap。

 

     1. Libpcap的官方网站是http://tcpdump.org/release,下载最新的libpcap

     2.  tar -xvf libpcap-1.3.0.tar.gz

     3. cd libpcap-1.3.0

         ./configure

     4. 如果遇到缺少flex问题: $sudo apt-get install flex

     5. 通过后,进行make  $make

     6,   如果遇到:

         yacc -d ./parse.y<br>make: yacc: Command not found<br>make: *** [parse.c] Error 127

          安装 $sudo apt-get install -y byacc

         之后继续 make

     7.  make 后安装:  需要root权限

           $sudo make install

 

#######################################################################################

ccmake 安装

Here is what fixed my problems on Ubuntu 12.04 x86_64 (64 bit) (Thanks syslogic )

For whatever reason (1:00 am maybe?) setting CURSES_USE_NCURSES TRUE didn't seem to work. So I went with a hack job.

Verified it's installed:

$ sudo apt-get install libncurses5-dev

You will see something to the effect: libncurses5-dev is already the newest version.

So find the library and include.

$ locate libncurses.so

Note location, mine: /usr/lib/x86_64-linux-gnu/libncurses.so

$ locate curses.h

Note location again, mine: /usr/include

In: <cmake source dir>/Modules/FindCurses.cmake

add at the top, right after the comments

set( CMAKE_INCLUDE_PATH "/usr/include")
set( CMAKE_LIBRARY_PATH "/usr/lib/x86_64-linux-gnu/libncurses.so")

then rinse repeat the build process

./bootstrap
make 
sudo make install

ccmake should now be installed.

Your pal,

 

#######################################################

ccmake 还是装不上?

查看当前cmake 的版本

$ cmake --version

软后重新下载一个相同版本的 cmake, 会发现解压出来的bin文件夹里有ccmake可执行文件!

然后创建链接:

$ sudo ln -s /home/lvchaoshun/projects/cmake-3.6.2/bin/* /usr/bin/ 

然后执行命令检查一下:

# ccmake --version 

   ccmake version 3.6.2

ok。现在ccmake最新版本安装成功!

 

#######################################################

提示找不到 marker_msgsConfig.cmake ?

sudo apt-get install ros-<distro>-marker-msgs

或者

http://wiki.ros.org/marker_msgs

catkin_make

提示找不到 pose_cov_ops?

https://github.com/mrpt-ros-pkg/pose_cov_ops

catkin_make

posted @ 2017-08-29 15:47  白菜菜白  阅读(2093)  评论(0编辑  收藏  举报