This project implements a Brownian Motion simulation for a robot as part of the GSoC 2025 application for JdeRobot. The robot moves in a square arena, starting from the center, and rotates randomly upon collision with boundaries, mimicking Brownian motion behavior.
- Language: Python 3
- Libraries:
- Python Standard Library
- NumPy (for calculations)
- Matplotlib (for visualization)
- Structure: Implemented as a Python module (
brownian_motion.py) - Features:
- Robot starts at the center of a square arena
- Moves straight until hitting a boundary
- Rotates randomly on collision
- Tracks path, speed, and collision statistics
- Visualized with styled boundaries and real-time stats
-
Install dependencies:
pip install numpy matplotlib
-
Run the simulation:
python main.py
-
Output: Generates
brownian_motion_styled.gif
The simulation produces a GIF showing the robot's Brownian motion:

Mohamed ABABSA - GSoC 2025 Applicant