当前位置: 首页 > news >正文

网站建设 博采百度广告费一般多少钱

网站建设 博采,百度广告费一般多少钱,魔兽wordpress,建一个wordpress网站成本我又行了#xff01;#x1f923; 求解的 位置 可能会有 变动#xff0c;根据求得的A填写相应值即可。注意看题目。 coursera链接 文章目录 第1题 Cartesian space求解 题1-3 的 Python 代码 第2题第3题第4题 Joint space求解 题4-6 的 Python 代码 第5题第6题其它可参考代…我又行了 求解的 位置 可能会有 变动根据求得的A填写相应值即可。注意看题目。 coursera链接 文章目录 第1题 Cartesian space求解 题1-3 的 Python 代码 第2题第3题第4题 Joint space求解 题4-6 的 Python 代码 第5题第6题其它可参考代码 Python 笛卡尔空间 第1题 Cartesian space 求解 题1-3 的 Python 代码 import numpy as np Δt1 2 - 0 Δt2 4 - 2 Δt3 9 - 4T [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[1, Δt1, Δt1**2, Δt1**3, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, Δt2, Δt2**2, Δt2**3, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, Δt3, Δt3**2, Δt3**3],[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2*Δt3, 3*Δt3**2],[0, 1, 2*Δt1, 3*Δt1**2, 0, -1, 0, 0, 0, 0, 0, 0],[0, 0, 2, 6*Δt1, 0, 0, -2, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 1, 2*Δt2, 3*Δt2**2, 0, -1, 0, 0],[0, 0, 0, 0, 0, 0, 2, 6*Δt2, 0, 0, -2, 0] ] ## 需要仔细 检查 很容易 打错def getA(θ):θ np.array(θ)A np.dot(np.linalg.inv(T), θ.T)A np.around(A, decimals 2) ## 结果 保留 到 小数点 后 两位return A ## X 的导数 为 速度 初始和末尾的速度均为0 X [-4, -5, -5, 2, 2, 2, 0, 0, 0, 0, 0, 0] print(X_A) print(getA(X))## Y 的导数 为 速度 初始和末尾的速度均为0 Y [0, 5, 5, 3, 3, -3, 0, 0, 0, 0, 0, 0] print(\nY_A) print(getA(Y))## θ θ [120, 45, 45, 30, 30, 0, 0, 0, 0, 0, 0, 0] print(\nθ_A) print(getA(θ))矩阵合并版本 import numpy as np np.set_printoptions(suppress True)Δt1 2 - 0 Δt2 4 - 2 Δt3 9 - 4T [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[1, Δt1, Δt1**2, Δt1**3, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, Δt2, Δt2**2, Δt2**3, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, Δt3, Δt3**2, Δt3**3],[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2*Δt3, 3*Δt3**2],[0, 1, 2*Δt1, 3*Δt1**2, 0, -1, 0, 0, 0, 0, 0, 0],[0, 0, 2, 6*Δt1, 0, 0, -2, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 1, 2*Δt2, 3*Δt2**2, 0, -1, 0, 0],[0, 0, 0, 0, 0, 0, 2, 6*Δt2, 0, 0, -2, 0] ]def getA(Θ): ## 这里 直接使用矩阵 A np.dot(np.linalg.inv(T), Θ)A np.around(A, decimals 2) ## 结果 保留 到 小数点 后 两位return A Θ [[-4, 0, 120],[-5, 5, 45],[-5, 5, 45],[2, 3, 30],[2, 3, 30],[2, -3, 0],[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]] print(A) print(getA(Θ))第1题答案 -5//1.44//2.19//-0.58 第2题 第2题答案 5//1.67//-2.08//0.37 第3题 第3题答案 120//0//-39.18//10.21 第4题 Joint space 根据这个需要求解 每个 位姿下的 (θ1θ2θ3) 第4周的PPT 求解 题4-6 的 Python 代码 ### 已知 (x, y, θ)求解 (θ1, θ2, θ3) import numpy as np import math ## atan2(y, x, /)### 获取 等号左边的 [θ1, θ2, θ3] 矩阵 l1 5 l2 3 l3 1### 方法一 通过几何法 求解 def RRR_geometric(x, y, θ): θ2 np.arccos((x**2 y**2 - l1**2 - l2**2)/(2*l1*l2))ψ np.arccos((l2**2 - x**2 - y**2 - l1**2)/(-2 * l1 * np.sqrt(x**2 y**2))) if θ2 0:θ1 math.atan2(y, x) ψ ## np.arctan2(y,x) 也可else:θ1 math.atan2(y, x) - ψθ np.pi * θ / 180 ## 角度 换 弧度θ3 θ - θ1 - θ2return [θ1, θ2, θ3]### 方法二 代数解 def RRR_algebraic(x, y, θ):θ2 np.arccos((x**2 y**2 - l1**2 - l2**2)/(2*l1*l2))k1 l1 l2 * np.cos(θ2)k2 l2 * np.sin(θ2)θ1 math.atan2(y, x) - math.atan2(k2, k1) ## np.arctan2(y,x) 也可θ np.pi * θ / 180 ## 角度 换 弧度θ3 θ - θ1 - θ2return [θ1, θ2, θ3]x0, y0, θ0 -4, 0, 120 x1, y1, θ1 -5, 5, 45 x2, y2, θ2 2, 3, 30 xf, yf, θf 2, -3, 0## 选择其中一种方法计算 即可 # 法1几何法 代入 # θ_3col [RRR_geometric(x0, y0, θ0), # RRR_geometric(x1, y1, θ1),RRR_geometric(x1, y1, θ1), # RRR_geometric(x2, y2, θ2),RRR_geometric(x2, y2, θ2), # RRR_geometric(xf, yf, θf), # [0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0]] ## 注意 返回 结果那样这里就不用中括号了 ## 法2 解析解 代入 θ_3col [RRR_algebraic(x0, y0, θ0),RRR_algebraic(x1, y1, θ1),RRR_algebraic(x1, y1, θ1),RRR_algebraic(x2, y2, θ2),RRR_algebraic(x2, y2, θ2),RRR_algebraic(xf, yf, θf),[0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0],[0, 0, 0]] # print(θ_3col) ####################################################### #### 求解 A Δt1 2 - 0 Δt2 4 - 2 Δt3 9 - 4T [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[1, Δt1, Δt1**2, Δt1**3, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 1, Δt2, Δt2**2, Δt2**3, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 1, Δt3, Δt3**2, Δt3**3],[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2*Δt3, 3*Δt3**2],[0, 1, 2*Δt1, 3*Δt1**2, 0, -1, 0, 0, 0, 0, 0, 0],[0, 0, 2, 6*Δt1, 0, 0, -2, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 1, 2*Δt2, 3*Δt2**2, 0, -1, 0, 0],[0, 0, 0, 0, 0, 0, 2, 6*Δt2, 0, 0, -2, 0] ]def getA(θ): ## 这里 直接使用矩阵 A np.dot(np.linalg.inv(T), θ)A np.around(A, decimals 2) ## 结果 保留 到 小数点 后 两位return A print(θ_A) print(getA(θ_3col)) 第4题答案 1.99//-0.6//-0.22//0.05 第5题 第5题答案 2.21//0//-0.83//0.27 第6题 第6题答案 -2.62//0//0.23//-0.07 其它可参考代码 Python github链接
http://www.hkea.cn/news/14357899/

