Giter VIP home page Giter VIP logo

fast-downward-android's Introduction

Fast Downward for Android

This is a port of the Fast Downward PDDL Planner for Android.

This project implements the interface provided by the library com.softbankrobotics.pddl:pddl-planning.

Usage

This planner can be used as a library, or as an Android service, in a stand-alone app. In both cases you will need to use the interface library com.softbankrobotics.pddl:pddl-planning.

It is available on Maven Central, but not in JCenter. The build.gradle at the root of your project should mention:

allprojects {
    repositories {
        mavenCentral()
    }
}

And your module's dependency should include:

implementation 'com.softbankrobotics.pddl:pddl-planning:1.4.1'

Usage as a library

Add it to your module's dependencies:

implementation 'com.softbankrobotics.pddl:fast-downward-android:2.2.0'

Use setupFastDownwardPlanner to get a PlanSearchFunction, that can be used along with the utilities provided by com.softbankrobotics:pddl-planning.

Example:

val searchPlan: PlanSearchFunction = setupFastDownwardPlanner(context)
// [...]
searchPlan(domain, problem)

Usage as a stand-alone service

To use it as a stand-alone Android service application:

  • build the app module, and install it on the device. It will show up under the settings, in the applications section, but not in the main launcher app, because it has no main activity.
  • use createPlanSearchFunctionFromService with the right Intent to target this app's service to get a PlanSearchFunction:
    val intent = Intent(ACTION_SEARCH_PLANS_FROM_PDDL)
    intent.`package` = "com.softbankrobotics.fastdownward"
    val searchPlan: PlanSearchFunction = createPlanSearchFunctionFromService(context, intent)
    // [...]
    searchPlan(domain, problem)

Building

This project has submodules. After cloning it, do not forget to run:

git submodule update --init

This is a standard Android Studio project, but it includes C++ dependencies and might take long to build.

License

This project is distributed under the GPLv3 license.

Derivative logo was authorized for this project, please contact Fast Downward for reuse.

fast-downward-android's People

Contributors

victorpaleologue 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.