Skip to content

Commit

Permalink
Fix testing domains and problems
Browse files Browse the repository at this point in the history
Domain description must not use 'At' as predicate symbol as it is a keyword.
  • Loading branch information
sebastianstock committed Aug 27, 2020
1 parent 545b926 commit 9723c04
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 20 deletions.
12 changes: 3 additions & 9 deletions domains/transterra_v1.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

(MaxArgs 3)

(PredicateSymbols At RobotAt Attached ContainerAt BatteryAt
(PredicateSymbols ObjAt RobotAt Attached ContainerAt BatteryAt
!create_attached_fluent !!check_empty !move_to !sample_regolith
!transfer_sample !transfer_battery !transfer_payload !pickup_basecamp
!tuck_arms !place_basecamp
Expand Down Expand Up @@ -153,8 +153,6 @@
(Constraint During(task,p2))
(Add e1 ContainerAt(?container ?robot2 ?level))
(Constraint Meets(task,e1))
(Usage ManipulationCapacityRover 1)
(Param 1 rover1))
(ResourceUsage
(Usage ManipulationCapacityRover 1)
(Param 2 rover1))
Expand All @@ -172,8 +170,6 @@
(Constraint During(task,p2))
(Add e1 BatteryAt(?battery ?robot2 ?status))
(Constraint Meets(task,e1))
(Usage ManipulationCapacityRover 1)
(Param 1 rover1))
(ResourceUsage
(Usage ManipulationCapacityRover 1)
(Param 2 rover1))
Expand All @@ -190,8 +186,6 @@
(Constraint During(task,p2))
(Add e1 Attached(?payload ?robot2))
(Constraint Meets(task,e1))
(Usage ManipulationCapacityRover 1)
(Param 1 rover1))
(ResourceUsage
(Usage ManipulationCapacityRover 1)
(Param 2 rover1))
Expand All @@ -204,7 +198,7 @@
(Type ?camp BaseCamp)
(Pre p1 RobotAt(?robot1 ?area))
(Constraint During(task,p1))
(Pre p2 At(?camp ?area))
(Pre p2 ObjAt(?camp ?area))
(Del p2)
(Constraint Meets(p2,task))
(Add e1 Attached(?camp ?robot))
Expand Down Expand Up @@ -237,7 +231,7 @@
(Constraint During(task,p1))
(Pre p2 Attached(?camp ?robot))
(Del p2)
(Add e1 At(?camp ?area))
(Add e1 ObjAt(?camp ?area))
(Constraint Meets(task,e1))
(ResourceUsage ManipulationCapacityRover 1)
)
Expand Down
2 changes: 1 addition & 1 deletion problems/ico/move_2_objects.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#(Fluent c9 Connected(placingAreaEastRightCounterOS1 manipulationAreaEastCounterOS1))
#(Constraint Release[0,0](c9))

(Fluent f0 At(guest1 guestArea1))
(Fluent f0 PersonAt(guest1 guestArea1))
(Constraint Release[0,0](f0))

(Fluent c10 Connected(guestArea1 manipulationAreaEastTable2))
Expand Down
2 changes: 1 addition & 1 deletion problems/ico/testing/test_m_get_object1.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#(Fluent c9 Connected(placingAreaEastRightCounterOS1 manipulationAreaEastCounterOS1))
#(Constraint Release[0,0](c9))

(Fluent f0 At(guest1 guestArea1))
(Fluent f0 PersonAt(guest1 guestArea1))
(Constraint Release[0,0](f0))

(Fluent c10 Connected(guestArea1 manipulationAreaEastTable2))
Expand Down
2 changes: 1 addition & 1 deletion problems/ico/testing/test_m_move_object1.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#(Fluent c9 Connected(placingAreaEastRightCounterOS1 manipulationAreaEastCounterOS1))
#(Constraint Release[0,0](c9))

(Fluent f0 At(guest1 guestArea1))
(Fluent f0 PersonAt(guest1 guestArea1))
(Constraint Release[0,0](f0))

(Fluent c10 Connected(guestArea1 manipulationAreaEastTable2))
Expand Down
2 changes: 1 addition & 1 deletion problems/ico/testing/test_m_put_object1.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#(Fluent c9 Connected(placingAreaEastRightCounterOS1 manipulationAreaEastCounterOS1))
#(Constraint Release[0,0](c9))

(Fluent f0 At(guest1 guestArea1))
(Fluent f0 PersonAt(guest1 guestArea1))
(Constraint Release[0,0](f0))

(Fluent c10 Connected(guestArea1 manipulationAreaEastTable2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(Fluent f1 RobotAt(rover1 landingSite1))
(Constraint Release[0,0](f1))

(Fluent f2 At(baseCamp1 landingSite1))
(Fluent f2 ObjAt(baseCamp1 landingSite1))
(Constraint Release[0,0](f2))

(Task t0 !pickup_basecamp(rover1 baseCamp1))
Expand Down
12 changes: 6 additions & 6 deletions testing/negative_precondition_resource/negative_test_domain.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
(Type ?camp BaseCamp)
(Pre p1 RobotAt(?robot1 ?area))
(Constraint During(task,p1))
(Pre p2 At(?camp ?area))
(Pre p2 PersonAt(?camp ?area))
(Del p2)
(Constraint Meets(p2,task))
(Add e1 Attached(?camp ?robot))
Expand All @@ -140,7 +140,7 @@
(Constraint During(task,p1))
(Pre p2 Attached(?camp ?lander))
(Del p2)
(Pre p3 At(?lander ?area))
(Pre p3 PersonAt(?lander ?area))
(Constraint Meets(p2,task))
(Add e1 Attached(?camp ?robot))
(Constraint Meets(task,e1))
Expand All @@ -156,7 +156,7 @@
(Constraint During(task,p1))
(Pre p2 Attached(?camp ?robot))
(Del p2)
(Add e1 At(?camp ?area))
(Add e1 PersonAt(?camp ?area))
(Constraint Meets(task,e1))
(ResourceUsage ManipulationCapacityRover 1)
)
Expand Down Expand Up @@ -251,7 +251,7 @@
(Type ?lander Lander)

(Pre p1 RobotAt(?robot ?robotArea))
(Pre p2 At(?lander ?landerArea))
(Pre p2 PersonAt(?lander ?landerArea))
(VarDifferent ?robotArea ?landerArea)

(Sub s1 !move_to(?rover ?landerArea))
Expand All @@ -273,7 +273,7 @@
(Type ?lander Lander)

(Pre p1 RobotAt(?robot ?area))
(Pre p2 At(?lander ?area))
(Pre p2 PersonAt(?lander ?area))

(Sub s1 !pickup_basecamp(?robot ?camp))
(Constraint Equals(s1,task))
Expand Down Expand Up @@ -305,4 +305,4 @@

# (Sub s1 !!check_empty())
# (Constraint Equals(s1,task))
)
)

0 comments on commit 9723c04

Please sign in to comment.