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

Compilation error #4

Open
rs1990 opened this issue Jun 18, 2017 · 2 comments
Open

Compilation error #4

rs1990 opened this issue Jun 18, 2017 · 2 comments

Comments

@rs1990
Copy link

rs1990 commented Jun 18, 2017

Hello,

I keep getting this error whenever i try to compile it. any help?

kalman.hpp:13:9: warning: #pragma once in main file [enabled by default]
 #pragma once
         ^
kalman-test.cpp: In function ‘int main(int, char**)’:
kalman-test.cpp:43:32: error: no matching function for call to ‘KalmanFilter::KalmanFilter(Eigen::MatrixXd&, Eigen::MatrixXd&, Eigen::MatrixXd&, Eigen::MatrixXd&, Eigen::MatrixXd&)’
   KalmanFilter kf(A, C, Q, R, P);
                                ^
kalman-test.cpp:43:32: note: candidates are:
In file included from kalman-test.cpp:12:0:
kalman.hpp:39:3: note: KalmanFilter::KalmanFilter()
   KalmanFilter();
   ^
kalman.hpp:39:3: note:   candidate expects 0 arguments, 5 provided
kalman.hpp:27:3: note: KalmanFilter::KalmanFilter(double, const MatrixXd&, const MatrixXd&, const MatrixXd&, const MatrixXd&, const MatrixXd&)
   KalmanFilter(
   ^
kalman.hpp:27:3: note:   candidate expects 6 arguments, 5 provided
kalman.hpp:15:7: note: KalmanFilter::KalmanFilter(const KalmanFilter&)
 class KalmanFilter {
       ^
kalman.hpp:15:7: note:   candidate expects 1 argument, 5 provided
kalman.hpp:15:7: note: KalmanFilter::KalmanFilter(KalmanFilter&&)
kalman.hpp:15:7: note:   candidate expects 1 argument, 5 provided
kalman-test.cpp:61:13: error: no matching function for call to ‘KalmanFilter::init(Eigen::VectorXd&)’
   kf.init(x0);
             ^
kalman-test.cpp:61:13: note: candidates are:
In file included from kalman-test.cpp:12:0:
kalman.hpp:44:8: note: void KalmanFilter::init()
   void init();
        ^
kalman.hpp:44:8: note:   candidate expects 0 arguments, 1 provided
kalman.hpp:49:8: note: void KalmanFilter::init(double, const VectorXd&)
   void init(double t0, const Eigen::VectorXd& x0);
        ^
kalman.hpp:49:8: note:   candidate expects 2 arguments, 1 provided

@ramitix
Copy link

ramitix commented Aug 9, 2017

Change KalmanFilter kf(A, C, Q, R, P); to KalmanFilter kf(dt,A, C, Q, R, P); and kf.init(x0); to kf.init(dt,x0);

@bryantaoli
Copy link

Change KalmanFilter kf(A, C, Q, R, P); to KalmanFilter kf(dt,A, C, Q, R, P); and kf.init(x0); to kf.init(dt,x0);

kf.init(x0); to kf.init(dt,x0); may be kf.init(x0); to kf.init(t,x0); and move it to double t=0

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