@@ -0,0 +1,2428 @@
+import robocup%0Aimport constants%0Aimport play%0Aimport enum%0Aimport behavior%0Aimport main%0A%0A%0A# Maintains the state of the ball's position by keeping track of which%0A# half the ball is on and prints on both entering a given state and%0A# continously during the execution of a given state.%0Aclass SkillsPractice(play.Play):%0A    class State(enum.Enum):%0A        # Define your states here.%0A        # eg: some_state = 0%0A        # -----------------------%0A        tophalf = 0%0A        bottomhalf = 1%0A%0A    def __init__(self):%0A        super().__init__(continuous=True)%0A%0A        # Register the states you defined using 'add_state'.%0A        # eg: self.add_state(WhichHalf.State.%3C???%3E,%0A        #                    behavior.Behavior.State.running)%0A        # ----------------------------------------------------%0A%0A        self.add_transition(%0A            behavior.Behavior.State.start, behavior.Behavior.State.running, %0A            lambda: True,%0A            %22immediately%22)%0A%0A        self.add_transition(%0A            behavior.Behavior.State.running, behavior.Behavior.State.completed%0A            lambda:self.subbehavior_with_name(%22move%22).state == behavior.Behavior.State.completed,%0A            %22done with behavior%22)%0A%0A        # Add your state transitions using 'add_transition'.%0A        # eg: self.add_transition(behavior.Behavior.State.start,%0A        #                         self.State.%3C???%3E, lambda: True,%0A        #                         'immediately')%0A        # eg: self.add_transition(self.State.%3C???%3E, self.State.%3C???%3E,%0A        #                         lambda: %3C???%3E,%0A        #                         'state change message')%0A        # ------------------------------------------------------------%0A%0A    # Define your own 'on_enter' and 'execute' functions here.%0A    # eg: def on_enter_%3C???%3E(self):%0A    #         print('Something?')%0A    # eg: def execute_%3C???%3E(self):%0A    #         print('Something?')%0A    # ---------------------------------------------------------%0A%0A    def on_enter_running(self):%0A        # To make a robot move, use skills.move.Move(%3Cpoint to move to%3E)%0A        # To create a point, we initialize a point using %0A        # robocup.Point(%3Cx coordinate%3E, %3Cy coordinate%3E)%0A        %0A        # This line moves a robot to the point (0, 0)%0A        move_skill = skills.move.Move(robocup.Point(0, 0))%0A%0A        # Adds behavior to our behavior tree, we will explain this more later%0A        self.add_subbehavior(move_skill, %22move%22, required=True)

add first training file