This commit is contained in:
gac-S_Changer
2017-02-23 16:57:12 +01:00
parent dc0fe7259d
commit fffcaa6804
3 changed files with 118 additions and 47 deletions

View File

@@ -102,6 +102,9 @@ class RobotTCP(TcpDevice, Stoppable):
for i in range(6): ret.append(float(a[i]))
return ret
def set_trf(self, l, name="t"):
self.evaluate(name + "={" + str(l[0]) + ","+ str(l[1]) + ","+ str(l[2]) + ","+ str(l[3]) + ","+ str(l[4]) + ","+ str(l[5]) + "}")
def get_jnt(self, name="j"):
a = self.execute('get_jnt', name)
ret = []