GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - EricChen0104/DWA_Algorithm_PYTHON: A fully visualized implementation of the Dynamic Window Approach (DWA) in Python using Pygame. Simulate and visualize obstacle avoidance and goal-reaching for mobile robots in 2D space โ€” perfect for robotics beginners, path planning researchers, and AI robotics students!

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
assets
assets
 
 
.DS_Store
.DS_Store
 
 
DWA.py
DWA.py
 
 
LICENSE
LICENSE
 
 
readme.md
readme.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

๐Ÿš€ Dynamic Window Approach (DWA) Path Planning Simulation

A fully visualized implementation of the Dynamic Window Approach (DWA) in Python using Pygame. Simulate and visualize obstacle avoidance and goal-reaching for mobile robots in 2D space โ€” perfect for robotics beginners, path planning researchers, and AI robotics students!


๐Ÿง  What is DWA?

Dynamic Window Approach is a real-time collision avoidance algorithm for mobile robots. It evaluates a set of feasible trajectories based on the robot's dynamic constraints, obstacle proximity, and goal direction.

This project:

  • Predicts multiple future trajectories
  • Scores each based on distance to goal, speed, and safety
  • Selects the best trajectory and visualizes it
  • Runs smoothly in a Pygame window with live user interaction!

๐Ÿ–ผ๏ธ Features

  • ๐Ÿ“ Real-time path planning to a user-defined goal
  • โš ๏ธ Dynamic obstacle addition with right-click
  • ๐Ÿงญ Visualized prediction trajectories
  • ๐Ÿš— Simulated robot with circular collision model
  • ๐Ÿงช Easy to tweak robot config for experiments

๐Ÿ•น๏ธ Demo

Controls:

  • Left-click to set a new goal
  • Right-click to add a new obstacle
  • Window will auto-close once robot reaches goal

https://github.com/yourusername/dwa-python/assets/demo.gif


๐Ÿ› ๏ธ Requirements

  • Python 3.7+
  • Pygame
  • NumPy
pip install pygame numpy

๐Ÿ“ฆ Run the Simulation

python DWA.py

Customize Parameters

Easily adjust robot dynamics and cost weights in the Config class:

self.max_speed = 1.0
self.max_accel = 0.2
self.to_goal_cost_gain = 0.1
self.obstacle_cost_gain = 0.5
...

๐Ÿค– Why Use This?

  • โœ… Learn path planning through visualization
  • โœ… Great teaching material for robotics classes
  • โœ… Easy to hack and extend (e.g., LIDAR input, map loading)
  • โœ… No ROS or external frameworks required

๐ŸŒŸ Star this repo

If you found this useful or interesting, give it a โญ to support more open robotics projects!

About

A fully visualized implementation of the Dynamic Window Approach (DWA) in Python using Pygame. Simulate and visualize obstacle avoidance and goal-reaching for mobile robots in 2D space โ€” perfect for robotics beginners, path planning researchers, and AI robotics students!

Topics

dwa-plannerpath-planningpath-planning-algorithmslamslam-algorithms

Resources

Readme
MIT license
Activity

Stars

18 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.