duckietown / gym-duckietown

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

Add option for synthetic tiles #235

Closed CourchesneA closed 3 years ago

CourchesneA commented 3 years ago

Simulator now supports constructor option --synthetic-tiles.

Without: real_tiles

With: synth_tiles

Only drivable tiles were changed

AndreaCensi commented 3 years ago

@CourchesneA can you make instead a parameter style that allows us to switch between many styles? (synthetic, photos, photos-dusty, ...)

CourchesneA commented 3 years ago

I modified it so that now we take a string (parsed in to an enum) which is either "synthetic" or "photos" (default). We keep a mapping of style -> prepend_string. We then load the texture $prepend_string + texture_name

CourchesneA commented 3 years ago

About the failing tests, I think they will pass once my PR is merge on Pyglet: https://github.com/pyglet/pyglet/pull/295#pullrequestreview-516817884