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

Problem of getting fitness score #89

Open
lus6-Jenny opened this issue Mar 29, 2022 · 1 comment
Open

Problem of getting fitness score #89

lus6-Jenny opened this issue Mar 29, 2022 · 1 comment

Comments

@lus6-Jenny
Copy link

I used the same code in Readme document but met the problem when using get_fitness_score of gicp, with the error below:

In fast_gicp,
gicp.get_fitness_score(max_range=1.0)
TypeError: get_fitness_score(): incompatible function arguments. The following argument types are supported:
1. (self: pygicp.LsqRegistration, arg0: float) -> float

Invoked with: <pygicp.FastGICP object at 0x7f2f239575f0>; kwargs: max_range=1.0
INFO - 2022-03-29 17:02:47,029 - core - signal_shutdown [atexit]

Can you help me figure it out? Thanks a lot in advance.

@koide3
Copy link
Member

koide3 commented Apr 15, 2022

Named arguments are not supported for get_fitness_score(). You can just remove max_range=, then the method should work.

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