CARLA-KITTI icon indicating copy to clipboard operation
CARLA-KITTI copied to clipboard

AttributeError: 'BehaviorAgent' object has no attribute 'vehicle'

Open i-kj opened this issue 1 year ago • 0 comments

Hello,

I've been trying to use the CARLA-KITTI project with CARLA version 0.9.13 on Ubuntu 20.04. After setting up the environment and running the data_collector.py script, I encountered the following error:

Traceback (most recent call last): ... File "/home/bfft/CARLA-KITTI/data_collector.py", line 292, in init if self.spawn_points[0].location != self.agent.vehicle.get_location(): AttributeError: 'BehaviorAgent' object has no attribute 'vehicle'

Here are the steps I followed:

Set up a virtual environment.
Installed all the required dependencies.
Updated the .bashrc file with the necessary paths.
Ran the data_collector.py script.

I've verified that I'm using the correct version of CARLA and have followed the setup instructions diligently. I suspect there might be a discrepancy between the CARLA version I'm using and the version the CARLA-KITTI script expects.

Has anyone else encountered this issue? Any insights or solutions would be greatly appreciated.

Thank you!

i-kj avatar Oct 24 '23 09:10 i-kj