Merge branch 'dev' of github.com:carla-simulator/carla into ruben/jenkins_migration
This commit is contained in:
commit
a3a6c3e21c
|
@ -8,6 +8,7 @@
|
||||||
* Added functions to get actor' bones and components names
|
* Added functions to get actor' bones and components names
|
||||||
* Added functions to get actor' sockets transforms
|
* Added functions to get actor' sockets transforms
|
||||||
* make PythonAPI Windows: Fixed incompatibility issue with Anaconda due `py` command.
|
* 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
|
## CARLA 0.9.15
|
||||||
|
|
||||||
|
|
|
@ -345,12 +345,14 @@ class BasicAgent(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return Polygon(route_bb)
|
return Polygon(route_bb)
|
||||||
|
|
||||||
if self._ignore_vehicles:
|
if self._ignore_vehicles:
|
||||||
return (False, None, -1)
|
return (False, None, -1)
|
||||||
|
|
||||||
if not vehicle_list:
|
if vehicle_list is None:
|
||||||
vehicle_list = self._world.get_actors().filter("*vehicle*")
|
vehicle_list = self._world.get_actors().filter("*vehicle*")
|
||||||
|
if len(vehicle_list) == 0:
|
||||||
|
return (False, None, -1)
|
||||||
|
|
||||||
if not max_distance:
|
if not max_distance:
|
||||||
max_distance = self._base_vehicle_threshold
|
max_distance = self._base_vehicle_threshold
|
||||||
|
|
Loading…
Reference in New Issue