| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project is an implementation of a fuzzy control system designed to navigate a ship through a canal, avoiding collisions. The original codebase has been refactored to use modern Java 17 practices, with a focus on readability, modularity, and clear documentation.
The primary goal is to create a fuzzy controller that receives sensor data from a ship simulator and outputs control commands (acceleration and rudder angle) to guide the ship safely.
The refactored application follows a clean, modular design:
This project uses Apache Maven for building.
Clone the repository.
Navigate to the project root directory.
Run the Maven package command:
mvn packageThis will compile the source code and create a runnable JAR file at target/fuzzy-boat-1.0.0-jar-with-dependencies.jar.
The simulator (res/Simulator.jar) is configured via the res/config.txt file.
Open res/config.txt in a text editor.
Modify the first line to point to the newly built JAR file. You must use an absolute path.
For example, if your project is located at C:\Users\Me\Projects\fuzzy-boat, the command would be:
java -jar C:\Users\Me\Projects\fuzzy-boat\target\fuzzy-boat-1.0.0-jar-with-dependencies.jar
Note: On Linux or macOS, the path would look like /home/me/projects/fuzzy-boat/target/...
Configure other parameters (track number, wind speed) as desired.
Run the simulator by double-clicking res/Simulator.jar or by executing java -jar res/Simulator.jar from your terminal. The simulator will then start your fuzzy control program automatically.
| Back | FazBrowse Home | New Git URL |