相关文章:

  • 网站建设个人网站推荐好的简历制作网站
  • 哈尔滨网站建设的公司哪家好深圳网站设计南京
  • 怎么建设网站广饶县住房和城乡建设局网站
  • 神州网站制作html怎么写
  • 商业网站是什么青岛网站商城设计
  • 怎么建设自己的论坛网站马鞍山天立建设网站
  • 网站框架地图怎么自己制作图片
  • 17zwd一起做业网站建设部网站首页
  • 大庆城市投资建设网站进广州最新政策
  • 科技企业网站制作最有创意的广告语30条
  • 注册好了域名怎么开始做网站网站改备案
  • 什么网站能免费做推广最大郑州网站建设公司
  • 如何上传到网站根目录闵行网站制作设计公司
  • 做网站技术人员百度关键词价格计算
  • 新办公司网上核名在哪个网站做安平谁做网站好
  • 古装摄影网站建设方案深圳互助资金盘网站开发
  • 网站支付怎么做的昆明做凡科网站
  • 哪个网站有免费的模板什么是主页
  • 合作制作网站避免视觉效果混淆。
  • 移动网站不备案吗html企业网站模板免费下载
  • 学院网站建设 好处网站建设丶金手指下拉12
  • 啤酒网站建设莱芜都市网征婚
  • .net 网站开发工程师网页设计流程要怎么写
  • 绿色食品网站建设论文seo网络推广公司报价
  • 网站点击率代码如何做购物返佣金网站
  • 后台网站模板htmlwordpress不间断音乐
  • 成都科技网站建设咨询注册网站账号审核不通过无法登陆怎么办
  • 辽宁专业网站建设大全wordpress只显示首页
  • 做信息网站要注册什么类型公司广告投放公司
  • 手机怎么做网站免费的黑色大气网站源码