This commit is contained in:
@@ -68,6 +68,15 @@ def update_tool(tool=None, x_offset=0.0, y_offset=0.0, z_offset=0.0):
|
||||
robot.set_tool_trsf(t, tool)
|
||||
print "Updated " + (str(robot.tool) if (tool is None) else tool) + ": " + str(t)
|
||||
robot.save_program()
|
||||
|
||||
|
||||
|
||||
def assertValidAddress(segment, puck, sample):
|
||||
if type(segment) == str:
|
||||
segment = ord(segment.upper()) - ord('A') +1
|
||||
if segment<=0 or segment >6:
|
||||
raise Excepton ("Invalid segment")
|
||||
if puck<=0 or puck >5:
|
||||
raise Excepton ("Invalid puck")
|
||||
if sample<=0 or sample >16:
|
||||
raise Excepton ("Invalid sample")
|
||||
|
||||
Reference in New Issue
Block a user