Script execution

This commit is contained in:
gac-x03da
2019-11-21 17:10:19 +01:00
parent 528f869eed
commit f88ef3e151

View File

@@ -1,8 +1,24 @@
ManipulatorX.move(-3.8)
print("done")
#ManipulatorY
#ManipulatorZ
#ManipulatorTheta
#ManipulatorTilt
#ManipulatorPhi.
class PhysicalLoction():
def __init__(self, X, Y, Z, theta, tilt, phi):
self.X = X
self.Y = Y
self.Z = Z
self.theta = theta
self.tilt = tilt
self.phi = phi
def move_to_location(self):
ManipulatorX.move(self.X)
ManipulatorY.move(self.Y)
ManipulatorZ.move(self.Z)
ManipulatorTheta.move(self.theta)
ManipulatorTilt.move(self.tilt)
ManipulatorPhi.move(self.phi)
#VARS
sample = PhysicalLocation(-4.1,-0.5,115.1,51.0,0.8,-90)
goldReference = PhysicalLocation(-3.4,4.4,111.6,-8.8,0.7,90)
goldReference.move_to_location()