You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These instructions assume you have installed the SDK and have installed the `clang` and `cmake` tools. See the SDK User's Guide for instructions on how to do this.
6
+
7
+
1. To preserve the initial state of the sample code, copy the source files to a new directory.
8
+
```shell
9
+
mkdir direct_access
10
+
cd direct_access
11
+
cp -r /opt/gaia/examples/direct_access/*.
12
+
```
13
+
2. Create the build directory under the current `direct_access/` directory and initiate the build.
14
+
```shell
15
+
mkdir build
16
+
cd build/
17
+
cmake ..
18
+
make
19
+
```
20
+
3. The output of the build is the 'incubator' executable.
21
+
22
+
# Running the Demo
23
+
24
+
To run the `hospital` binary from the build directory use the following command:
Copy file name to clipboardExpand all lines: production/examples/incubator/README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ A demo of a rule-based system for controlling the temperature of two incubators.
4
4
## Build Instructions
5
5
These instructions assume you have installed the SDK and have installed the *clang* and *cmake* tools. See the SDK User's Guide for instructions on how to do this.
6
6
7
-
1.We suggest copying the sources to a new directory so that you always have a backup in the installed folder if you want to go back.
8
-
```
9
-
mkdir incubator
10
-
cd incubator
11
-
cp -r /opt/gaia/examples/incubator/* .
12
-
```
13
-
2. Create a build directory (in this case it is under the current *incubator/* folder and build.
14
-
```
15
-
mkdir build
16
-
cd build/
17
-
cmake ..
18
-
make
19
-
```
20
-
3.If everything runs successfully the *incubator* executable will be built.
7
+
1.To preserve the initial state of the sample code, copy the source files to a new directory.
8
+
```shell
9
+
mkdir incubator
10
+
cd incubator
11
+
cp -r /opt/gaia/examples/incubator/*.
12
+
```
13
+
2. Create the build directory under the current `incubator/` directory and initiate the build.
14
+
```shell
15
+
mkdir build
16
+
cd build/
17
+
cmake ..
18
+
make
19
+
```
20
+
3. The output of the build is the 'incubator' executable.
21
21
22
22
# Running the Demo
23
23
The demo operates in two modes: a show mode and a sim mode.
0 commit comments