Giter Site home page Giter Site logo

virtual-chauffeur-agent's Introduction

Virtual Chaeuffer Agent

Prerequisite

Install gringo solver:

$ sudo apt-get install gringo

Actions:

drive(X,Y,I) : Driving from location X to location Y at time I
onboard(P,X,I) : Onboarding passenger P at location X at time I
offboard(P,X,I) : Offboarding passenger P at location X at time I
waitforpassenger(P,I) : Waiting for passenger P at time I
greetpassenger(P,I): Greeting passenger P at time I
authenticatepassenger(P,I): Authenticating passenger P at time I
opendoor(P,I): Openning the door for passenger P at time I
loadluggage(P,I): Loading the luggage for passenger P at time I
closedoor(P,I): Closing the door for passenger P at time I

Fluents:

Fluents are atoms that can change as the result of an action execution. An atom can be true, false or not known. serviceconfirmed(P,I) : if true, service is confirmed for pasenger P at time I
car_at(Y,I) : if true, car is at location Y at time I
carisfull(I,N): if true, car is full at time I and can not accept more passengers
passincar(P,I): if true, passenger P is inside the car

Domains

We made a domain consisting of landmarks in New York city (Times sq, Broadway st, Harlem, Brooklyn, JFK) and three virtual passengers (Bob, Carol and Kate). Given the three various initial locations, the planner outputs a plan consisiting a sequence of actions to complete the ride of each passenger.

domain1

The car is initially at Broadway, Bob and Carol are at Times Sq and both want to go to JFK. The seqence of actions can be found by:

$ clingo *.asp domain1/*.asp -c n=20

Note that the actions are not printed in order. The order is found by the timestep (I) value.

domain2

The car is initially at Broadway, Bob is at Times Sq, Carol is at Brooklyn and both want to go to JFK. The seqence of actions can be found by:

$ clingo *.asp domain2/*.asp -c n=21

domain3

The car is initially at Broadway, Bob is at Times Sq, Carol is at Brooklyn and both want to go to JFK. Also, kate is waiting at JFK and wants to go to harlem. The seqence of actions can be found by:

$ clingo *.asp domain3/*.asp -c n=32

Custom Domain

Using any of the names/locations in the domain3/facts.asp, you can run a simulator to see the output:

$ python simulator.py

virtual-chauffeur-agent's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.