March 2019
Intermediate to advanced
184 pages
4h 57m
English
The open source community has also developed two Python files to interface TORCS with Python so that we can call TORCS from Python commands. In addition, to automatically start TORCS, we need another sh file. These three files are summarized as follows:
These files are included in the code files for the chapter (https://github.com/PacktPublishing/TensorFlow-Reinforcement-Learning-Quick-Start-Guide), but can also be obtained from a Google search. In lines ~130-160 of gym_torcs.py, the reward function is set. You can see the following lines, which convert the raw simulator states to NumPy arrays:
# Reward setting Here ######################################## direction-dependent positive ...
Read now
Unlock full access