A pythonic Very Small Size Soccer (VSSS) simulation environment for reinforcement learning research.
Project description
pSim
pSim: Very Small Size Soccer Simulation Environment
Comprehensive simulation platform for autonomous robotic soccer development
Welcome to pSim
pSim is a comprehensive, pythonic simulation environment specifically designed for the Very Small Size Soccer (VSSS) competition. It provides researchers, students, and developers with powerful tools to develop, test, and validate autonomous robotic soccer strategies and algorithms.
Whether you're working on traditional control algorithms, reinforcement learning, or multi-agent coordination, pSim offers the flexibility and performance you need.
Quick Start
Installation
pSim uses uv for fast, reliable package management. See the installation guide for complete setup instructions including uv installation.
# Quick install with uv
uv venv --python 3.12
uv pip install pSim[all] --upgrade
# Or, after venv only install a specific dependency
uv pip install pSim[gym] # For Gymnasium support
uv pip install pSim[zoo] # For PettingZoo support
uv pip install pSim[all] # For both Gymnasium and PettingZoo
First Simulation
from pSim import SimpleVSSSEnv
import numpy as np
# Create your first simulation with custom robot counts
env = SimpleVSSSEnv(
render_mode="human",
scenario="formation",
num_agent_robots=2, # Number of controllable robots
num_adversary_robots=3 # Number of opponent robots
)
obs, info = env.reset()
# Run simulation steps with random actions
for step in range(1000):
# Generate random actions for all agent robots [v, w] (velocity, angular velocity)
action = np.random.uniform(-1, 1, (env.num_agent_robots, 2))
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, info = env.reset()
env.close()
Environment Types
pSim provides three main environment types, each designed for different use cases:
- SimpleVSSSEnv: For traditional control and testing.
- VSSSGymEnv: For reinforcement learning with Gymnasium compatibility.
- VSSSPettingZooEnv: For multi-agent reinforcement learning with PettingZoo compatibility.
Features
Traditional Control
- PID controllers, MPC, and other traditional methods
- Path planning and trajectory optimization
- Formation control and cooperative behaviors
Reinforcement Learning
- Compatible with Stable Baselines 3, Ray RLlib, and other RL libraries
- Customizable reward functions and observation spaces
- Curriculum learning through scenario configuration
Research & Education
- Multi-agent coordination studies
- Emergent behavior analysis
- Algorithm benchmarking and comparison
Competition Preparation
- Strategy development and testing
- Opponent modeling and adaptation
- Performance analysis and optimization
Realistic Physics
Box2D-powered physics simulation with customizable parameters for accurate robot and ball dynamics.
Human-Machine Interface
- Keyboard Controls: Full keyboard input with intuitive mappings
- Joystick Support: Universal controller compatibility
- Robot Switching: Dynamic selection between controllable robots
- Team Management: Control different teams independently
- Ball Control Mode: Direct ball manipulation
Getting Help
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Documentation
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Ready to start developing robotic soccer strategies?
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psim-0.2.3.tar.gz.
File metadata
- Download URL: psim-0.2.3.tar.gz
- Upload date:
- Size: 7.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89f2e7febc447a843b2874f7b91d0466d73a92c042e233bf99d1d4107d9d7e42
|
|
| MD5 |
5e9e3f6552283b47c97d1dd813681d60
|
|
| BLAKE2b-256 |
ec4bdb1df191f9a3d2864d24d0822f439ab5ed21c09c0138431d15ed9c43a581
|
File details
Details for the file psim-0.2.3-py3-none-any.whl.
File metadata
- Download URL: psim-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdfd6a08efab7df8c34de7ca38088d9ac3e23d499833cf959715e123c8118511
|
|
| MD5 |
13680f3edf4dd1a2d4dc8ae2ba15250d
|
|
| BLAKE2b-256 |
947d675ec2f9cc30da4e00d73d0762513dc102e1d2b0ca72f9c9a5798b7401f0
|