The Vehicle App SDK
reduces the effort required to implement Vehicle Apps by using the Velocitas development model for the Python programming language. To create a Vehicle App, please use our Vehicle App Template which uses this sdk.
This includes the following packages:
Note: The Vehicle App Python SDK is currently under active development in alpha phase.
Install the Vehicle App Python SDK with pip:
pip install git+https://github.com/eclipse-velocitas/vehicle-app-python-sdk.git@<version>
These examples demonstrate how to use the Python Vehicle App SDK:
Example | Description |
---|---|
Array Datatype | Shows a Vehicle Data Broker query that returns an array data point. |
Atomic Set | Shows how to set the values of multiple datapoint actuators in one "atomic" step. |
DataPoint Set | Shows how to set the value of the datapoint actuator value API. |
Dog Mode | Dog-Mode App that demonstrates MQTT communication and invocation of a Vehicle Service over gRPC, the app also subscribes for vehicle data points and sets the cabin temperature. |
Dynamic Rule | Create a Vehicle Data Broker rule with the fluent query methods. |
Static Rule | Create a Vehicle Data Broker rule with the subscribe_to_data_point annotation. |
VDB Queries | Demonstrates various aspects of creating Vehicle Data Broker queries. |
Seat Adjuster | Seat-Adjuster App that demonstrates MQTT communication and seat control via actuator data points. :point_right: This example can only be run from the Vehicle App Template. :point_left: |
All examples (except the Seat Adjuster) can be run via
cd examples
./run-app.sh -a <example-folder-name>
By default the examples are started using the native middleware. Dapr middleware support was recently removed.