Skip to content

Commit

Permalink
Fix a typo in setting the max brake
Browse files Browse the repository at this point in the history
From self._max_steer to self._max_brake
  • Loading branch information
kykim0 authored and bernatx committed Oct 20, 2022
1 parent 8854804 commit 0c41f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonAPI/carla/agents/navigation/basic_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, vehicle, target_speed=20, opt_dict={}):
if 'base_vehicle_threshold' in opt_dict:
self._base_vehicle_threshold = opt_dict['base_vehicle_threshold']
if 'max_brake' in opt_dict:
self._max_steering = opt_dict['max_brake']
self._max_brake = opt_dict['max_brake']

# Initialize the planners
self._local_planner = LocalPlanner(self._vehicle, opt_dict=opt_dict)
Expand Down

0 comments on commit 0c41f16

Please sign in to comment.