Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.73 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.73 KB

Sample: Seat Massager

The seat massager sample demonstrates how a seat massager may be implemented.

Follow these instructions to run the demo.

Steps:

  1. The best way to run the demo is by using three windows: one running the In-Vehicle Digital Twin, one running the Digital Twin Provider and one running the Digital Twin Consumer. Orientate the three windows so that they are lined up in a column. The top window can be used for the In-Vehicle Digital Twin. The middle window can be used for the Digital Twin Provider. The bottom window can be used for the Digital Twin Consumer.
  2. In each window, change directory to the directory containing the build artifacts. Make sure that you replace "{repo-root-dir}" with the repository root directory on the machine where you are running the demo.

    cd {repo-root-dir}/target/debug
  3. Create the three config files with the following contents, if they are not already there:

    ---- consumer_settings.yaml ----
    consumer_authority: "0.0.0.0:6010"
    invehicle_digital_twin_uri: "http://0.0.0.0:5010"

    ---- invehicle_digital_twin_settings.yaml ----
    invehicle_digital_twin_authority: "0.0.0.0:5010"

    ---- provider_settings.yaml ----
    provider_authority: "0.0.0.0:4010"
    invehicle_digital_twin_uri: "http://0.0.0.0:5010"

  4. In the top window, run:

    ./invehicle-digital-twin
  5. In the middle window, run:

    ./seat-massager-provider
  6. In the bottom window, run:

    ./seat-massager-consumer
  7. Use control-c in each of the windows when you wish to stop the demo.

A templated version of each config file can be found in:

  • {repo-root-dir}/core/invehicle-digital-twin/template
  • {repo-root-dir}/samples/common/template