Hdl_localization全套安装运⾏问题总结
hdl_graph_slam
程序编译可以通过,但是⼀执⾏到图优化部分程序就崩溃
眼泪流下
failed to find transform between ba_link and velodyne
*** Error in `/opt/ros/kinetic/lib/nodelet/nodelet': malloc(): memory corruption: 0x00007f508046a560 ***
葫芦丝曲
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777f5)[0x7f50d70ff7f5]
胃出血的治疗/lib/x86_64-linux-gnu/libc.so.6(+0x8215e)[0x7f50d710a15e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f50d710c1d4]
周伯豪
/usr/lib/x86_64-linux-gnu/libpcl_common.so.1.7(_ZN5Eigen8internal14aligned_mallocEm+0x9)[0x7f50c4349c49]
/
home/sundong/exploring/hdl_localization/install_isolated/lib//libhdl_graph_slam_nodelet.so(_ZN14hdl_graph_slam9GraphSLAM18add_3_plane_edgeE PN3g2o9VertexSE3EPNS1_11VertexPlaneERKN5Eigen6MatrixIdLi4ELi1ELi0ELi4ELi1EEERKNS7_IdLin1ELin1ELi0ELin1ELin1EEE+0x3f)[0x7f50ac93b9ef] /home/sundong/exploring/hdl_localization/install_isolated/lib//libhdl_graph_slam_nodelet.so(_ZN14hdl_graph_slam19HdlGraphSlamNodelet17flush_floor_ queueEv+0x362)[0x7f50ac900182]
/home/sundong/exploring/hdl_localization/install_isolated/lib//libhdl_graph_slam_nodelet.so(_ZN14hdl_graph_slam19HdlGraphSlamNodelet27optimization _timer_callbackERKN3ros14WallTimerEventE+0x145)[0x7f50ac9379a5]
/opt/ros/kinetic/lib/libroscpp.so(_ZN3ros12TimerManagerINS_8WallTimeENS_12WallDurationENS_14WallTimerEventEE18TimerQueueCallback4callEv+0x 15d)[0x7f50d858414d]
/opt/ros/kinetic/lib/libroscpp.so(_ZN3ros13CallbackQueue9callOneCBEPNS0_3TLSE+0x4b0)[0x7f50d85b69e0]ps如何打马赛克
好色妈咪/opt/ros/kinetic/lib/libroscpp.so(_ZN3ros13CallbackQueue7callOneENS_12WallDurationE+0x2e4)[0x7f50d85b7214]
/opt/ros/kinetic/lib/libnodeletlib.so(_ZN7nodelet6detail13CallbackQueue7callOneEv+0x78)[0x7f50d8ce51b8]
物流客服好做吗/opt/ros/kinetic/lib/libnodeletlib.so(_ZN7nodelet6detail20CallbackQueueManager12workerThreadEPNS1_10ThreadInfoE+0x197)[0x7f50d8ce6e57]
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0(+0x115d5)[0x7f50d66125d5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f50d63eb6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f50d718f4dd]
======= Memory map: ========
两个主体责任
00400000-0040e000 r-xp 00000000 103:08 2101798 /opt/ros/kinetic/lib/nodelet/nodelet
0060d000-0060e000 r--p 0000d000 103:08 2101798 /opt/ros/kinetic/lib/nodelet/nodelet
分析了⼀下原因,可能是g2o装的有问题,因为我是源码编译安装的,所以可能版本不适配,于是删掉g2o
sudo rm -r /usr/local/include/g2o
sudo rm -r /usr/local/lib/libg2o*
sudo rm -r /usr/local/bin/g2o*
⽤ubuntu的命令⾏安装
sudo apt-get install ros-kinetic-geodesy ros-kinetic-pcl-ros ros-kinetic-nmea-msgs ros-kinetic-libg2o
问题解决