Install Carla simulator on Ubuntu 22.04

原帖在这里:

摘录:

xqgex commented on Oct 1, 2022

A few notes as it might help someone (who understands that this is only an experiment because the software was designed for Ubuntu 18.04).

In order to install Carla simulator on Ubuntu 22.04

A partially working instructions

Install the preconditions

  1. sudo apt install libomp5
    This will resolve the error:
/opt/carla-simulator/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping: error while loading shared libraries: libomp.so.5: cannot open shared object file: No such file or directory
  1. sudo apt install python3-open3d
    This will resolve the error:
ERROR: Could not find a version that satisfies the requirement open3d (from versions: none)
ERROR: No matching distribution found for open3d
  1. pip3 install --upgrade pip
  2. pip3 install --user pygame numpy future matplotlib open3d Pillow

If you are using Ubuntu 22.04 with Python 3.10+, don’t run:
pip3 install -r /opt/carla-simulator/PythonAPI/examples/requirements.txt
because you will get the following error:

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

Install Carla

  1. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1AF1527DE64CB8D9
  2. sudo add-apt-repository "deb [arch=amd64] http://dist.carla.org/carla focal main"
  3. sudo apt update
  4. sudo apt install carla-simulator

Run the simulation server

/opt/carla-simulator/CarlaUE4.sh -opengl4 -carla-server -benchmark -fps=10

1 个赞