def __init__(self, id, corners, x_pos=None, y_pos=None, role="attacker", path_eps=25, angle_eps=15, vision_dist=100): Marker.__init__(self, id, corners, x_pos, y_pos) self.front_side = None self.back_side = None self.left_side = None self.right_side = None self.role = role self.path = Path([]) self.path_eps = path_eps self.angle_eps = angle_eps self.path_created = False self.actual_point = None self.angle_to_actual_point = None self.angles_list = [] self.movement = False self.rotation = False self.stop_riding = False self.vision_dist = vision_dist
def __init__(self, id, corners, x_pos=None, y_pos=None): Marker.__init__(self, id, corners, x_pos, y_pos) self.center_smoother = PointSmoother() self.corners_smoother = CornersSmoother() self.front_side = None self.back_side = None self.left_side = None self.right_side = None self.marker_size = rosparam.get_param("marker_size") * 10 self.dist_between_markers_pair_centers = rosparam.get_param("dist_between_markers_pair_centers") * 10 self.corners_list = []