Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeGO-LOAM with gtsam 4.1.1, with ROS-noetic, and Ubuntu 20.04.03 #247

Closed
L-Reichardt opened this issue Feb 4, 2022 · 17 comments
Closed

Comments

@L-Reichardt
Copy link

Hello all,
I'm posting this as a note for others who might have the same issue in the future. I had issues getting LeGO-LOAM to run with the setup mentioned in the title. I had the following problems which were solved by multiple posts in these "Issues". Summarizing the solutions here.

Symptoms:

  • Sometimes issue using cmake to install gtsam 4.0.0-alpha

  • Lib Boost not found by cmake

  • Nodes crashing during roslaunch

  • Cause 1: Gtsam 4.0.0-alpha apparently has compatibility issues with newer versions of the Eigen Library

  • Cause 2: CMake is outdated for C++14

  • Solution 1: Installing gtsam 4.1.1., adding compatibility into CMake file (CMake flag -DGTSAM_USE_SYSTEM_EIGEN=ON)

  • Solution 2: Modifications to update CMake file (CMake flag -lboost_system, include dirs, link dirs, target_link dirs)

Maybe this helps someone. I used $ cmake -j1 with success. LeGO-LOAM runs fine now for me.
CMakeLists.txt

@L-Reichardt
Copy link
Author

Solved

@MarzanShuvo
Copy link

hi, I need some helps to use velodyne vlp-16 with Lego-loam. I am using same ros-noetic and ubuntu 20.04. Would you like to give me some suggestions?

@L-Reichardt
Copy link
Author

@MarzanShuvo
what exactly could I maybe help you with? I am using a different LiDAR, but the principle should remain the same.

@MarzanShuvo
Copy link

@L-Reichardt I am using VLP-16 lidar. I have build the package. While I was running the launch file, rviz was looking like the image bellow. Should I need to change anything in launch file to do the slam? I am not using any imu sensor with it. would you like to give me some guidlines
problem
?

@L-Reichardt
Copy link
Author

@MarzanShuvo what are the errors in the "Display" section of rviz? Is your topic name the same as in /include/utilities.h? If not, change the topic name in that file.

@MarzanShuvo
Copy link

I think it is same as I am getting the point cloud data like the image bellow. I am also adding frames.
problem1
frames.pdf

I have tried to add
<!--node pkg="tf" type="static_transform_publisher" name="base_link_to_velodyne" args="0 0 0 -1.570795 -1.570795 0 /base_link /velodyne 10"/--> in launch file. But the error is consistent.

@MarzanShuvo
Copy link

it is worth to mention that I am getting an error
Failed to transform from frame [/camera] to frame [map]

@L-Reichardt
Copy link
Author

@MarzanShuvo I haven't encountered that error and I was looking a little bit into the code but havent found anything to see where this could come from. Things you could check:

  • Did Cmake compile everything correctly? Personally as mentioned in the 1st Post in this thread I had to make changes to get it to run on Ubuntu 20.04.
  • Do the sample files provided in this repository work?
  • Is Legoloam/ROS actually publishing the messages that show an error in RViz (can be checked with "rostopic hz" or "rostopic echo")
  • Fixed frame (in Global Options) and reference frames in RVIZ are correct.

I wish you luck and success in solving your problem.

@zxiaomzxm
Copy link

zxiaomzxm commented Feb 18, 2022

it is worth to mention that I am getting an error Failed to transform from frame [/camera] to frame [map]

same error here, just replace all /camera to camera and /camera_init to camera_init in source code and all things get right ^ ^

@MarzanShuvo
Copy link

@zxiaomzxm yeah.. It is working perfectly!! Thank you.

@aladin2022
Copy link

hi,I had issues getting LeGO-LOAM to run with the setup mentioned in the title. , i had successfully built the project and installed the libmetis library but still have this error
[mapOptmization-7] process has died [pid 28534, exit code 127, cmd /home/aladin/outdoorslam_ws/devel/lib/lego_loam/mapOptmization __name:=mapOptmization __log:=/home/aladin/.ros/log/9e0ac2b2-9559-11ec-a76b-05c4747b78f6/mapOptmization-7.log].
log file: /home/aladin/.ros/log/9e0ac2b2-9559-11ec-a76b-05c4747b78f6/mapOptmization-7*.log

@L-Reichardt
Copy link
Author

@aladin2022 I had the same issue, however for me it was fixed with the changes in the Cmake file (attached above in the issue). For me it was caused by gtsam problems with the Ubuntu 20. eigen library.

@samsdolphin
Copy link

@aladin2022 I had the same issue, however for me it was fixed with the changes in the Cmake file (attached above in the issue). For me it was caused by gtsam problems with the Ubuntu 20. eigen library.

Man, you have saved my time, thank you!

@huawei-sai
Copy link

it is worth to mention that I am getting an error Failed to transform from frame [/camera] to frame [map]

same error here, just replace all /camera to camera and /camera_init to camera_init in source code and all things get right ^ ^

This was the solution that worked for me to sole the Failed transform issues with RVIZ in ubuntu 20.04 and ROS Noetic

@Rotvie
Copy link

Rotvie commented May 28, 2023

I've made a tutorial on how to get LeGO-LOAM up and running on Ubuntu 20. I'll leave the link to the video in case anyone is interested.

@Carl-1999
Copy link

Thank you very much! It worked!

@astef3
Copy link

astef3 commented Apr 3, 2024

hi,I had issues getting LeGO-LOAM to run with the setup mentioned in the title. , i had successfully built the project and installed the libmetis library but still have this error [mapOptmization-7] process has died [pid 28534, exit code 127, cmd /home/aladin/outdoorslam_ws/devel/lib/lego_loam/mapOptmization __name:=mapOptmization __log:=/home/aladin/.ros/log/9e0ac2b2-9559-11ec-a76b-05c4747b78f6/mapOptmization-7.log]. log file: /home/aladin/.ros/log/9e0ac2b2-9559-11ec-a76b-05c4747b78f6/mapOptmization-7*.log

HI @aladin2022 did you solve it maybe, I have similar issue, I explained it here: #280

I would be really grateful if you can share your solution if you solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants