15 个版本 (破坏性更新)
0.11.1 | 2024 年 3 月 29 日 |
---|---|
0.10.1 | 2023 年 10 月 8 日 |
0.8.0 | 2023 年 1 月 3 日 |
0.6.0 | 2022 年 12 月 23 日 |
#267 在 模拟
在 2 个 crate 中使用 (通过 carla)
720KB
612 代码行
carla-sys
此 crate 为 CARLA 模拟器提供 Rust FFI 绑定。它链接到预构建的 libcarla_client
库,并使用 autocxx 生成 FFI 绑定。在 csrc 目录中的额外 C++ 代码替换了一些 autocxx 无法正确处理的类和函数。
它是 carla crate 的一部分,通常您不需要在项目中包含此包。
使用自定义 CARLA 源代码
如果您想使用自定义 CARLA 仓库,请将环境变量 CARLA_DIR
设置为指向您的 CARLA 仓库,并使用附加功能构建 carla-sys。
// 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
许可证
它根据 MIT 许可证分发。请参阅 LICENSE.txt 文件以获取完整的许可证文本。
依赖项
~2.6–8.5MB
~155K SLoC