Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Update configuration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmittag committed Mar 24, 2023
1 parent 571e622 commit f851c61
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 25 deletions.
23 changes: 0 additions & 23 deletions dds2val/OverallSequence.puml

This file was deleted.

13 changes: 12 additions & 1 deletion dds2val/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DDS Provider

The DDS provider provides data from an DDS middleware/API. For further understanding of the DDS middleware/API see [this](https://www.dds-foundation.org/what-is-dds-3/).
The DDS provider provides data from an DDS middleware/API. For further understanding of the DDS middleware/API see [this](https://www.dds-foundation.org/what-is-dds-3/). The DDS provider only works with the KUKSA databroker. The KUKSA C++ server is not supported.

## How to build

Expand Down Expand Up @@ -30,6 +30,17 @@ These steps are necessary:
2. Start the KML replay with an active local python virtual environment: `pip install requirements/requirements-kml.txt && cd kml && python3 dds_kmlreplay.py directions.kml`
3. Start the DDS provider with either: `docker run --rm -it --net=host ddsprovider:latest` or with an active local python virtual environment: `python3 ddsprovider.py`

## Configure the DDS provider

Configuration for the DDS provider is solved through setting environment variables. Have a look at the table below.

| Environment variable | default value | description |
| ----------------------------- | ------------- | ----------------------------------------------------------------------------------------------------- |
| VEHICLEDATABROKER_DAPR_APP_ID | None | DAPR ID for Vehicle App to look for. For more information to Vehicle Apps visit [Velocitas]() |
| VDB_ADDRESS | 127.0.0.1 | Address where to look for (Vehicle) Databroker |
| DAPR_GRPC_PORT | 55555 | Port where to look for (Vehicle) Databroker. If [DAPR]() gets used port of DAPR Sidecar where to look |
| MAPPING_FILE | mapping.yml | Place of mapping file from DDS to VSS |

## Overall sequence

```mermaid
Expand Down
2 changes: 1 addition & 1 deletion dds2val/ddsprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def main():
else:
grpc_metadata = None

databroker_address = "127.0.0.1:" + os.environ.get("DAPR_GRPC_PORT", "55555")
databroker_address = os.environ.get("VDB_ADDRESS", "127.0.0.1:") + os.environ.get("DAPR_GRPC_PORT", "55555")

mappingfile = os.environ.get(
"MAPPING_FILE", str(Path(__file__).parent / "mapping.yml")
Expand Down

0 comments on commit f851c61

Please sign in to comment.