1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 11:40:18 +01:00

added a simple progress bar implementation

This commit is contained in:
itaicaspi-intel
2018-09-13 14:21:38 +03:00
parent fa79d8d365
commit 607ef17431
3 changed files with 34 additions and 10 deletions

View File

@@ -378,7 +378,7 @@ class CarlaEnvironment(Environment):
self.control.brake = np.abs(np.clip(action[0], -1, 0))
# prevent braking
if not self.allow_braking:
if not self.allow_braking or self.control.brake < 0.1:
self.control.brake = 0
# prevent over speeding