15 releases (breaking)

0.11.1 Mar 29, 2024
0.10.1 Oct 8, 2023
0.8.0 Jan 3, 2023
0.6.0 Dec 23, 2022

#306 in Simulation

Download history 3/week @ 2024-09-02 43/week @ 2024-09-23 8/week @ 2024-09-30 10/week @ 2024-10-07 26/week @ 2024-10-14 5/week @ 2024-10-21 17/week @ 2024-10-28 21/week @ 2024-11-04 6/week @ 2024-11-18 22/week @ 2024-11-25 34/week @ 2024-12-09

62 downloads per month
Used in 2 crates (via carla)

MIT license

720KB
612 lines

carla-sys

This crate provides Rust FFI bindings for CARLA simulator. It links to pre-built libcarla_client libraries and generates FFI bindings using autocxx. Additional C++ code in csrc directory replaces some classes and functions that cannot be correctly handled by autocxx.

It is part of carla crate and normally you don't have to include this package in your project.

Use Custom CARLA Source Code

In the case that you want to use a custom CARLA repository. Set the CARLA_DIR environment variable to point to your CARLA repo and build carla-sys with additional features.

// Prepare and compile CARLA repo.
git clone https://github.com/carla-simulator/carla.git $HOME/my-carla
// Set CARLA_DIR and build your Rust project.
export CARLA_DIR=$HOME/my-carla

git clone https://github.com/jerry73204/carla-rust.git
cd carla-rust/carla-sys
cargo build \
    --features build-lib \
    --features save-lib \
    --features save-bindgen

License

It is distributed under MIT license. Please see LICENSE.txt file for full license text.

Dependencies

~2.6–8.5MB
~160K SLoC