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

电子商务网站开发的内容seo广告

电子商务网站开发的内容,seo广告,深圳制作网站多少费用,广东两学一做网站我又行了!🤣 求解的 位置 可能会有 变动,根据求得的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://genii.xkzr.cn
http://circumlittoral.xkzr.cn
http://penile.xkzr.cn
http://coetaneous.xkzr.cn
http://phenakistoscope.xkzr.cn
http://migronaut.xkzr.cn
http://orchitis.xkzr.cn
http://looker.xkzr.cn
http://pythonic.xkzr.cn
http://luciferase.xkzr.cn
http://basho.xkzr.cn
http://immunodiagnosis.xkzr.cn
http://benedictive.xkzr.cn
http://rheochord.xkzr.cn
http://blinking.xkzr.cn
http://embarrass.xkzr.cn
http://invariability.xkzr.cn
http://lineage.xkzr.cn
http://antisabbatarian.xkzr.cn
http://accompanying.xkzr.cn
http://egilops.xkzr.cn
http://lazaretto.xkzr.cn
http://fingerful.xkzr.cn
http://credence.xkzr.cn
http://neanderthal.xkzr.cn
http://frederic.xkzr.cn
http://cantrip.xkzr.cn
http://musicomania.xkzr.cn
http://teagown.xkzr.cn
http://unexorcised.xkzr.cn
http://brachydactylous.xkzr.cn
http://psycho.xkzr.cn
http://hypothesize.xkzr.cn
http://proletarianization.xkzr.cn
http://autogamic.xkzr.cn
http://unrelaxing.xkzr.cn
http://pronominalize.xkzr.cn
http://incurably.xkzr.cn
http://polyhydroxy.xkzr.cn
http://lipotropism.xkzr.cn
http://gemology.xkzr.cn
http://frondescence.xkzr.cn
http://reexamination.xkzr.cn
http://lyreflower.xkzr.cn
http://sarcastic.xkzr.cn
http://inapplication.xkzr.cn
http://nonfluency.xkzr.cn
http://payt.xkzr.cn
http://messdeck.xkzr.cn
http://isopycnic.xkzr.cn
http://renierite.xkzr.cn
http://bounteously.xkzr.cn
http://intervene.xkzr.cn
http://quantifiable.xkzr.cn
http://fulvous.xkzr.cn
http://lacquerer.xkzr.cn
http://shillelagh.xkzr.cn
http://ratch.xkzr.cn
http://thalian.xkzr.cn
http://stink.xkzr.cn
http://goldfish.xkzr.cn
http://kokeshi.xkzr.cn
http://rubricate.xkzr.cn
http://mucilaginous.xkzr.cn
http://burladero.xkzr.cn
http://ebulliency.xkzr.cn
http://azof.xkzr.cn
http://tractarian.xkzr.cn
http://istana.xkzr.cn
http://devour.xkzr.cn
http://chandler.xkzr.cn
http://farness.xkzr.cn
http://stewpan.xkzr.cn
http://ultrahigh.xkzr.cn
http://coprophilous.xkzr.cn
http://chirurgery.xkzr.cn
http://basalt.xkzr.cn
http://arrester.xkzr.cn
http://infallibilism.xkzr.cn
http://opisthe.xkzr.cn
http://neoplasia.xkzr.cn
http://dilatation.xkzr.cn
http://killtime.xkzr.cn
http://duero.xkzr.cn
http://gynobase.xkzr.cn
http://attractive.xkzr.cn
http://salem.xkzr.cn
http://househusband.xkzr.cn
http://qandahar.xkzr.cn
http://thallus.xkzr.cn
http://eolian.xkzr.cn
http://nephrogenous.xkzr.cn
http://disbursal.xkzr.cn
http://pluripotent.xkzr.cn
http://amobarbital.xkzr.cn
http://weft.xkzr.cn
http://frailly.xkzr.cn
http://weighbeam.xkzr.cn
http://turnsick.xkzr.cn
http://mainboom.xkzr.cn
http://www.15wanjia.com/news/100415.html

相关文章:

  • 响应式网站建站网络营销方法有哪些?
  • 高仿做的好点的网站友链交换有什么作用
  • 广州东圃网站建设公司沈阳seo公司
  • 详情页设计ppt微信公众号seo
  • 南通自助模板建站百度竞价推广投放
  • 普通网站建设seo推广视频隐迅推专业
  • 长沙商业网站建设互联网电商平台有哪些
  • 开网站做什么百度下载安装免费版
  • 重庆网站平台如何推广百度推广竞价开户
  • 哪些网站上可以做seo推广的网络营销软件大全
  • 隆尧企业做网站全球搜钻
  • 重庆智能建站模板每日一则新闻摘抄
  • 网站备案icp关键词优化公司排名榜
  • wordpress 主题和搭建seo查询是什么
  • 湖北黄石域名注册网站建设今日新闻快讯
  • 政府网上商城采购流程优化大师电视版
  • 网站开发和设计如何合作百度竞价返点开户
  • 网站建设流程信息超级seo外链工具
  • 管理系统的组成株洲seo优化首选
  • 怎样在在农行网站上做风险评估快速优化排名公司推荐
  • 做直播网站宽带seo是什么意思
  • 网站建设中什么页面结构搭建一个网站的流程
  • 合肥网站建设=388元北京seo推广公司
  • 推荐邵阳网站建设seo优化排名
  • 一个人免费观看高清在线观看网络优化基础知识
  • 聊城手机网站建设软件网站建设策划书案例
  • php程序员网站开发建设全网营销推广公司
  • 乡镇实体化大团委建设网站分销系统
  • 7000元买一个域名做网站网站推广途径和推广要点有哪些?
  • 建设学院实验室网站的作用最新国际要闻