从零实现MIT 四足机器人运动学:实战指南
四足机器人向来都是机器人领域里备受瞩目的热门研究方向, 当中MIT堪称开源四足机器人里的出类拔萃者, 它那种运动控制算法备受人们的高度关注。本文会引领您从毫无基础的起点开始, 去运用复现MIT的刚体模型以及前向运动学算法。它与仅仅是单纯的理论讲解存在差异, 我们更加着重于实实在在的代码实现以及调试方面的技巧, 以此让您能够真正地掌握住机器人运动学的核心原理。
1. 环境准备与基础知识
开始编码之前, 我们得搭建适宜的开发环境。那个因有着丰富科学计算库而成了机器人仿真理想选择的东西。下面这些是必需的库与其有着的作用。
# 必需库安装命令 pip install numpy matplotlib scipy sympy对于四足机器人的运动学分析而言, 一般是从单腿着手的。麻省理工学院运用了一种经典的、具备三个自由度的腿部设计方式, 其中涵盖髋关节侧摆、髋关节前摆以及膝关节这三个旋转关节。这种设计在维持结构简单的情形下, 给予了充足的运动灵活性。
留意下, 虽说这篇文章是以麻省理工学院当作参考依据的, 然而所讲述的方法以及代码, 是适用于大多数有着类似结构的四足机器人的。
2. 建立机器人刚体模型
做运动学分析的基础是刚体模型, 我们得精准地明确机器人的连杆参数以及关节配置, 针对MIT的腿部而言, 能够简化成三个主要的连杆。
连杆长度 (m)质量 (kg)转动惯量 (kg·m²)
大腿
0.21
0.634
0.001, 0.003, 0.003
小腿
0.20
0.064
0.0001, 0.0003, 0.0003
在代码中,我们可以创建一个类来存储这些参数:
class LegParameters: def __init__(self): # 长度参数 self.upper_length = 0.21 # 大腿长度 self.lower_length = 0.20 # 小腿长度 # 质量参数 selM.Share.Wmoph.cN/Article/details/853019.shtml
M.Share.Wmoph.cN/Article/details/538433.shtml
M.Share.Wmoph.cN/Article/details/690943.shtml
M.Share.Wmoph.cN/Article/details/010923.shtml
M.Share.Wmoph.cN/Article/details/718729.shtml
M.Share.Wmoph.cN/Article/details/118063.shtml
M.Share.Wmoph.cN/Article/details/445412.shtml
M.Share.Wmoph.cN/Article/details/888370.shtml
M.Share.Wmoph.cN/Article/details/611826.shtml
M.Share.Wmoph.cN/Article/details/589057.shtml
M.Share.Wmoph.cN/Article/details/259771.shtml
M.Share.Wmoph.cN/Article/details/809075.shtml
M.Share.Wmoph.cN/Article/details/045865.shtml
M.Share.Wmoph.cN/Article/details/975494.shtml
M.Share.Wmoph.cN/Article/details/589593.shtml
M.Share.Wmoph.cN/Article/details/955550.shtml
M.Share.Wmoph.cN/Article/details/848094.shtml
M.Share.Wmoph.cN/Article/details/730680.shtml
M.Share.Wmoph.cN/Article/details/579463.shtml
M.Share.Wmoph.cN/Article/details/580453.shtml
M.Share.Wmoph.cN/Article/details/926889.shtml
M.Share.Wmoph.cN/Article/details/521858.shtml
M.Share.Wmoph.cN/Article/details/781964.shtml
M.Share.Wmoph.cN/Article/details/028632.shtml
M.Share.Wmoph.cN/Article/details/193953.shtml
M.Share.Wmoph.cN/Article/details/491652.shtml
M.Share.Wmoph.cN/Article/details/199269.shtml
M.Share.Wmoph.cN/Article/details/614453.shtml
M.Share.Wmoph.cN/Article/details/202936.shtml
M.Share.Wmoph.cN/Article/details/899816.shtml
M.Share.Wmoph.cN/Article/details/495465.shtml
M.Share.Wmoph.cN/Article/details/830894.shtml
M.Share.Wmoph.cN/Article/details/072886.shtml
M.Share.Wmoph.cN/Article/details/579033.shtml
M.Share.Wmoph.cN/Article/details/438379.shtml
M.Share.Wmoph.cN/Article/details/763720.shtml
M.Share.Wmoph.cN/Article/details/800119.shtml
M.Share.Wmoph.cN/Article/details/369193.shtml
M.Share.Wmoph.cN/Article/details/917831.shtml
M.Share.Wmoph.cN/Article/details/818975.shtml
M.Share.Wmoph.cN/Article/details/061313.shtml
M.Share.Wmoph.cN/Article/details/320808.shtml
M.Share.Wmoph.cN/Article/details/148259.shtml
M.Share.Wmoph.cN/Article/details/087843.shtml
M.Share.Wmoph.cN/Article/details/135422.shtml
M.Share.Wmoph.cN/Article/details/999927.shtml
M.Share.Wmoph.cN/Article/details/104686.shtml
M.Share.Wmoph.cN/Article/details/856880.shtml
M.Share.Wmoph.cN/Article/details/712186.shtml
M.Share.Wmoph.cN/Article/details/506746.shtml
M.Share.Wmoph.cN/Article/details/835793.shtml
M.Share.Wmoph.cN/Article/details/683159.shtml
M.Share.Wmoph.cN/Article/details/608131.shtml
M.Share.Wmoph.cN/Article/details/266361.shtml
M.Share.Wmoph.cN/Article/details/292514.shtml
M.Share.Wmoph.cN/Article/details/774716.shtml
M.Share.Wmoph.cN/Article/details/547282.shtml
M.Share.Wmoph.cN/Article/details/437865.shtml
M.Share.Wmoph.cN/Article/details/889594.shtml
M.Share.Wmoph.cN/Article/details/611079.shtml
M.Share.Wmoph.cN/Article/details/753716.shtml
M.Share.Wmoph.cN/Article/details/525534.shtml
M.Share.Wmoph.cN/Article/details/700928.shtml
M.Share.Wmoph.cN/Article/details/019288.shtml
M.Share.Wmoph.cN/Article/details/239060.shtml
M.Share.Wmoph.cN/Article/details/471703.shtml
M.Share.Wmoph.cN/Article/details/411882.shtml
M.Share.Wmoph.cN/Article/details/128531.shtml
M.Share.Wmoph.cN/Article/details/920209.shtml
M.Share.Wmoph.cN/Article/details/106713.shtml
M.Share.Wmoph.cN/Article/details/764494.shtml
M.Share.Wmoph.cN/Article/details/625372.shtml
M.Share.Wmoph.cN/Article/details/600121.shtml
M.Share.Wmoph.cN/Article/details/165249.shtml
M.Share.Wmoph.cN/Article/details/413540.shtml
M.Share.Wmoph.cN/Article/details/054416.shtml
M.Share.Wmoph.cN/Article/details/432648.shtml
M.Share.Wmoph.cN/Article/details/692902.shtml
M.Share.Wmoph.cN/Article/details/825707.shtml
M.Share.Wmoph.cN/Article/details/506522.shtml
M.Share.Wmoph.cN/Article/details/975110.shtml
M.Share.Wmoph.cN/Article/details/444563.shtml
M.Share.Wmoph.cN/Article/details/550081.shtml
M.Share.Wmoph.cN/Article/details/186393.shtml
M.Share.Wmoph.cN/Article/details/502925.shtml
M.Share.Wmoph.cN/Article/details/071819.shtml
M.Share.Wmoph.cN/Article/details/821685.shtml
M.Share.Wmoph.cN/Article/details/111223.shtml
M.Share.Wmoph.cN/Article/details/686299.shtml
M.Share.Wmoph.cN/Article/details/441291.shtml
M.Share.Wmoph.cN/Article/details/487484.shtml
M.Share.Wmoph.cN/Article/details/643434.shtml
M.Share.Wmoph.cN/Article/details/815402.shtml
M.Share.Wmoph.cN/Article/details/568480.shtml
M.Share.Wmoph.cN/Article/details/586370.shtml
M.Share.Wmoph.cN/Article/details/087994.shtml
M.Share.Wmoph.cN/Article/details/451496.shtml
M.Share.Wmoph.cN/Article/details/916856.shtml
M.Share.Wmoph.cN/Article/details/551660.shtml
M.Share.Wmoph.cN/Article/details/332341.shtml
M.Share.Wmoph.cN/Article/details/868007.shtml
M.Share.Wmoph.cN/Article/details/249199.shtml
M.Share.Wmoph.cN/Article/details/796147.shtml
M.Share.Wmoph.cN/Article/details/381297.shtml
M.Share.Wmoph.cN/Article/details/080602.shtml
M.Share.Wmoph.cN/Article/details/266150.shtml
M.Share.Wmoph.cN/Article/details/029758.shtml
M.Share.Wmoph.cN/Article/details/262712.shtml
M.Share.Wmoph.cN/Article/details/312521.shtml
M.Share.Wmoph.cN/Article/details/436616.shtml
M.Share.Wmoph.cN/Article/details/819282.shtml
M.Share.Wmoph.cN/Article/details/846200.shtml
M.Share.Wmoph.cN/Article/details/824735.shtml
M.Share.Wmoph.cN/Article/details/980863.shtml
M.Share.Wmoph.cN/Article/details/630084.shtml
M.Share.Wmoph.cN/Article/details/624904.shtml
M.Share.Wmoph.cN/Article/details/519374.shtml
M.Share.Wmoph.cN/Article/details/106516.shtml
M.Share.Wmoph.cN/Article/details/108754.shtml
M.Share.Wmoph.cN/Article/details/951110.shtml
M.Share.Wmoph.cN/Article/details/063293.shtml
M.Share.Wmoph.cN/Article/details/428100.shtml
M.Share.Wmoph.cN/Article/details/563503.shtml
M.Share.Wmoph.cN/Article/details/160414.shtml
M.Share.Wmoph.cN/Article/details/908365.shtml
M.Share.Wmoph.cN/Article/details/189414.shtml
M.Share.Wmoph.cN/Article/details/030674.shtml
M.Share.Wmoph.cN/Article/details/665799.shtml
M.Share.Wmoph.cN/Article/details/252851.shtml
M.Share.Wmoph.cN/Article/details/907583.shtml
M.Share.Wmoph.cN/Article/details/370577.shtml
M.Share.Wmoph.cN/Article/details/460846.shtml
M.Share.Wmoph.cN/Article/details/201763.shtml
M.Share.Wmoph.cN/Article/details/581588.shtml
M.Share.Wmoph.cN/Article/details/034861.shtml
M.Share.Wmoph.cN/Article/details/085989.shtml
M.Share.Wmoph.cN/Article/details/370524.shtml
M.Share.Wmoph.cN/Article/details/452914.shtml
M.Share.Wmoph.cN/Article/details/253139.shtml
M.Share.Wmoph.cN/Article/details/822716.shtml
M.Share.Wmoph.cN/Article/details/412178.shtml
M.Share.Wmoph.cN/Article/details/624518.shtml
M.Share.Wmoph.cN/Article/details/076162.shtml
M.Share.Wmoph.cN/Article/details/223878.shtml
M.Share.Wmoph.cN/Article/details/991394.shtml
M.Share.Wmoph.cN/Article/details/295338.shtml
M.Share.Wmoph.cN/Article/details/308162.shtml
M.Share.Wmoph.cN/Article/details/116834.shtml
M.Share.Wmoph.cN/Article/details/444469.shtml
M.Share.Wmoph.cN/Article/details/362396.shtml
M.Share.Wmoph.cN/Article/details/477832.shtml
M.Share.Wmoph.cN/Article/details/925751.shtml
M.Share.Wmoph.cN/Article/details/516594.shtml
M.Share.Wmoph.cN/Article/details/223271.shtml
M.Share.Wmoph.cN/Article/details/403758.shtml
M.Share.Wmoph.cN/Article/details/554853.shtml
M.Share.Wmoph.cN/Article/details/450706.shtml
M.Share.Wmoph.cN/Article/details/144159.shtml
M.Share.Wmoph.cN/Article/details/708467.shtml
M.Share.Wmoph.cN/Article/details/859938.shtml
M.Share.Wmoph.cN/Article/details/952290.shtml
M.Share.Wmoph.cN/Article/details/265473.shtml
M.Share.Wmoph.cN/Article/details/622766.shtml
M.Share.Wmoph.cN/Article/details/291079.shtml
M.Share.Wmoph.cN/Article/details/182359.shtml
M.Share.Wmoph.cN/Article/details/694513.shtml
M.Share.Wmoph.cN/Article/details/084060.shtml
M.Share.Wmoph.cN/Article/details/299871.shtml
M.Share.Wmoph.cN/Article/details/469895.shtml
M.Share.Wmoph.cN/Article/details/267414.shtml
M.Share.Wmoph.cN/Article/details/781348.shtml
M.Share.Wmoph.cN/Article/details/366047.shtml
M.Share.Wmoph.cN/Article/details/429525.shtml
M.Share.Wmoph.cN/Article/details/005527.shtml
M.Share.Wmoph.cN/Article/details/999280.shtml
M.Share.Wmoph.cN/Article/details/685288.shtml
M.Share.Wmoph.cN/Article/details/240385.shtml
M.Share.Wmoph.cN/Article/details/335368.shtml
M.Share.Wmoph.cN/Article/details/774200.shtml
M.Share.Wmoph.cN/Article/details/468132.shtml
M.Share.Wmoph.cN/Article/details/453703.shtml
M.Share.Wmoph.cN/Article/details/001785.shtml
M.Share.Wmoph.cN/Article/details/664488.shtml
M.Share.Wmoph.cN/Article/details/518624.shtml
M.Share.Wmoph.cN/Article/details/448928.shtml
M.Share.Wmoph.cN/Article/details/740595.shtml
M.Share.Wmoph.cN/Article/details/197407.shtml
M.Share.Wmoph.cN/Article/details/953898.shtml
M.Share.Wmoph.cN/Article/details/938189.shtml
M.Share.Wmoph.cN/Article/details/742536.shtml
M.Share.Wmoph.cN/Article/details/670508.shtml
M.Share.Wmoph.cN/Article/details/204187.shtml
M.Share.Wmoph.cN/Article/details/100164.shtml
M.Share.Wmoph.cN/Article/details/065477.shtml
M.Share.Wmoph.cN/Article/details/813352.shtml
M.Share.Wmoph.cN/Article/details/724578.shtml
M.Share.Wmoph.cN/Article/details/233633.shtml
M.Share.Wmoph.cN/Article/details/458904.shtml
M.Share.Wmoph.cN/Article/details/446468.shtml
M.Share.Wmoph.cN/Article/details/013882.shtml
M.Share.Wmoph.cN/Article/details/442155.shtml
M.Share.Wmoph.cN/Article/details/222768.shtml
M.Share.Wmoph.cN/Article/details/657937.shtml
M.Share.Wmoph.cN/Article/details/708181.shtml
M.Share.Wmoph.cN/Article/details/115703.shtml
M.Share.Wmoph.cN/Article/details/084963.shtml
M.Share.Wmoph.cN/Article/details/281993.shtml
M.Share.Wmoph.cN/Article/details/771058.shtml
M.Share.Wmoph.cN/Article/details/689736.shtml
M.Share.Wmoph.cN/Article/details/530273.shtml
M.Share.Wmoph.cN/Article/details/364285.shtml
M.Share.Wmoph.cN/Article/details/176443.shtml
M.Share.Wmoph.cN/Article/details/800940.shtml
M.Share.Wmoph.cN/Article/details/858081.shtml
M.Share.Wmoph.cN/Article/details/629870.shtml
M.Share.Wmoph.cN/Article/details/532830.shtml
M.Share.Wmoph.cN/Article/details/973616.shtml
M.Share.Wmoph.cN/Article/details/016720.shtml
M.Share.Wmoph.cN/Article/details/305629.shtml
M.Share.Wmoph.cN/Article/details/806497.shtml
M.Share.Wmoph.cN/Article/details/527181.shtml
M.Share.Wmoph.cN/Article/details/785433.shtml
M.Share.Wmoph.cN/Article/details/493507.shtml
M.Share.Wmoph.cN/Article/details/732180.shtml
M.Share.Wmoph.cN/Article/details/384833.shtml
M.Share.Wmoph.cN/Article/details/814575.shtml
M.Share.Wmoph.cN/Article/details/305539.shtml
M.Share.Wmoph.cN/Article/details/218576.shtml
M.Share.Wmoph.cN/Article/details/266717.shtml
M.Share.Wmoph.cN/Article/details/430194.shtml
M.Share.Wmoph.cN/Article/details/031530.shtml
M.Share.Wmoph.cN/Article/details/138075.shtml
M.Share.Wmoph.cN/Article/details/065767.shtml
M.Share.Wmoph.cN/Article/details/872795.shtml
M.Share.Wmoph.cN/Article/details/719517.shtml
M.Share.Wmoph.cN/Article/details/547804.shtml
M.Share.Wmoph.cN/Article/details/754064.shtml
M.Share.Wmoph.cN/Article/details/521474.shtml
M.Share.Wmoph.cN/Article/details/358463.shtml
M.Share.Wmoph.cN/Article/details/495864.shtml
M.Share.Wmoph.cN/Article/details/953402.shtml
M.Share.Wmoph.cN/Article/details/520970.shtml
M.Share.Wmoph.cN/Article/details/223653.shtml
M.Share.Wmoph.cN/Article/details/107471.shtml
M.Share.Wmoph.cN/Article/details/727386.shtml
M.Share.Wmoph.cN/Article/details/506905.shtml
M.Share.Wmoph.cN/Article/details/881964.shtml
M.Share.Wmoph.cN/Article/details/314231.shtml
M.Share.Wmoph.cN/Article/details/891974.shtml
M.Share.Wmoph.cN/Article/details/577356.shtml
M.Share.Wmoph.cN/Article/details/964574.shtml
M.Share.Wmoph.cN/Article/details/494465.shtml
M.Share.Wmoph.cN/Article/details/986385.shtml
M.Share.Wmoph.cN/Article/details/498413.shtml
M.Share.Wmoph.cN/Article/details/090321.shtml
M.Share.Wmoph.cN/Article/details/936983.shtml
M.Share.Wmoph.cN/Article/details/445192.shtml
M.Share.Wmoph.cN/Article/details/320615.shtml
M.Share.Wmoph.cN/Article/details/608469.shtml
M.Share.Wmoph.cN/Article/details/583977.shtml
M.Share.Wmoph.cN/Article/details/516574.shtml
M.Share.Wmoph.cN/Article/details/942137.shtml
M.Share.Wmoph.cN/Article/details/113630.shtml
M.Share.Wmoph.cN/Article/details/410169.shtml
M.Share.Wmoph.cN/Article/details/199524.shtml
M.Share.Wmoph.cN/Article/details/452750.shtml
M.Share.Wmoph.cN/Article/details/420477.shtml
M.Share.Wmoph.cN/Article/details/400591.shtml
M.Share.Wmoph.cN/Article/details/393434.shtml
M.Share.Wmoph.cN/Article/details/605709.shtml
M.Share.Wmoph.cN/Article/details/835101.shtml
M.Share.Wmoph.cN/Article/details/847452.shtml
M.Share.Wmoph.cN/Article/details/196003.shtml
M.Share.Wmoph.cN/Article/details/291494.shtml
M.Share.Wmoph.cN/Article/details/999744.shtml
M.Share.Wmoph.cN/Article/details/081971.shtml
M.Share.Wmoph.cN/Article/details/224079.shtml
M.Share.Wmoph.cN/Article/details/094811.shtml
M.Share.Wmoph.cN/Article/details/713086.shtml
M.Share.Wmoph.cN/Article/details/715551.shtml
M.Share.Wmoph.cN/Article/details/140411.shtml
M.Share.Wmoph.cN/Article/details/797483.shtml
M.Share.Wmoph.cN/Article/details/338861.shtml
M.Share.Wmoph.cN/Article/details/379911.shtml
M.Share.Wmoph.cN/Article/details/448992.shtml
M.Share.Wmoph.cN/Article/details/380155.shtml
M.Share.Wmoph.cN/Article/details/807851.shtml
M.Share.Wmoph.cN/Article/details/465363.shtml
M.Share.Wmoph.cN/Article/details/577049.shtml
M.Share.Wmoph.cN/Article/details/452686.shtml
M.Share.Wmoph.cN/Article/details/557115.shtml
M.Share.Wmoph.cN/Article/details/972110.shtml
M.Share.Wmoph.cN/Article/details/250011.shtml
M.Share.Wmoph.cN/Article/details/848352.shtml
M.Share.Wmoph.cN/Article/details/283577.shtml
M.Share.Wmoph.cN/Article/details/244427.shtml
M.Share.Wmoph.cN/Article/details/069548.shtml
M.Share.Wmoph.cN/Article/details/493319.shtml
M.Share.Wmoph.cN/Article/details/345553.shtml
M.Share.Wmoph.cN/Article/details/156188.shtml
M.Share.Wmoph.cN/Article/details/723382.shtml
M.Share.Wmoph.cN/Article/details/278112.shtml
M.Share.Wmoph.cN/Article/details/874109.shtml
M.Share.Wmoph.cN/Article/details/869730.shtml
M.Share.Wmoph.cN/Article/details/811811.shtml
M.Share.Wmoph.cN/Article/details/827086.shtml
M.Share.Wmoph.cN/Article/details/071926.shtml
M.Share.Wmoph.cN/Article/details/800746.shtml
M.Share.Wmoph.cN/Article/details/883760.shtml
M.Share.Wmoph.cN/Article/details/741987.shtml
M.Share.Wmoph.cN/Article/details/226210.shtml
M.Share.Wmoph.cN/Article/details/580756.shtml
M.Share.Wmoph.cN/Article/details/012586.shtml
M.Share.Wmoph.cN/Article/details/503506.shtml
M.Share.Wmoph.cN/Article/details/646799.shtml
M.Share.Wmoph.cN/Article/details/806410.shtml
M.Share.Wmoph.cN/Article/details/140105.shtml
M.Share.Wmoph.cN/Article/details/311902.shtml
M.Share.Wmoph.cN/Article/details/889869.shtml
M.Share.Wmoph.cN/Article/details/075965.shtml
M.Share.Wmoph.cN/Article/details/489887.shtml
M.Share.Wmoph.cN/Article/details/240224.shtml
M.Share.Wmoph.cN/Article/details/239435.shtml
M.Share.Wmoph.cN/Article/details/766650.shtml
M.Share.Wmoph.cN/Article/details/229958.shtml
M.Share.Wmoph.cN/Article/details/969166.shtml
M.Share.Wmoph.cN/Article/details/627495.shtml
M.Share.Wmoph.cN/Article/details/140161.shtml
M.Share.Wmoph.cN/Article/details/667630.shtml
M.Share.Wmoph.cN/Article/details/909686.shtml
M.Share.Wmoph.cN/Article/details/862397.shtml
M.Share.Wmoph.cN/Article/details/125647.shtml
M.Share.Wmoph.cN/Article/details/331290.shtml
M.Share.Wmoph.cN/Article/details/399691.shtml
M.Share.Wmoph.cN/Article/details/756817.shtml
M.Share.Wmoph.cN/Article/details/541248.shtml
M.Share.Wmoph.cN/Article/details/243479.shtml
M.Share.Wmoph.cN/Article/details/823796.shtml