Skip to content
Snippets Groups Projects
Commit c5891559 authored by Charles Javerliat's avatar Charles Javerliat
Browse files

Add MulticlampPlace

parent a80bf8f0
No related branches found
No related tags found
1 merge request!2Add/camera node
from time import sleep
from task import Task
class MulticlampPlace(Task):
def __init__(self, robot, cup_indexes={1, 2, 3, 4, 5}):
self.robot = robot
self.cup_indexes = cup_indexes
def run(self):
self.robot.lower_multiclamp_arm()
sleep(1) # wait for the multiclamp to go down
for cup_idx in self.cup_indexes:
self.robot.open_multiclamp_servo(cup_idx)
self.robot.raise_multiclamp_arm()
sleep(1) # wait for the multiclamp to go up
for cup_idx in self.cup_indexes:
self.robot.close_multiclamp_servo(cup_idx)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment