Merge branch 'dev' of github.com:carla-simulator/carla into ruben/jenkins_migration

This commit is contained in:
Ruben Abad 2024-02-21 17:14:16 +01:00
commit a3a6c3e21c
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@
* Added functions to get actor' bones and components names
* Added functions to get actor' sockets transforms
* make PythonAPI Windows: Fixed incompatibility issue with Anaconda due `py` command.
* Fixed bug in python agents when vehicle list was empty causing a check on all vehicles (BasicAgent.py) and detected pedestrians as vehicles if no pedestrains are present (BehaviourAgent.py)
## CARLA 0.9.15

View File

@ -345,12 +345,14 @@ class BasicAgent(object):
return None
return Polygon(route_bb)
if self._ignore_vehicles:
return (False, None, -1)
if not vehicle_list:
if vehicle_list is None:
vehicle_list = self._world.get_actors().filter("*vehicle*")
if len(vehicle_list) == 0:
return (False, None, -1)
if not max_distance:
max_distance = self._base_vehicle_threshold