轮腿机器人-五连杆正运动学解算

ops/2024/10/19 4:26:39/

轮腿机器人-五连杆与VMC

  • 1.五连杆正运动学分析
  • 2.参考文献

1.五连杆正运动学分析

Alt

如图所示为五连杆结构图,其中A,E机器人腿部控制的两个电机,θ1,θ4可以通过电机的编码器测得。五连杆控制任务主要关注机构末端C点位置,其位置用直角坐标表示为(Cx,Cy),极坐标系用(L0,θ0)表示。
根据上述五连杆结构图可以列出以下等式:
{ B x + L 2 ∗ c o s ( θ 2 ) = D x + L 3 ∗ c o s ( θ 3 ) B y + L 2 ∗ s i n ( θ 2 ) = D y + L 3 ∗ s i n ( θ 3 ) \begin{equation} \begin{cases} B_{x}+L_{2}*{\color{Green} cos(\theta _{2})} =D_{x}+L_{3}*{\color{Green} cos(\theta _{3})} \\ B_{y}+L_{2}*{\color{Orange} sin(\theta _{2})} =D_{y}+L_{3}*{\color{Orange} sin(\theta _{3})} \end{cases} \tag{1} \end{equation} {Bx+L2cos(θ2)=Dx+L3cos(θ3)By+L2sin(θ2)=Dy+L3sin(θ3)(1)
对公式(1)移项,并在等式两边进行平方有:
{ ( B x + L 2 ∗ c o s ( θ 2 ) − D x ) 2 = ( L 3 ∗ c o s ( θ 3 ) ) 2 ( B y + L 2 ∗ s i n ( θ 2 ) − D y ) 2 = ( L 3 ∗ s i n ( θ 3 ) ) 2 \begin{equation} \begin{cases} (B_{x}+L_{2}*{\color{Green} cos(\theta _{2})} -D_{x})^{2}=(L_{3}*{\color{Green} cos(\theta _{3})})^{2} \\ (B_{y}+L_{2}*{\color{Orange} sin(\theta _{2})} - D_{y})^{2}=(L_{3}*{\color{Orange} sin(\theta _{3})})^{2} \end{cases} \tag{2} \end{equation} {(Bx+L2cos(θ2)Dx)2=(L3cos(θ3))2(By+L2sin(θ2)Dy)2=(L3sin(θ3))2(2)
将平方展开有:
{ ( B x − D x ) 2 + 2 ∗ ( B x − D x ) ∗ L 2 ∗ c o s ( θ 2 ) + ( L 2 ∗ c o s ( θ 2 ) ) 2 = ( L 3 ∗ c o s ( θ 3 ) ) 2 ( B y − D y ) 2 + 2 ∗ ( B y − D y ) ∗ L 2 ∗ s i n ( θ 2 ) + ( L 2 ∗ s i n ( θ 2 ) ) 2 = ( L 3 ∗ s i n ( θ 3 ) ) 2 \begin{equation} \begin{cases} (B_{x}-D_{x})^{2}+2*(B_{x}-D_{x})*L_{2}*{\color{Green} cos(\theta _{2})}+ (L_{2}*{\color{Green} cos(\theta _{2})})^{2}=(L_{3}*{\color{Green} cos(\theta _{3})})^{2} \\ (B_{y} - D_{y})^{2}+2*(B_{y} - D_{y})*L_{2}*{\color{Orange} sin(\theta _{2})}+(L_{2}*{\color{Orange} sin(\theta _{2})})^{2}=(L_{3}*{\color{Orange} sin(\theta _{3})})^{2} \end{cases} \tag{3} \end{equation} {(BxDx)2+2(BxDx)L2cos(θ2)+(L2cos(θ2))2=(L3cos(θ3))2(ByDy)2+2(ByDy)L2sin(θ2)+(L2sin(θ2))2=(L3sin(θ3))2(3)
对公式(3)内部两个等式相加并移项有:
K ∗ s i n ( θ 2 ) + M ∗ c o s ( θ 2 ) = C \begin{equation} K*{\color{Orange} sin(\theta _{2})}+M*{\color{Green} cos(\theta _{2})}=C \tag{4} \end{equation} Ksin(θ2)+Mcos(θ2)=C(4)

{ K = 2 ∗ ( B y − D y ) ∗ L 2 M = 2 ∗ ( B x − D x ) ∗ L 2 P = 2 ∗ [ ( L 3 ) 2 − ( L 2 ) 2 ] L B D = ( B x − D x ) 2 + ( B y − D y ) 2 C = P − ( L B D ) 2 \begin{cases} K=2*(B_{y} - D_{y})*L_{2} \\M=2*(B_{x}-D_{x})*L_{2} \\P=2*[(L_{3})^{2}-(L_{2})^{2}] \\L_{BD}=\sqrt{(B_{x}-D_{x})^{2}+(B_{y} - D_{y})^{2}} \\C=P-(L_{BD} )^2 \end{cases} K=2(ByDy)L2M=2(BxDx)L2P=2[(L3)2(L2)2]LBD=(BxDx)2+(ByDy)2 C=P(LBD)2
使用二倍角法对公式(4)进一步化简,已知:
{ t a n θ 2 = s i n ( θ ) 1 + c o s ( θ ) c o s ( θ ) = c o s 2 θ 2 − s i n 2 θ 2 = 2 ∗ c o s 2 θ 2 − 1 c o s 2 θ 2 − s i n 2 θ 2 = 1 \begin{cases} {\color{Purple} tan\frac{\theta }{2}} = \frac{{\color{Orange} sin(\theta )} }{1+{\color{Green} cos(\theta )} } \\{\color{Green} cos(\theta )} {\color{Green} ={\color{Green} cos^2\frac{\theta }{2}}} - {\color{Orange} sin^2\frac{\theta }{2}} =2*{\color{Green} cos^2\frac{\theta }{2}} -1 \\{\color{Green} cos^2\frac{\theta }{2}} - {\color{Orange} sin^2\frac{\theta }{2}} =1 \end{cases} tan2θ=1+cos(θ)sin(θ)cos(θ)=cos22θsin22θ=2cos22θ1cos22θsin22θ=1
1 + c o s ( θ ) ≠ 0 1+{\color{Green} cos(\theta )} \ne 0 1+cos(θ)=0,对公式(4)进行如下变化,其中 τ = 1 + c o s ( θ ) \tau=1+{\color{Green}cos(\theta)} τ=1+cos(θ):
τ 2 ∗ ( 2 ∗ K ∗ s i n ( θ 2 ) τ + 2 ∗ M ∗ c o s ( θ 2 ) τ − 2 ∗ C τ ) = 0 \begin{equation} \frac{\tau}{2} *(\frac{2*K*{\color{Green} sin(\theta_{2})} }{\tau}+\frac{2*M*{\color{Orange} cos(\theta_{2})} }{\tau}-\frac{2*C}{\tau} )=0 \tag{5} \end{equation} 2τ(τ2Ksin(θ2)+τ2Mcos(θ2)τ2C)=0(5)
使用二倍角对公式(5)进行展开并进行化简得:
1 + c o s ( θ 2 ) 2 ∗ [ ( C − M ) ∗ t a n 2 θ 2 2 + 2 ∗ K ∗ t a n ( θ 2 2 ) + ( M + C ) ] \begin{equation} \frac{1+{\color{Green} cos(\theta_{2} )} }{2}*[(C-M)*{\color{Purple} tan^2\frac{\theta_{2} }{2}} +2*K*{\color{Purple} tan(\frac{\theta_{2} }{2})} +(M+C) ] \tag{6} \end{equation} 21+cos(θ2)[(CM)tan22θ2+2Ktan(2θ2)+(M+C)](6)
根据公式(6)得到了一个关于 t a n ( θ 2 2 ) {\color{Purple} tan(\frac{\theta_{2} }{2})} tan(2θ2)的一元二次方程,其求根判别式为:
△ = ( 2 ∗ K ) 2 − 4 ∗ ( C − M ) ∗ ( M + C ) = 4 ( K 2 + M 2 − C 2 ) \bigtriangleup =(2*K)^2-4*(C-M)*(M+C)=4(K^2+M^2-C^2) =(2K)24(CM)(M+C)=4(K2+M2C2)
△ ≥ 0 \bigtriangleup\ge 0 0时,可以解出 θ 2 \theta_{2} θ2:
θ 2 = 2 ∗ a r c t a n ( K ± ( K 2 + M 2 − C 2 ) M − C ) \theta _{2}=2*arctan(\frac{K\pm \sqrt{(K^2+M^2-C^2)} }{M-C} ) θ2=2arctan(MCK±(K2+M2C2) )
通过 θ 1 \theta_{1} θ1即可解算出 C C C点的直角坐标有:
{ C x = L 1 ∗ c o s ( θ 1 ) + L 2 ∗ c o s ( θ 2 ) C y = L 1 ∗ s i n ( θ 1 ) + L 2 ∗ s i n ( θ 2 ) \begin{equation} \begin{cases} C_{x}=L_{1}*{\color{Orange} cos(\theta _{1})} +L_{2}*{\color{Orange} cos(\theta_{2})} \\C_{y}=L_{1}*{\color{Green} sin(\theta _{1})} +L_{2}*{\color{Green} sin(\theta_{2})} \end{cases} \tag{7} \end{equation} {Cx=L1cos(θ1)+L2cos(θ2)Cy=L1sin(θ1)+L2sin(θ2)(7)
进一步推导得到极坐标为:
{ L 0 = ( C x − L 5 ) 2 + C y 2 θ 0 = a r c t a n C y C x − L 5 2 \begin{equation} \begin{cases} L_{0}=\sqrt{(C_{x}-L_{5})^2+C_{y}^2} \\\theta_{0}=arctan\frac{C_{y}}{C_{x}-\frac{L_{5}}{2} } \end{cases} \tag{8} \end{equation} L0=(CxL5)2+Cy2 θ0=arctanCx2L5Cy(8)

2.参考文献

https://zhuanlan.zhihu.com/p/613007726
[1]于红英,唐德威,王建宇.平面五杆机构运动学和动力学特性分析[J].哈尔滨工业大学学报,2007(06):940-943.
[2]谢惠祥.四足机器人对角小跑步态虚拟模型直觉控制方法研究[D].国防科学技术大学,2015.


http://www.ppmy.cn/ops/4105.html

相关文章

Python | Leetcode Python题解之第32题最长有效括号

题目: 题解: class Solution:def longestValidParentheses(self, s: str) -> int:stack[]maxL0nlen(s)tmp[0]*n #标记数组cur0for i in range(n):if s[i](:stack.append(i)else:if stack:jstack.pop()if s[j](:tmp[i],tmp[j]1,1 #匹配成…

Navicat for MySQL 使用基础与 SQL 语言的DDL

一、目的: Navicat for MySQL 是一套专为 MySQL 设计的高性能数据库管理及开发 工具。它可以用于任何版本 3.21 或以上的 MySQL 数据库服务器,并支持大 部份 MySQL 最新版本的功能,包括触发器、存储过程、函数、事件、视图、 管理用户等。…

微信小程序浮标,可以拖动,自动靠边隐藏一半客服图标功能

不多说,直接上代码。全屏拖动无抖动,中间停留自动靠边,拖动隐藏一半,可自己根据代码改动为自己想要的效果 js代码 import { tpStaticUrl,basictpStaticUrl } from "../../../envConfig"; let app getApp(); Componen…

FreeLearning PHP 译文集翻译完成

使用 PHP 和 jQuery 构建游戏化 Web 站点使用 PHP7 构建 REST Web 服务PHP 入门指南CouchDB 和 PHP Web 开发初学者指南Vue2 和 Laravel5 全栈开发函数式 PHPAngular6 和 Laravel5 Web 全栈开发实用指南FuelPHP 高效开发学习手册PHP 数据对象学习手册PHP7 高性能开发学习手册La…

文章解读与仿真程序复现思路——电力自动化设备EI\CSCD\北大核心《考虑碳市场风险的热电联产虚拟电厂低碳调度》

本专栏栏目提供文章与程序复现思路,具体已有的论文与论文源程序可翻阅本博主免费的专栏栏目《论文与完整程序》 论文与完整源程序_电网论文源程序的博客-CSDN博客https://blog.csdn.net/liang674027206/category_12531414.html 电网论文源程序-CSDN博客电网论文源…

分布式系统——全站监控

文章目录 全站监控要点**监控范围与对象****监控指标与数据****监控工具与技术****监控策略与实践****全站监控的价值** 实例展示 全站监控要点 全站监控是针对分布式架构中所有组件和服务进行全方位、多层次、实时的性能监控、状态检测和故障告警的系统化方法。在分布式环境下…

Web安全知识

第二章 虚拟机运行架构: 1.寄居结构 2.原生架构 软件 注:Hyper-V是在Windows 2008操作系统上 附录 连接FTP服务器过程: 1.下载了软件: 2.连接到ftp://10.0.105.223/服务器(访问老师课堂资源地址) 关闭…

C#发票检验真伪示例、全电票查验接口、发票OCR识别

假发票的最直接危害体现在税收的流失,但发票查验对于现如今票据量大的企业而言成为了一大难题,传统手动输入发票信息的方式已无法满足当下企业的需求。人工智能时代,“以票控账,以票审计,以票查税"是推动企业数字…