1 Star 1 Fork 1

Cybaster / tool_calibration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.m 466 Bytes
一键复制 编辑 原始数据 按行查看 历史
Cybaster 提交于 2023-09-05 22:35 . complete
robot.tool.t = [0, 0, 0];
t1 = robot.fkine(q1).t;
t2 = robot.fkine(q2).t;
t3 = robot.fkine(q3).t;
t4 = robot.fkine(q4).t;
t5 = robot.fkine(q5).t;
t6 = robot.fkine(q6).t;
RR = [R1 - R2; R2 - R3; R3 - R4];
PP = [t2 - t1; t3 - t2; t4 - t3];
ox = R4 \ (t5 - t4) / norm(t5 - t4);
oy = R4 \ (t6 - t4) / norm(t6 - t4);
oz = cross(ox, oy);
p_tool = RR \ PP;
R_tool = [ox, oy, oz];
disp("Tool end position");
disp(p_tool);
disp("Tool end attitude matrix");
disp(R_tool);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chaomingsanhua/tool_calibration.git
git@gitee.com:chaomingsanhua/tool_calibration.git
chaomingsanhua
tool_calibration
tool_calibration
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891