peac
peac copied to clipboard
Running plane_fitter_pcd
Hi, I was trying to run the plane_fitter_pcd but it couldn't open the list.txt that contains a list of pcd files under the sample data directory. What might be the problems? Thanks in advance!
mmvc@mmvc-Alienware-13-R3:~/peac/cpp/build$ ./plane_fitter_pcd [iniLoad] list=>/home/mmvc/peac/data/stair/list.txt [iniLoad] ignore line: [iniLoad] outputDir=>/home/mmvc/peac/data/stair/output [iniLoad] loop=>1 [iniLoad] debug=>0 [iniLoad] ignore line: [iniLoad] unitScaleFactor=>1000 [iniLoad] ignore line: [iniLoad] showWindow=>1 [iniLoad] ignore line: [iniLoad] stdTol_merge=>8 [iniLoad] stdTol_init=>5 [iniLoad] depthSigma=>1.6e-6 [iniLoad] ignore line: [iniLoad] z_near=>500 [iniLoad] z_far=>4000 [iniLoad] angleDegree_near=>15 [iniLoad] angleDegree_far=>90 [iniLoad] similarityDegreeTh_merge=>60 [iniLoad] similarityDegreeTh_refine=>30 [iniLoad] ignore line: [iniLoad] depthAlpha=>0.04 [iniLoad] depthChangeTol=>0.02 [iniLoad] ignore line: [iniLoad] initType=>0 [iniLoad] ignore line: [iniLoad] minSupport=>3000 [iniLoad] ignore line: [iniLoad] windowWidth=>10 [iniLoad] windowHeight=>10 [iniLoad] ignore line: [iniLoad] doRefine=>1 create:/home/mmvc/peac/data/stair/output could not open list=/home/mmvc/peac/data/stair/list.txt
When I run the plane_fitter_pcd_debug, it showed:
create:/home/mmvc/peac/data/stair/output \output/home/mmvc/peac/data/stair/output could not open list=/home/mmvc/peac/data/stair/list.txt
The output path is a bit weird, could it be the problem of the relative path? I run it on ubuntu 18.04 by the way.
have you solved the problem? I have the same problem with you.
i have the same problem,have you solve it? Thank you in advance
That problem arises on Linux platforms, because custom iniGet
reads parameter with new line symbol at the end getting list.txt\r
. The most straightforward thing is just to remove the last character from the string before reading the file:
filelist = filelist.substr(0, filelist.size() - 1);
std::ifstream is(filelist.c_str());