-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from LBonassi95/master
Fix in parser
- Loading branch information
Showing
9 changed files
with
163 additions
and
25 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,32 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
ca-certificates \ | ||
cmake \ | ||
g++ \ | ||
git \ | ||
libgmp3-dev \ | ||
make \ | ||
python3 \ | ||
wget \ | ||
time \ | ||
zlib1g-dev | ||
|
||
# Set up some environment variables. | ||
ENV CXX g++ | ||
|
||
RUN apt-get install -y mona && \ | ||
apt-get install -y libssl-dev && \ | ||
apt-get install -y python3 && \ | ||
apt-get install -y python3-pip && \ | ||
python3 -m pip install --upgrade pip | ||
|
||
RUN git clone https://github.com/whitemech/FOND4LTLf.git && \ | ||
cd FOND4LTLf && \ | ||
pip install . | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
CMD ["fond4ltlfpltlf"] |
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
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
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,24 @@ | ||
(define (problem coffee1) | ||
(:domain robot_coffee) | ||
(:objects o1 o2 o3 lab - office | ||
c - kitchen) | ||
(:init (robot_at lab) | ||
(connected lab o1) | ||
(connected o1 lab) | ||
(connected o1 o2) | ||
(connected o2 o1) | ||
(connected o1 o3) | ||
(connected o3 o1) | ||
(connected o3 o2) | ||
(connected o2 o3) | ||
(connected c o3) | ||
(connected o3 c)) | ||
; (:goal (and | ||
; (until (true) (coffee_at o1)) | ||
; (until (true) (coffee_at o2)) | ||
; (until (true) (coffee_at o3)) | ||
; )) | ||
|
||
(:goal (and (connected o3 c))) | ||
|
||
) |
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,49 @@ | ||
(define (domain robot_coffee) | ||
(:requirements :strips :non-deterministic) | ||
|
||
(:types office - room | ||
kitchen - room) | ||
(:predicates (robot_at ?x - room) | ||
(coffeeat ?x - room) | ||
(connected ?x - room ?y - room) | ||
(has_coffee) | ||
) | ||
|
||
(:action move_to | ||
:parameters | ||
(?x - room | ||
?y - room) | ||
:precondition | ||
(and | ||
(robot_at ?x) (connected ?x ?y)) | ||
:effect | ||
(and | ||
(robot_at ?y) (not (robot_at ?x))) | ||
) | ||
|
||
(:action prepare_coffee | ||
:parameters | ||
(?x - kitchen) | ||
:precondition | ||
(and | ||
(robot_at ?x) (not (has_coffee))) | ||
:effect | ||
(has_coffee) | ||
) | ||
|
||
(:action put_coffee | ||
:parameters | ||
(?x - office) | ||
:precondition | ||
(and | ||
(robot_at ?x) (has_coffee)) | ||
:effect | ||
(and (not (has_coffee)) | ||
(oneof | ||
(and (coffeeat ?x)) | ||
(and) | ||
)) | ||
) | ||
|
||
|
||
) |
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