You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSoccer Gym is an open-source framework to study Reinforcement Learning (RL) for SSL and IEEE VSSS competition environment. The simulation is done by rSim. This fork adds a number of RL agent implementations from the CleanRL library to start training on the environments.
Reference
If you use this environment in your publication and want to cite the original authors, utilize this BibTeX:
@InProceedings{10.1007/978-3-030-98682-7_14,
author = {Martins, Felipe B.
and Machado, Mateus G.
and Bassani, Hansenclever F.
and Braga, Pedro H. M.
and Barros, Edna S.},
editor = {Alami, Rachid
and Biswas, Joydeep
and Cakmak, Maya
and Obst, Oliver},
title = {rSoccer: A Framework for Studying Reinforcement
Learning in Small and Very Small Size Robot Soccer},
booktitle = {RoboCup 2021: Robot World Cup XXIV},
year = {2022},
publisher = {Springer International Publishing},
address = {Cham},
pages = {165--176},
isbn = {978-3-030-98682-7}
}
Install from source
git clone https://github.com/Jessseee/rSoccer.git
cd rSoccer
pip install .
importgymnasiumasgymimportrsoccer_gym# This registers the environments# Using VSS Single Agent envenv=gym.make('VSS-v0', render_mode="human")
env.reset()
# Run for 1 episode and print reward at the end, this would be your training loopforiinrange(1):
terminated=Falsetruncated=Falsewhilenot (terminatedortruncated):
# Step using random actionsaction=env.action_space.sample()
next_state, reward, terminated, truncated, _=env.step(action)
print(reward)
About
⚽ SSL & VSS RoboCup Environments for Reinforcement Learning