In the file ~cs322/cilog/delrob_sitc.pl
(also available
on the web). Is an axiomatization of the delivery robot in cilog using
the situation calculus. You will need to play with this to do this
assignment.
colour(Obj,Col,Sit)that is true if object Obj has colour Col in situation Sit.
Assume that the parcel starts off blue. Thus, we have an axiom:
colour(parcel,blue,init).
Assume there is an action paint(Obj,Col) to paint object Obj colour Col. For this, lest assume that objects can only be painted red, and they can only be painted when the object and the robot are both at position o109. Assume also that colours accumulate on the robot (there is nothing that undoes an object being a color; if you paint the parcel red, it is both red and blue -- of course this is unrealistic, but it makes the problem simpler).
Axiomatize the predicate colour, and the action paint using the situation calculus.
You will not get full marks if you use more that 3 clauses (as well as the clause above defining the colour in the initial situation), or if any of the clauses has more than two atomic symbols in the body. You don't need equality, inequality or negation as failure.
Your output should look something like:
cilog: bound 12. cilog: ask color(parcel,red,S). Answer: color(parcel,red, do(paint(parcel,red), do(move(rob,storage,o109), do(pickup(rob,parcel), do(move(rob,o109,storage), init))))).
In this question, I want you to estimate how long it will take to find a solution to the query:
(don't bother to try it -- it takes way too long to run, but how long, that is the question)ask sitting_at(parcel,lab2,S).
~cs322/cilog/cilog
and on the web)
that reports runtime.