31 lines
589 B
Python
31 lines
589 B
Python
def move_dewar():
|
|
"""
|
|
"""
|
|
print "move_dewar"
|
|
|
|
cover_info = get_cover_location_mm()
|
|
#Initial checks
|
|
robot.assert_no_task()
|
|
robot.reset_motion()
|
|
robot.wait_ready()
|
|
robot.assert_cleared()
|
|
#robot.assert_in_known_point()
|
|
|
|
#Enabling
|
|
enable_motion()
|
|
|
|
|
|
if not robot.is_dewar():
|
|
robot.move_dewar(*cover_info)
|
|
return True
|
|
|
|
"""
|
|
class Test:
|
|
def move_dewar(self, off_x, off_y, sts_det, sta_clr):
|
|
print off_x, off_y, sts_det, sta_clr
|
|
|
|
test=Test()
|
|
|
|
cover_info = get_cover_location_mm()
|
|
test.move_dewar(*cover_info)
|
|
""" |