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

网络公司网站建设方案书wordpress后台无法变中文

网络公司网站建设方案书,wordpress后台无法变中文,wordpress自定义固定连接,用织梦模板做网站视频讲解: Pinocchio中data、model接口介绍 今天介绍下 pinocchio 中 data、model 常用接口 model 用于存储机器人模型的静态信息,如关节结构、惯性参数等 data 用于存储机器人在仿真过程中的动态信息,如关节位姿、雅可比矩阵、惯性矩阵等 …

视频讲解:

Pinocchio中data、model接口介绍

今天介绍下 pinocchio 中 data、model 常用接口

model 用于存储机器人模型的静态信息,如关节结构、惯性参数等

data 用于存储机器人在仿真过程中的动态信息,如关节位姿、雅可比矩阵、惯性矩阵等

model.nq 关节数量

model.nv 速度向量的维度

print(f"Number of configuration variables (nq): {model.nq}")
print(f"Number of velocity variables (nv): {model.nv}")

model.names 包含所有关节名称的列表

for i, joint in enumerate(model.joints):print(f"Joint {i}:")print(f"  Name: {model.names[i]}")

lowerPositionLimit 关节位置的下限

upperPositionLimit 上限,用于限制关节的运动范围

lower_limits = model.lowerPositionLimit
upper_limits = model.upperPositionLimit
print("Lower limits:", lower_limits)
print("Upper limits:", upper_limits)

model.inertias 每个刚体的惯性参数,如质量、质心位置和惯性张量

for i, inertia in enumerate(model.inertias):print(f"Inertia {i}:")print(f"  Mass: {inertia.mass}")print(f"  Center of Mass: {inertia.lever}")print(f"  Inertia Matrix:\n{inertia.inertia}")

model.jointPlacements 每个关节相对于其父关节的初始位置和姿态

for placement in model.jointPlacements:print(f"Translation: {placement.translation}")print(f"Rotation Matrix:\n{placement.rotation}")

以panda机械臂为例,完整代码

import pinocchio as pin
import numpy as np# 加载 URDF 文件
urdf_path = "/home/dar/MuJoCoBin/mujoco-learning/franka_panda_description/robots/panda_arm.urdf"
model = pin.buildModelFromUrdf(urdf_path)
data = model.createData()# 获取关节限位
lower_limits = model.lowerPositionLimit
upper_limits = model.upperPositionLimit
# 打印关节限位
print("Lower limits:", lower_limits)
print("Upper limits:", upper_limits)# 打印配置向量和速度向量的维度
print(f"Number of configuration variables (nq): {model.nq}")
print(f"Number of velocity variables (nv): {model.nv}")# 计算正运动学
q = np.zeros(model.nq)  # 初始关节配置
data = model.createData()
pin.framesForwardKinematics(model, data, q)# 打印 joints 信息
for i, joint in enumerate(model.joints):print(f"Joint {i}:")print(f"  Name: {model.names[i]}")# 打印 jointPlacements 信息
print("\nJoint Placements Information:")
for i, placement in enumerate(model.jointPlacements):print(f"Joint Placement {i}:")print(f"  Translation: {placement.translation}")print(f"  Rotation Matrix:\n{placement.rotation}")# 打印 inertias 信息
print("\nInertias Information:")
for i, inertia in enumerate(model.inertias):print(f"Inertia {i}:")print(f"  Mass: {inertia.mass}")print(f"  Center of Mass: {inertia.lever}")print(f"  Inertia Matrix:\n{inertia.inertia}")

结果输出

