-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
191 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Sample: Command | ||
|
||
The command sample demonstrates the use of a command. | ||
|
||
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.<br> | ||
1. 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.<br><br> | ||
`cd {repo-root-dir}/target/debug`<br> | ||
1. Create the three config files with the following contents, if they are not already there:<br><br> | ||
---- consumer_settings.yaml ----<br> | ||
`consumer_authority: "0.0.0.0:6010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
---- invehicle_digital_twin_settings.yaml ----<br> | ||
`invehicle_digital_twin_authority: "0.0.0.0:5010"`<br><br> | ||
---- provider_settings.yaml ----<br> | ||
`provider_authority: "0.0.0.0:4010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
1. In the top window, run:<br><br> | ||
`./invehicle-digital-twin`<br> | ||
1. In the middle window, run:<br><br> | ||
`./command-provider`<br> | ||
1. In the bottom window, run:<br><br> | ||
`./command-consumer`<br> | ||
1. 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Sample: Mixed | ||
|
||
The mixed sample demonstrates the use of both properties and commands. | ||
|
||
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.<br> | ||
1. 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.<br><br> | ||
`cd {repo-root-dir}/target/debug`<br> | ||
1. Create the three config files with the following contents, if they are not already there:<br><br> | ||
---- consumer_settings.yaml ----<br> | ||
`consumer_authority: "0.0.0.0:6010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
---- invehicle_digital_twin_settings.yaml ----<br> | ||
`invehicle_digital_twin_authority: "0.0.0.0:5010"`<br><br> | ||
---- provider_settings.yaml ----<br> | ||
`provider_authority: "0.0.0.0:4010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
1. In the top window, run:<br><br> | ||
`./invehicle-digital-twin`<br> | ||
1. In the middle window, run:<br><br> | ||
`./mixed-provider`<br> | ||
1. In the bottom window, run:<br><br> | ||
`./mixed-consumer`<br> | ||
1. 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Sample: Property | ||
|
||
The property sample demonstrates the use of a property. | ||
|
||
This sample uses a MQTT Broker; please make sure that it is running. | ||
|
||
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.<br> | ||
1. 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.<br><br> | ||
`cd {repo-root-dir}/target/debug`<br> | ||
1. Create the three config files with the following contents, if they are not already there:<br><br> | ||
---- consumer_settings.yaml ----<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
---- invehicle_digital_twin_settings.yaml ----<br> | ||
`invehicle_digital_twin_authority: "0.0.0.0:5010"`<br><br> | ||
---- provider_settings.yaml ----<br> | ||
`provider_authority: "0.0.0.0:1883"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
1. In the top window, run:<br><br> | ||
`./invehicle-digital-twin`<br> | ||
1. In the middle window, run:<br><br> | ||
`./property-provider`<br> | ||
1. In the bottom window, run:<br><br> | ||
`./property-consumer`<br> | ||
1. 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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.<br> | ||
1. 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.<br><br> | ||
`cd {repo-root-dir}/target/debug`<br> | ||
1. Create the three config files with the following contents, if they are not already there:<br><br> | ||
---- consumer_settings.yaml ----<br> | ||
`consumer_authority: "0.0.0.0:6010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
---- invehicle_digital_twin_settings.yaml ----<br> | ||
`invehicle_digital_twin_authority: "0.0.0.0:5010"`<br><br> | ||
---- provider_settings.yaml ----<br> | ||
`provider_authority: "0.0.0.0:4010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
1. In the top window, run:<br><br> | ||
`./invehicle-digital-twin`<br> | ||
1. In the middle window, run:<br><br> | ||
`./seat-massager-provider`<br> | ||
1. In the bottom window, run:<br><br> | ||
`./seat-massager-consumer`<br> | ||
1. 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Sample: Streaming | ||
|
||
The streaming sample demonstrates the streaming of a video stream. | ||
|
||
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.<br> | ||
1. 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.<br><br> | ||
`cd {repo-root-dir}/target/debug`<br> | ||
1. Create the three config files with the following contents, if they are not already there:<br><br> | ||
---- streaming_consumer_settings.yaml ----<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
`number_of_images: 20`<br><br> | ||
---- invehicle_digital_twin_settings.yaml ----<br> | ||
`invehicle_digital_twin_authority: "0.0.0.0:5010"`<br><br> | ||
---- streaming_provider_settings.yaml ----<br> | ||
`provider_authority: "0.0.0.0:4010"`<br> | ||
`invehicle_digital_twin_uri: "http://0.0.0.0:5010"`<br><br> | ||
`image_directory: "<<chariott-repo-root>>/examples/applications/simulated-camera/images"` | ||
1. In the top window, run:<br><br> | ||
`./invehicle-digital-twin`<br> | ||
1. In the middle window, run:<br><br> | ||
`./streaming-provider`<br> | ||
1. In the bottom window, run:<br><br> | ||
`./streaming-consumer`<br> | ||
1. 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 |