Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hp/t0 #119

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Hp/t0 #119

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 3 additions & 0 deletions planutils/packages/conformant-translator/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

apptainer build conformant-translator.sif docker://hectorpal/t0-translation-based-planners:latest
7 changes: 7 additions & 0 deletions planutils/packages/conformant-translator/manifest.json
Original file line number Diff line number Diff line change
@@ -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": []
}
3 changes: 3 additions & 0 deletions planutils/packages/conformant-translator/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

apptainer run -e $(dirname $0)/conformant-translator.sif $@
3 changes: 3 additions & 0 deletions planutils/packages/conformant-translator/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

rm conformant-translator.sif
3 changes: 3 additions & 0 deletions planutils/packages/t0/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

# Nothing to do
9 changes: 9 additions & 0 deletions planutils/packages/t0/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
4 changes: 4 additions & 0 deletions planutils/packages/t0/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# apptainer run -e $(dirname $0)/conformant-translator.sif -pl t0 $@
planutils run conformant-translator -- -pl t0 $@
3 changes: 3 additions & 0 deletions planutils/packages/t0/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

# Nothing to do