Comments (30)
You can try removing the line:
Line 35 in 25db5dd
from the
CMakeLists.txt
and then recompile and launch.from loam_velodyne.
@mantangL My pcl lib version is 1.8, g++ 7.2, Ubuntu 18.04.
I found that when I use the apt installed pcl lib, multiScanRegistration would crash immediately after rosbag play is fired. After some search I found it's caused by the mismatch between pre-build pcl binary and native compiler options. So I removed the previous pcl lib and build it from source, Then everything works fine!
There are some related issue & pr from pcl community: issue2013 , PR 2100
Hope you find it helpful :)
from loam_velodyne.
-
Remove the apt installed pcl lib
sudo apt-get remove --purge libpcl*
-
Verify loam cannot find any pcl lib
cd path/to/your/catkin_ws
rm -rf build devel
catkin_make
If the build failed due to lack of pcl lib, then you have removed pcl successfully :)
from loam_velodyne.
I met this error when I run my code in docker.
As far as I known, g++/gcc compiler is just a translator of C lang to asm. "-march=native" will optimize you code with related CPU instructions(like AVX ). g++/gcc is not responded whether you binary(after compiled with this optimization) can be ran.
so if you want to use this optimization, you can gcc -c -Q -march=native --help=target | grep march
to get the right one.
from loam_velodyne.
Thank you @kartikmohta! Your advice helped for me and I think it's the best and most simple solution. I tried to uninstall libpcl*, but all ROS packages was removed because PCL is a dependency.
from loam_velodyne.
I solved it by installing pcl-1.9 from source, and everything is okay since then
You can download the latest release from here: https://github.com/PointCloudLibrary/pcl/releases
And the installation from source steps can be found here: http://www.pointclouds.org/documentation/tutorials/compiling_pcl_posix.php
from loam_velodyne.
Ubuntu 18.04, intel core i7
ROS melodic.
Got this error![laserMapping-4] process has died [pid 6162, exit code -11, cmd /home/aravinddoss/slam/loam/devel/lib/loam_velodyne/laserMapping __name:=laserMapping __log:=/home/aravinddoss/.ros/log/4b342834-5237-11e9-b0cb-34e6ad887d40/laserMapping-4.log]. log file: /home/aravinddoss/.ros/log/4b342834-5237-11e9-b0cb-34e6ad887d40/laserMapping-4*.log
- I need the detailed cpu info, please run the following command and paste output
lscpu
- The error just show laserMapping node crashed, we need deep debug info. Please build the whole project in debug mode ( you can change the compiler flags in CMakeLists.txt file ), and launch it with gdb.
Inside the gdb, run it till the crash point, and print backtrace of it.
the following links may help you finish it:
https://bytefreaks.net/programming-2/cc-how-do-you-set-gdb-debug-flag-g-with-cmake
https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html
https://answers.ros.org/question/47210/how-to-roslaunch-node-in-gdb/
from loam_velodyne.
I have precisely the same issue. Did you find any solution?
from loam_velodyne.
The solution is launch LOAM in one separated terminal and rosbag in a new separated terminal.
from loam_velodyne.
@BrunoEduardoCSantos OK, thanks for your answer,but I have try it using your method.It is failed too.
from loam_velodyne.
@mantangL would you mind provide your pcl lib version and g++ version? I encountered the same issue before, and finally find it related to pcl voxelgrid method
from loam_velodyne.
@Jackey-Huo pcl lib version is 1.7 g++ version is 5.4.0
from loam_velodyne.
@Jackey-Huo how do you solve it?
from loam_velodyne.
@Jackey-Huo I found i built pcl from source then noted that can't find pcl_conversionsConfig.cmake,can you give some detail about build pcl? thank you.
from loam_velodyne.
@xuhaoda1995 pcl_conversions is a ros package, providing pcl data structure conversion from pcl lib and ros. It should be provided by ros.
The following cmd may help you:
locate pcl_conversionsConfig.cmake
If no file found, you have to install the package. you can install it from apt by typing:
sudo apt-get install ros-<your ros version>-pcl-conversions
Hope it can help you ;)
from loam_velodyne.
@Jackey-Huo thank you for your help. I remove the pcl lib and want to build it by myself for reason of loam not running. Now I solve the problem by building pcl_conversions source.
from loam_velodyne.
@Jackey-Huo would you kindly advise on how exactly did you remove the pcl lib, my pcl lib version is 1.8, g++ 7.3, Ubuntu 18.04 and ros melodic and getting the same error. Thank you in advance!
from loam_velodyne.
@slmat27 We met the same error with the same working environment. Did you find any solution? I followed the above instructions, but it is still not working...
from loam_velodyne.
@slmat27 Thanks so much. The "multiScanRegistration" error can be avoided. However, I met the new error log "[laserMapping-4] process has died". I have to solve the new problem...
from loam_velodyne.
@liumengucas I would more information regarding the error to be able to support you.
from loam_velodyne.
Hey! @liumengucas I also got the same error? did you solve the issue?
from loam_velodyne.
@AravindChandradoss Would you mind to provide information about your cpu and OS? I'd like to know the gdb backtrace from crash point as well
from loam_velodyne.
Ubuntu 18.04, intel core i7
ROS melodic.
Got this error!
[laserMapping-4] process has died [pid 6162, exit code -11, cmd /home/aravinddoss/slam/loam/devel/lib/loam_velodyne/laserMapping __name:=laserMapping __log:=/home/aravinddoss/.ros/log/4b342834-5237-11e9-b0cb-34e6ad887d40/laserMapping-4.log].
log file: /home/aravinddoss/.ros/log/4b342834-5237-11e9-b0cb-34e6ad887d40/laserMapping-4*.log
from loam_velodyne.
@AravindChandradoss
Please make sure you have installed xterm and gdb ;)
from loam_velodyne.
Thanks @kartikmohta
It is working now. What exactly has happened?
from loam_velodyne.
Thanks @kartikmohta
from loam_velodyne.
FYI: https://link.zhihu.com/?target=https%3A//wiki.gentoo.org/wiki/GCC_optimization%23-march
from loam_velodyne.
I solved it by installing pcl-1.9 from source, and everything is okay since then
You can download the latest release from here: https://github.com/PointCloudLibrary/pcl/releases
And the installation from source steps can be found here: http://www.pointclouds.org/documentation/tutorials/compiling_pcl_posix.php
Should I install PCL 1.9 specifically to fix this issue or does the latest PCL work also?
from loam_velodyne.
Thanks @kartikmohta your solution was helpful.
from loam_velodyne.
Thanks @kartikmohta
from loam_velodyne.
Related Issues (20)
- 2D lidar(one line) with ALOAM
- thanks @sysuzyc I already solved the problem: I was playing like this (pcap:=~/catkin_ws/data.pcap) and I read pcap files have to be played from the root like this: pcap:=/home/usuario/catkin_ws/data.pcap
- Can someone tell me where I can download the testing bag nsh_indoor_outdoor.bag? HOT 2
- Transformation data for robot_localization
- How can this loam build a completed map? HOT 1
- Some questions about system performance HOT 4
- No Point Cloud Showed in Rviz HOT 5
- Error transforming odometry 'Odometry' from frame '/camera_init' to frame 'camera_init' HOT 14
- Segmentation Fault on "multiScanRegistration" node HOT 5
- Questions about the interpolation of laser point. HOT 3
- VLP16 rosbag not longer avaliable HOT 3
- compute the curvature HOT 4
- Question about relSweepTime and _imuPositionShift HOT 1
- Questions about BasicLaserOdometry HOT 1
- Why only for velodyne? How about point cloud from realsense?
- memory buildup with outdoor lidar scan
- VLP-16 rosbag example link is broken
- VLP-16 rosbag example link is broken
- Build error: flann error? HOT 1
- Compatibility on ROS Noetic (Ubuntu 20.04)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loam_velodyne.