Exemple #1
0
 def maze_reset(self) -> None:
     PUBLISHER.queue_process_message(
         "Maze",
         reset=True,
         wait_for_response=True,
         message_timeout=0.2,
         response_timeout=0.2,
     )
     self.state.working = False
Exemple #2
0
 def maze_solve(self) -> None:
     try:
         self.validator.validate_image()
         self.validator.validate_framerate()
     except ValueError:
         return
     self.image.reset_result()
     PUBLISHER.queue_process_message("Maze", start=True, state=self.state)
     self.state.working = True
Exemple #3
0
 def maze_resume(self) -> None:
     PUBLISHER.queue_process_message("Maze", resume=True)
Exemple #4
0
 def maze_stop(self) -> None:
     PUBLISHER.queue_process_message("Maze", stop=True)