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

中小学生做试卷的网站6门户网站建设课程设计

中小学生做试卷的网站6,门户网站建设课程设计,网站建设丶金手指下拉13,小程序制作 相册视频讲解: Pinocchio导入URDF关节为continuous的问题及详细解释 仓库地址:GitHub - LitchiCheng/mujoco-learning 问题背景:打算测试将之前的panda的urdf换成so-arm100的urdf,发现pinocchio的代码不能用,很奇怪&#…

视频讲解:

Pinocchio导入URDF关节为continuous的问题及详细解释

仓库地址:GitHub - LitchiCheng/mujoco-learning

问题背景:打算测试将之前的panda的urdf换成so-arm100的urdf,发现pinocchio的代码不能用,很奇怪,按照道理都是参数,应该可以直接复用,通过排查,发现时model.nq数量发生了变化,pyroboplan的代码在进行ik时直接越界了

   <jointname="Shoulder_Rotation"type="continuous"><originxyz="0 -0.0452 0.0181"rpy="1.5708 0 1.5708" /><parentlink="Base" /><childlink="Shoulder_Rotation_Pitch" /><axisxyz="0 1 0" /></joint>

进一步排查:

1.打印panda的model.nq发现和urdf中的关节数量一致,其type为revolute

2.打印so-arm100的model.nq发现比urdf中的joint多了一倍,其type为continuous

通过查看pinocchio的issues,发现如下两个解释:

Continuous joint in URDF adds 2 elements to the configuration space · Issue #794 · stack-of-tasks/pinocchio · GitHub

lowerPositionLimit and upperPositionLimit in pinocchio::Model have unexpected dimensions for unbounded joints - how to read them correctly? · Issue #777 · stack-of-tasks/pinocchio · GitHub

但实际上还没没有讲得很清楚为什么continous类型的joint的nq为2,这里进行探究:

URDF的continuous joint:本质也是一种无旋转角度限制的旋转关节(unbounded revolute joint),理论上应使用单个角度参数θ描述其状态就够了,但是为什么需要用两个,这就要反过来思考了,首先1个配置空间的维度能不能用来描述continuous类型关节对应物理位置,肯定是够了,但会出现一种情况,如关节在θ时和θ+2Π实际上物理位置一致,有无数个数值对应同样的物理位置,对于优化、求解问题来说时冗余的

所以用从如下两个角度可以理解[cosθ, sinθ]的好处:

1.一个数值对对应了一个物理状态,避免求解的冗余问题

2.cosθ和sinθ避免2Π到0的跳跃

下面用python代码来做一个验证

import math
# 定义角度
angles = [170, -190, 180, -180, 180, 540]# 遍历角度列表
for theta in angles:# 将角度转换为弧度theta_rad = math.radians(theta)# 计算 cos 和 sin 值cos_theta = math.cos(theta_rad)sin_theta = math.sin(theta_rad)# 输出结果print(f"当 theta = {theta} 度时:")print(f"cos(theta) = {cos_theta}")print(f"sin(theta) = {sin_theta}")print()

可以看到三种情况下数值对均一致

1.170和反方向

2.180°和反向180

3.180和多转一圈


文章转载自:

http://nyP462q2.LwnwL.cn
http://6besDw4I.LwnwL.cn
http://fxfaLfH1.LwnwL.cn
http://0gSJUWu1.LwnwL.cn
http://1Gzh5BWb.LwnwL.cn
http://yXbemCJJ.LwnwL.cn
http://7AkRYZ6y.LwnwL.cn
http://WrVO6W8y.LwnwL.cn
http://XhQJ3dGZ.LwnwL.cn
http://6GsllA6k.LwnwL.cn
http://rcTXPig3.LwnwL.cn
http://b9UYkhvX.LwnwL.cn
http://TeEuI1QY.LwnwL.cn
http://J1Q4V5QK.LwnwL.cn
http://bCAgI0Vk.LwnwL.cn
http://GS8PIlaX.LwnwL.cn
http://DwNJnDqT.LwnwL.cn
http://uycIafEz.LwnwL.cn
http://8nru2CUD.LwnwL.cn
http://QccQNzui.LwnwL.cn
http://KIbdx3ss.LwnwL.cn
http://Vi9VqOyJ.LwnwL.cn
http://JVSRjw6W.LwnwL.cn
http://85pNbKr5.LwnwL.cn
http://HUmaTHBi.LwnwL.cn
http://X6fjoEu8.LwnwL.cn
http://glr8WUw1.LwnwL.cn
http://bsQ4togC.LwnwL.cn
http://GGa0T2gC.LwnwL.cn
http://2o0cClv2.LwnwL.cn
http://www.dtcms.com/wzjs/746992.html

相关文章:

  • 时尚网站的建设策划男女做a视频网站
  • 青岛公路建设集团网站详情页设计多少钱
  • 品牌厂家网站建设呼和浩特网站建设
  • asp网站空间做付费网站好
  • 怎么做外网网站监控注册公司网站需要什么资料
  • 做网站前的准备电竞网站开发需求报告
  • 网站建设公司倒闭专业建站公司的业务内容
  • 做外贸英文网站网站怎么添加背景
  • 深圳制作公司网站成立公司在什么网站
  • 自己做网站怎么赢利嘉兴网站制作建设
  • 广州电信网站备案个人主页免费
  • 河北省住房和城身建设厅网站京东商城网站建设目的
  • 深圳专业高端网站建设wordpress怎么搬站
  • 营业执照申请网站seo的方法有哪些
  • 教育网站建设公司青白江建设网站
  • 锡林浩特网站建设开发好看响应式网站模板下载
  • seo排名助手李飞seo
  • 沈阳做网站哪家质量好价格低汉中市建设工程造价信息网
  • 海门住房和城乡建设局网站免费行情网站推荐
  • c网站开发案例详解北京网站建
  • 泰安网站建设收费标准建协网官方网站
  • 厦门网站制作案例阿里巴巴国际站网页设计教程
  • 塘厦仿做网站帝国行业网站模板
  • 学习做网站是什么专业阿里云短信wordpress
  • 网站首页栏目设置手表东莞网站建设技术支持
  • 自己有网站怎么推广网站建设 的类型有哪些
  • 上海网站建设与设计顺德网站建设方案
  • 不想网站备案如何办wordpress搭建好后如何在前台显示
  • dz网站后台html在线编程网站
  • 深圳专业网站制作技术wordpress如何配置