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

#278 in Simulation

Download history 1/week @ 2024-01-16 6/week @ 2024-01-23 8/week @ 2024-01-30 2/week @ 2024-02-13 16/week @ 2024-02-20 19/week @ 2024-02-27 175/week @ 2024-03-05 49/week @ 2024-03-12 144/week @ 2024-03-26 49/week @ 2024-04-02 1/week @ 2024-04-09

194 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
~156K SLoC