type
status
date
slug
summary
tags
category
icon
password
Link
Description
😀
前言: 以下内容是我之前的matlab 机器人工具箱的学习笔记。比较琐碎,清谅解。
 

界面介绍

notion image

快捷键

notion image
notion image
notion image
doc+函数查看帮助
矩阵变形
horzcat()
strcat()
vercat()
notion image
repmat()按规律复制矩阵
notion image
A(行,列)
find()
简单代数运算
notion image
判断和逻辑运算
notion image
notion image
notion image
notion image
MATLAB true:1; false:0;
 
Python True:1; False:0;
矩阵加减乘除
notion image
notion image
notion image
notion image
IF end
rand随机数发生器
input
tic toc 运行时间
comsum可以看到求和的全部过程

绘图

plot()
subplot()四分子图
线型及标记
notion image
notion image
notion image
notion image
legend()
LineSpec()线型设置
图像的装饰
xlim()
notion image
daspect()
notion image
LaTeX编译
notion image
notion image
grid on网格
subplot()分布制图
linspace()
notion image
clc 清理command Window
clear all 清理 Workspace
meshgrid()
contur()三维数据的表达方案等高线
histfit()拟合
stairs()阶梯图
notion image
notion image
notion image
scatter()随机的图散地点图
scatter3()三维的散点图
stem()杆图火柴梗图
stem3()
Colormap
fill()
areo()面积
quiver()绘制箭头和速度
quiver3()
heatmap()热图images()
contourslice()四维数据
三维线图
plot3()
notion image
notion image
notion image
notion image
view()视角view(3)
line()绘制三维图
 
三维曲面绘图
surf()带颜色的曲面
 
contour3()等高线
contour()三维在平面的投影showtest on
contourf()网格可以填充
mesh()网格没有填充
meshc()mesh+contour
meshz()
绘制交点和交线
notion image
图像句柄
gcf背景
gca轴
概率统计
bar
NaN
bar3()柱状图
pie()饼图
randn()正态分布的随机数
时间轴和现金流
cfplot()
cfamounts()
period()

机器人工具箱

notion image
建模
notion image
 
机器人工具箱
安装
1、下载地址
2、安装库的显示
notion image
执行代码
function blkStruct=slblocks blkStruct.Name=['Robot' sprintf('\n') 'ToolBox']; blkStruct.OpenFcn='roblocks';
模型导入
教学机器人工具箱最新的10.4()学习日期2024年3月
学习笔记
1、指令rtbdemo
notion image
rotx(pi/2/pi*180)括号中默认的是角度
scara的标准DH代码
clc clear all; clf; close all; %% 建立SCARA机器人仿真模型 l=[0.475 0.325]; L(1) = Link('d',0,'a',l(1),'alpha',0,'standard','qlim',[-130 130]*pi/180); L(2) = Link('d',0,'a',l(2),'alpha',pi,'standard','qlim',[-145 145]*pi/180); L(3) = Link('theta',0,'a',0,'alpha',0,'standard','qlim',[0 0.3]); L(4) = Link('d',0,'a',0,'alpha',0,'standard','qlim',[-360 360]*pi/180); scara=SerialLink(L,'name','SCARA Robot'); q0=[0 0 0 0]; scara.plot(q0); scara.teach(q0);
 
 
%% SCARA机器人工作空间绘制 qL=scara.qlim ; N =10000; ws_q = zeros (N ,4);
a = rand( size ( ws_q)); for j =1:N for i =1:4 ws_q(j , i )=qL ( i ,1)+( qL ( i ,2)- qL ( i ,1))* a ( j , i );
end ws_x =l(1)* cos ( ws_q (:,1))+l(2)* cos ( ws_q (:,1) + ws_q (:,2)); ws_y =l(1)* sin ( ws_q (:,1))+l(2)* sin ( ws_q (:,1)+ws_q (:,2)); ws_z =- ws_q (:,3); figure ('Name','Scara 机器人工作空间') plot3( ws_x , ws_y , ws_z ,' r.' ) grid ; xlabel (' X '); ylabel (' Y '); zlabel (' Z ');
%% 轨迹规划 qA = input (' Enter the A :'); qB = input (' Enter the B :'); t =0:0.05:2; [ q , qd , qdd ]= jtraj ( qA , qB , t );
%% 正运动学仿真 T = double ( scara.fkine ( q )); [ x , y , z ]=transl( T );
%% 绘制曲线图 figure ('Name','"SCARA Robot"机器人正运动学演示'); plot ( scara , q ) figure ('Name','机器人末端运动轨迹'); plot3(x,y,z,'r-o','MarkerFaceColor','r'); grid ; xlabel (' X '); ylabel (' Y '); zlabel (' Z '); figure ('Name','各关节的位移、速度和加速度曲线'); subplot (3,4,1); plot (t,q(:,1)); title ('关节1'); grid; ylabel('位移(rad )'); subplot (3,4,5); plot(t,qd(:,1)); grid; ylabel ('速度( rad/s )'); subplot (3,4,9); plot (t,qdd (:,1)); grid; xlabel('时间(s)'); ylabel ('加速度(rad/s^2)'); subplot (3,4,2); plot(t,q(:,2)); title('关节2'); grid; subplot(3,4,6); plot(t,qd(:,2)); grid; subplot(3,4,10); plot(t,qdd(:,2));grid ; xlabel('时间( s )'); subplot(3,4,3); plot(t,q(:,3)); title('关节3'); grid; subplot(3,4,7); plot(t,qd(:,3)); grid ; subplot(3,4,11); plot(t,qdd(:,3)); grid; xlabel('时间( s )'); subplot (3,4,4); plot(t,q(:,4)); title('关节4'); grid; subplot(3,4,8); plot(t,qd(:,4)); grid; subplot(3,4,12); plot(t,qdd(:,4)); grid; xlabel('时间( s )');
常见函数
notion image
notion image
notion image
notion image
notion image
notion image
 
工作空间的可视化
notion image
notion image
notion image
轨迹规划
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
 
教程SW和matlab联合使用
基础知识
notion image
运动学1建立机器人模型
1、Link类
notion image
2、SerialLink类
notion image
scara机器人的运动学模型全套包括正逆解等等(本人实测可用)
scara运动学轨迹等等放在一个文件夹运行
6轴机械臂的运动学等
 
 
基础知识
整数
notion image
浮点数
notion image
复数
notion image
数据i显示格式
notion image
函数句柄
notion image
单元数组
notion image
notion image
结构体类型
notion image
notion image
关系运算符号
notion image
日期和时间
notion image
TMRobot-Series-Toolbox
joaolobatopereira117Updated Apr 13, 2022
大学课程书籍来源
机器人控制系统设计与仿真 高等教育出版社
开源案例
 
 
💡
有关matlab机器人工具箱使用上的问题,欢迎您在底部评论区留言,一起交流~
💡
网页会定期更新学习内容丰富资源可以收藏保存哟。
💡
学了这么多知识给可爱的小助理一个奶茶钱,让她拉你进群结交更多的大佬一起学习吧!!
notion image
Robot with RoboDKRobot with Blender
Loading...
Robot_Qu
Robot_Qu
一个专注机器人领域的摄影剪辑师
公告
🎉欢迎来到我的网站🎉
-- 感谢您的支持 ---
👏欢迎留言评论👏
notion image