Implementing the reset method

As you may have noticed, at the beginning of every episode, we call the reset method of the Gym environment. For the CARLA environment, we want to update the CARLA server to restart the level through the CARLA client.

So, let's get on with starting our implementation of the reset method.

Get Hands-On Intelligent Agents with OpenAI Gym now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.