Skip to content

Commit

Permalink
Fix manual_control choosing only Nissan Patrol
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Dec 21, 2018
1 parent 79b328d commit 10e9a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonAPI/manual_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def restart(self):
cam_index = self.camera_manager._index if self.camera_manager is not None else 0
cam_pos_index = self.camera_manager._transform_index if self.camera_manager is not None else 0
# Get a random vehicle blueprint.
blueprint = random.choice(self.world.get_blueprint_library().filter('patrol'))
blueprint = random.choice(self.world.get_blueprint_library().filter('vehicle'))
blueprint.set_attribute('role_name', 'hero')
if blueprint.has_attribute('color'):
color = random.choice(blueprint.get_attribute('color').recommended_values)
Expand Down

0 comments on commit 10e9a53

Please sign in to comment.