RobustFieldAutonomyLab / LeGO-LOAM

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

Launch file wont work? #262

Open LFS-Robotics opened 1 year ago

LFS-Robotics commented 1 year ago

Hello,

I am trying to test this package on ROS Noetic, I have edited the CMakeLists.txt file as well as changing the it to find the correct opencv .hpp file. The package builds and sources fine with no errors or warnings. But when I try to launch the run.launch file I get these errors:

/home/jp/loam_ws/src/LeGO-LOAM/LeGO-LOAM/launch/run.launch: line 1: syntax error near unexpected token newline' /home/jp/loam_ws/src/LeGO-LOAM/LeGO-LOAM/launch/run.launch: line 1:'

I have started again and made sure all the instructions were followed and dependencies met, but I still get that error. I have even tried removing everything from the launch file and copying something from a working launch file into that one. then I get that same error again. So it seems to be related to the package and not the file.

Any suggestions on how to fix this?

colconbator commented 1 year ago

Hi, I am also facing the problem I am new to ROS, my process is stopping at catkin make command stating that opencv/cv.h is not in the LeGo-LOAM utility code.Any solution or suggestions?

DarrenDaDream commented 4 months ago

Hi, I am also facing the problem I am new to ROS, my process is stopping at catkin make command stating that opencv/cv.h is not in the LeGo-LOAM utility code.Any solution or suggestions?

use this #include <opencv2/opencv.hpp>