Coder Social home page Coder Social logo

ankitaggarwal011 / horsefly Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 86 KB

Coordinated logistics with a truck and a drone

Home Page: https://cg.ankitaggarwal.me

License: MIT License

CSS 4.53% HTML 6.24% JavaScript 89.24%
drones clustering kmeans-clustering algorithm optics-clustering truck logistics visualization html5 html5-canvas

horsefly's Introduction

HorseFly: Coordinated logistics with a truck and a drone

Description [Demo Link]

Consider a delivery system where a moving truck (with packages) and a drone are autonomously coordinating to deliver the packages in the customer homes. The truck is moving along a predefined path on a map while a drone picks up one package at a time from the truck, delivers it to a customer, and returns to the truck to pick up the next package.

Our goal is to explore the heuristics and define an algorithm using computational geometry to deliver all of the given packages in the minimum time possible. Another goal is to build a visually appealing web application of an interactive visualization of the animated path of the drone and truck completing a set of deliveries.

Motivation

This project was a part of the graduate course on Computational Geometry by Prof. Joe Mitchell.

Algorithm

  • Compute the clusters of homes using OPTICS density clustering (a heuristic is to choose a neighbourhood size for clustering) and get the number of clusters that can be formed.
  • Since OPTICS clustering might leave some homes out of clusters as outliers, therefore, KMeans clustering is used with the number of clusters as found before by the OPTICS algorithm.
  • Find the nearest neighbour of the centroid of these clusters to the truck path using kdTrees to decide the pausing points of the truck.
  • Construct a schedule for the truck and the drone to complete the delivery in approximately minimum time.

Implementation

  • The implementation of the project as an interactive web-application was done using the Canvas functionality of HTML5, CSS and JavaScript.
  • Density Clustering JavaScript library is used for implementation of OPTICS and KMeans clustering algorithms.
  • kdTree JavaScript library is used for the implementation of kdTree data structure for nearest neighbour search.

Future Work

  • Add a random schedule to the application in order to have a comparison.
  • Explore other heuristics like size of clusters and ratio of the speed of truck and drone.
  • Make the system more dynamic in the sense that the path is not decided before the delivery begins, this will be more robust to disturbances along the path.

Author

Ankit Aggarwal

References

horsefly's People

Contributors

ankitaggarwal011 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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