How lukmanharahap/fuzzy-dwa works
This repository is a 2D warehouse-robot navigation simulator and research comparison of fixed-weight DWA against fuzzy-adaptive DWA. Users run a single or multi-episode simulation, or launch the experiment suite; the simulation coordinates a physics environment and robot, which senses and plans before applying motion. A* supplies global guidance, while DWA scores local actions and can obtain adaptive weights from the fuzzy controller. Episodes produce performance metrics and JSON logs. The README documents optional rendering, video, noisy sensing, and scenario comparisons; some subsystem links rely on documentation because their implementation was not fully sampled.
Main entry points: simulation.py Episode Orchestrator · environment.py Physics Environment · robot.py Robot And Sensors · dwa.py DWA Controller
Components 16
Simulation Runs
- Single Run
src/simulation.py - Episode Orchestrator
src/simulation.py - Simulation Config
src/config.py
World And Robot
- Physics Environment
src/environment.py - Robot And Sensors
src/robot.py - Odometry Correction
src/localization.py - Renderer
src/renderer.py
Navigation Planning
- A* Path Planner
src/a_star.py - DWA Controller
src/dwa.py - Fuzzy Weight Tuning
src/fuzzy_controller.py
Experiments And Output
- Experiment Runner
experiments.py - Scenario Setup
experiments.py - Map Layouts
layouts - Episode Metrics
src/simulation.py - Experiment Log
results/experiments_log.json
Other components
- Researcher
Connections 16
- Researcher → Single Run: starts run
README.md - Researcher → Experiment Runner: starts suite
README.md - Single Run → Episode Orchestrator: launches
run_simulation.py - Experiment Runner → Scenario Setup: selects scenarios
experiments.py - Experiment Runner → Episode Orchestrator: runs episodes
experiments.py - Scenario Setup → Map Layouts: uses layouts
README.md - Episode Orchestrator → Physics Environment: runs episode
README.md - Physics Environment → Robot And Sensors: creates robot
src/environment.py - Physics Environment → Renderer: configures rendering
src/environment.py - Physics Environment → Simulation Config: reads settings
src/environment.py - Robot And Sensors → Odometry Correction: corrects odometry
src/robot.py - Robot And Sensors → DWA Controller: requests action
src/robot.py - DWA Controller → A* Path Planner: plans reference path
src/dwa.py - DWA Controller → Fuzzy Weight Tuning: computes weights
src/dwa.py - Episode Orchestrator → Episode Metrics: computes metrics
README.md - Episode Orchestrator → Experiment Log: appends results
README.md