1 Star 0 Fork 1

RIS-Group/Tactile Sensor

forked from pbh/Tactile Sensor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
original.py 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
pbh 提交于 2022-03-07 10:30 . 1
# 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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/RICS-Group/tactile-sensor.git
git@gitee.com:RICS-Group/tactile-sensor.git
RICS-Group
tactile-sensor
Tactile Sensor
master

搜索帮助