22 lines
493 B
Python
22 lines
493 B
Python
def put_rt(puck, sample):
|
|
"""
|
|
"""
|
|
print "put_rt: ",puck, sample
|
|
|
|
puck,sample = int(puck),int(sample) #assert_valid_sample only acceps int as parameters
|
|
#Initial checks
|
|
assert_valid_address(RT_SEGMENT, puck, sample)
|
|
|
|
robot.assert_no_task()
|
|
robot.reset_motion()
|
|
robot.wait_ready()
|
|
robot.assert_cleared()
|
|
|
|
#Enabling
|
|
enable_motion()
|
|
|
|
if not robot.is_rt():
|
|
robot.move_rt()
|
|
|
|
robot.put_rt(puck, sample)
|