Crates.io | vehicle-signals |
lib.rs | vehicle-signals |
version | 0.4.0 |
source | src |
created_at | 2021-09-23 07:05:13.896094 |
updated_at | 2022-09-23 09:43:04.567181 |
description | DDS topics (for cyclonedds-rs) created from GENIVI/W3C Vehicle Signal Specification |
homepage | https://github.com/sabaton-rs/vehicle_signals |
repository | |
max_upload_size | |
id | 455253 |
size | 1,693,770 |
This crate generates the DDS Topic types for use in an automotive platform. The types are based on the GENIVI VSS Specification. The aim of the Vehicle Signal Specification (VSS) is to create a common understanding of vehicle signals independent of the protocol or serialization format.
This crate depends on cyclonedds-rs, the safe Rust binding for cyclonedds.
Version 3.0 of the specification is used. https://github.com/COVESA/vehicle_signal_specification/commit/525e2bd00ddf061851bdc75e849178e5d3ad5833
This implementation uses keys in the generated types. This simplifies the type path considerably. For example, in the GENIVI VSS, you will find the following type names
In the generated binding, you will find just one type
The Row and the Side of the window is converted into values within the Position structure.[vehicle_signals::vehicle::cabin::door::window::Position] The row and the side are marked as topic keys.
The signals are generated from the CSV output of the GENIVI vehicle signal specification. Copy the generated CSV file into this repo and update the build.rs to reflect the correct file.
Vehicle signal specification : https://github.com/GENIVI/vehicle_signal_specification/
Vehicle Speed Publisher https://github.com/sjames/demo-vehicle-speed-publisher.git
Vehicle Speed Subscriber (async support) https://github.com/sjames/demo-vehicle-speed-subscriber.git