atenpas / gpd

Detect 6-DOF grasp poses in point clouds
BSD 2-Clause "Simplified" License
598 stars 233 forks source link

Can this package be installed in Ubuntu18.04 + ROS melodic? #96

Open JinXiangLai opened 4 years ago

atenpas commented 4 years ago

I have no way to test in anything else than Ubuntu 16.04. So, I honestly have no idea.

iaherzog commented 3 years ago

I've successfully compiled this package on Ubuntu 18.04 and ROS melodic using the following CMAKE flags: cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_FLAGS_DEBUG="-g -O0" -DCMAKE_CXX_FLAGS_DEBUG="-g -O0" Using the -O3 optimization flag causes a segmentation fault.

Ctiger96 commented 3 years ago

@iaherzog OMG, thx! I tried on Ubuntu 18.04 many times, but all failed. Your codes can really work.

atenpas commented 3 years ago

If you want to use those optimization flags that do work, you could figure out which ones the-O3 optimization flag turns on, and then turn them on/off individually to see which are possible in 18.04.

atenpas commented 3 years ago

Could you try the following flags?

set(CMAKE_CXX_FLAGS "-O3 -march=native -mtune=intel -msse4.2 -mavx2 -mfma -flto -fopenmp -fPIC -Wno-d eprecated -Wenum-compare -Wno-ignored-attributes -std=c++17")

This works for me in Ubuntu 18.04 where with the previous set of flags, I'd encountered a segfault. The compilation takes some time, but GPD runs fast.

Avdbergnmf commented 3 years ago

Could you try the following flags?

set(CMAKE_CXX_FLAGS "-O3 -march=native -mtune=intel -msse4.2 -mavx2 -mfma -flto -fopenmp -fPIC -Wno-d eprecated -Wenum-compare -Wno-ignored-attributes -std=c++17")

This works for me in Ubuntu 18.04 where with the previous set of flags, I'd encountered a segfault. The compilation takes some time, but GPD runs fast.

Check out my comment in https://github.com/atenpas/gpd/issues/88#issuecomment-833370948_