Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
i-kj opened this issue Oct 24, 2023 · 0 comments
Open

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

i-kj opened this issue Oct 24, 2023 · 0 comments

Comments

@i-kj
Copy link

i-kj commented Oct 24, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant