Update Building Custom Models authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
...@@ -56,7 +56,7 @@ export CDS_SRC=/home/$USER/advligorts/src/include/ ...@@ -56,7 +56,7 @@ export CDS_SRC=/home/$USER/advligorts/src/include/
``` ```
## Building Custom Models (CyMAC Usecase) ### Allowing `rtcds` to Find your Custom Model
In order for `rtcds` to find your model (the <model_name>.mdl file) the `RCG_LIB_PATH` env variable needs to have a path to the directory containing it. The best way to do that, is adding the directory path to the `RCG_LIB_PATH` line in the `/etc/advligorts/env` file. In order for `rtcds` to find your model (the <model_name>.mdl file) the `RCG_LIB_PATH` env variable needs to have a path to the directory containing it. The best way to do that, is adding the directory path to the `RCG_LIB_PATH` line in the `/etc/advligorts/env` file.
If you have your custom model located at `/home/controls/models/` then you should add that path (colon (:) separated) to your env file. If you have your custom model located at `/home/controls/models/` then you should add that path (colon (:) separated) to your env file.
...@@ -88,3 +88,5 @@ CDS_IFO_SRC=/home/controls/advligorts/src/include/ ...@@ -88,3 +88,5 @@ CDS_IFO_SRC=/home/controls/advligorts/src/include/
... ...
``` ```
While `rtcds` has appended some additional paths to the `RCG_LIB_PATH` variable, the path we added (`/home/controls/models/`) is present in the list. Now when we run `rtcds build <model_name>`, `rtcds` will look in `/home/controls/models/` for a file named `<model_name>.mdl` While `rtcds` has appended some additional paths to the `RCG_LIB_PATH` variable, the path we added (`/home/controls/models/`) is present in the list. Now when we run `rtcds build <model_name>`, `rtcds` will look in `/home/controls/models/` for a file named `<model_name>.mdl`
## Building Custom Models (CyMAC Usecase)
\ No newline at end of file