当前位置: 首页> 财经> 金融 > 360网站服务监控_广告机器设备的价格表_爱站网注册人查询_百度大全

360网站服务监控_广告机器设备的价格表_爱站网注册人查询_百度大全

时间:2025/8/3 2:55:37来源:https://blog.csdn.net/weixin_42885381/article/details/143427018 浏览次数:1次
360网站服务监控_广告机器设备的价格表_爱站网注册人查询_百度大全

正解/逆解

求正解/逆解有现成的库,参考https://github.com/petercorke/robotics-toolbox-python,代码如下:

import roboticstoolbox as rtb
import numpy as np
np.set_printoptions(precision=6, suppress=True)
robot = rtb.models.Panda()qr = np.array([0, -0.3, 0, -2.2, 0, 2.0, np.pi / 4])
qz = np.zeros(7)print("正解")
te = robot.fkine(qr)
print(te.data[0])print("逆解")
# 可能存在多个逆解,若不设置seed, 多次执行返回的结果可能不一样
# q1 = robot.ikine_LM(te.data[0], q0=qz).q
q1 = robot.ikine_LM(te.data[0], q0=qz, seed=1234).q
print(q1)# 检查逆解是否正确
assert np.allclose(te.data[0], robot.fkine(q1).data[0])

输出:

正解
[[ 0.995004  0.        0.099833  0.484047][ 0.       -1.       -0.       -0.      ][ 0.099833  0.       -0.995004  0.41263 ][ 0.        0.        0.        1.      ]]
逆解
[ 2.684527  0.329245 -2.734035 -2.197693  0.147658  1.990311  0.668895]

可视化也很方便

robot.plot(qr, backend="swift", block=True)

输出:

STEP格式文件

可以将STEP格式转换为GLB格式,参考https://github.com/trimesh/cascadio,代码如下:

import cascadio
cascadio.step_to_glb("wrist_mount.step", "wrist_mount.glb", 0.1, 0.5)import trimesh
trimesh.load("wrist_mount.glb").show()

摄像头基础知识

焦点/焦距/视场角/光圈/景深/光学畸变,参考https://www.optmv.com/content/details113_4276.html

关键字:360网站服务监控_广告机器设备的价格表_爱站网注册人查询_百度大全

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: