jake3991 / sonar-SLAM

Underwater SLAM for robots with multibeam sonar
MIT License
185 stars 28 forks source link

Almost Completed Compile #7

Closed zhughesjd closed 1 year ago

zhughesjd commented 1 year ago

Greetings @jake3991 First off, nice job here Very impressed with your work


Was able to compile 14 out of 15 packages

image

It looks like the point cloud library (pcl) is giving me fits for catkin build Running ros noetic / ubuntu 20.04 Followed the install of all your python3 and ROS dependencies using either apt-get or pip

Have you seen this before? Could I have installed a dependency incorrectly?

here are a couple more pcl errors:

image

image

jake3991 commented 1 year ago

Thanks!

I have a few questions.

  1. Can you post the error message at the top? The first one that occurs?
  2. Did you clone these repos into the src folder? clone https://github.com/ethz-asl/libnabo.git into your catkin workspace clone https://github.com/ethz-asl/libpointmatcher.git into your catkin workspace clone https://github.com/jake3991/Argonaut.git into your catkin workspace
zhughesjd commented 1 year ago

Thanks for the quick response So I did clone all 4 github repos into the src folder The error in the picture above is caused by missing logs of a missing logs directory Was able to fix this in a cleaned catkin_ws by creating a directory called logs "mkdir logs"

Still having a problem though extended my terminal buffer alot to see the original error Looks like the pcl library requires C++14 (See screenshot below)

Any idea on how to fix this?

image

jake3991 commented 1 year ago

Oh interesting, maybe we can tweak the build a bit. Could you try these steps?

  1. catkin clean
  2. Change line 4 in this file to be as below https://github.com/jake3991/sonar-SLAM/blob/main/bruce_slam/CMakeLists.txt:
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O3")
  3. Recompile
zhughesjd commented 1 year ago

Changed the line 4 to reflect your suggestion above No luck Same error :(

jake3991 commented 1 year ago

I can't replicate the bug on my side but I did find a thread when searching for your error.

https://github.com/PointCloudLibrary/pcl/issues/2968

Let me know f you are able to fix it!

zhughesjd commented 1 year ago

Thanks for the link and help above

will let you know what i find

jake3991 commented 1 year ago

In case it ends up being relevant, I'm using PCL version 1.10

zhughesjd commented 1 year ago

Thanks for the info, might be useful Didn't have any luck yesterday

Below is a little gem for you It is my shell commands installing (almost) all the dependencies this repo requires Let me know if I am installing any dependencies incorrectly Feel free to put this in an appropriate place in this repo:


sudo apt -y update sudo apt -y upgrade

sudo apt install -y python3-cv-bridge sudo pip install -y gtsam sudo pip install matplotlib sudo apt install -y python3-message-filters sudo apt install -y python3-numpy sudo pip install opencv_python sudo apt install -y ros-noetic-rosbag sudo apt install -y ros-noetic-rospy sudo pip install scikit_learn sudo pip install scipy sudo apt install -y ros-noetic-sensor-msgs sudo pip install Shapely sudo apt install -y ros-noetic-tf sudo pip install tqdm sudo pip install pyyaml

sudo apt install -y ros-noetic-pybind11-catkin sudo pip install catkin-tools

zhughesjd commented 1 year ago

Might be a hardware issue for me Using a laptop with no nvidia card ubuntu 20.04

What hardware system are you using?

jake3991 commented 1 year ago

I'm indeed using an NVIDIA graphics card. I also have an Intel processor. @pszenher have you seen this bug before?

mokby commented 1 year ago

I have the same issue and I solved this ,open CmakeLists.txt under bruce_slam,and add this add_compile_options(-std=c++11 ) add_compile_options(-std=c++14 ) set(CMAKE_CXX_STANDARD 14)

mokby commented 1 year ago

Recommend to clean the build and devel folder first and then run catkin build

jake3991 commented 1 year ago

Marking as resolved.