added a simple progress bar implementation
This commit is contained in:
1 parent
fa79d8d365
commit
607ef17431
3 files changed
+34
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user