added a simple progress bar implementation

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

No files matched your search

+1 -1
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