RobustFieldAutonomyLab / LeGO-LOAM

LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain
BSD 3-Clause "New" or "Revised" License
2.32k stars 1.11k forks source link

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

Closed L-Reichardt closed 2 years ago

L-Reichardt commented 2 years ago

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:

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

L-Reichardt commented 2 years ago

Solved

MarzanShuvo commented 2 years ago

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 commented 2 years ago

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

MarzanShuvo commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

L-Reichardt commented 2 years ago

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

I wish you luck and success in solving your problem.

zxiaomzxm commented 2 years ago

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 commented 2 years ago

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

aladin2022 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 4 months ago

Thank you very much! It worked!

astef3 commented 3 months ago

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: https://github.com/RobustFieldAutonomyLab/LeGO-LOAM/issues/280

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