vehicle-model-generator

所属分类:自动驾驶
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-09-12 14:32:14
上 传 者sh-1993
说明:  车辆模型生成器,
(vehicle-model-generator,)

文件列表:
.devcontainer/ (0, 2023-09-12)
.devcontainer/Dockerfile (1053, 2023-09-12)
.devcontainer/devcontainer.json (2111, 2023-09-12)
.devcontainer/scripts/ (0, 2023-09-12)
.devcontainer/scripts/add-python.sh (1464, 2023-09-12)
.devcontainer/scripts/configure-proxies.sh (3943, 2023-09-12)
.devcontainer/scripts/postCreateCommand.sh (1118, 2023-09-12)
.editorconfig (34, 2023-09-12)
.licensechecker.yml (707, 2023-09-12)
.ort.yml (2063, 2023-09-12)
.pre-commit-config.yaml (2087, 2023-09-12)
.vscode/ (0, 2023-09-12)
.vscode/extensions.json (271, 2023-09-12)
.vscode/launch.json (1892, 2023-09-12)
.vscode/settings.json (685, 2023-09-12)
CODE_OF_CONDUCT.md (9918, 2023-09-12)
CONTRIBUTING.md (3953, 2023-09-12)
LICENSE (11357, 2023-09-12)
NOTICE-3RD-PARTY-CONTENT.md (1286, 2023-09-12)
NOTICE.md (1499, 2023-09-12)
SECURITY.md (2445, 2023-09-12)
gen_vehicle_model.py (723, 2023-09-12)
license_header.txt (589, 2023-09-12)
requirements-vss.txt (45, 2023-09-12)
... ...

# Velocitas Vehicle Model Generator [![License: Apache](https://img.shields.io/badge/License-Apache-yellow.svg)](http://www.apache.org/licenses/LICENSE-2.0) ## About This generator creates a vehicle model from the given vspec specification for the target programming language. ## Supported languages * Python 3 ## Usage Invoke the `gen_vehicle_model.py` script with the path to the vspec or json file you wish to generate code for, additionally passing include pathes to directories which contain referenced vspec files: ```bash python3 gen_vehicle_model.py -I ``` or ```bash python3 gen_vehicle_model.py ``` ### Example ```bash git clone -b v3.1 https://github.com/COVESA/vehicle_signal_specification.git python3 gen_vehicle_model.py -I ./vehicle_signal_specification/spec ./vehicle_signal_specification/spec/VehicleSignalSpecification.vspec ``` > **Note**
> Vehicle-model-generator only supports vss versions up to v3.1, newest versions will be supported soon. Or use VSCode Launch: Press ```F5```, select ```Python``` or ```cpp```. ## Arguments | Argument | Description | |:--------------------------------------------------|:-------------------------------------------------------------------------------------------------------------| `-h`, `--help` | show this help message and exit `-I dir`, `--include-dir dir` | Add include directory to search for included vspec files. `-T TARGET_FOLDER`, `--target-folder TARGET_FOLDER` | The folder name (with relative path) where the code will be generated into. `-N PACKAGE_NAME`, `--package-name PACKAGE_NAME` | Name of the root module/package (Python) or root namespace (C++). `-s`, `--strict` | Use strict checking: Terminate when anything not covered or not recommended by the core VSS specs is found. `-l {python}`, `--language {python}` | The target language of the generated code. `-o OVERLAY_FILE`, `--overlays OVERLAY_FILE` | Add overlays that will be layered on top of the VSS file in the order they appear. `-e EXTENDED_ATTRIBUTES`,
`--extended-attributes EXTENDED_ATTRIBUTES` | Whitelisted extended attributes as comma separated list. Note, that extended attributes aren't considered by the generator. This paramter is only for suppressing warnings/errors." ## Contribution - [GitHub Issues](https://github.com/eclipse-velocitas/vehicle-model-generator/issues) - [Mailing List](https://accounts.eclipse.org/mailing-list/velocitas-dev) - [Contribution](./CONTRIBUTING.md)

近期下载者

相关文件


收藏者