Homework 7

Table of Contents

Task 1 (50 pts)

Write a GPS "problem" for the following scenario. Make sure GPS can
correctly find a plan. See below for how to code and execute GPS.

The scenario: Your sister wants to go to a concert. Your brother
wants to go to the park. You are at home, your sister is at the park,
and your brother is at home. You have a car, and can drive to the
various places. You can carry one passenger who has to be "in" the
car. The pickup action should put the person in the car, and the
dropoff action should take them out of the car. At the end, you want
to be back home. What is a plan that meets the goal?

Type 6 to run your HW7 code. It should find a correct plan. Try the
other GPS examples to see what you should expect. (Ignore the "None"
at the start of each plan.)

Turn in hw7.py.

Task 2 (50 pts)

Write a new solution to the same scenario in PDDL format. This
format requires two files: a "domain" file and a "problem" file. Name
your domain file hw7-domain.pddl and your problem file
hw7-prob.pddl. They should start like this (replace the "…"):