⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 recor.m

📁 This code proposes genetic algorithm (GA) to optimize the point-to-point trajectory planning for a 3
💻 M
字号:
function a=recor(bsol,para)
time=bsol(8)+bsol(9);
[c,conff]=invkin3(para(4),para(5),bsol(4));
cond=[para(1:3),conff];
chrom=[bsol(1:3),bsol(5:end)];
kk=trajt3(cond,chrom);
tt=torque3(kk);
ft=ftorque3(tt);
ffq=kk(1:3,:);
fq=sum(sum(abs(diff(ffq'))));
pos=forkin3(kk(1,:),kk(2,:),kk(3,:));
xx=pos(1,:);yy=pos(2,:);
x=diff(xx);
y=diff(yy);    
fdis=sum(sqrt(x.^2+y.^2));
a=[time,fq,fdis,ft];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -