kykleung / RFS-SLAM

A C++ Library for Simultaneous Localization and Mapping using Random Finite Sets
Other
80 stars 38 forks source link

New Segmentation fault #6

Open Xinyi-tum opened 3 years ago

Xinyi-tum commented 3 years ago

After compile, I run the examples, and always run into a new kind of Segmentation faults in Ubuntu 18.04. My command is as follows: (I want to switch the config)

~/RFS-SLAM$ build/bin/fastslam_VictoriaPark --cfg cfg/mhfastslam_VictoriaPark.xml

and then got:

Configuration file: cfg/mhfastslam_VictoriaPark.xml Reading input file: data/VictoriaPark/Sensors_manager.txt Reading input file: data/VictoriaPark/inputs.dat Reading input file: data/VictoriaPark/measurements.dat Reading input file: data/VictoriaPark/LASER.txt Reading input file: data/VictoriaPark/gps.dat Calculating dead reckoning estimate Writing to: data/VictoriaPark/mhfastslam/results/deadReckoning.dat Segmentation fault (core dumped) ] k = 0 (0 %)

What's more, I have commented out the following line:

CMakeLists.txt file: SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native ")

And another kind of Segmentation faults is:

~/RFS-SLAM$ build/bin/fastslam2dSim --cfg cfg/mhfastslam2dSim.xml

and then got:

Configuration file: cfg/mhfastslam2dSim.xml Trajectory: 1700122390 Running simulation

Segmentation fault (core dumped)

What's more, the third fault is

~/RFS-SLAM$ build/bin/fastslam_VictoriaPark --cfg cfg/fastslam_VictoriaPark_artificialClutter.xml

and then get:

Configuration file: cfg/fastslam_VictoriaPark_artificialClutter.xml Reading input file: data/VictoriaPark/Sensors_manager.txt Reading input file: data/VictoriaPark/inputs.dat Reading input file: data/VictoriaPark/measurements.dat Reading input file: data/VictoriaPark/LASER.txt Reading input file: data/VictoriaPark/gps.dat Note: results are NOT being logged to file (see config xml file) [==================================================] k = 69940 (100 %)

Elapsed Timing Information [nsec] Prediction wall: 83934115586 cpu: 690700000000 Map Update wall: 20960336496 cpu: 199480000000 Data Assoc wall: 400 cpu: 0 Map Update (KF) wall: 400 cpu: 0 Weighting wall: 398 cpu: 0 Map Manage wall: 399 cpu: 0 Resampling wall: 9553252881 cpu: 110780000000 Total wall: 93487370064 cpu: 801480000000

and the input command is:

~$ ls /home/lxy/RFS-SLAM/data/VictoriaPark/fastslam_clutter/results

however there are only two doucments in the folder (following), and no particlePose.dat

settings.xml timing.dat

Here are three faults, and thank you for your answer!