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

Failure with distortion parameters #33

Closed
hbadino opened this issue May 22, 2015 · 2 comments
Closed

Failure with distortion parameters #33

hbadino opened this issue May 22, 2015 · 2 comments

Comments

@hbadino
Copy link

hbadino commented May 22, 2015

Hi,

the converter fails when converting from ini to yaml when the calibration was performed with k > 3 (k is the number of distortion parameters to optimize).

The error looks like:

[ERROR] [1432321037.860901266]: Failed to load camera model from file left.ini

When removing the additional distortion parameters from the ini file, it works just fine.

Hernan

@vrabaud
Copy link
Contributor

vrabaud commented Jun 20, 2015

Sorry, been busy lately. Do you have an .ini file around ? Thx
(because doing it with the .ini on http://wiki.ros.org/camera_calibration_parsers which has 5 parameters works)

@hbadino
Copy link
Author

hbadino commented Jun 30, 2015

Thanks for replying. I do have a file... Try this one (I call it left.ini)


[image]

width
640

height
480

[mono_left]

camera matrix
369.344588 0.000000 320.739078
0.000000 367.154330 203.592450
0.000000 0.000000 1.000000

distortion
0.189544 -0.018229 -0.000630 0.000054 -0.000212 0.543582 -0.027892 0.000000

rectification
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000

projection
262.927429 0.000000 320.984481 0.000000
0.000000 302.056213 188.592437 0.000000
0.000000 0.000000 1.000000 0.000000


My output is $ rosrun camera_calibration_parsers convert left.ini left.yaml
[ERROR] [1435679519.174873278]: Failed to load camera model from file left.ini

If instead, I leave only 5 fields in distortion (e.g., delete the last three numbers), then it works just fine.

Hernan

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

2 participants