Giter VIP home page Giter VIP logo

Comments (30)

kartikmohta avatar kartikmohta commented on May 30, 2024 50

You can try removing the line:

add_definitions( -march=native )

from the CMakeLists.txt and then recompile and launch.

from loam_velodyne.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024 9

@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.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024 3

@slmat27

  1. Remove the apt installed pcl lib
    sudo apt-get remove --purge libpcl*

  2. 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.

whitelok avatar whitelok commented on May 30, 2024 2

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.

aemarkov avatar aemarkov commented on May 30, 2024 2

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.

slmat27 avatar slmat27 commented on May 30, 2024 1

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.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024 1

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

@AravindChandradoss

  1. I need the detailed cpu info, please run the following command and paste output
lscpu
  1. 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.

brunoeducsantos avatar brunoeducsantos commented on May 30, 2024

I have precisely the same issue. Did you find any solution?

from loam_velodyne.

brunoeducsantos avatar brunoeducsantos commented on May 30, 2024

The solution is launch LOAM in one separated terminal and rosbag in a new separated terminal.

from loam_velodyne.

mantangL avatar mantangL commented on May 30, 2024

@BrunoEduardoCSantos OK, thanks for your answer,but I have try it using your method.It is failed too.

from loam_velodyne.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024

@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.

mantangL avatar mantangL commented on May 30, 2024

@Jackey-Huo pcl lib version is 1.7 g++ version is 5.4.0

from loam_velodyne.

mantangL avatar mantangL commented on May 30, 2024

@Jackey-Huo how do you solve it?

from loam_velodyne.

xuhaoda1995 avatar xuhaoda1995 commented on May 30, 2024

@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.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024

@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.

xuhaoda1995 avatar xuhaoda1995 commented on May 30, 2024

@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.

slmat27 avatar slmat27 commented on May 30, 2024

@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.

liumengbjut avatar liumengbjut commented on May 30, 2024

@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.

liumengbjut avatar liumengbjut commented on May 30, 2024

@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.

slmat27 avatar slmat27 commented on May 30, 2024

@liumengucas I would more information regarding the error to be able to support you.

from loam_velodyne.

AravindChandradoss avatar AravindChandradoss commented on May 30, 2024

Hey! @liumengucas I also got the same error? did you solve the issue?

from loam_velodyne.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024

@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.

AravindChandradoss avatar AravindChandradoss commented on May 30, 2024

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.

Jackey-Huo avatar Jackey-Huo commented on May 30, 2024

@AravindChandradoss
Please make sure you have installed xterm and gdb ;)

from loam_velodyne.

AravindChandradoss avatar AravindChandradoss commented on May 30, 2024

Thanks @kartikmohta
It is working now. What exactly has happened?

from loam_velodyne.

wwtinwhu avatar wwtinwhu commented on May 30, 2024

Thanks @kartikmohta

from loam_velodyne.

whitelok avatar whitelok commented on May 30, 2024

FYI: https://link.zhihu.com/?target=https%3A//wiki.gentoo.org/wiki/GCC_optimization%23-march

from loam_velodyne.

Stigmaru avatar Stigmaru commented on May 30, 2024

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.

miroslavradojevic avatar miroslavradojevic commented on May 30, 2024

Thanks @kartikmohta your solution was helpful.

from loam_velodyne.

srinivasrama avatar srinivasrama commented on May 30, 2024

Thanks @kartikmohta

from loam_velodyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.