shidahe / semidense-lines

Incremental 3D Line Segment Extraction for Surface Reconstruction from Semi-dense SLAM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error

fabienbaldacci opened this issue · comments

I get many compilation errors.

  • Line3D doesn't compile, but I guess it's just for comparison purpose so I can avoid it
  • I get a compilation error (my version of eigen is 3.3.4):

/home/fab/Prog/semidense-lines/src/Optimizer.cc:1255:1: required from here
/usr/include/eigen3/Eigen/src/Core/AssignEvaluator.h:834:3: error: static assertion failed: YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY
EIGEN_CHECK_BINARY_COMPATIBILIY(Func,typename ActualDstTypeCleaned::Scalar,typename Src::Scalar);

It seems this error happens to ORB-SLAM2 as well.
Maybe you can try these two possible solutions:
raulmur/ORB_SLAM2#68 (comment)
raulmur/ORB_SLAM2#202 (comment)

Thanks for the reply. I get it to compile after fixing Line3D too (because a .so is required to build yours).
Now I get a segmentation fault while running the first example :
./Examples/Monocular/mono_euroc Vocabulary/ORBvoc.bin Examples/Monocular/EuRoC.yaml Data/mav0/cam0/data Examples/Monocular/EuRoC_TimeStamps/MH01.txt

Camera Parameters:

  • fx: 458.654
  • fy: 457.296
  • cx: 367.215
  • cy: 248.375
  • k1: -0.283408
  • k2: 0.0739591
  • p1: 0.00019359
  • p2: 1.76187e-05
  • fps: 20
  • color order: RGB (ignored if grayscale)

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7
    Offline semi-dense mapping and line segment extraction
    updating model
    Erreur de segmentation (core dumped)

Could you check your input data path? The directory structure is different for Vicon Room sequences and Machine Hall sequences in EuRoC dataset.

Unfortunately my path is right. I also can get the segmentation fault a little bit later :

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7
    Offline semi-dense mapping and line segment extraction
    updating model

Start processing sequence ...
Images in the sequence: 3682

Erreur de segmentation (core dumped)

commented

I face the same problem...

Unfortunately my path is right. I also can get the segmentation fault a little bit later :

ORB Extractor Parameters:

* Number of Features: 1000

* Scale Levels: 8

* Scale Factor: 1.2

* Initial Fast Threshold: 20

* Minimum Fast Threshold: 7
  Offline semi-dense mapping and line segment extraction
  updating model

Start processing sequence ... Images in the sequence: 3682

Erreur de segmentation (core dumped)

i get the same problem, could you tell me how do you solve it?

commented

Unfortunately my path is right. I also can get the segmentation fault a little bit later :
ORB Extractor Parameters:

* Number of Features: 1000

* Scale Levels: 8

* Scale Factor: 1.2

* Initial Fast Threshold: 20

* Minimum Fast Threshold: 7
  Offline semi-dense mapping and line segment extraction
  updating model

Start processing sequence ... Images in the sequence: 3682
Erreur de segmentation (core dumped)

i get the same problem, could you tell me how do you solve it?

do you solve it?