Пример #1
0
def goal_angle_and_type():
    
    #Goal types
    #0 unknown post
    #1 left post
    #2 right post
    #3 whole goal
    
    last_goal = vision.get_goal()
    goal = vision.Goal(last_goal.x,last_goal.y,last_goal.z,last_goal.t,robotid.get_team_number(),last_goal.goal_type)
    angles=goal.get_angle()[0]
    return angles,last_goal.goal_type
 def opponents_goal(self):
     goal_team_number = vision.get_goal().team
     return not self.team_id==goal_team_number
Пример #3
0
def goal_type():
    
    return vision.get_goal().goal_type
Пример #4
0
def goal_angle():
    
    last_goal = vision.get_goal()
    goal = vision.Goal(last_goal.x,last_goal.y,last_goal.z,last_goal.t,robotid.get_team_number(),last_goal.goal_type)
    angles=goal.get_angle()
    return angles