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

an error occurs when compiling #55

Closed
somebodyus opened this issue Mar 15, 2016 · 3 comments
Closed

an error occurs when compiling #55

somebodyus opened this issue Mar 15, 2016 · 3 comments

Comments

@somebodyus
Copy link

OptimizerCVSBA.cpp: In member function ‘virtual std::map<int, rtabmap::Transform> rtabmap::OptimizerCVSBA::optimizeBA(int, const std::map<int, rtabmap::Transform>&, const std::multimap<int, rtabmap::Link>&, const std::map<int, rtabmap::Signature>&)’:

OptimizerCVSBA.cpp:90:138: error: ‘const value_type’ has no member named ‘isValid’

OptimizerCVSBA.cpp:94:72: error: ‘const class rtabmap::StereoCameraModel’ has no member named ‘isValid’
else if(signatures.at(iter->first).sensorData().stereoCameraModel().isValid())

OptimizerCVSBA.cpp:108:12: error: ‘class rtabmap::CameraModel’ has no member named ‘isValid’
if(model.isValid())

I use OpenCV 2.4.12.

@somebodyus
Copy link
Author

have tried OpenCV 2.4.11
the error still occurs

@matlabbe
Copy link
Member

This is not an OpenCV issue, the bug is fixed in the commit above. Just update the code and build again:

$ cd rtabmap
$ git pull
$ cd  build
$ make

@somebodyus
Copy link
Author

problem solved,
thank you

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