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

[BUG] Input data type for Matlab #106

Open
jbalado opened this issue Jul 14, 2021 · 3 comments
Open

[BUG] Input data type for Matlab #106

jbalado opened this issue Jul 14, 2021 · 3 comments

Comments

@jbalado
Copy link

jbalado commented Jul 14, 2021

I tried to run the example code in matlab with with src = rand(3,5). Same for dst.

src = rand(3,5);;
dst = rand(3,5);

cbar2 = 1;
noise_bound = 0.01;
estimate_scaling = false; % we know there's no scale difference
rot_alg = 0; % use GNC-TLS, set to 1 for FGR
rot_gnc_factor = 1.4;
rot_max_iters = 100;
rot_cost_threshold = 1e-12;

% The MEX function version
[s, R, t, time_taken] = teaser_solve_mex(src, dst, cbar2, ...
noise_bound, estimate_scaling, rot_alg, rot_gnc_factor, ...
rot_max_iters, rot_cost_threshold);

% The MATLAB wrapper version
[s, R, t, time_taken] = teaser_solve(src, dst, 'Cbar2', cbar2, 'NoiseBound', noise_bound, ...
'EstimateScaling', estimate_scaling, 'RotationEstimationAlgorithm', rot_alg, ...
'RotationGNCFactor', rot_gnc_factor, 'RotationMaxIterations', 100, ...
'RotationCostThreshold', rot_cost_threshold);

The following error appeared:

Undefined function 'teaser_solve' for input arguments of type 'double'.

I also had the same problem for 5x3 matrices, type single and PointCloud; and with teaser_solve_mex function.
Could you help me?

@WJinhai
Copy link

WJinhai commented Jul 22, 2021

I want to know How did you compile successfully in Matlab?

@jingnanshi
Copy link
Member

Hi @WJinhai @jbalado thanks for your interest. I will take a look at the MATLAB binding.

@jbalado jbalado changed the title [BUG] Input data type for Matalb [BUG] Input data type for Matlab Jul 22, 2021
@jbalado
Copy link
Author

jbalado commented Jul 22, 2021

I want to know How did you compile successfully in Matlab?

Sorry, I didn't say it before, but it's running on linux, a clean install with just the mapping toolbox (and the necessary ones).

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

3 participants