Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running plane_fitter_pcd #3

Open
Harrypys opened this issue Dec 5, 2019 · 4 comments
Open

Running plane_fitter_pcd #3

Harrypys opened this issue Dec 5, 2019 · 4 comments

Comments

@Harrypys
Copy link

Harrypys commented Dec 5, 2019

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

@Harrypys
Copy link
Author

Harrypys commented Dec 5, 2019

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.

@izengpan
Copy link

have you solved the problem? I have the same problem with you.

@seanleecn
Copy link

i have the same problem,have you solve it? Thank you in advance

@anastasiia-kornilova
Copy link

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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants