Closedown
This commit is contained in:
@@ -18,6 +18,7 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
self.working_mode = None
|
||||
self.status = None
|
||||
self.lock = threading.Lock()
|
||||
self.joint_forces = None
|
||||
|
||||
def _sendReceive(self, msg_id, msg = "", timeout = None):
|
||||
tx = self.header if (self.header != None) else ""
|
||||
@@ -244,9 +245,14 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
def set_move_id(self, id):
|
||||
return self.evaluate("setMoveId(" + str(id) + " )")
|
||||
|
||||
def get_joint_forces(self):
|
||||
self.evaluate("getJointForce(arr)")
|
||||
return self.get_float_arr(6)
|
||||
def get_joint_forces(self):
|
||||
try:
|
||||
self.evaluate("getJointForce(arr)")
|
||||
self.joint_forces = self.get_float_arr(6)
|
||||
return self.joint_forces
|
||||
excepr:
|
||||
return self.joint_forces = None
|
||||
raise
|
||||
|
||||
def movej(self, joint_or_point, tool, desc):
|
||||
return self.eval_int("movej(" + joint_or_point + ", " + tool + ", " + desc +")")
|
||||
|
||||
Reference in New Issue
Block a user