def pickMode(self, initial_call): mode = AutoMode.STEAL if mode == AutoMode.LAWFUL: PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_LAWFUL) self.next_state("collectTrenchRunBalls") elif mode == AutoMode.STEAL: PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_STEAL) self.next_state("stealTrenchRunBalls") elif mode == AutoMode.RENDEZVOUS: PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_CENTER) self.next_state("collectTwoRendezvousBalls") else: self.next_state("success")
def setup(self): PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_LAWFUL)