mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 03:30:19 +01:00
added a simple progress bar implementation
This commit is contained in:
@@ -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