Rust client library for Carla simulator. It is compatible with simulator version 0.9.14.
It is recommended to fix the clang version to 12 on newer systems such as Ubuntu 22.04. See the Troubleshooting section to find instructions.
To get started, it's recommended to read the API documentation and learn from the simple example here.
Add carla
crate to Cargo.toml
and get everything. You may wait for
longer time to generate Rust bindings in the first build.
If you prefer to manually build Carla C++ client library. Please read this guide to learn instructions.
Currently carla-sys
is unable to build with newer clang version >= 14.
If you are Ubuntu users, it's recommended to configure
clang-sys to use clang 12.
sudo apt install clang-12 libclang-12-dev
export LLVM_CONFIG_PATH=/usr/bin/llvm-config-12
export LIBCLANG_PATH=/usr/lib/llvm-12/lib
export LIBCLANG_STATIC_PATH=/usr/lib/llvm-12/lib
export CLANG_PATH=/usr/bin/clang-12
It is an open source project and is distributed with MIT license. Please check the license file.