def __init__(self): # Sets the arm that is used for the servoing limb = 'right' self._baxter = BaxterVS(limb) # Initializes the marker that the arm should track target_marker = 0 self._apriltag_client = AprilTagClient(target_marker) self._visual_servo = VisualServoing(False) cv2.namedWindow("Detected tags", 0)
def __init__(self): # Baxter specific code. You don't need this if you're using another robot. # Sets the arm that is used for the servoing limb = 'right' self._baxter = BaxterVS(limb) # AprilTag specific code. You don't need this if you're using another tracking system. # Initializes the marker that the arm should track target_marker = 0 self._apriltag_client = AprilTagClient(target_marker) self._visual_servo = VisualServoing(ibvs=True)