Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Box2D integration #58

Closed
11 tasks done
Trinkle23897 opened this issue Feb 17, 2022 · 0 comments · Fixed by #111, #198, #131 or #199
Closed
11 tasks done

[Feature Request] Box2D integration #58

Trinkle23897 opened this issue Feb 17, 2022 · 0 comments · Fixed by #111, #198, #131 or #199
Assignees
Labels
enhancement New feature or request

Comments

@Trinkle23897
Copy link
Collaborator

Trinkle23897 commented Feb 17, 2022

https://github.com/openai/gym/tree/master/gym/envs/box2d

Env List:

Road Map:

  • Get comfortable with current codebase, go through https://envpool.readthedocs.io/en/latest/pages/env.html and add a toy environment by yourself locally;
  • Run Box2D environments on your local machine [2], try with different env settings and see the actual behavior;
  • Go through pyBox2d code [1], think about how can we directly call those methods via EnvPool single environment abstraction;
  • Integrate only one game and let it work (you only need to translate python to C++);
  • Add some unit tests (good to submit the first PR here);
  • Integrate other environments (submit another PR) and related tests.

Resources:

  1. https://github.com/pybox2d/pybox2d/tree/master/Box2D
  2. First install gym, then run with
import gym
env = gym.make("CarRacing-v0")
env.reset()
for _ in range(10):
  env.step(env.action_space.sample())
  env.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment