carla icon indicating copy to clipboard operation
carla copied to clipboard

Python API misses agents

Open gabrik opened this issue 1 year ago • 3 comments

Hi all,

I'm using CARLA client API within a docker container and I need to access to the GlobalRoutePlanned that is part of the agents module but It seems not installed.

CARLA version: 0.9.14 Platform/OS: Ubuntu 20.04 Problem you have experienced: When installing python API from pip the agents modules is missing What you expected to happen: The agents modules to be present Steps to reproduce:

pip3 install carla==0.9.14
python3 -c "from carla.agents.navigation.global_route_planner import GlobalRoutePlanner"

Any suggestion?

gabrik avatar Apr 11 '23 14:04 gabrik

Try this to copy the agents package into your python's site-packages folder. If your python version is python3.8, run:

cd ~ # enter home folder in container
cp -r PythonAPI/carla/agents .local/lib/python3.8/site-packages/ 

DeepDuke avatar Jan 21 '24 13:01 DeepDuke

Weirdly, the developers didn't put agents as a subpackage of Carla client carla but as an individual package.

DeepDuke avatar Jan 21 '24 13:01 DeepDuke

Is there any reason for that? Coping from the build or the docker image is annoying.

If not, I will prepare pull request with updated setup.py in the next week.

firemark avatar Feb 16 '24 16:02 firemark