Files
mxsc/script/calibration/ToolCalibration.py
gac-S_Changer d7570bcaf3
2017-11-29 09:37:22 +01:00

43 lines
670 B
Python

import plotutils
from mathutils import fit_gaussian, Gaussian
robot.enable()
move_to_laser()
robot.set_motors_enabled(True)
initial_pos = robot.get_cartesian_pos()
run("calibration/ScanXZ")
robot.set_motors_enabled(True)
robot_x.moveRel(x_offset)
robot_z.moveRel(z_offset)
initial_x = robot_x.take()
initial_z = robot_z.take()
initial_y = ue.take()
if initial_y is None:
raise Exception("Invalid XZ scan values")
#update_tool(None, x_offset=x_offset, z_offset=z_offset)
current_x = robot_x.getPosition()
current_y = robot_x.getPosition()
current_z = robot_z.getPosition()
#Updating tool:
#update_tool(None, x_offset=x_offset, z_offset=z_offset)