Object Oriented Partial Order Planner
Description: This deliverable is an extension of the Partial Order Planner of Deliverable2. Given a goal, initial state and a set of
actions this planner will design a plan and alternate plans if logically available, which will consist of actions to travel from the initial state to the final
state(which is the goal). This planner is Object Oriented in nature.
Example:This is what my code outputs on these inputs.
Input
NOACTIONS 4 NOACTIONSEND
ACTION1ACTIONWear,Sock,Floor,RightPRECONDITIONSNO,At,Sock,RightEFFECTSYES,At,Sock,RightENDACTIONENDACTION1
ACTION2ACTIONWear,Sock,Floor,LeftPRECONDITIONSNO,At,Sock,LeftEFFECTSYES,At,Sock,LeftENDACTIONENDACTION2
ACTION3ACTIONWear,Shoe,Floor,LeftPRECONDITIONSYES,At,Sock,LeftEFFECTSYES,At,Shoe,LeftENDACTIONENDACTION3
ACTION4ACTIONWear,Shoe,Floor,RightPRECONDITIONSYES,At,Sock,RightEFFECTSYES,At,Shoe,RightENDACTIONENDACTION4
INITIALSTATENO,At,Sock,Right;NO,At,Sock,LeftENDINITIALSTATE
STARTGOALYES,At,Shoe,Right;YES,At,Shoe,LeftENDGOAL
Output
Wear,Sock,Floor,Left
Wear,Sock,Floor,Right
Wear,Shoe,Floor,Left
Wear,Shoe,Floor,Right
The following set of sequential tasks can be executed in parallel
Sequential Tasks
Wear,Sock,Closet,Right
Wear,Shoe,Closet,Right
Sequential Tasks
Wear,Sock,Closet,Left
Wear,Shoe,Closet,Left
The above example says that the ball is in the table and the box is in the floor. It also says what the goal of the problem statement is that
the ball should be in the floor and the box in the table. Given the set of actions the algorithm will choose appropriate action and perform the action, to achieve the goal.
Please download the planner.
|