fnozarian / CARLA-KITTI

CARLA-KITTI generates synthetic data from the CARLA simulator for KITTI 2D/3D Object Detection task.
39 stars 8 forks source link

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

Open i-kj opened 1 year ago

i-kj commented 1 year ago

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!