lio-sam运行过程及遇到的问题
发布时间
阅读量:
阅读量
使用lio-sam建图,以及遇到的问题
一、catkin_make出错/usr/bin/ld: 找不到 -lBoost::timer
/usr/bin/ld: 找不到 -lBoost::timer
collect2: error: ld returned 1 exit status
LIO-SAM_based_relocalization-master/CMakeFiles/lio_sam_imuPreintegration.dir/build.make:759: recipe for target '/home/robot/robot_ws/devel/lib/lio_sam/lio_sam_imuPreintegration' failed
make[2]: *** [/home/robot/robot_ws/devel/lib/lio_sam/lio_sam_imuPreintegration] Error 1
CMakeFiles/Makefile2:2991: recipe for target 'LIO-SAM_based_relocalization-master/CMakeFiles/lio_sam_imuPreintegration.dir/all' failed
make[1]: *** [LIO-SAM_based_relocalization-master/CMakeFiles/lio_sam_imuPreintegration.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
解决方法:
打开lio-sam文件里的CMake.Lists文件,在第27行后添加:
find_package(Boost REQUIRED COMPONENTS timer)

再次catkin_make,顺利编译
二、roslaunch运行
依赖是ros和gtsam,自行安装,运行之前记得source一下配置环境
source devel/setup.bash
roslaunch lio_sam run.launch
遇到的问题:

解决方法:
sudo apt-get install -y ros-melodic-navigation
sudo apt-get install -y ros-melodic-robot-localization
sudo apt-get install -y ros-melodic-robot-state-publisher
无法定位软件包
遇到无法定位软件包的情况
三、运行rosbag
1.
rosbag play your-bag.bag -r 3

2.保存pcd文件
rosservice call [service] [resolution] [destination]
rosservice call /lio_sam/save_map 0.2 "/Downloads/LOAM/"
全部评论 (0)
还没有任何评论哟~
