We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am new with processing. I found this Simultaneous Localisation and Mapping (SLAM) using processing from http://blogofrog.com/2011/02/21/slam-html5/. there is two .pde files, here the code: http://blogofrog.com/files/js/ekfslam.pde and http://blogofrog.com/files/js/matrix.pde i try to run that using cordova phonegap with processing.js library on android just work fine. but when i try to run it using processing IDE wont run because of unexpected token: { on line 46. whats happen here? do i miss something?..
thanks in advanced.
Answers
Those ".pde" files aren't valid Java code and hence incompatible w/ "Java Mode"! [-(
Line 46 is:
Matrix Q = new Matrix({{ pow(sigmaV, 2.0), 0.0 }, { 0.0, pow(sigmaG, 2.0) }});
As said, that's an odd mix of Java and JavaScript syntax, so it cannot work in Java mode. Try the JavaScript mode.