-
Notifications
You must be signed in to change notification settings - Fork 284
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
王老师,请教个问题,仿真报错:Index value 719 exceeds valid range [1-166] for array 'kappar'. #5
Comments
看我规划系列第二章第一节,那里有我写好的控制算法供你参考 |
|
王老师,我看了您的规划系列第二章第一节的视频,意识到这块的确是规划的问题,您在讲这里的时候说这个规划只是随便画一个,但是就这里的这个简单的规划,还是想请教您,我想把这块弄懂,我仔细看了这个计算方法,也自己稍微增加了一点点的修改,发现计算结果还是一样有问题,为什么同样是这样计算的,只有曲线的曲率kappar的值是1×136的,而xr,yr确是1×480的呢?是什么环节出了问题?怎么修改才能让kappar与xr,yx统一维度呢? count=60; xr=[x1,x2,x3,x4,x5,x6,x7,x8]; scatter(xr,yr) function [xr,yr,thetar,kr] = straight(init_coord,end_coord,init_angle,count) function [xr,yr,thetar,kr] = arc(init_coord,end_coord,init_angle,end_angle,count) 结果 : |
王老师,我重新检查这个函数,发现了问题所在: |
我用自己看您视频搭建的模型仿真,和下载您的模型,运行后都是同样的错误,不知道怎么调试,我在工作空间中查看kappar的值,就是1-167个值,没有看到这个719的索引,麻烦您帮忙看下,这个是报错信息:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Index exceeds array dimensions. Index value 719 exceeds valid range [1-166] for array 'kappar'.
Error in 'ControlModel/Subsystem/err kappa Calculation module' (line 21)
projection_point_thetar = thetar(dmin) + kappar(dmin)*es;
The text was updated successfully, but these errors were encountered: