当前位置:网站首页>DH parameters of robotics and derivation using MATLAB symbolic operation
DH parameters of robotics and derivation using MATLAB symbolic operation
2022-06-28 04:55:00 【subtitle_】
introduction
Reviewed robotics again DH Parameters , And make use of matlab Symbolic operation is derived , The formula is verified .
1.DH Parameter principle

In the picture Coordinate system definition :
- Coordinate system i {i} i Of z z z Axis z i z_i zi And joint axis i i i Collinear , Point to any regulation .
- Coordinate system i {i} i Of x x x Axis x i x_i xi and a i a_i ai coincidence , By joint i i i Point to the joint i + 1 i+1 i+1, When a i = 0 a_i=0 ai=0, take x i = ± z i + 1 × z i x_i=±z_{i+1}\times z_i xi=±zi+1×zi.
- Coordinate system i {i} i Of y y y Axis y i y_i yi According to the right-hand rule .
- Coordinate system i {i} i The origin of o i o_i oi Take from x i x_i xi and z i z_i zi At the intersection of ; When z i z_i zi and z i + z_{i+} zi+ When we meet , The origin is at the intersection of the two axes , When z i z_i zi and z i + z_{i+} zi+ Parallel time , Take the origin to make d i + 1 = 0 d_{i+1}=0 di+1=0 The place of .
Use the connecting rod coordinate system to define the corresponding Connecting rod parameters :
- a i a_i ai= from z i z_i zi To z i + 1 z_{i+1} zi+1 Along the x i x_i xi Measured distance ( Length of common vertical line )
- α i \alpha_i αi= from z i z_i zi To z i + 1 z_{i+1} zi+1 Along the x i x_i xi The angle of rotation
- d i d_i di= from x i − 1 x_{i-1} xi−1 To x i x_{i} xi Along the z i z_i zi Measured distance
- θ i \theta_i θi= from x i − 1 x_{i-1} xi−1 To x i x_{i} xi Along the z i z_i zi The angle of rotation
Coordinate system { i } \{i\} { i} Relative coordinates { i − 1 } \{i-1\} { i−1} The transformation matrix of i − 1 T i {}^{i-1}T_{i} i−1Ti It can be regarded as the product of four sub transformation matrices :
- Around the x i − 1 x_{i-1} xi−1 pivot α i − 1 \alpha_{i-1} αi−1 horn
R o t x ( α i − 1 ) = [ 1 0 0 0 0 c o s α i − 1 − s i n α i − 1 0 0 s i n α i − 1 c o s α i − 1 0 0 0 0 1 ] R o t_{x}\left(\alpha_{i-1}\right)=\begin{bmatrix}1 &0&0&0\\ 0&cos\alpha_{i-1}&{-sin\alpha_{i-1}}&0\\0&{sin\alpha_{i-1}}&{cos\alpha_{i-1}}&{0}\\ {0}&{0}&{0}&{1}\end{bmatrix} Rotx(αi−1)=⎣⎢⎢⎡10000cosαi−1sinαi−100−sinαi−1cosαi−100001⎦⎥⎥⎤ - Along the x i − 1 x_{i-1} xi−1 Axis movement a i − 1 a_{i-1} ai−1
T r a n s x ( a i − 1 ) = [ 1 0 0 a i − 1 0 1 0 0 0 0 1 0 0 0 0 1 ] T r a n s_{x}\left(a_{i-1}\right)=\begin{bmatrix}1 &0&0&a_{i-1}\\ 0&1&0&0\\0&0&1&{0}\\ {0}&{0}&{0}&{1}\end{bmatrix} Transx(ai−1)=⎣⎢⎢⎡100001000010ai−1001⎦⎥⎥⎤ - Along the z i z_{i} zi Axis movement θ i \theta_{i} θi
R o t z ( θ i ) = [ c o s θ i − s i n θ i 0 0 s i n θ i c o s θ i 0 0 0 0 1 0 0 0 0 1 ] R o t_{z}\left(\theta_{i}\right)=\begin{bmatrix}{cos\theta_{i}}&{-sin\theta_{i}}&0&0\\ {sin\theta_{i}}&{cos\theta_{i}}&0&0\\0&0&1&0\\ {0}&{0}&{0}&{1}\end{bmatrix} Rotz(θi)=⎣⎢⎢⎡cosθisinθi00−sinθicosθi0000100001⎦⎥⎥⎤ - Along the z i z_{i} zi Axis movement d i d_{i} di
T r a n s z ( d i ) = [ 1 0 0 0 0 1 0 0 0 0 1 d i 0 0 0 1 ] T r a n s_{z}\left(d_{i}\right)=\begin{bmatrix}1 &0&0&0\\ 0&1&0&0\\0&0&1&d_i\\ {0}&{0}&{0}&{1}\end{bmatrix} Transz(di)=⎣⎢⎢⎡10000100001000di1⎦⎥⎥⎤
These transformations are described in the relative motion coordinate system , Satisfy the principle from left to right , The final transformation formula can be obtained as follows :
i i − 1 T = R o t x ( α i ) T r a n s x ( a i ) R o t z ( θ i ) T r a n s z ( d i ) _{i}^{i-1}T=R o t_{x}\left(\alpha_{i}\right)T r a n s_{x}\left(a_{i}\right)R o t_{z}\left(\theta_{i}\right)T r a n s_{z}\left(d_{i}\right) ii−1T=Rotx(αi)Transx(ai)Rotz(θi)Transz(di)
It is usually stipulated that a i ≥ 0 a_i\ge0 ai≥0, Because it represents the length of the connecting rod , and α i , d i , θ i \alpha_i, d_i, \theta_i αi,di,θi Positive but negative .
i i − 1 T = [ c o s θ i − s i n θ i 0 a i − 1 s i n θ i c o s α i − 1 c o s θ i c o s α i − 1 − s i n α i − 1 − d i s i n α i − 1 s i n θ i s i n α i − 1 c o s θ i s i n α i − 1 c o s α i − 1 d i c o s α i − 1 0 0 0 1 ] _{i}^{i-1}T=\begin{bmatrix}{cos\theta_{i}}&{-sin\theta_{i}}&0&{a _{i-1}}\\ {sin\theta_{i}cos\alpha_{i-1}}&{cos\theta_{i}cos\alpha_{i-1}}&{-sin\alpha_{i-1}}&{-d_isin\alpha_{i-1}}\\{sin\theta_{i}sin\alpha_{i-1}}&{cos\theta_{i}sin\alpha_{i-1}}&{cos\alpha_{i-1}}&{d_icos\alpha_{i-1}}\\ {0}&{0}&{0}&{1}\end{bmatrix} ii−1T=⎣⎢⎢⎡cosθisinθicosαi−1sinθisinαi−10−sinθicosθicosαi−1cosθisinαi−100−sinαi−1cosαi−10ai−1−disinαi−1dicosαi−11⎦⎥⎥⎤
2.Matlab Symbolic operation verification
utilize Matlab The symbolic operation of is used to deduce the formula and verify the formula
syms theta d alpha a
M=DH_Trans(theta,d,alpha,a)
function M=DH_Trans(theta,d,alpha,a)
R_z_theta=[cos(theta),-sin(theta),0,0;...
sin(theta),cos(theta),0,0;...
0,0,1,0;...
0,0,0,1];
T_z_d=[1,0,0,0;...
0,1,0,0;...
0,0,1,d;...
0,0,0,1];
R_x_alpha=[1,0,0,0;...
0,cos(alpha),-sin(alpha),0;...
0,sin(alpha),cos(alpha),0;...
0,0,0,1];
T_x_a=[1,0,0,a;...
0,1,0,0;...
0,0,1,0;...
0,0,0,1];
M=R_x_alpha*T_x_a*R_z_theta*T_z_d;
end
The results are consistent 
边栏推荐
- [matlab traffic light identification] traffic light identification [including GUI source code 1908]
- Performance optimization and implementation of video codec
- What to do when MySQL changes the password and reports an error
- Establishment of SSH Framework (Part 2)
- Blocking, non blocking, IO multiplexing select\poll\epoll
- 论文详读:IMPROVING CONVOLUTIONAL MODELS FOR HANDWRITTEN TEXT RECOGNITION
- Sword finger offer 47 Maximum gift value (DP)
- 27 years, Microsoft IE is over!
- Unity out ref params
- 多线程实现 重写run(),怎么注入使用mapper文件操作数据库
猜你喜欢

Severe tire damage: the first rock band in the world to broadcast live on the Internet

Feign通过自定义注解实现路径的转义

Performance optimization and implementation of video codec

学习太极创客 — MQTT 第二章(四)ESP8266 保留消息应用

2022年安全员-A证考试题库及模拟考试
![[matlab traffic light identification] traffic light identification [including GUI source code 1908]](/img/0e/3103c4c5dd664196c85db9b30bcaf5.png)
[matlab traffic light identification] traffic light identification [including GUI source code 1908]

Audio and video technology development weekly

【牛客网刷题系列 之 Verilog快速入门】~ 四选一多路器

Play with double pointer

Flexible IP network test tool -- x-launch
随机推荐
Standard particle swarm optimization C language program
Unity out ref params
2022年安全员-B证考试题库及答案
100+ data science interview questions and answers Summary - machine learning and deep learning
控制器的功能和工作原理
信息学奥赛一本通 1360:奇怪的电梯(lift)
判断对象中是否存在某一个属性
Matlab exercises -- exercises related to symbolic operation
Has anyone ever used CDC to synchronize to MySQL with a deadlock?
Google Earth Engine(GEE)——全球洪水数据库 v1 (2000-2018年)
Establishment of SSH Framework (Part 2)
xml  File read / write
Ppt production tips
学习太极创客 — MQTT 第二章(六)MQTT 遗嘱
PHP code wechat, official account and enterprise wechat send emoticons [u+1f449]
别卷!如何高质量地复现一篇论文?
A doctor's 22 years in Huawei (full of dry goods)
Aspnetcoreratelimit rate limit interface access limit current limit control
大促场景下,如何做好网关高可用防护
Sum of squares of each bit of a number