代码拉取完成,页面将自动刷新
同步操作将从 pbh/Tactile Sensor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# coding=utf-8
import numpy as np
import math
a=[[-0.009294274383709979, -0.001500055359787263, 0.02987848163723865], [-0.006139682710816608, 0.006679524696907926, 0.029116826763785613], [-0.0028559198425981524, 0.006263737416112432, 0.027737975785770433], [-0.006497398544863101, 0.00418531980358439, 0.03169096115885141], [-0.003263791729688482, 0.003995452413121362, 0.030845015380840935], [-0.010962488061435741, 0.0018848003627957987, 0.027681197731294925], [-0.009376633645915976, 0.0015183891309179895, 0.031123561973671447], [0.001964577788415826, 0.0013006935926476307, 0.026843008400200197], [-0.006455051887208647, 0.001196870412971547, 0.03104345777816099], [-0.0005278654357248199, 0.0010906656095050489, 0.02949497914507665], [-0.003433176307492873, 0.0010879466996620518, 0.030919085034886388], [-0.011005165910767934, -0.0011164933968497543, 0.026872087757978086], [-0.006626696541428535, -0.0017629187762603254, 0.031127717643416285], [-0.003521760926532071, -0.0019149129986465883, 0.03060735943241905], [-0.0005710092222442537, -0.0019009795129174556, 0.028524436991262992], [0.0018830066322597697, -0.0017245181964665927, 0.025751989962064226], [-0.006752843296905347, -0.0044948975632372575, 0.029982008044495915], [-0.0034391243801637256, -0.004490305154020002, 0.028709564853001183], [-0.006437089568035455, -0.00638614881870415, 0.026300484646981488], [-0.0031812511384896576, -0.006424823191943885, 0.02543081516363608]]
X=[]
Y=[]
Z=[]
for i in range(20):
x=a[i][0]
y=a[i][1]
z=a[i][2]
X.append(x)
Y.append(y)
Z.append(z)
x1=sum(X)/20
y1=sum(Y)/20
z1=sum(Z)/20
print("零点偏移量为:")
print(x1,y1,z1)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。