ros kinetic 下编译laser_scan_matcher 方法
来源:互联网 发布:qq飞车皮皮虾改车软件 编辑:程序博客网 时间:2024/06/05 13:54
目前,laser_scan_matcher 在kinetic下还没有可以apt-get 的包,要使用,必须要从源码编译,下面是我的编译方法:
1、sudo apt-get install libgsl0-dev
2、first install the package csm itself in directory /catkin_ws/src: git clone https://github.com/AndreaCensi/csm.git and package scan_tools: git clone https://github.com/ccny-ros-pkg/scan_...
3、in /catkin_ws do catkin_make
4、open: nano ~/.bashrc and add to end of file as a variable PKG_CONFIG_PATH tssm.pk path to the file. In my case, this line looks like this:
export PKG_CONFIG_PATH=/home/edward/catkin_ws/src/csm/sm/pkg-config and make: source ~/.bashrc
5、Next, you must explicitly register in five file path to the header files:
in file /home/edward/catkin_ws/src/scan_tools/laser_scan_matcher/include/laser_scan_matcher/laser_scan_matcher.h replace #include '<'csm/csm_all.h'>' on #include '<'/home/edward/catkin_ws/src/csm/sm/csm/csm_all.h'> (without apostrophes, of course)
in file /home/edward/catkin_ws/src/csm/sm/csm/laser_data_json.h replace json-c/json.h and json-c/json_more_utils.h on /home/edward/catkin_ws/src/csm/sm/lib/json-c/json.h and home/edward/catkin_ws/src/csm/sm/lib/json-c/json_more_utils.h respectively
in file /home/edward/catkin_ws/src/csm/sm/csm/hsm/hsm_interface.h replace options/options.h on /home/edward/catkin_ws/src/csm/sm/lib/options/options.h
on file /home/edward/catkin_ws/src/csm/sm/csm/json_journal.h replace json-c/json.h and json-c/json_more_utils.h on /home/edward/catkin_ws/src/csm/sm/lib/json-c/json.h and /home/edward/catkin_ws/src/csm/sm/lib/json-c/json_more_utils.h respectivetly
Lastly, in file /home/edward/catkin_ws/src/csm/sm/csm/math_utils_gsl.h replace egsl/egsl.h on /home/edward/catkin_ws/src/csm/sm/lib/egsl/egsl.h
6、Finally, go to your /catkin_ws and do catkin_make
如果你在树莓派或者odroid板上编译,记得要设置一下swap内存,因为编译所需内存非常大,内存不够会报 编译器内部错误。具体设置方法可以参看上一篇文章。
- ros kinetic 下编译laser_scan_matcher 方法
- ROS laser_scan_matcher 编译及使用
- iai_kinect2 ros kinetic下编译错误的问题
- Ubunte 16.04下安装ROS kinetic
- ROS配置<一>:Ubuntu16.04下安装Kinetic
- ubuntu1604-ros-kinetic搭建
- Ubuntu16.04--ROS--kinetic
- ROS Kinetic: msg & srv
- Ubuntu安装ROS Kinetic(Ubuntu install of ROS Kinetic)
- ROS下编译slam_gmapping
- ubuntu16上安装ROS Kinetic
- ros kinetic +hokuyo 源码安装
- Ubuntu16.04安装ROS kinetic
- Ubuntu16.04安装ROS Kinetic
- ROS Kinetic编译旧版本程序出现parse error at boost join
- ros kinetic版编译error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
- 在Ubuntu16.04下安装ROS Kinetic 环境配置时出现bash: /opt/ros/Kinetic/setup.bash: 没有那个文件或目录
- Ubuntu16.04下安装ROS Kinetic环境配置时出现没有那个文件目
- android developer tiny share-20170407
- 基于Linux下的C语言入门-day1
- android学习案例2——ToggleButton
- 编程题(1):笔试题-京东软件测试2018实习招聘
- poj 1064 Cable master
- ros kinetic 下编译laser_scan_matcher 方法
- Email小案例改进版——解决带附件不显示邮件正文问题
- 中序遍历
- mysql workbench如何创建连接
- 深入分析Java ClassLoader原理
- Xcode工程项目改名的操作步骤
- Datebase数据库
- Google Code Jam 2017 资格赛
- Oracle学习笔记(一)