An environment for simulated parking lot tasks.
Project description
parking-env
Parking-env is a gymnasium-based environment for reinforcement learning, written in a single Python file and accelerated by Numba. The environment is designed to simulate the task of parking a vehicle in a parking lot, where the agent controls the steering angle and the speed to park the vehicle successfully.
PPO agent with discrete actions
PPO agent with multidiscrete actions
PPO agent with continuous actions
Installation
To install the stable version,
pip install parking-env
To install the current version with additional scripts in editable mode,
git clone https://github.com/KexianShen/parking-env.git
cd parking-env
pip install -e .
Usage
Pre-trained models are uploaded to Hugging Face Hub with detailed notes.
To use parking-env, you can code as follows:
import gymnasium as gym
env = gym.make(
"Parking-v0", render_mode="human", observation_type="vector", action_type="discrete"
)
env.reset()
terminated = False
truncated = False
while not terminated and not truncated:
action = 2
obs, reward, terminated, truncated, info = env.step(action)
Credits
Parking-env is heavily inspired by the HighwayEnv environment, and some of its code was adapted for use in parking-env.
Additionally, parking-env uses the algorithms provided in CleanRL, a collection of clean implementations of popular RL algorithms.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
File details
Details for the file parking-env-0.0.7.tar.gz
.
File metadata
- Download URL: parking-env-0.0.7.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dacbb1c2b4a83892802f6fc02273a989cea534df76a7525b2da3f92800b900 |
|
MD5 | 75ea0ce67e1144bbdff6db8237355a71 |
|
BLAKE2b-256 | 3b3b9151fda69d0c7e580380f97b1a99ebb31d8aa05e60a44d5c553c126759aa |
File details
Details for the file parking_env-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: parking_env-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a197ad3e1825050a06b631d9d7434cee9d9a2cc548c49acf7a46c2468a1e27 |
|
MD5 | f35a28c2dd98e6851fb3d56db06cb030 |
|
BLAKE2b-256 | 8fdbdc430773857d816fe252397b380c4136e7f9d8c1e3c99afa67582e6aca81 |