Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I modify the gym's environment CarRacing-v0?

Tags:

openai-gym

I was wondering if anyone knows if there is a tutorial or any information about how to modify the environment CarRacing-v0 from openai gym, more exactly how to create different roads, I haven't found anything about it.

What I want to do is to create a track more difficult, with T-junction, narrow streets in some points maybe add some obstacles, etc. I have been looking at _create_trackin car_racing.py but modifying it looks rather tedious and I don't want to start working on it if there is another easier solution.

like image 532
Mike W Avatar asked Oct 28 '25 03:10

Mike W


1 Answers

Given that there was not answer I have modified the environment by reading and understanding the code, it is not that hard, I will leave the repo just in case it is useful for someone else

https://github.com/NotAnyMike/gym

Some screenshots of the modifications:

Complex Map:

complex maps

Complex intersections:

enter image description here

And some obstacles:

enter image description here

To see more and the updated version see the repo on github.

like image 133
Mike W Avatar answered Oct 30 '25 13:10

Mike W