yanyan-li / PlanarSLAM

A RGB-D SLAM system for structural scenes, which makes use of point-line-plane features and the Manhattan World assumption.
384 stars 85 forks source link

Segmentation fault (core dumped) #9

Closed dwindy closed 2 years ago

dwindy commented 2 years ago

Hi there,

I followed the similar issue and commented set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -march=native ") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -march=native") as described in #3

But then the system dead after the 0th image, as shown below:

__PlanarSLAM Copyright (C) 2021 Yanyan Li, Technical University of Munich (TUM). This program comes with ABSOLUTELY NO WARRANTY; This is free software based on ORB-SLAM2, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.

Loading ORB Vocabulary. This could take a while... Vocabulary loaded in 5.67s Vocabulary loaded!

img_width = 640 img_height = 480 mUndistX size = 480 x 640mUndistY size = 480 x 640

Camera Parameters:

ORB Extractor Parameters:

Depth Threshold (Close/Far Points): 3.32502 PlanarSLAM Printer: This is the 0th image Matching planes... plane 0: p1 [-0.00024552766, -0.99999911, -0.0013000764, 0.90096229]: 1, p2 : [-0.0001090349, -0.00013670312, -1, 3.9469013] 1, angle : 0.00143681 vertical! plane 1: p1 [-0.0001090349, -0.00013670312, -1, 3.9469013]: Matching done p1: [0.00024552766; 0.99999911; 0.0013000764] p2: [0.0001090349; 0.00013670312; 1] p3: [0.99999893; -0.00024538589; -0.00010900124] PlanarSLAM Printer: This is the 1th image Segmentation fault (core dumped)__

any hints for this? thanks in advance

dwindy commented 2 years ago

Well, it is quite interesting that I upgraded PCL 1.8 to PCL 1.9 then everything is fine now. So the project is working well under PCL 1.7 and PCL 1.9 but not with PCL 1.8?