maxspahn / gym_envs_planar

Planar gym environments
7 stars 4 forks source link

Ft unify robots #9

Closed maxspahn closed 2 years ago

maxspahn commented 2 years ago

Unifies individual robots by introducing inheritance. Now there is one generic environment class for every robot type. This generic class provides methods for rendering, integrating, closing, initializing, resetting, and stepping. Continuous dynamics, observation space, and action space are flagged as abstract methods.

The specific environments implement these methods.

This removes a significant of copied code parts and makes it easier to keep track of general changes to the robots. Also fixes #8 .