petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.26k stars 440 forks source link

ParticleFilter SLAM code error #112

Open yimengweima0 opened 2 years ago

yimengweima0 commented 2 years ago

Hi, I am studying ParticleFilter SLAM. When I run the ParticleFilter code which is " pf.run(100)" in matlab, I find a error. The error is as follows :
The assignment cannot be performed because the size on the left is 1000 × 1. The size on the right is 999 × 1.
error : ParticleFilter/predict (line 414): pf.x(:,3) = angdiff(pf.x(:,3)); I would appreciate it if you could fix the code. Thanks very much!