mirror of
https://github.com/RAIRLab/Spectra.git
synced 2025-05-14 00:52:19 +00:00
Roses updates and Java 17 docs
This commit is contained in:
parent
c82f08d40b
commit
6812e5fdf2
4 changed files with 58 additions and 3 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -101,8 +101,8 @@
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
<maven.test.skip>true</maven.test.skip>
|
<maven.test.skip>true</maven.test.skip>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
|
||||||
|
;This is Brandon's grapevine problem from the SPECTRA system description paper (https://doi.org/10.1007/s13218-024-00847-8)
|
||||||
|
|
||||||
{:name "GrapeVine"
|
{:name "GrapeVine"
|
||||||
:background [
|
:background [
|
||||||
; Type predicates
|
; Type predicates
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
|
||||||
|
;This is James' roses problem from the PERI.2 symbol grounding problem paper
|
||||||
|
|
||||||
|
{:name "roses"
|
||||||
|
:background [
|
||||||
|
(agent n) (agent w) (agent s) (agent w)
|
||||||
|
(pos p1) (pos p2) (pos p3) (pos p4) (pos p5)
|
||||||
|
(pos p6) (pos p7) (pos p8) (pos p9)
|
||||||
|
(rose r1) (rose r2) (rose r3)
|
||||||
|
]
|
||||||
|
|
||||||
|
:actions [
|
||||||
|
(define-action remove [?r ?p] {
|
||||||
|
:preconditions [
|
||||||
|
(at ?r ?p)
|
||||||
|
]
|
||||||
|
:additions [
|
||||||
|
(forall (a) (if (agent a) (Perceives! a (not (at ?r ?p)))))
|
||||||
|
]
|
||||||
|
:delitions [
|
||||||
|
(at ?r ?p)
|
||||||
|
]
|
||||||
|
})
|
||||||
|
]
|
||||||
|
|
||||||
|
:start [
|
||||||
|
;Initial positions of the roses
|
||||||
|
(at r1 p1) (at r2 p5) (at r3 p9)
|
||||||
|
|
||||||
|
;All agents know the initial positions of the roses
|
||||||
|
(Knows! n (at r1 p1)) (Knows! n (at r2 p5)) (Knows! n (at r3 p9))
|
||||||
|
(Knows! w (at r1 p1)) (Knows! w (at r2 p5)) (Knows! w (at r3 p9))
|
||||||
|
(Knows! s (at r1 p1)) (Knows! s (at r2 p5)) (Knows! s (at r3 p9))
|
||||||
|
(Knows! e (at r1 p1)) (Knows! e (at r2 p5)) (Knows! e (at r3 p9))
|
||||||
|
|
||||||
|
;Only r3 is a faded rose, the rest are not faded
|
||||||
|
(faded r3)
|
||||||
|
|
||||||
|
;All agents know rose 3 is faded
|
||||||
|
(Knows! n (faded r3)) (Knows! w (faded r3)) (Knows! s (faded r3)) (Knows! e (faded r3))
|
||||||
|
]
|
||||||
|
|
||||||
|
:goal [
|
||||||
|
(forall (a r p)
|
||||||
|
(if (and (agent a) (rose r) (faded r) (pos p))
|
||||||
|
(Knows! a (not (at r p)))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue