Script execution

This commit is contained in:
gac-S_Changer
2017-02-24 15:14:59 +01:00
parent ebff6bee09
commit b40a3ebd38

View File

@@ -238,7 +238,16 @@ class RobotTCP(TcpDevice, Stoppable):
def get_joint_forces(self):
robot_tcp.evaluate("getJointForce(arr)")
return robot_tcp.get_float_arr(6)
def movej(self, joint_or_point, tool, desc):
return self.eval_int("movej(" + joint_or_point + ", " + tool + ", " + desc +")")
def movel(self, point, tool, desc):
return self.eval_int("movel(" + point + ", " + tool + ", " + desc +")")
def movec(self, point_interm, point_target, tool, desc):
return self.eval_int("movec(" + point_interm + ", " + point_target + ", " + tool + ", " + desc +")")
#Tool
#This function can timeout since it synchronizes move.