diff --git a/README.md b/README.md index dd1f2a1..8988714 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,12 @@ $ ## 5. Add a new package ### Package Configuration -1. Create a folder for new pacakeg, the package name will be the used to call the planner later +1. Create a folder for the new package, the package name will be used to call the planner later 2. Set up the `install`, `run`, `uninstall`, and manifest file. You can find the template files under packages/TEMPLATE folder -### Write Manifest file +### Write a Manifest file -Please create a manifest file named `manifest_compact.json` if you want to use predefined templates in the packages/TEMPLATE/SERVICE_TEMPLATE folder. The full `manifest.json` will be generated at the run time. You can overwrite the dafult template by restating the value of json fields. +Please create a manifest file named `manifest_compact.json` if you want to use predefined templates in the packages/TEMPLATE/SERVICE_TEMPLATE folder. The full `manifest.json` will be generated at the run time. You can overwrite the default template by restating the value of JSON fields. You can also create a `manifest.json` file directly if you don't need the template. diff --git a/planutils/packages/conformant-translator/install b/planutils/packages/conformant-translator/install new file mode 100755 index 0000000..b6cf0e4 --- /dev/null +++ b/planutils/packages/conformant-translator/install @@ -0,0 +1,3 @@ +#!/bin/bash + +apptainer build conformant-translator.sif docker://hectorpal/t0-translation-based-planners:latest diff --git a/planutils/packages/conformant-translator/manifest.json b/planutils/packages/conformant-translator/manifest.json new file mode 100644 index 0000000..ea5443e --- /dev/null +++ b/planutils/packages/conformant-translator/manifest.json @@ -0,0 +1,7 @@ +{ + "name": "Translator-based conformant planners. T0 and dDNNF-based", + "description": "Conformant planner", + "homepage": "https://github.com/hectorpal/translation-based-planners", + "install-size": "243M", + "dependencies": [] +} diff --git a/planutils/packages/conformant-translator/run b/planutils/packages/conformant-translator/run new file mode 100755 index 0000000..6d38634 --- /dev/null +++ b/planutils/packages/conformant-translator/run @@ -0,0 +1,3 @@ +#!/bin/bash + +apptainer run -e $(dirname $0)/conformant-translator.sif $@ diff --git a/planutils/packages/conformant-translator/uninstall b/planutils/packages/conformant-translator/uninstall new file mode 100755 index 0000000..a763a37 --- /dev/null +++ b/planutils/packages/conformant-translator/uninstall @@ -0,0 +1,3 @@ +#!/bin/bash + +rm conformant-translator.sif diff --git a/planutils/packages/t0/install b/planutils/packages/t0/install new file mode 100755 index 0000000..049b630 --- /dev/null +++ b/planutils/packages/t0/install @@ -0,0 +1,3 @@ +#!/bin/bash + +# Nothing to do \ No newline at end of file diff --git a/planutils/packages/t0/manifest.json b/planutils/packages/t0/manifest.json new file mode 100644 index 0000000..3e92cff --- /dev/null +++ b/planutils/packages/t0/manifest.json @@ -0,0 +1,9 @@ +{ + "name": "T0: Compiling Uncertainty Away in Conformant Planning Problems with Bounded Width", + "description": "$T_0$ conformant planner", + "homepage": "https://github.com/hectorpal/translation-based-planners", + "install-size": "0M", + "dependencies": [ + "conformant-translator" + ] +} diff --git a/planutils/packages/t0/run b/planutils/packages/t0/run new file mode 100755 index 0000000..8833cfa --- /dev/null +++ b/planutils/packages/t0/run @@ -0,0 +1,4 @@ +#!/bin/bash + +# apptainer run -e $(dirname $0)/conformant-translator.sif -pl t0 $@ +planutils run conformant-translator -- -pl t0 $@ diff --git a/planutils/packages/t0/uninstall b/planutils/packages/t0/uninstall new file mode 100755 index 0000000..049b630 --- /dev/null +++ b/planutils/packages/t0/uninstall @@ -0,0 +1,3 @@ +#!/bin/bash + +# Nothing to do \ No newline at end of file