duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
52 stars 19 forks source link

Code cleanup - and allow to be imported easily even without gl installed #109

Closed AndreaCensi closed 5 years ago

AndreaCensi commented 5 years ago

Other packages might want to import gym-duckietown to access things like maps and textures.

However currently that implies having GL installed.

This PR imports GL functionality only when needed so that other packages can import gym-duckietown without having a GL stack,

bhairavmehta95 commented 5 years ago

Sorry, what's the point of removing the OpenGL dep? If I want the map and textures, wouldn't I necessarily either just copy them out of this repo, or need / want to render them?

AndreaCensi commented 5 years ago

Case in point:

Example: https://160-153939704-gh.circle-artifacts.com/0/artifacts/LFV/drawing-interactive.html