This program guides the SwiftBot to navigate a space using commands provided via QR codes. The SwiftBot begins its journey by scanning a QR code for directions, with subsequent stops offering additional QR codes for navigation. The program includes command validation and user-friendly error handling.
- QR Code Command Recognition π±: Reads navigation commands from QR codes.
- Movement Commands:
F <duration> <speed>: Move forward for the specified duration (seconds) and speed (up to 100).B <duration> <speed>: Move backward similarly.R <duration> <speed>: Turn right for the specified duration and speed.L <duration> <speed>: Turn left for the specified duration and speed.
- Retrace Movement π: Command
T <number>retraces the last specified movements, with error handling for exceeding executed commands. - Logging Commands π: Command
Wwrites the current time and all received commands to a text file.
- Clone the Repository:
git clone https://github.com/t3hj/SwiftBotNavigation.git
- Navigate to the Project Directory:
cd SwiftBotNavigation - Run the Program:
- Execute the main script in your preferred environment.
- Movement Commands:
F <duration> <speed>: Move forward for the specified duration and speed.B <duration> <speed>: Move backward for the specified duration and speed.R <duration> <speed>: Rotate right for the specified duration and speed.L <duration> <speed>: Rotate left for the specified duration and speed.
- Retrace Command:
T <number>: Retraces the last specified number of movements.
- Write Log Command:
W: Writes the current time and all commands to a text file.
- Input values are validated to ensure they are within specified limits.
- User-friendly error messages guide input corrections.
- Enhance QR code recognition capabilities for complex commands.
- Integrate obstacle detection and avoidance features.
- Implement a graphical interface for real-time navigation visualization.
Feel free to submit a pull request if you'd like to contribute to the development of the SwiftBot Navigation Program! π€