Lower limits: [-2.8973 -1.7628 -2.8973 -3.0718 -2.8973 -0.0175 -2.8973]
Upper limits: [ 2.8973  1.7628  2.8973 -0.0698  2.8973  3.7525  2.8973]
Number of configuration variables (nq): 7
Number of velocity variables (nv): 7
Joint 0:Name: universe
Joint 1:Name: panda_joint1
Joint 2:Name: panda_joint2
Joint 3:Name: panda_joint3
Joint 4:Name: panda_joint4
Joint 5:Name: panda_joint5
Joint 6:Name: panda_joint6
Joint 7:Name: panda_joint7Joint Placements Information:
Joint Placement 0:Translation: [0. 0. 0.]Rotation Matrix:
[[1. 0. 0.][0. 1. 0.][0. 0. 1.]]
Joint Placement 1:Translation: [0.    0.    0.333]Rotation Matrix:
[[1. 0. 0.][0. 1. 0.][0. 0. 1.]]
Joint Placement 2:Translation: [0. 0. 0.]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12  1.00000000e+00][ 0.00000000e+00 -1.00000000e+00  4.89663865e-12]]
Joint Placement 3:Translation: [ 0.    -0.316  0.   ]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12 -1.00000000e+00][ 0.00000000e+00  1.00000000e+00  4.89663865e-12]]
Joint Placement 4:Translation: [0.0825 0.     0.    ]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12 -1.00000000e+00][ 0.00000000e+00  1.00000000e+00  4.89663865e-12]]
Joint Placement 5:Translation: [-0.0825  0.384   0.    ]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12  1.00000000e+00][ 0.00000000e+00 -1.00000000e+00  4.89663865e-12]]
Joint Placement 6:Translation: [0. 0. 0.]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12 -1.00000000e+00][ 0.00000000e+00  1.00000000e+00  4.89663865e-12]]
Joint Placement 7:Translation: [0.088 0.    0.   ]Rotation Matrix:
[[ 1.00000000e+00  0.00000000e+00  0.00000000e+00][ 0.00000000e+00  4.89663865e-12 -1.00000000e+00][ 0.00000000e+00  1.00000000e+00  4.89663865e-12]]Inertias Information:
Inertia 0:Mass: 0.0Center of Mass: [0. 0. 0.]Inertia Matrix:
[[0. 0. 0.][0. 0. 0.][0. 0. 0.]]
Inertia 1:Mass: 4.970684Center of Mass: [ 0.003875  0.002081 -0.175   ]Inertia Matrix:
[[ 7.0337e-01 -1.3900e-04  6.7720e-03][-1.3900e-04  7.0661e-01  1.9169e-02][ 6.7720e-03  1.9169e-02  9.1170e-03]]
Inertia 2:Mass: 0.646926Center of Mass: [-0.003141 -0.02872   0.003495]Inertia Matrix:
[[ 0.007962 -0.003925  0.010254][-0.003925  0.02811   0.000704][ 0.010254  0.000704  0.025995]]
Inertia 3:Mass: 3.228604Center of Mass: [ 0.027518  0.039252 -0.066502]Inertia Matrix:
[[ 0.037242 -0.004761 -0.011396][-0.004761  0.036155 -0.012805][-0.011396 -0.012805  0.01083 ]]
Inertia 4:Mass: 3.587895Center of Mass: [-0.05317   0.104419  0.027454]Inertia Matrix:
[[ 0.025853  0.007796 -0.001332][ 0.007796  0.019552  0.008641][-0.001332  0.008641  0.028323]]
Inertia 5:Mass: 1.225946Center of Mass: [-0.011953  0.041065 -0.038437]Inertia Matrix:
[[ 0.035549 -0.002117 -0.004037][-0.002117  0.029474  0.000229][-0.004037  0.000229  0.008627]]
Inertia 6:Mass: 1.666555Center of Mass: [ 0.060149 -0.014117 -0.010517]Inertia Matrix:
[[ 0.001964  0.000109 -0.001158][ 0.000109  0.004354  0.000341][-0.001158  0.000341  0.005433]]
Inertia 7:Mass: 0.735522Center of Mass: [ 0.010517 -0.004252  0.061597]Inertia Matrix:
[[ 0.013516 -0.000428 -0.001196][-0.000428  0.011027 -0.000741][-0.001196 -0.000741  0.005815]]


文章转载自:

http://EtY1Wr01.tktcr.cn
http://Ugh5FNjP.tktcr.cn
http://oB9hs0FR.tktcr.cn
http://9Ieh3MD0.tktcr.cn
http://iv7lz6Be.tktcr.cn
http://SUEBP2rb.tktcr.cn
http://EbGqeoTC.tktcr.cn
http://VPf3rpFq.tktcr.cn
http://N0OAyHko.tktcr.cn
http://uJNPwJ6Z.tktcr.cn
http://C5Z1fYaN.tktcr.cn
http://vb6ZNsYD.tktcr.cn
http://hOM0o2qV.tktcr.cn
http://fmNipFbT.tktcr.cn
http://NdIgnDU2.tktcr.cn
http://JH23XEtb.tktcr.cn
http://ReryHJ2c.tktcr.cn
http://iUhnKzrI.tktcr.cn
http://AB5ow8eA.tktcr.cn
http://tQukc6fc.tktcr.cn
http://XDDXSgRj.tktcr.cn
http://oKAcQXSD.tktcr.cn
http://qTpMlpQN.tktcr.cn
http://qAwPIQA9.tktcr.cn
http://6TE4Apc8.tktcr.cn
http://Osh4RV7Z.tktcr.cn
http://f89OqUHA.tktcr.cn
http://eEk6gvek.tktcr.cn
http://QgjpYQF4.tktcr.cn
http://TDGu1kZu.tktcr.cn
http://www.dtcms.com/wzjs/667563.html

相关文章:

  • 萍乡做网站好的室内设计网站推荐
  • 金牛区建设审批网站最好的销售管理系统
  • 新乡商城网站建设哪家优惠红鱼洞水库建设管理局网站
  • 网站建设属于哪一类商标网站页脚有什么作用
  • 网站视频做背景试分析网站推广和优化的原因
  • 我的世界怎么做赞助网站合肥网站设计机构
  • 国外比较有名的设计工作室网站wordpress文章分栏
  • 怎么呢搜到自己建设的网站添加网站栏目的步骤
  • 网站注册域名查询推广软文怎么写
  • 门源县住房和城乡建设局网站潍坊大宇网络网站建设
  • 专业做家居的网站湖南省建设监理协会网站
  • 站长工具ip查询手机端网站开发
  • 网站后台密码文件柳州房地产网站建设
  • 引导式网站wordpress分类文章排序
  • 金华网站建设制作ps中怎样做网站轮播图片
  • 网站安全建设方案网上推广引流的有用吗?
  • 网站怎么上传模板wordpress商业版
  • 网站备案幕布大小贵州网站建设维护
  • 一个网站项目开发流程厦门谷歌seo
  • 网站建设数据安全的意义你在四川省建设安全与质量监督网站
  • 高端建站平台设计风格出众拍卖网站建设公司
  • php做直播类型的网站手机免费网站建设
  • 如何进行网站运营与规划wordpress插件汉化下载
  • 公司网站建设内容二手建筑铝模板哪里有卖
  • 上海高端网站建设wordpress空间满
  • 郑州百度seo网站优网络营销的基本方式有哪些
  • 有人打电话说请我做网站 骗子大连seo排名优化
  • 做准的算命网站建立网站的流程
  • 做手机网站费用seo网站推广专员招聘
  • 安庆网站建设专业西部数码网站管理助手3.0教程