- ported modifications offline, still need to finish and test
23 lines
474 B
Python
23 lines
474 B
Python
def get_aux(sample):
|
|
"""
|
|
"""
|
|
print "get_aux: ",sample
|
|
|
|
sample = int(sample) #assert_valid_sample only acceps int as parameters
|
|
#Initial checks
|
|
assert_valid_sample(sample)
|
|
|
|
robot.assert_no_task()
|
|
robot.reset_motion()
|
|
robot.wait_ready()
|
|
robot.assert_cleared()
|
|
hexiposi.assert_homed()
|
|
|
|
#Enabling
|
|
enable_motion()
|
|
|
|
if not robot.is_aux():
|
|
robot.move_aux()
|
|
|
|
robot.get_aux(sample)
|